Function at 0x407090
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 [0x410098], esi
cmp dword [0x410f60], esi
jne 0x4070de
call fcn.00407310
test eax, eax
je 0x4070de
mov dword [0x410f60], 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 0x40710c
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 [0x410670]
add esp, 0xc
mov dword [esp + 0x20], esi
cmp ebx, esi
je 0x407187
lea ecx, [esp + 0x20]
push ecx
push 0x32
lea edx, [esp + 0x104]
push edx
push edi
push ebp
call ebx
mov ebx, dword [0x410670]
mov dword [esp + 0x18], esi
cmp ebx, esi
je 0x4071ac
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 [0x410670]
mov dword [esp + 0x1c], esi
cmp ebx, esi
je 0x4071d1
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 [0x410670]
mov ecx, 0x12
lea esi, [esp + 0xb0]
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
jmp 0x4071f0
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 0x40723b
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 [0x4100a4], esi
je 0x40725f
cmp dword [0x4100a0], esi
jne 0x4072fe
lea ecx, [esp + 0x130]
push 0x40e94c
push ecx
call sub.ntoskrnl.exe_wcsstr
add esp, 8
test eax, eax
je 0x407293
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x88]
mov dword [0x4100a0], edx
mov dword [0x4100a8], eax
jmp 0x4072c5
lea ecx, [esp + 0x130]
push 0x40e960
push ecx
call sub.ntoskrnl.exe_wcsstr
add esp, 8
test eax, eax
je 0x4072c5
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x88]
mov dword [0x4100a4], edx
mov dword [0x4100ac], eax
mov ebx, dword [0x410670]
mov dword [esp + 0x24], esi
cmp ebx, esi
je 0x4072ed
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 [0x410670]
mov ecx, dword [esp + 0xc0]
cmp ecx, dword [esp + 0x78]
jne 0x4071f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1e8
ret 4