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

Disassembly:
sub esp, 0x38
mov eax, dword [0x4b6c38]
mov edx, dword [0x4b6c3c]
push ebx
push esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
mov eax, dword [0x4b6c48]
mov ecx, dword [0x4b6c44]
fild dword [esi + 0x84]
mov dword [esp + 0x30], eax
mov eax, dword [0x4b6c4c]
mov dword [esp + 0x34], edx
push edi
fmul dword [esi + 0x14]
cdq
sub eax, edx
push ecx
mov edi, eax
mov dword [esp + 0x40], ecx
fstp dword [esp]
sar edi, 1
call fcn.00418f00
fild dword [esi + 0x84]
mov ebx, eax
fmul dword [esi + 0x18]
fstp dword [esp]
call fcn.00418f00
mov ecx, dword [esi + 0xb8]
add esp, 4
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x40ba42
mov ecx, dword [esi + 0xbc]
test ecx, ecx
je 0x40ba42
mov ecx, dword [esi + 0x4c]
push ebp
test ecx, ecx
je 0x40b468
mov ecx, dword [esi + 0x6c]
mov ebp, dword [esi + 0x5c]
mov eax, dword [esi + 0x84]
sub ebp, ecx
imul ebp, eax
mov edx, dword [esi + 0x68]
push ebp
mov ebp, dword [esi + 0x54]
sub ebp, edx
imul ebp, eax
push ebp
mov ebp, dword [esi + 0x58]
sub ebp, ecx
mov ecx, dword [esi + 0x50]
sub ecx, edx
imul ebp, eax
imul ecx, eax
push ebp
push ecx
call fcn.00487530
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ecx, dword [esi]
sub ecx, 0
je 0x40b619
dec ecx
je 0x40b5ff
sub ecx, 2
jne 0x40ba25
mov ecx, dword [esi + 0x2c]
test ecx, ecx
jne 0x40b4b9
mov ecx, dword [esi + 0x30]
test ecx, ecx
jne 0x40b4b9
fild dword [esi + 0x84]
mov edx, dword [esi + 0xec]
add ebx, edi
fstp dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
push ecx
push ecx
push eax
push ebx
push edx
call fcn.00403540
add esp, 0x14
jmp 0x40ba25
mov edi, dword [esi + 0x84]
mov ecx, dword [esi + 0xc]
mov eax, dword [0x4b6c4c]
imul ecx, edi
cdq
sub eax, edx
mov ebx, dword [esi + 0x10]
sar eax, 1
imul ebx, edi
add ecx, eax
mov eax, dword [esi + 0x34]
imul eax, edi
mov ebp, eax
mov dword [esp + 0x14], eax
test ebp, ebp
mov dword [esp + 0x30], ebp
jne 0x40b4f1
mov ebp, edi
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40b4fd
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x30]
mov edx, 1
mov dword [esp + 0x24], eax
cmp eax, edx
mov dword [esp + 0x4c], edi
jne 0x40b53c
mov eax, ebp
neg eax
cmp ecx, eax
jl 0x40b520
test ecx, ecx
jle 0x40b52d
mov eax, ecx
cdq
idiv ebp
mov ecx, edx
test ecx, ecx
jle 0x40b52d
sub ecx, ebp
mov dword [esp + 0x24], 0xffffffff
mov edx, 1
jmp 0x40b544
test eax, eax
jne 0x40b544
mov dword [esp + 0x24], edx
test edi, edi
jne 0x40b54c
mov dword [esp + 0x4c], edx
mov eax, dword [esi + 0x30]
mov dword [esp + 0x2c], ecx
cmp eax, edx
jne 0x40b57e
mov ecx, dword [esp + 0x14]
neg ecx
cmp ebx, ecx
jl 0x40b565
test ebx, ebx
jle 0x40b576
mov ecx, dword [esp + 0x14]
mov eax, ebx
cdq
idiv ecx
mov ebx, edx
test ebx, ebx
jle 0x40b576
sub ebx, ecx
mov dword [esp + 0x4c], 0xffffffff
cmp ebx, dword [0x4b6c58]
jge 0x40ba25
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40ba25
mov edi, dword [esp + 0x2c]
mov eax, dword [0x4b6c4c]
mov ebp, dword [esp + 0x24]
cmp edi, eax
jge 0x40b5df
test ebp, ebp
je 0x40b5df
fild dword [esi + 0x84]
mov edx, dword [esi + 0xec]
fstp dword [esp + 0x50]
mov eax, dword [esp + 0x50]
push eax
push eax
push ebx
push edi
push edx
call fcn.00403540
mov ecx, dword [esp + 0x44]
add esp, 0x14
add edi, ecx
test ebp, ebp
jle 0x40b5d7
dec ebp
cmp edi, dword [0x4b6c4c]
jl 0x40b5a7
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
add ebx, ecx
test eax, eax
jle 0x40b5f2
dec eax
mov dword [esp + 0x4c], eax
cmp ebx, dword [0x4b6c58]
jl 0x40b58a
jmp 0x40ba25
mov eax, dword [esi + 0x90]
mov ecx, dword [esp + 0x4c]
push eax
push esi
push ecx
call fcn.0040ba70
add esp, 0xc
jmp 0x40ba25
mov ecx, dword [esi + 0x2c]
test ecx, ecx
jne 0x40b75d
mov ecx, dword [esi + 0x30]
test ecx, ecx
jne 0x40b75d
mov ecx, dword [esi + 0x70]
dec ecx
je 0x40b71b
dec ecx
je 0x40b6fb
dec ecx
je 0x40b6b1
fild dword [esi + 0x84]
cmp dword [esi + 0x7c], 1
fstp dword [esp + 0x50]
jne 0x40b68b
mov eax, dword [esp + 0x50]
mov edx, dword [esi + 0xf4]
fild dword [esp + 0x1c]
push eax
push eax
mov eax, dword [esp + 0x54]
push ecx
add ebx, edi
fstp dword [esp]
mov dword [esp + 0x5c], ebx
push ecx
fild dword [esp + 0x60]
mov ecx, dword [eax + 0x28]
fstp dword [esp]
push edx
push ecx
call fcn.00450450
add esp, 0x18
jmp 0x40ba25
mov ecx, dword [esp + 0x50]
mov edx, dword [esi + 0xf4]
push ecx
push ecx
push eax
mov eax, dword [esp + 0x58]
add ebx, edi
mov ecx, dword [eax + 0x28]
push ebx
push edx
push ecx
call fcn.00450820
add esp, 0x18
jmp 0x40ba25
fild dword [esi + 0x84]
mov edx, dword [esi + 0x78]
mov eax, dword [esi + 0x74]
push edx
push eax
fstp dword [esp + 0x58]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
fild dword [esp + 0x24]
push eax
push eax
push ecx
add ebx, edi
mov eax, dword [edx + 0x28]
mov dword [esp + 0x64], ebx
fstp dword [esp]
fild dword [esp + 0x64]
push ecx
mov ecx, dword [esi + 0xf4]
fstp dword [esp]
push ecx
push eax
call fcn.004521c0
add esp, 0x20
jmp 0x40ba25
mov edx, dword [esp + 0x4c]
mov ecx, dword [esi + 0xf4]
add ebx, edi
push eax
mov eax, dword [edx + 0x28]
push ebx
push ecx
push eax
call fcn.00452db0
add esp, 0x10
jmp 0x40ba25
fild dword [esi + 0x84]
mov edx, dword [esp + 0x4c]
add ebx, edi
fstp dword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x50], ebx
fild dword [esp + 0x1c]
push eax
push eax
push ecx
mov eax, dword [edx + 0x28]
fstp dword [esp]
fild dword [esp + 0x5c]
push ecx
mov ecx, dword [esi + 0xf4]
fstp dword [esp]
push ecx
push eax
call fcn.00451b30
add esp, 0x18
jmp 0x40ba25
mov edx, dword [esp + 0x4c]
mov ecx, dword [esi + 0xf4]
push ecx
mov eax, dword [edx + 0x28]
push eax
call fcn.0044eeb0
mov edi, dword [esi + 0x84]
mov ebx, eax
mov eax, dword [0x4b6c4c]
mov ecx, edi
imul ecx, dword [esi + 0xc]
cdq
sub eax, edx
mov edx, dword [esi + 0x3c]
sar eax, 1
add ecx, eax
mov eax, dword [esi + 0x34]
add edx, eax
mov ebp, dword [esi + 0x10]
imul edx, edi
imul ebp, edi
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0x40]
add edx, eax
xor eax, eax
imul edx, edi
add esp, 8
cmp ebx, eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
je 0x40b7d7
mov edx, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
imul edx, edi
imul ebx, edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
jmp 0x40b7df
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x30]
cmp eax, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], edi
jne 0x40b830
mov ebx, dword [esi + 0xc]
sub ebx, edx
mov edx, dword [esp + 0x2c]
neg edx
cmp ecx, edx
mov dword [esi + 0xc], ebx
jl 0x40b808
test ecx, ecx
jle 0x40b819
mov edi, dword [esp + 0x2c]
mov eax, ecx
cdq
idiv edi
mov ecx, edx
test ecx, ecx
jle 0x40b819
sub ecx, edi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
add ebx, eax
mov dword [esi + 0xc], ebx
mov ebx, dword [esp + 0x14]
jmp 0x40b83c
test eax, eax
jne 0x40b83c
mov dword [esp + 0x28], 1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40b84c
mov dword [esp + 0x10], 1
mov eax, dword [esi + 0x30]
mov dword [esp + 0x34], ecx
cmp eax, 1
jne 0x40b88d
mov ecx, dword [esp + 0x30]
sub ebp, ebx
neg ecx
cmp ebp, ecx
jl 0x40b868
test ebp, ebp
jle 0x40b879
mov ecx, dword [esp + 0x30]
mov eax, ebp
cdq
idiv ecx
mov ebp, edx
test ebp, ebp
jle 0x40b879
sub ebp, ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0xffffffff
add ebp, eax
mov ebx, eax
mov dword [esp + 0x1c], ebp
mov eax, dword [0x4b6c58]
mov edx, ebp
sub edx, ebx
cmp edx, eax
jge 0x40ba25
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40ba25
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, edi
mov dword [esp + 0x24], eax
mov eax, dword [0x4b6c4c]
sub ecx, edx
mov dword [esp + 0x20], edi
cmp ecx, eax
jge 0x40b9f8
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40b9f8
mov eax, dword [esi + 0x70]
dec eax
je 0x40b999
dec eax
je 0x40b982
dec eax
je 0x40b945
fild dword [esi + 0x84]
cmp dword [esi + 0x7c], 1
fstp dword [esp + 0x50]
mov eax, dword [esp + 0x50]
push eax
push eax
jne 0x40b92e
fild dword [esp + 0x24]
push ecx
mov edx, dword [esi + 0xf4]
mov eax, dword [ebx + 0x28]
fstp dword [esp]
fild dword [esp + 0x2c]
push ecx
fstp dword [esp]
push edx
push eax
call fcn.00450450
jmp 0x40b9c9
mov ecx, dword [esi + 0xf4]
mov edx, dword [ebx + 0x28]
push ebp
push edi
push ecx
push edx
call fcn.00450820
jmp 0x40b9c9
fild dword [esi + 0x84]
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x74]
push eax
push ecx
fstp dword [esp + 0x58]
mov eax, dword [esp + 0x58]
mov edx, dword [esi + 0xf4]
fild dword [esp + 0x24]
push eax
push eax
push ecx
mov eax, dword [ebx + 0x28]
fstp dword [esp]
fild dword [esp + 0x34]
push ecx
fstp dword [esp]
push edx
push eax
call fcn.004521c0
add esp, 0x20
jmp 0x40b9cc
mov ecx, dword [esi + 0xf4]
mov edx, dword [ebx + 0x28]
push ebp
push edi
push ecx
push edx
call fcn.00452db0
add esp, 0x10
jmp 0x40b9cc
fild dword [esi + 0x84]
fstp dword [esp + 0x50]
mov eax, dword [esp + 0x50]
fild dword [esp + 0x1c]
push eax
push eax
push ecx
mov eax, dword [esi + 0xf4]
fstp dword [esp]
fild dword [esp + 0x2c]
push ecx
mov ecx, dword [ebx + 0x28]
fstp dword [esp]
push eax
push ecx
call fcn.00451b30
add esp, 0x18
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
add edi, ecx
test eax, eax
mov dword [esp + 0x20], edi
jle 0x40b9e3
dec eax
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [0x4b6c4c]
mov edx, edi
sub edx, ecx
cmp edx, eax
jl 0x40b8d3
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
add ebp, ecx
test eax, eax
mov dword [esp + 0x1c], ebp
jle 0x40ba0f
dec eax
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [0x4b6c58]
mov eax, ebp
sub eax, edx
cmp eax, ecx
jl 0x40b89e
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
call fcn.00487530
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x38
ret