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

Disassembly:
push 0xffffffffffffffff
push 0x41cdb8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x424300]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x424300]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8c]
mov ebp, dword [esp + 0x94]
lea edi, [esp + 0x38]
mov dword [esp + 0x34], eax
call fcn.00401eb0
mov edi, eax
mov dword [esp + 0x80], 0
call fcn.00408cc0
mov edi, eax
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], edi
test eax, eax
je 0x405b27
push 0
lea ecx, [esp + 0x28]
mov ebx, eax
call fcn.00409ef4
mov eax, dword [ebx + 4]
test eax, eax
jbe 0x405b05
cmp eax, 0xffffffff
jae 0x405b05
dec eax
mov dword [ebx + 4], eax
mov esi, dword [ebx + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x24]
and esi, ebx
call fcn.00409f1c
test esi, esi
je 0x405b27
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
lea esi, [esp + 0x58]
mov ecx, edi
call fcn.00407c20
mov esi, 1
mov dword [esp + 0x80], esi
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
xor ecx, ecx
mov byte [esp + 0x1b], al
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ecx
mov byte [esp + 0x40], cl
mov byte [esp + 0x80], 2
mov al, byte [ebp]
cmp al, 0x2b
je 0x405b74
mov dword [esp + 0x24], ecx
cmp al, 0x2d
jne 0x405b78
mov dword [esp + 0x24], esi
call fcn.0040b13e
mov eax, dword [eax]
mov esi, dword [esp + 0xa4]
mov cl, byte [eax]
push esi
push 0x65
push ebp
mov byte [esp + 0x2c], cl
mov byte [esp + 0x2d], 0x65
mov byte [esp + 0x2e], 0
call fcn.0040b040
movsx edx, byte [esp + 0x2c]
add esp, 0xc
push esi
push edx
mov ebx, eax
push ebp
mov dword [esp + 0x28], ebx
call fcn.0040b040
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x405bc5
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x5c]
mov eax, edx
cmp ecx, 0x10
jae 0x405bd8
lea eax, [esp + 0x5c]
cmp byte [eax], 0x7f
je 0x405d2f
mov eax, edx
cmp ecx, 0x10
jae 0x405bec
lea eax, [esp + 0x5c]
cmp byte [eax], 0
jle 0x405d2f
push esi
push ebp
lea eax, [esp + 0x44]
call fcn.00407200
test ebx, ebx
jne 0x405c18
mov ebx, dword [esp + 0xa0]
push 0x30
lea esi, [esp + 0x40]
call fcn.00405140
jmp 0x405c4e
test edi, edi
jne 0x405c39
mov ebx, dword [esp + 0x98]
push 0x30
lea esi, [esp + 0x40]
call fcn.00405140
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x98], edi
mov eax, dword [esp + 0xa0]
push 0x30
push eax
sub ebx, ebp
lea esi, [esp + 0x44]
call fcn.00407310
push 0x30
lea esi, [esp + 0x40]
test edi, edi
jne 0x405c66
mov ebx, dword [esp + 0x9c]
call fcn.00405140
jmp 0x405c98
mov ecx, dword [esp + 0xa0]
sub edi, ebp
push ecx
lea ebx, [edi + 1]
call fcn.00407310
mov edx, dword [esp + 0x98]
push 0x30
push edx
mov ebx, edi
lea esi, [esp + 0x44]
call fcn.00407310
mov dword [esp + 0x9c], 0
mov ebp, dword [esp + 0x5c]
mov edi, 0x10
mov dword [esp + 0x98], 0
cmp dword [esp + 0x70], edi
jae 0x405cb6
lea ebp, [esp + 0x5c]
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], edi
jae 0x405cc4
lea eax, [esp + 0x40]
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.0040b4b0
mov ebx, eax
mov al, byte [ebp]
add esp, 8
cmp al, 0x7f
je 0x405d09
test al, al
jle 0x405d09
mov edx, ebx
sub edx, dword [esp + 0x24]
movsx eax, al
cmp eax, edx
jae 0x405d09
push 0
sub ebx, eax
push 1
lea esi, [esp + 0x44]
call fcn.00407310
cmp byte [ebp + 1], 0
jle 0x405d02
inc ebp
mov al, byte [ebp]
cmp al, 0x7f
jne 0x405cdb
mov ebp, dword [esp + 0x40]
cmp dword [esp + 0x54], edi
jae 0x405d17
lea ebp, [esp + 0x40]
mov eax, dword [esp + 0x50]
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], eax
mov esi, eax
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
lea eax, [edx + ecx]
add eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x34]
mov ecx, dword [edx + 0x18]
add eax, esi
test ecx, ecx
jle 0x405d62
cmp ecx, eax
jbe 0x405d62
sub ecx, eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
jmp 0x405d6e
mov dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x10]
and eax, 0x1c0
cmp eax, 0x40
je 0x405e0a
cmp eax, 0x100
jne 0x405dca
cmp dword [esp + 0x24], 0
jbe 0x405dca
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xa8]
push 1
push ecx
push edx
lea eax, [esp + 0x30]
push eax
mov eax, ebp
call fcn.00407970
mov ecx, dword [eax]
add esp, 0x10
mov dword [esp + 0xa8], ecx
mov edx, dword [eax + 4]
inc ebp
dec esi
mov dword [esp + 0xac], edx
mov dword [esp + 0xa4], esi
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
push eax
mov eax, ebx
mov bl, byte [esp + 0x94]
push ecx
lea edi, [esp + 0x2c]
call fcn.00406420
mov edx, dword [eax]
mov dword [esp + 0xb0], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x24], 0
mov dword [esp + 0xb4], eax
add esp, 8
movsx ecx, byte [esp + 0x20]
push esi
push ecx
push ebp
call fcn.0040b040
add esp, 0xc
test eax, eax
je 0x405f0c
mov edx, dword [esp + 0xac]
sub eax, ebp
inc eax
push edx
mov esi, eax
mov eax, dword [esp + 0xac]
push eax
mov al, byte [esp + 0x23]
lea ecx, [esi - 1]
push ecx
lea edx, [esp + 0x30]
push ebp
push edx
call fcn.004079e0
mov ecx, dword [eax]
mov dword [esp + 0xbc], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xc0], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esp + 0xac]
add esp, 0x14
push ecx
push edx
mov bl, 0x30
lea edi, [esp + 0x2c]
call fcn.00406420
mov ecx, dword [eax]
mov dword [esp + 0xb0], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xb4], edx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
add esp, 8
call edx
mov ecx, dword [esp + 0xa8]
mov bl, al
mov eax, dword [esp + 0xac]
push eax
push ecx
mov eax, 1
lea edi, [esp + 0x34]
call fcn.00406420
mov edx, dword [eax]
mov dword [esp + 0xb0], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0xb4], ecx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
mov eax, dword [esp + 0xac]
mov bl, 0x30
lea edi, [esp + 0x3c]
call fcn.00406420
mov ecx, dword [eax]
add ebp, esi
add esp, 0x10
sub dword [esp + 0xa4], esi
mov esi, dword [esp + 0xa4]
mov dword [esp + 0xa8], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xac], edx
push esi
push 0x65
push ebp
call fcn.0040b040
add esp, 0xc
test eax, eax
je 0x405fe7
mov ecx, dword [esp + 0xa8]
sub eax, ebp
inc eax
mov esi, eax
mov eax, dword [esp + 0xac]
push eax
push ecx
lea edx, [esi - 1]
push edx
lea eax, [esp + 0x38]
push ebp
push eax
mov al, byte [esp + 0x2f]
call fcn.004079e0
mov ecx, dword [eax]
mov dword [esp + 0xbc], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xc0], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esp + 0xb4]
add esp, 0x14
push ecx
push edx
mov bl, 0x30
lea edi, [esp + 0x34]
call fcn.00406420
mov ecx, dword [eax]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x3c]
mov edx, dword [eax + 4]
add esp, 8
test byte [ecx + 0x10], 4
mov dword [esp + 0xac], edx
mov dword [esp + 0xa0], 0
mov ecx, 0x420744
jne 0x405fac
mov ecx, 0x420748
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 1
push edx
push eax
lea edx, [esp + 0x38]
push edx
mov eax, ecx
call fcn.00407970
mov ecx, dword [eax]
add ebp, esi
add esp, 0x10
sub dword [esp + 0xa4], esi
mov esi, dword [esp + 0xa4]
mov dword [esp + 0xa8], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xac], edx
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
push eax
mov al, byte [esp + 0x1f]
push ecx
push esi
lea edx, [esp + 0x38]
push ebp
push edx
call fcn.004079e0
mov ecx, dword [eax]
mov dword [esp + 0xbc], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xc0], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esp + 0xb4]
add esp, 0x14
push ecx
push edx
mov bl, 0x30
lea edi, [esp + 0x34]
call fcn.00406420
mov ecx, dword [eax]
mov edx, dword [esp + 0x3c]
mov bl, byte [esp + 0x98]
mov edi, dword [esp + 0x90]
mov dword [esp + 0xb0], ecx
mov eax, dword [eax + 4]
push eax
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x28]
push ecx
mov dword [edx + 0x18], 0
call fcn.00406420
mov esi, 0x10
add esp, 0x10
cmp dword [esp + 0x54], esi
jb 0x406088
mov eax, dword [esp + 0x40]
push eax
call fcn.0040af4b
add esp, 4
xor eax, eax
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], eax
mov byte [esp + 0x40], al
cmp dword [esp + 0x70], esi
jb 0x4060ad
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0040af4b
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0040ad1f
add esp, 0x70
ret