不用goto语句,只用if怎么写成C源码
INIT:010B6005 ; NTSTATUS __stdcall DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
INIT:010B6005 public DriverEntry
INIT:010B6005 DriverEntry proc near
INIT:010B6005 mov edi, edi
INIT:010B6007 push ebp
INIT:010B6008 mov ebp, esp
INIT:010B600A mov eax, ___security_cookie
INIT:010B600F test eax, eax
INIT:010B6011 mov ecx, 0BB40h
INIT:010B6016 jz short loc_10B601C if(___security_cookie!=0)
INIT:010B6018 cmp eax, ecx {
INIT:010B601A jnz short loc_10B603F if(___security_cookie!=0BB40h)
INIT:010B601C goto:loc_10B603F
INIT:010B601C loc_10B601C: ; CODE XREF: DriverEntry+11j }
INIT:010B601C mov edx, ds:KeTickCount ULONG *KeTickCount;
INIT:010B6022 mov eax, offset ___security_cookie
INIT:010B6027 shr eax, 8 (ULONG)(&___security_cookie)/256
INIT:010B602A xor eax, [edx]
INIT:010B602C and eax, 0FFFFh
INIT:010B6031 mov ___security_cookie, eax
INIT:010B6036 jnz short loc_10B603F if(___security_cookie==0)
INIT:010B6038 mov eax, ecx ___security_cookie=0BB40h
INIT:010B603A mov ___security_cookie, eax
INIT:010B603F
INIT:010B603F loc_10B603F: ; CODE XREF: DriverEntry+15j
INIT:010B603F ; DriverEntry+31j
INIT:010B603F not eax
INIT:010B6041 mov BugCheckParameter3, eax
INIT:010B6046 pop ebp
INIT:010B6047 jmp loc_100F40E
INIT:010B6047 DriverEntry endp
[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)