Function at 0x402ef0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1e8
push ebx
push ebp
mov ebp, dword [esp + 0x1f4]
xor eax, eax
push esi
xor esi, esi
push edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [0x40d068], esi
cmp dword [0x40dfb0], esi
jne 0x402f3e
call fcn.00403170
test eax, eax
je 0x402f3e
mov dword [0x40dfb0], 1
lea eax, [esp + 0x64]
push eax
push 0x18
lea ecx, [esp + 0x30]
push ecx
push esi
push ebp
call dword [sym.imp.ntoskrnl.exe_NtQueryInformationProcess]
mov edi, dword [esp + 0x2c]
cmp edi, esi
jne 0x402f6c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1e8
ret 4
xor eax, eax
push 0x44
lea edx, [esp + 0xb8]
push esi
push edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0xbc], esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0x44
lea eax, [esp + 0x70]
push esi
push eax
mov dword [esp + 0x74], esi
call sub.ntoskrnl.exe_memset
mov ebx, dword [0x40d6c0]
add esp, 0xc
mov dword [esp + 0x20], esi
cmp ebx, esi
je 0x402fe7
lea ecx, [esp + 0x20]
push ecx
push 0x32
lea edx, [esp + 0x104]
push edx
push edi
push ebp
call ebx
mov ebx, dword [0x40d6c0]
mov dword [esp + 0x18], esi
cmp ebx, esi
je 0x40300c
mov edx, dword [esp + 0x108]
lea eax, [esp + 0x18]
push eax
push 0x24
lea ecx, [esp + 0x48]
push ecx
push edx
push ebp
call ebx
mov ebx, dword [0x40d6c0]
mov dword [esp + 0x1c], esi
cmp ebx, esi
je 0x403031
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x1c]
push eax
push 0x48
lea ecx, [esp + 0xb8]
push ecx
push edx
push ebp
call ebx
mov ebx, dword [0x40d6c0]
mov ecx, 0x12
lea esi, [esp + 0xb0]
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
jmp 0x403050
push 0xc6
xor esi, esi
lea ecx, [esp + 0x136]
xor eax, eax
push esi
push ecx
mov word [esp + 0x13c], ax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov dword [esp + 0x14], esi
cmp ebx, esi
je 0x40309b
movzx eax, word [esp + 0x94]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x9c]
push eax
lea ecx, [esp + 0x138]
push ecx
push edx
push ebp
call ebx
lea eax, [esp + 0x130]
push eax
call sub.ntoskrnl.exe__wcslwr
add esp, 4
cmp dword [0x40d074], esi
je 0x4030bf
cmp dword [0x40d070], esi
jne 0x40315e
lea ecx, [esp + 0x130]
push 0x40b3a4
push ecx
call sub.ntoskrnl.exe_wcsstr
add esp, 8
test eax, eax
je 0x4030f3
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x88]
mov dword [0x40d070], edx
mov dword [0x40d078], eax
jmp 0x403125
lea ecx, [esp + 0x130]
push 0x40b3b8
push ecx
call sub.ntoskrnl.exe_wcsstr
add esp, 8
test eax, eax
je 0x403125
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x88]
mov dword [0x40d074], edx
mov dword [0x40d07c], eax
mov ebx, dword [0x40d6c0]
mov dword [esp + 0x24], esi
cmp ebx, esi
je 0x40314d
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x24]
push ecx
push 0x48
lea edx, [esp + 0x70]
push edx
push eax
push ebp
call ebx
mov ebx, dword [0x40d6c0]
mov ecx, dword [esp + 0xc0]
cmp ecx, dword [esp + 0x78]
jne 0x403050
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1e8
ret 4