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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x5ceb30]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x14], 0
test edi, edi
je 0x407de5
push dword [esp + 0x14]
lea eax, [esp + 0x17]
push eax
push dword [edi + 4]
push dword [edi]
call fcn.00406a20
mov eax, dword [edi]
add esp, 0x10
mov dword [edi + 4], eax
cmp dword [esi + 0x10], 0
je 0x407de5
xor eax, eax
mov dword [esp + 0x18], 0
push 0xffffffffffffffff
push eax
push esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
call fcn.00404320
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.00407e00
mov edx, eax
lea ecx, [esp + 0x3c]
call fcn.004076d0
test al, al
sete bl
cmp dword [esp + 0x38], 8
jb 0x407b65
push dword [esp + 0x24]
call fcn.0052199f
add esp, 4
lea eax, [esp + 0x24]
lea ecx, [esp + 0x3c]
push eax
call fcn.00407f10
lea ecx, [esp + 0x54]
test bl, bl
je 0x407bf3
cmp ecx, eax
je 0x407b89
push 0xffffffffffffffff
push 0
push eax
call fcn.00404320
cmp dword [esp + 0x38], 8
jb 0x407b9c
push dword [esp + 0x24]
call fcn.0052199f
add esp, 4
lea ecx, [esp + 0x54]
call fcn.004079a0
test al, al
jne 0x407bb7
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403bc0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.00407e00
lea ecx, [esp + 0x3c]
cmp ecx, eax
je 0x407bd7
push 0xffffffffffffffff
push 0
push eax
call fcn.00404320
cmp dword [esp + 0x38], 8
jb 0x407b34
push dword [esp + 0x24]
call fcn.0052199f
add esp, 4
jmp 0x407b34
cmp ecx, eax
je 0x407c05
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
call fcn.00404320
cmp dword [esp + 0x38], 8
jb 0x407c18
push dword [esp + 0x24]
call fcn.0052199f
add esp, 4
cmp dword [esp + 0x64], 0
je 0x407c56
lea eax, [esp + 0x54]
push 0x5c8ea4
push eax
call fcn.004060e0
add esp, 8
test al, al
je 0x407c56
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.00407f10
push eax
lea ecx, [esp + 0x1c]
call fcn.00403bc0
lea ecx, [esp + 0x24]
call fcn.004039f0
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x40]
call fcn.00407e00
lea ecx, [esp + 0x6c]
call fcn.00407660
cmp eax, 0xffffffff
je 0x407cbb
inc eax
mov dword [esp + 0x38], 7
xor ecx, ecx
mov dword [esp + 0x34], 0
push eax
push ecx
lea eax, [esp + 0x74]
mov word [esp + 0x2c], cx
push eax
lea ecx, [esp + 0x30]
call fcn.00404320
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403b40
cmp dword [esp + 0x38], 8
jb 0x407cbb
push dword [esp + 0x24]
call fcn.0052199f
add esp, 4
mov ebx, dword [esp + 0x1c]
mov eax, 0x2aaaaaab
mov esi, dword [esp + 0x18]
mov ecx, ebx
sub ecx, esi
mov dword [esp + 0x24], 0
imul ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], 0
sar edx, 2
mov eax, edx
mov dword [esp + 0x2c], 0
shr eax, 0x1f
add eax, edx
push eax
call fcn.00404610
test al, al
je 0x407d14
push dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
push esi
push ebx
call fcn.00409a40
add esp, 0xc
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
mov ecx, edi
push eax
call fcn.00403ad0
mov edi, dword [esp + 0x24]
test edi, edi
je 0x407d44
push dword [esp + 0x14]
lea eax, [esp + 0x17]
push eax
push dword [esp + 0x30]
push edi
call fcn.00406a20
push edi
call fcn.0052199f
add esp, 0x14
cmp dword [esp + 0x80], 8
jb 0x407d5a
push dword [esp + 0x6c]
call fcn.0052199f
add esp, 4
xor eax, eax
mov dword [esp + 0x80], 7
cmp dword [esp + 0x68], 8
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
jb 0x407d87
push dword [esp + 0x54]
call fcn.0052199f
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
cmp dword [esp + 0x50], 8
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
jb 0x407db1
push dword [esp + 0x3c]
call fcn.0052199f
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
test esi, esi
je 0x407de5
push dword [esp + 0x14]
lea eax, [esp + 0x17]
push eax
push ebx
push esi
call fcn.00406a20
push esi
call fcn.0052199f
add esp, 0x14
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret 4