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

Disassembly:
push 0xffffffffffffffff
push 0x570ea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], ebx
call fcn.00404ad0
xor ebp, ebp
mov dword [esp + 0x30], 0x5967b8
mov dword [esp + 0x38], ebp
mov eax, dword [ebx + 0x1d8]
lea esi, [ebx + 0x1d8]
lea ecx, [esp + 0x18]
push ebp
push ecx
mov ecx, esi
mov dword [esp + 0x58], ebp
call dword [eax + 0x78]
mov eax, dword [eax]
mov ecx, dword [ebx + 0x1e8]
cmp eax, ebp
mov dword [esp + 0x40], eax
je 0x405fb6
inc dword [eax]
mov dword [esp + 0x3c], fcn.00414a80
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x50], 1
cmp eax, ebp
je 0x405fd9
push eax
lea ecx, [esp + 0x1c]
call fcn.00411610
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], ebp
call fcn.00414a80
lea ecx, [esp + 0x40]
call fcn.004133e0
mov eax, dword [ebx + 0x1f0]
mov eax, dword [eax + 4]
cmp eax, ebp
je 0x406005
push esi
lea ecx, [eax + 0x24]
call fcn.00432330
mov edx, dword [esi]
mov ecx, esi
xor edi, edi
call dword [edx + 0x68]
test eax, eax
jbe 0x4060ac
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0xc8]
test al, al
jne 0x40609c
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0xb0]
mov byte [esp + 0x14], al
mov eax, dword [esi]
push 1
push edi
mov ecx, esi
call dword [eax + 0xac]
mov byte [esp + 0x24], al
mov eax, dword [ebx + 0x1f0]
mov eax, dword [eax + 4]
cmp eax, ebp
je 0x406057
add eax, 0x1c
jmp 0x406059
xor eax, eax
mov eax, dword [eax + 4]
cmp eax, ebp
je 0x406065
add eax, 0xc
jmp 0x40606a
mov eax, 0x5d8db0
mov ecx, dword [eax + 8]
cmp ecx, ebp
je 0x406080
mov eax, dword [esp + 0x24]
mov edx, dword [ecx]
push eax
call dword [edx + 0x20]
cmp ax, bp
jne 0x40608c
cmp byte [esp + 0x14], 0xff
jne 0x40608c
mov byte [esp + 0x14], 0
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
push eax
push edi
mov ecx, esi
call dword [edx + 0x94]
mov edx, dword [esi]
mov ecx, esi
inc edi
call dword [edx + 0x68]
cmp edi, eax
jb 0x406016
lea eax, [esp + 0x3c]
lea edx, [esp + 0x30]
neg eax
lea ecx, [esp + 0x40]
push edx
sbb eax, eax
push ecx
and eax, ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00401ed0
mov ecx, dword [ebx + 0x1d4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
test al, al
je 0x40631b
mov ecx, dword [esp + 0x38]
cmp ecx, ebp
je 0x4060f2
mov edx, dword [ecx]
call dword [edx + 0x58]
mov dword [esp + 0x24], eax
jmp 0x4060f6
mov dword [esp + 0x24], ebp
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
mov edi, eax
test edi, edi
mov dword [esp + 0x28], edi
jle 0x406299
mov eax, dword [esp + 0x24]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x14], ebx
jle 0x406234
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x84]
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call dword [edx + 0x14]
mov edi, eax
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x50], 2
test ecx, ecx
je 0x40614b
mov edx, dword [ecx]
push ebx
call dword [edx + 0x74]
jmp 0x406150
mov eax, 0x5d8a90
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call dword [edx + 0x14]
push 0
push edi
mov ecx, eax
mov byte [esp + 0x58], 3
call fcn.004124b0
cmp eax, 3
jne 0x4061e7
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x406182
mov edx, dword [ecx]
push ebx
call dword [edx + 0x74]
mov ebx, eax
jmp 0x406187
mov ebx, 0x5d8a90
mov eax, dword [esi]
push ebp
mov ecx, esi
call dword [eax + 0x84]
mov edx, dword [ebx]
mov ecx, ebx
mov edi, eax
call dword [edx + 0x1c]
mov bl, al
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
cmp bl, al
sete al
test al, al
je 0x4061e3
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4061c3
mov eax, dword [esp + 0x14]
mov edx, dword [ecx]
push eax
call dword [edx + 0x74]
mov edi, eax
jmp 0x4061c8
mov edi, 0x5d8a90
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x84]
mov ebx, eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x38]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x38]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, edi
mov byte [esp + 0x50], 2
je 0x406200
push eax
lea ecx, [esp + 0x20]
call fcn.00411610
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], edi
cmp eax, edi
mov byte [esp + 0x50], 1
je 0x40621b
push eax
lea ecx, [esp + 0x24]
call fcn.00411610
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], ebx
jl 0x40611d
mov edi, dword [esp + 0x28]
mov eax, dword [esi]
push ebp
mov ecx, esi
call dword [eax + 0x84]
sub esp, 0xc
xor ebx, ebx
mov ecx, esp
mov dword [esp + 0x20], esp
mov dword [esp + 0x20], ecx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx], 0x5969d4
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov eax, edx
cmp eax, ebx
mov byte [esp + 0x5c], 4
je 0x406274
inc dword [eax + 8]
push ecx
call fcn.0040ba30
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 1
call fcn.00401a20
test al, al
je 0x4062b1
inc ebp
cmp ebp, edi
jl 0x40610b
mov ebx, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x1d4]
lea edx, [esp + 0x30]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
mov byte [esp + 0x13], al
xor ebp, ebp
jmp 0x40632b
lea esi, [esp + 0x3c]
lea ecx, [esp + 0x40]
neg esi
sbb esi, esi
mov byte [esp + 0x50], 0
and esi, ecx
mov eax, dword [esi]
cmp eax, ebx
je 0x4062d2
push eax
mov ecx, esi
call fcn.00411610
mov dword [esi], ebx
mov dword [esp + 0x30], 0x596ac0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], 5
cmp eax, ebx
je 0x406306
mov ecx, dword [eax + 8]
dec ecx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 8], ebx
jne 0x406306
cmp ecx, ebx
je 0x406306
mov edx, dword [ecx]
push 1
call dword [edx]
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov ecx, dword [ebx + 0x1d4]
push esi
mov eax, dword [ecx]
call dword [eax + 0x54]
mov byte [esp + 0x13], al
mov al, byte [esp + 0x13]
test al, al
je 0x406349
mov ecx, dword [ebx + 0x1d4]
mov eax, dword [ecx + 0x38]
cmp eax, ebp
je 0x406349
push eax
push esi
mov ecx, ebx
call fcn.00407a20
lea esi, [esp + 0x3c]
lea edx, [esp + 0x40]
neg esi
sbb esi, esi
mov byte [esp + 0x50], 0
and esi, edx
mov eax, dword [esi]
cmp eax, ebp
je 0x40636a
push eax
mov ecx, esi
call fcn.00411610
mov dword [esi], ebp
mov dword [esp + 0x30], 0x596ac0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], 6
cmp eax, ebp
je 0x40639e
mov ecx, dword [eax + 8]
dec ecx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 8], ebp
jne 0x40639e
cmp ecx, ebp
je 0x40639e
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x48]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret