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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x5e4
movzx eax, word [0x421b22]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0xffffffff
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 4], 0xffffffff
mov dword [esp + 0x20], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x1c], 0x100
mov dword [esp + 0x8c], 0x44
mov word [esp + 0x30], ax
mov eax, dword [0x421b1e]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x8c]
push eax
call dword [0x420180]
cmp dword [0x421bd8], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
jne 0x404fcd
call fcn.0041e880
test eax, eax
je 0x40513e
mov esi, dword [esp + 0x608]
mov dword [esp + 0x28], 0
call dword [0x420188]
lea ecx, [esp + 8]
push ecx
push 0x28
push eax
call dword [0x420248]
test eax, eax
je 0x405045
lea edi, [esp + 0x11c]
push 0x61
push edi
call fcn.00418e70
add esp, 8
lea eax, [esp + 0x6c]
push eax
push edi
push 0
call dword [0x4201fc]
test eax, eax
je 0x405045
lea eax, [esp + 0x28]
mov dword [esp + 0x68], 1
mov dword [esp + 0x74], 2
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x68]
push eax
push ecx
push 0x10
push edx
push 0
push dword [esp + 0x1c]
call dword [0x4201d4]
test esi, esi
je 0x4050fa
push dword [esi + 4]
push 0
push 0x1fffff
call dword [0x420110]
mov esi, eax
test esi, esi
je 0x405388
lea eax, [esp + 0x10]
push eax
push 8
push esi
call dword [0x420248]
test eax, eax
je 0x405388
lea eax, [esp + 0x34]
lea ecx, [esp + 0xd0]
push eax
push 0x4c
push ecx
push 1
push dword [esp + 0x20]
call dword [0x4201d0]
test eax, eax
je 0x405388
lea eax, [esp + 0x20]
lea ecx, [esp + 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
push ecx
call dword [0x420210]
test eax, eax
je 0x4050df
push dword [esp + 0x20]
push dword [esp + 0xd4]
call dword [0x42024c]
test eax, eax
jne 0x405388
lea eax, [esp + 4]
push eax
push 2
push esi
call dword [0x420248]
test eax, eax
jne 0x405191
jmp 0x405388
mov eax, dword [0x421a90]
test eax, eax
je 0x40515c
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
push edx
push 1
push 0
push 0
call eax
test eax, eax
je 0x40515c
mov eax, dword [esp + 0x24]
mov esi, 0xffffffff
test eax, eax
je 0x405148
mov ecx, dword [esp + 0x14]
xor edx, edx
add ecx, 8
cmp dword [ecx], 0
je 0x405145
inc edx
add ecx, 0xc
cmp edx, eax
jb 0x40512f
jmp 0x405148
xor esi, esi
jmp 0x405413
mov esi, dword [ecx - 8]
mov eax, dword [0x421ade]
test eax, eax
je 0x405157
push dword [esp + 0x14]
call eax
cmp esi, 0xffffffff
jne 0x405177
mov ecx, dword [0x421bd4]
test ecx, ecx
je 0x405388
call ecx
mov esi, eax
cmp esi, 0xffffffff
je 0x405388
call dword [0x420244]
lea eax, [esp + 4]
push eax
push esi
call dword [0x421bd8]
test eax, eax
je 0x405388
mov eax, esp
push eax
push 1
push 1
push 0
push 0x2000000
push dword [esp + 0x18]
call dword [0x420230]
test eax, eax
je 0x405388
lea ebx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ebx
push 0
push 0
push 1
push dword [esp + 0x10]
call dword [0x4201d0]
xor esi, esi
test eax, eax
mov ebp, 0
mov edi, 0
je 0x40535e
push ebx
push dword [esp + 0x10]
push ebp
push 1
push dword [esp + 0x10]
call dword [0x4201d0]
test eax, eax
je 0x40538e
lea eax, [esp + 0x78]
lea ebx, [esp + 0x3e4]
mov dword [esp + 0x1c], 0x100
mov dword [esp + 0x3e4], 0
mov dword [esp + 0x1e4], 0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x1e4]
push eax
push ecx
push edx
push ecx
push ebx
push dword [edi]
push 0
call dword [0x420234]
test eax, eax
je 0x40538e
mov eax, dword [esp + 0x60c]
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0x20
mov dword [esp + 0x50], ebx
test eax, eax
je 0x4052a5
push 0x100
push ebx
push eax
call fcn.0041b320
add esp, 0xc
lea eax, [esp + 0x48]
push eax
push dword [esp + 4]
call dword [0x42001c]
test eax, eax
je 0x40538e
mov dword [esp + 0xb8], 1
mov word [esp + 0xbc], 0
lea ebx, [esp + 0x11c]
push 0x9c
push ebx
call fcn.00418e70
add esp, 8
mov dword [esp + 0x94], ebx
lea eax, [esp + 0x18]
push 0
push dword [esp + 4]
push eax
call dword [0x420010]
test eax, eax
je 0x40538e
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x90]
push eax
push 0
push dword [esp + 0x24]
push dword [esp + 0x614]
push 0
push 0
push 0
push dword [esp + 0x620]
push 0
push dword [esp + 0x28]
call dword [0x4201ec]
test eax, eax
je 0x40538e
mov ecx, dword [esp + 0x5f8]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x5fc]
mov esi, 1
mov dword [ecx], edx
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
jmp 0x40538e
call dword [0x420154]
cmp eax, 0x7a
jne 0x405388
push 0
push dword [esp + 0x10]
call fcn.0040ac80
add esp, 8
mov edi, eax
test edi, edi
je 0x405420
mov ebp, edi
jmp 0x4051e2
xor esi, esi
xor ebp, ebp
xor edi, edi
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4053a1
push eax
push dword [esp + 4]
call dword [0x420014]
mov eax, dword [esp]
cmp eax, 0xffffffff
je 0x4053b0
push eax
call dword [0x4200cc]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4053bf
push eax
call dword [0x420018]
test edi, edi
je 0x4053cc
push ebp
call fcn.004193e0
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x4053dc
push eax
call dword [0x4200cc]
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
je 0x4053ec
push eax
call dword [0x4200cc]
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x405413
lea ecx, [esp + 0x7c]
push 0
push 0
push 0x10
push ecx
push 0
push eax
call dword [0x4201d4]
push dword [esp + 8]
call dword [0x4200cc]
mov eax, esi
add esp, 0x5e4
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
xor ebp, ebp
jmp 0x40538e