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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47e2e0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x4a1824]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [0x4a0734]
or ecx, 0xffffffff
mov dword [esp + 0x54], eax
add eax, ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], eax
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
mov eax, 1
jne 0x407d11
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x30], eax
jge 0x408237
test ecx, ecx
jne 0x407d45
mov eax, dword [esp + 0x34]
push eax
mov ecx, 0x4a0734
call fcn.00407860
test eax, eax
je 0x407d38
mov eax, dword [eax]
test eax, eax
jne 0x407d3d
mov eax, 0x4a073c
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x407d4b
mov dword [esp + 0x14], ecx
mov esi, ecx
mov ecx, esi
call fcn.004166a0
push eax
call fcn.004020f0
add esp, 4
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
mov eax, dword [ebx + 0x20]
lea edx, [esp + 0x60]
push edx
push eax
call fcn.00424f10
mov ecx, esi
call fcn.00415ac0
mov ecx, dword [ebx + eax*8 + 0x30]
mov dword [esp + 0x2c], ecx
mov ecx, esi
call fcn.00415ac0
mov edx, dword [ebp + 0xc]
fild dword [edx + 0x1c]
mov edi, dword [ebx + eax*8 + 0x2c]
mov eax, dword [ebx + 0x7c]
push 0
fmul qword [0x485428]
push 0
fld1
push ecx
mov ecx, dword [esp + 0x38]
fsubrp st(1)
mov dword [esp + 0x54], edi
fstp dword [esp + 0x50]
fld dword [esp + 0x50]
fstp dword [esp]
push eax
push ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.004273a0
cmp byte [ebp + 0x14], 0
je 0x408225
mov ecx, esi
mov byte [esp + 0x13], 0
call fcn.00415ad0
test al, 2
je 0x407dfa
mov ecx, esi
call fcn.00415400
mov edx, eax
mov eax, dword [ebx + 0x14]
sub eax, edx
imul eax, dword [ebx + 0x28]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x38], eax
jmp 0x407e02
mov dword [esp + 0x38], 0
cmp dword [ebx + 0x14], 0
mov dword [esp + 0x18], 0
jle 0x4080c9
jmp 0x407e24
mov edi, dword [esp + 0x48]
mov ecx, esi
call fcn.00415ad0
test al, 1
je 0x407e4d
mov eax, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.00415410
mov ecx, eax
mov eax, dword [ebx + 0x10]
sub eax, ecx
imul eax, dword [ebx + 0x24]
cdq
sub eax, edx
sar eax, 1
jmp 0x407e4f
xor eax, eax
mov esi, dword [ebx + 0x18]
mov ecx, dword [esp + 0x14]
add esi, eax
mov eax, dword [esp + 0x18]
add esi, edi
mov edi, dword [ebx + 0x28]
imul edi, eax
add edi, dword [ebx + 0x1c]
push 0
add edi, dword [esp + 0x3c]
push eax
add edi, dword [esp + 0x34]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x44], edi
call fcn.00415430
push eax
lea ecx, [esp + 0x74]
call fcn.00437760
cmp dword [esp + 0x18], 0
mov dword [esp + 0x88], 0
jne 0x407ebf
lea ecx, [esp + 0x6c]
call fcn.004370d0
test eax, eax
jle 0x407ebf
cmp byte [esp + 0x13], 0
jne 0x407ebf
sub esi, dword [ebx + 0x24]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], esi
mov byte [esp + 0x13], 1
or eax, 0xffffffff
xor esi, esi
lea ecx, [esp + 0x6c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], esi
call fcn.004370d0
test eax, eax
jl 0x40801b
lea ecx, [esp + 0x6c]
call fcn.004370d0
cmp esi, eax
jne 0x407ef8
mov dword [esp + 0x24], 2
jmp 0x407f13
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push esi
call fcn.00415d50
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x28], edx
je 0x408003
mov edx, dword [esp + 0x1c]
test edx, edx
jl 0x407ff7
xor eax, eax
mov ecx, esi
sub ecx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x58], ecx
jmp 0x407f48
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x20]
mov esi, dword [ebx + 0x20]
mov edx, 1
add esi, 1
sub edx, eax
imul esi, edx
test eax, eax
je 0x407f72
mov edi, dword [esp + 0x28]
neg edi
sbb edi, edi
and edi, 0xff410000
add edi, 0xffffff
jmp 0x407f74
xor edi, edi
mov eax, dword [esp + 0x1c]
push ecx
push eax
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x78]
call fcn.004377b0
fld1
mov edx, dword [ebx + 0x28]
push ecx
mov ecx, dword [ebx + 0x24]
fstp dword [esp]
push edi
push edx
push ecx
mov ecx, eax
mov byte [esp + 0x98], 1
call fcn.0041ed20
mov edx, dword [ebx + 0x20]
push eax
mov eax, dword [esp + 0x50]
push edx
mov edx, dword [ebx + 0x24]
imul edx, dword [esp + 0x34]
lea ecx, [esi + eax]
add edx, esi
add edx, dword [esp + 0x5c]
push ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.004255c0
lea ecx, [esp + 0x74]
mov byte [esp + 0x88], 0
call fcn.004374b0
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, 2
mov dword [esp + 0x20], eax
jl 0x407f40
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], eax
add esi, 1
lea ecx, [esp + 0x6c]
mov dword [esp + 0x40], esi
call fcn.004370d0
cmp esi, eax
jle 0x407ee1
mov ecx, dword [ebx + 0x24]
mov eax, ecx
sub eax, dword [esp + 0x5c]
cdq
sub eax, edx
mov edx, dword [ebp + 0x10]
mov esi, eax
mov eax, dword [ebx + 0x28]
sub eax, dword [esp + 0x60]
sar esi, 1
sub esi, dword [esp + 0x44]
add esi, dword [edx]
cdq
sub eax, edx
mov edx, dword [ebp + 0x10]
sar eax, 1
sub eax, edi
add eax, dword [edx + 4]
test esi, esi
jl 0x40809d
test eax, eax
jl 0x40809d
cdq
idiv dword [ebx + 0x28]
test eax, eax
jne 0x40809d
mov eax, esi
cdq
idiv ecx
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edi
push eax
call fcn.00415d50
cmp eax, 0xffffffff
je 0x4080a1
mov eax, esi
cdq
idiv dword [ebx + 0x24]
mov ecx, dword [esp + 0x14]
push edi
push eax
call fcn.00415cd0
mov dword [esp + 0x50], eax
mov eax, esi
cdq
idiv dword [ebx + 0x24]
mov ecx, dword [esp + 0x14]
push edi
push eax
call fcn.00415d50
mov dword [esp + 0x4c], eax
jmp 0x4080a1
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x88], 0xffffffff
call fcn.004374b0
mov esi, dword [esp + 0x14]
add edi, 1
cmp edi, dword [ebx + 0x14]
mov dword [esp + 0x18], edi
jl 0x407e20
mov ecx, esi
call fcn.00415b90
mov ecx, eax
call fcn.00415400
test eax, eax
jle 0x4081fc
cmp byte [esp + 0x13], 0
je 0x4081fc
push 0
mov ecx, esi
mov edi, 0x484ddc
call fcn.00415b90
mov ecx, eax
call fcn.00415430
mov esi, eax
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x408134
mov ecx, dword [esp + 0x14]
push ebx
push eax
call fcn.00415b90
mov ecx, eax
call fcn.00415430
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.00402b70
add esp, 0xc
test al, al
mov byte [esp + 0x13], 1
je 0x408139
mov byte [esp + 0x13], 0
xor edi, edi
mov dword [esp + 0x28], 1
mov esi, dword [ebx + 0x20]
add esi, 1
imul esi, dword [esp + 0x28]
cmp byte [esp + 0x13], 0
je 0x4081a3
fld1
mov eax, dword [ebx + 0x28]
push ecx
fstp dword [esp]
mov ecx, dword [ebx + 0x24]
mov edx, edi
neg edx
sbb edx, edx
and edx, 0xffffff
push edx
push eax
push ecx
mov ecx, dword [esp + 0x24]
push 0
call fcn.00415b90
mov ecx, eax
call fcn.00415430
mov ecx, dword [ebx + 0x74]
mov edx, dword [ebx + 0x20]
push eax
mov eax, dword [ebx + 0x78]
add eax, esi
add eax, dword [esp + 0x40]
add ecx, esi
add ecx, dword [esp + 0x5c]
push edx
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.004255c0
fld1
mov eax, dword [ebx + 0x28]
push ecx
fstp dword [esp]
mov ecx, dword [ebx + 0x24]
mov edx, edi
neg edx
sbb edx, edx
and edx, 0xffffff
push edx
mov edx, dword [ebx + 0x20]
push eax
mov eax, dword [esp + 0x70]
push ecx
push 0x485424
push edx
mov edx, dword [esp + 0x80]
lea ecx, [esi + eax]
push ecx
mov ecx, dword [ebp + 8]
add esi, edx
push esi
call fcn.004255c0
mov eax, dword [esp + 0x28]
sub eax, 1
add edi, 1
cmp eax, 0xffffffff
mov dword [esp + 0x28], eax
jg 0x408143
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.00415ae0
mov esi, dword [ebp + 8]
push eax
push esi
call fcn.00402c00
add esp, 8
cmp byte [ebp + 0x18], 0
je 0x408225
mov eax, dword [0x4b24b8]
push eax
push esi
call fcn.00402c30
add esp, 8
mov eax, 1
add dword [esp + 0x30], eax
sub dword [esp + 0x34], eax
jmp 0x407d01
mov esi, dword [esp + 0x4c]
cmp esi, 0xffffffff
je 0x408283
push 2
call fcn.00421490
mov ecx, dword [ebp + 0x10]
add esp, 4
cmp byte [ecx + 0x10], 0
je 0x408288
call fcn.00411060
call fcn.004213f0
mov ecx, dword [esp + 0x50]
mov dword [0x4b23fc], esi
mov dword [0x4b252c], ecx
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004213f0
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret