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

Disassembly:
push 0xffffffffffffffff
push 0x427ad3
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x430090]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x430090]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xc4]
mov ebx, edx
mov esi, dword [ebx + 0x10]
mov edi, ecx
mov dword [esp + 0x18], ebx
cmp dword [ebx + 0xc], esi
jbe 0x405b97
call fcn.0040f18b
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx]
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], edx
cmp edx, dword [ebx + 0x10]
jbe 0x405bb2
call fcn.0040f18b
mov edx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x3c]
mov ecx, ebx
mov eax, dword [ecx]
push esi
push edx
push eax
lea ebx, [esp + 0x48]
mov esi, ecx
call fcn.00408830
mov eax, dword [edi + 0x14]
test eax, eax
jbe 0x405c2f
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
jbe 0x405c2f
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], 1
mov dword [esp + 0x48], ebx
mov dword [esp + 0xbc], ebx
cmp dword [edi + 0x18], 8
jb 0x405c0d
mov edi, dword [edi + 4]
jmp 0x405c10
add edi, 4
push edi
lea eax, [esp + 0x4c]
call fcn.00407e00
cmp eax, ebx
je 0x405c36
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x405c2f
push eax
call fcn.0040eb2e
add esp, 4
xor al, al
jmp 0x406070
mov eax, dword [ebp + 0x14]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040f5af
mov esi, eax
mov eax, dword [ebp + 0x14]
add esp, 4
lea ecx, [esi + eax*2]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x44], ecx
cmp esi, ebx
je 0x405c1e
cmp dword [ebp + 0x18], 8
jb 0x405c72
mov ebp, dword [ebp + 4]
jmp 0x405c75
add ebp, 4
push ebp
inc eax
push eax
push esi
call fcn.0040fe86
add esp, 0xc
lea edx, [esp + 0x68]
push edx
call fcn.004086a0
mov byte [esp + 0xbc], 1
mov ebp, esi
mov dword [esp + 0x40], ebx
lea esp, [esp]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x6c]
push ecx
push ebp
lea edx, [esp + 0x54]
push edx
call fcn.00407f40
cmp eax, ebx
je 0x40601e
lea eax, [esp + 0x20]
push eax
call fcn.0040d7c0
xor edi, edi
mov byte [esp + 0xbc], 2
lea ebp, [edi + 7]
cmp edi, dword [esp + 0x68]
jae 0x405fa5
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx + edi*8]
mov ecx, dword [ecx + edi*8 + 4]
test eax, eax
je 0x405d5e
test ecx, ecx
je 0x405d5e
sub ecx, eax
sar ecx, 1
xor edx, edx
push ecx
lea esi, [esp + 0x94]
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], 0
mov word [esp + 0x98], dx
call fcn.00403fd0
mov eax, esi
push eax
lea ebx, [esp + 0x24]
mov byte [esp + 0xc0], 3
call fcn.00407ca0
mov byte [esp + 0xbc], 2
cmp dword [esp + 0xa8], 8
jb 0x405d54
mov ecx, dword [esp + 0x94]
push ecx
call fcn.0040dd40
add esp, 4
inc edi
cmp edi, 1
jl 0x405cd4
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0xc]
cmp esi, dword [eax + 0x10]
jbe 0x405d6f
call fcn.0040f18b
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov dword [esp + 0x38], eax
mov ebp, esi
jmp 0x405d80
mov edi, dword [esp + 0x18]
mov esi, dword [edi + 0x10]
cmp dword [edi + 0xc], esi
jbe 0x405d91
call fcn.0040f18b
mov ecx, dword [esp + 0x38]
mov eax, dword [edi]
test ecx, ecx
je 0x405d9f
cmp ecx, eax
je 0x405da4
call fcn.0040f18b
cmp ebp, esi
mov esi, dword [esp + 0x2c]
je 0x405f2d
mov byte [esp + 0x17], 1
cmp esi, dword [esp + 0x30]
jbe 0x405dc0
call fcn.0040f18b
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
cmp dword [esp + 0x2c], edi
jbe 0x405dd3
call fcn.0040f18b
test ebx, ebx
je 0x405ddd
cmp ebx, dword [esp + 0x20]
je 0x405de2
call fcn.0040f18b
cmp esi, edi
je 0x405e95
test ebx, ebx
jne 0x405e0c
call fcn.0040f18b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x405dff
call fcn.0040f18b
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x405e10
mov edi, dword [eax]
jmp 0x405e12
mov eax, dword [ebx]
jmp 0x405df5
mov edi, eax
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x405e36
call fcn.0040f18b
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x405e2b
call fcn.0040f18b
cmp dword [ebp + 0x18], 8
jb 0x405e3a
mov eax, dword [ebp + 4]
jmp 0x405e3d
mov eax, dword [eax]
jmp 0x405e21
lea eax, [ebp + 4]
push edi
push eax
call fcn.0040f51c
add esp, 8
test eax, eax
sete al
test al, al
jne 0x405e54
mov byte [esp + 0x17], al
test ebx, ebx
jne 0x405e8d
call fcn.0040f18b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x405e69
call fcn.0040f18b
mov eax, dword [esp + 0x38]
add esi, 0x1c
test eax, eax
jne 0x405e91
call fcn.0040f18b
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x405e85
call fcn.0040f18b
add ebp, 0x1c
jmp 0x405dc4
mov eax, dword [ebx]
jmp 0x405e5f
mov eax, dword [eax]
jmp 0x405e7b
cmp byte [esp + 0x17], 0
je 0x405d80
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x44]
jae 0x405faf
mov byte [esp + 0xbc], 1
mov esi, dword [esp + 0x2c]
xor ebx, ebx
mov ebp, eax
cmp esi, ebx
je 0x405f07
mov edi, dword [esp + 0x30]
cmp esi, edi
je 0x405efa
add esi, 0x18
lea ecx, [ecx]
cmp dword [esi], 8
jb 0x405ee1
mov ecx, dword [esi - 0x14]
push ecx
call fcn.0040dd40
add esp, 4
xor edx, edx
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], dx
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, edi
jne 0x405ed0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0040dd40
add esp, 4
mov edx, dword [esp + 0x20]
xor eax, eax
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.0040dd40
mov esi, dword [esp + 0x20]
add esp, 4
xor ebx, ebx
jmp 0x405ca0
cmp esi, dword [esp + 0x30]
jbe 0x405f38
call fcn.0040f18b
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
cmp dword [esp + 0x2c], ebx
jbe 0x405f4f
call fcn.0040f18b
test edi, edi
je 0x405f59
cmp edi, dword [esp + 0x20]
je 0x405f5e
call fcn.0040f18b
cmp esi, ebx
je 0x405ea0
test edi, edi
jne 0x405f9d
call fcn.0040f18b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x405f7b
call fcn.0040f18b
push esi
mov ebx, ebp
call fcn.00407ca0
test edi, edi
jne 0x405fa1
call fcn.0040f18b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x405f98
call fcn.0040f18b
add esi, 0x1c
jmp 0x405f40
mov eax, dword [edi]
jmp 0x405f71
mov eax, dword [edi]
jmp 0x405f8e
mov eax, 0x80004005
call fcn.00402420
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x405ffd
mov edi, dword [esp + 0x30]
cmp esi, edi
je 0x405ff0
add esi, 0x18
cmp dword [esi], 8
jb 0x405fd3
mov eax, dword [esi - 0x14]
push eax
call fcn.0040dd40
add esp, 4
xor ecx, ecx
mov dword [esi], 7
mov dword [esi - 4], 0
mov word [esi - 0x14], cx
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x405fc2
mov eax, dword [esp + 0x2c]
push eax
call fcn.0040dd40
add esp, 4
mov ecx, dword [esp + 0x20]
xor eax, eax
push ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.0040dd40
mov esi, dword [esp + 0x20]
add esp, 4
xor ebx, ebx
push esi
call fcn.0040f260
mov eax, dword [esp + 0x80]
add esp, 4
cmp eax, ebx
je 0x40603b
push eax
call fcn.0040eb2e
add esp, 4
mov edx, dword [esp + 0x78]
push edx
call fcn.0040f260
mov eax, dword [esp + 0x78]
add esp, 4
push eax
mov dword [esp + 0x7c], ebx
call fcn.0040f260
mov eax, dword [esp + 0x50]
add esp, 4
mov dword [esp + 0x74], ebx
cmp eax, ebx
je 0x40606e
push eax
call fcn.0040eb2e
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0040dd4b
add esp, 0xac
ret