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

Disassembly:
push 0xffffffffffffffff
push 0x437b61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe4
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [esp + 0xb0]
push edi
mov eax, dword [esi + 4]
xor edi, edi
push ecx
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], eax
call dword [0x43a3e0]
mov dword [esp + 0xac], eax
xor edx, edx
mov dword [esp + 0xfc], edi
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x58], edx
mov dword [esp + 0x20], edi
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x34], edi
call dword [0x43a3e8]
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
push eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebp
call dword [0x43a050]
mov edx, dword [esp + 0x90]
mov edi, eax
mov eax, ebp
mov ebp, dword [esp + 0x8c]
sub eax, edx
mov edx, dword [esp + 0x88]
sub ebx, ebp
push eax
push ebx
push edx
mov dword [esp + 0x90], edi
mov dword [esp + 0xb4], eax
mov dword [esp + 0x8c], ebx
call dword [0x43a03c]
mov ebx, dword [0x43a054]
push eax
push edi
mov dword [esp + 0xa4], eax
call ebx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x90]
mov ecx, ebp
neg eax
neg ecx
push 0
push eax
push ecx
push edi
call dword [0x43a040]
mov eax, dword [esi + 0xe4]
mov byte [esp + 0xfc], 3
test eax, eax
je 0x406ca2
mov eax, dword [esi + 4]
push edi
push 0
push eax
call fcn.0040b0a0
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], 0
mov ecx, dword [esi + 0xb0]
mov byte [esp + 0xfc], 4
test ecx, ecx
je 0x406d43
mov edx, dword [ecx]
call dword [edx]
test eax, eax
jne 0x406d43
mov ecx, dword [esi + 0xb0]
lea edx, [esp + 0x24]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor edx, edx
xor eax, eax
push edx
mov ecx, dword [esi + 0xb0]
sub esp, 0x10
mov ebp, esp
sub esp, 0x10
mov ebx, dword [ecx]
mov dword [ebp], eax
mov eax, dword [esp + 0x48]
mov dword [ebp + 4], edx
mov edx, dword [esp + 0x34]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [ebp + 0xc], eax
mov eax, esp
push edi
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 0xc], edx
call dword [ebx + 0x18]
jmp 0x406ed8
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x406e9e
mov eax, dword [esi + 0x28]
push eax
call dword [0x43a04c]
push eax
push edi
mov dword [esp + 0x64], eax
call ebx
push 0x4080c4
push 1
push 0
mov ebp, eax
call dword [0x43a02c]
push eax
push edi
mov dword [esp + 0x38], eax
call ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
push edi
call dword [0x43a030]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
inc eax
inc ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x64], ecx
xor ecx, ecx
dec ebx
mov cl, byte [esi + 0x29]
dec edx
movzx cx, cl
mov dword [esp + 0x1c], edx
xor edx, edx
mov dh, cl
mov dword [esp + 0x10], eax
mov word [esp + 0x6a], dx
mov edx, dword [esi + 0x28]
shr edx, 0x10
movzx dx, dl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x60], eax
movzx ax, byte [esi + 0x28]
xor ebx, ebx
add ecx, 0xe0
mov bh, dl
push 1
shl eax, 8
mov word [esp + 0x70], bx
mov ebx, dword [esp + 0x1c]
mov word [esp + 0x6c], ax
mov word [esp + 0x7c], ax
shl ecx, 8
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x38]
mov word [esp + 0x7e], cx
push 1
add edx, 0xc0
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x80], ebx
push 2
shl edx, 8
xor ebx, ebx
push ecx
push edi
mov word [esp + 0x86], 0
mov word [esp + 0x94], dx
mov word [esp + 0x96], bx
mov dword [esp + 0x50], 1
mov dword [esp + 0x4c], ebx
call dword [0x43a260]
push ebp
mov ebp, dword [0x43a054]
push edi
call ebp
mov edx, dword [esp + 0x24]
push edx
push edi
call ebp
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [0x43a3cc]
mov edx, dword [esp + 0x30]
push edx
call dword [0x43a064]
test eax, eax
je 0x406ed8
mov dword [esp + 0x30], ebx
jmp 0x406ed8
mov eax, dword [esi + 0xe4]
test eax, eax
jne 0x406ed8
mov eax, dword [esi + 0x28]
mov ebp, dword [0x43a094]
push eax
push edi
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406ed8
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
push 2
push 0
push 0
push edi
call dword [0x43a098]
push ebx
push edi
call ebp
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x40705c
mov ecx, dword [esi + 0xbc]
test ecx, ecx
je 0x406fa5
mov edx, dword [ecx]
call dword [edx]
test eax, eax
jne 0x406fa5
mov eax, dword [esi + 4]
push eax
call dword [0x43a390]
test eax, eax
jne 0x406f18
mov dword [esp + 0x2c], 3
jmp 0x406f6c
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x406f30
mov ecx, dword [esi + 0x44]
test ecx, ecx
jne 0x406f2c
mov dword [esp + 0x2c], eax
jmp 0x406f6c
test eax, eax
je 0x406f53
mov eax, dword [esi + 0xd4]
cmp eax, 2
jl 0x406f45
mov dword [esp + 0x2c], 2
jmp 0x406f6c
xor ecx, ecx
cmp eax, 1
setge cl
mov dword [esp + 0x2c], ecx
jmp 0x406f6c
mov eax, dword [esi + 0x44]
test eax, eax
je 0x406f6c
mov eax, dword [esi + 0xd4]
xor edx, edx
cmp eax, 1
setge dl
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push eax
push edx
sub esp, 0x10
mov ecx, dword [esi + 0xbc]
mov ebp, esp
mov ebx, dword [ecx]
push edi
mov dword [ebp], edx
mov edx, dword [esp + 0x38]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
call dword [ebx + 0x10]
jmp 0x40705c
mov eax, dword [esi + 0xe4]
test eax, eax
jne 0x40705c
push 0xf0eadc
push 1
push 0
call dword [0x43a02c]
mov ebx, eax
mov eax, dword [esi + 0x40]
test eax, eax
mov dword [esp + 0x30], ebx
je 0x406fd6
push 0xffff80
jmp 0x406fe9
mov eax, dword [esi + 0x44]
test eax, eax
je 0x406fe4
push 0xff8080
jmp 0x406fe9
push 0xffffff
call dword [0x43a04c]
mov ebp, dword [0x43a054]
push ebx
push edi
mov dword [esp + 0x28], eax
call ebp
mov ecx, dword [esp + 0x20]
push ecx
push edi
call ebp
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0xa
push 0xa
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
push edi
call dword [0x43a034]
mov eax, dword [esi + 0xc0]
mov ebp, dword [esp + 0x10]
add ebp, eax
push ebx
mov ebx, dword [0x43a064]
mov dword [esp + 0x14], ebp
call ebx
test eax, eax
je 0x407049
mov dword [esp + 0x30], 0
mov ecx, dword [esp + 0x20]
push ecx
call ebx
test eax, eax
je 0x40705c
mov dword [esp + 0x20], 0
test byte [esi + 0xd0], 2
je 0x4070bc
mov ebx, dword [esp + 0x4c]
sub esp, 0x10
mov ecx, dword [esi + 0xb4]
mov eax, esp
mov edx, dword [ecx]
mov dword [eax], ebx
mov ebx, dword [esp + 0x60]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x64]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x68]
mov dword [eax + 0xc], ebx
call dword [edx + 8]
mov eax, dword [esi + 0xd0]
mov ecx, dword [esi + 0xb4]
push 0x65
push eax
mov edx, dword [ecx]
push 4
lea eax, [esp + 0x40]
push edi
push eax
call dword [edx + 0x24]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
sub edx, ecx
jmp 0x4070c6
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0xa4]
mov ecx, dword [esi + 0xc4]
add edx, eax
test ecx, ecx
mov dword [esp + 0x10], edx
je 0x4071da
mov edx, dword [ecx]
lea eax, [esp + 0x34]
push eax
call dword [edx + 4]
mov ebx, dword [eax]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x24], ebx
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x14]
add eax, 2
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], eax
lea ebp, [eax + ecx]
add ecx, edx
mov dword [esp + 0x18], ecx
mov cl, byte [esi + 0xd0]
test cl, 2
mov dword [esp + 0x1c], ebp
je 0x407125
mov ecx, 0xfffffff8
sub ecx, ebx
add edx, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x407147
mov ecx, dword [esi + 0xc4]
mov ebx, dword [ecx]
xor ecx, ecx
cmp dword [esi + 0xb8], 3
setl cl
dec ecx
and ecx, 2
push ecx
jmp 0x407167
mov ecx, dword [esi + 0x44]
test ecx, ecx
mov ecx, dword [esi + 0xc4]
mov ebx, dword [ecx]
je 0x407165
xor ecx, ecx
cmp dword [esi + 0xb8], 2
setge cl
push ecx
jmp 0x407167
push 0
push eax
push edx
sub esp, 0x10
mov ecx, esp
push edi
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], ebp
mov ecx, dword [esi + 0xc4]
call dword [ebx + 0x10]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
lea eax, [esi + 0x2c]
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ebx
mov ebx, dword [esp + 0x18]
mov dword [edx + 8], ebx
mov ebx, dword [esp + 0x1c]
mov dword [edx + 0xc], ebx
mov edx, dword [eax]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
add edx, eax
mov dword [esi + 0x34], edx
mov edx, dword [esi + 0x30]
add edx, ebx
mov dword [esi + 0x38], edx
mov dl, byte [esi + 0xd0]
test dl, 2
jne 0x407433
lea eax, [ecx + eax + 8]
mov dword [esp + 0x10], eax
jmp 0x407433
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4072e8
xor ecx, ecx
lea edx, [esp + 0x34]
mov dword [esp + 0x38], ecx
push edx
mov dword [esp + 0x40], ecx
push eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x4c], ecx
call dword [0x43a394]
test eax, eax
je 0x407433
test byte [esi + 0xd0], 2
je 0x407234
mov ecx, dword [esp + 0x38]
mov eax, 0xfffffffc
sub eax, ecx
mov ecx, dword [esp + 0x10]
lea ebx, [ecx + eax*2]
mov dword [esp + 0x10], ebx
jmp 0x407238
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov ebp, eax
push 3
add edx, edx
sub ebp, ecx
push 0
push 0
cmp ebp, edx
push 0
push 0
jle 0x407267
mov ebp, dword [esi + 0x20]
sub eax, edx
sub eax, ecx
push ebp
shr eax, 1
add eax, ecx
push eax
jmp 0x40726c
mov eax, dword [esi + 0x20]
push eax
push ecx
push ebx
push edi
call dword [0x43a398]
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0x2c]
mov eax, dword [esp + 0x18]
mov ebx, ecx
mov dword [ebx], edx
mov edx, dword [esp + 0x14]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0xc], eax
mov ebx, dword [esp + 0x3c]
mov ecx, dword [ecx]
lea ebp, [ebx + ebx]
add ecx, ebx
sub eax, ebp
mov dword [esi + 0x34], ecx
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x30], eax
add eax, ebx
mov ebx, dword [0x43a064]
push edx
mov dword [esi + 0x38], eax
call ebx
mov eax, dword [esp + 0x40]
push eax
call ebx
test byte [esi + 0xd0], 2
jne 0x407433
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
lea eax, [ecx + edx*2 + 8]
mov dword [esp + 0x10], eax
jmp 0x407433
mov eax, dword [esi + 0xa0]
test eax, eax
mov dword [esp + 0x24], eax
je 0x407429
xor ecx, ecx
mov ebx, dword [esp + 0xac]
mov dword [esp + 0x38], ecx
lea edx, [esp + 0x34]
mov dword [esp + 0x3c], ecx
push edx
mov dword [esp + 0x44], ecx
push 0x18
mov dword [esp + 0x4c], ecx
push eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x54], ecx
call dword [0x43a038]
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
push ebx
mov dword [esp + 0x68], eax
call dword [0x43a050]
mov ecx, dword [esp + 0x24]
mov ebx, eax
push ecx
push ebx
call dword [0x43a054]
mov dword [esp + 0x7c], eax
mov eax, dword [esi + 0xd0]
test al, 2
je 0x407371
mov ecx, dword [esp + 0x64]
mov edx, 0xfffffff8
sub edx, ecx
mov ecx, dword [esp + 0x10]
add ecx, edx
mov dword [esp + 0x10], ecx
test al, 4
je 0x40738a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub eax, ebp
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
jmp 0x407391
mov ecx, dword [esp + 0x14]
add ecx, 2
mov edx, dword [esp + 0x10]
lea eax, [ecx + ebp]
mov dword [esp + 0x1c], eax
push 0xcc0020
lea eax, [edx + ebp]
push 0
mov dword [esp + 0x20], eax
lea eax, [esi + 0x2c]
push 0
push ebx
mov dword [eax], edx
mov edx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x78]
mov edx, dword [esi + 0x2c]
add eax, edx
mov edx, dword [esi + 0x30]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x78]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
add edx, ebp
push ecx
push edi
mov dword [esi + 0x38], edx
call dword [0x43a068]
test byte [esi + 0xd0], 2
jne 0x407407
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
lea ecx, [edx + eax + 8]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x7c]
push edx
push ebx
call dword [0x43a054]
test ebx, ebx
je 0x407433
mov ebp, dword [0x43a06c]
push ebx
call ebp
test eax, eax
jne 0x407433
push ebx
call ebp
jmp 0x407433
add edx, dword [esi + 0xc0]
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0xd8]
test eax, eax
je 0x407496
mov ecx, dword [esi + 0xdc]
test ecx, ecx
je 0x407496
mov eax, dword [ecx]
lea edx, [esp + 0x24]
push edx
call dword [eax + 4]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, 0xfffffffc
sub ecx, ebx
add edx, 2
add eax, ecx
push 0
push edx
push eax
sub esp, 0x10
mov ecx, dword [esi + 0xdc]
mov ebp, esp
mov dword [esp + 0x34], eax
mov ebx, dword [ecx]
push edi
mov dword [ebp], eax
mov eax, dword [esp + 0x44]
mov dword [ebp + 4], edx
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [ebp + 0xc], eax
call dword [ebx + 0x10]
mov ecx, dword [esi + 0xb4]
test ecx, ecx
je 0x4074f3
test byte [esi + 0xd0], 2
jne 0x4074d2
mov eax, dword [esp + 0x10]
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x5c], eax
mov edx, dword [ecx]
mov dword [ebx], eax
mov eax, dword [esp + 0x60]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x64]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x68]
mov dword [ebx + 0xc], eax
call dword [edx + 8]
mov eax, dword [esi + 0xd0]
mov ecx, dword [esi + 0xb4]
push 0x65
push eax
mov eax, dword [esi + 0xe0]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x40]
push edi
push eax
call dword [edx + 0x20]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x407506
mov esi, dword [0x43a064]
push eax
call esi
jmp 0x40750c
mov esi, dword [0x43a064]
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0xa8]
push 0xcc0020
push ecx
push eax
push edi
push edx
mov edx, dword [esp + 0x94]
push edx
push ecx
push eax
mov eax, dword [esp + 0xa8]
push eax
call dword [0x43a068]
mov ecx, dword [esp + 0xa4]
push ecx
push edi
call dword [0x43a054]
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x40755f
push eax
call esi
test edi, edi
je 0x40756a
push edi
call dword [0x43a06c]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x407575
push eax
call esi
mov eax, dword [esp + 0x30]
test eax, eax
je 0x407580
push eax
call esi
mov eax, dword [esp + 0xb0]
lea edx, [esp + 0xb4]
push edx
push eax
call dword [0x43a3f0]
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0xf0
ret 0x10