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

Disassembly:
sub esp, 0xd8
mov eax, dword [esp + 0xf0]
push ebx
mov ebx, dword [esp + 0xe4]
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0xf8]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0xf4]
fld dword [ebx]
fadd dword [eax]
fld dword [eax + 4]
fadd dword [ebx + 4]
fstp dword [esp + 0x3c]
fld dword [eax + 8]
fadd dword [ebx + 8]
fstp dword [esp + 0x40]
fmul dword [0x7cd778]
fld dword [esp + 0x3c]
fmul dword [0x7cd778]
fstp dword [esp + 0x50]
fld dword [esp + 0x40]
fmul dword [0x7cd778]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xd4], ecx
fstp dword [esp + 0x54]
mov edx, dword [esp + 0x54]
fstp dword [esp + 0xd0]
fld dword [eax]
fsub dword [ebx]
mov dword [esp + 0xd8], edx
fld st(0)
fld dword [eax + 4]
fsub dword [ebx + 4]
fst dword [esp + 0x48]
fstp dword [esp + 0x3c]
fld dword [eax + 8]
fsub dword [ebx + 8]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x14], edx
fst dword [esp + 0x44]
fstp dword [esp + 0x40]
fmul dword [0x7cd778]
fld dword [esp + 0x3c]
fmul dword [0x7cd778]
fstp dword [esp + 0x50]
fld dword [esp + 0x40]
fmul dword [0x7cd778]
mov eax, dword [esp + 0x50]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x44]
fstp dword [esp + 0x54]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x18], eax
fstp dword [esp + 0xdc]
mov dword [esp + 0xe4], ecx
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fdiv dword [edi]
call fcn.0078c320
fld dword [esp + 0x14]
fdiv dword [edi + 4]
mov ebp, eax
mov dword [esp + 0x1c], ebp
call fcn.0078c320
fld dword [esp + 0x18]
fdiv dword [edi + 8]
mov dword [esp + 0x20], eax
call fcn.0078c320
mov dword [esp + 0x24], eax
imul eax, dword [esp + 0x20]
imul eax, ebp
mov edx, dword [esp + 0xfc]
cmp eax, edx
jle 0x6384c2
xor eax, eax
fild dword [esp + eax + 0x1c]
add eax, 4
cmp eax, 0xc
fdivr dword [esp + eax + 0xc]
fdiv dword [eax + edi - 4]
fstp dword [esp + eax + 0x7c]
jl 0x63846d
fld dword [esp + 0x84]
fcomp dword [esp + 0x80]
xor ecx, ecx
fnstsw ax
test ah, 1
je 0x6384a1
mov ecx, 1
lea eax, [esp + ecx*4 + 0x1c]
mov ecx, dword [esp + ecx*4 + 0x1c]
dec ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
imul ecx, dword [esp + 0x20]
imul ecx, dword [esp + 0x1c]
cmp ecx, edx
jg 0x63846b
mov ebp, dword [esp + 0x1c]
fild dword [esp + 0x1c]
mov edi, dword [esp + 0xec]
xor ecx, ecx
cmp edi, ecx
mov dword [esp + 0x2c], ecx
fdivr dword [esp + 0x10]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], 0x7dedcc
fstp dword [esp + 0x74]
fild dword [esp + 0x20]
fdivr dword [esp + 0x14]
fstp dword [esp + 0x78]
fild dword [esp + 0x24]
fdivr dword [esp + 0x18]
fstp dword [esp + 0x7c]
je 0x63861d
mov eax, dword [edi + 0x10]
cmp eax, ecx
jle 0x63861d
xor ebp, ebp
cmp eax, ecx
jle 0x638619
xor ebx, ebx
mov eax, dword [edi + 4]
add eax, ebx
mov edx, dword [eax]
mov dword [esp + 0x58], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x60], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x64], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x68], edx
fld dword [eax + 0x14]
fld st(0)
fadd st(0), st(0)
fcom dword [0x7dfe68]
fnstsw ax
test ah, 1
je 0x638577
fsubr dword [0x7dfe68]
fmul dword [0x7cd778]
fld st(0)
faddp st(2)
fadd dword [esp + 0x60]
fstp dword [esp + 0x60]
jmp 0x638579
fstp st(0)
fld dword [esi + 0x2c]
fld dword [esi + 0x2c]
fstp dword [esp + 0x3c]
fld dword [esi + 0x2c]
fstp dword [esp + 0x40]
fld dword [esp + 0x64]
fadd st(1)
cmp dword [esp + 0x34], ecx
fstp dword [esp + 0x64]
fstp st(0)
fld dword [esp + 0x68]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x68]
fld dword [esp + 0x40]
fadd st(1)
fstp dword [esp + 0x6c]
fstp st(0)
jl 0x6385e0
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
add ecx, 4
cmp eax, ecx
jg 0x6385ca
mov eax, ecx
test eax, eax
jg 0x6385d0
xor eax, eax
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
call dword [eax + 4]
test al, al
je 0x6385ff
mov ecx, dword [esp + 0x34]
mov eax, ecx
inc ecx
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x58]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x2c]
push ecx
lea ecx, [eax + edx*8]
call fcn.005fb550
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x30]
inc ebp
add ebx, 0x18
cmp ebp, eax
jl 0x638522
mov ebx, dword [esp + 0xf0]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], 0
test eax, eax
jle 0x6388ae
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x70], 0
jle 0x638899
xor edi, edi
test ebp, ebp
mov dword [esp + 0x48], edi
jle 0x638884
fild dword [esp + 0x70]
fmul dword [esp + 0x78]
fstp dword [esp + 0x90]
fild dword [esp + 0x44]
fmul dword [esp + 0x7c]
fstp dword [esp + 0x8c]
fild dword [esp + 0x48]
fmul dword [esp + 0x74]
fadd dword [ebx]
fld dword [esp + 0x90]
fadd dword [ebx + 4]
fstp dword [esp + 0x14]
fld dword [esp + 0x8c]
fadd dword [ebx + 8]
fstp dword [esp + 0x18]
fld st(0)
fadd dword [esp + 0x74]
fstp dword [esp + 0x4c]
fld dword [esp + 0x14]
fadd dword [esp + 0x78]
fstp dword [esp + 0x50]
fld dword [esp + 0x18]
fadd dword [esp + 0x7c]
fstp dword [esp + 0x54]
fld dword [esi + 0x2c]
fld dword [esi + 0x2c]
fstp dword [esp + 0xc8]
fld dword [esi + 0x2c]
fstp dword [esp + 0xcc]
fxch st(1)
fsub st(1)
fxch st(1)
fstp st(0)
fld dword [esp + 0x14]
fsub dword [esp + 0xc8]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fsub dword [esp + 0xcc]
fstp dword [esp + 0x18]
fld dword [esi + 0x2c]
fld dword [esi + 0x2c]
fstp dword [esp + 0x98]
fld dword [esi + 0x2c]
fstp dword [esp + 0x9c]
fadd dword [esp + 0x4c]
fld dword [esp + 0x98]
fadd dword [esp + 0x50]
fstp dword [esp + 0x3c]
fld dword [esp + 0x9c]
fadd dword [esp + 0x54]
fstp dword [esp + 0x40]
fld st(0)
fadd st(2)
fld dword [esp + 0x3c]
fadd dword [esp + 0x14]
fstp dword [esp + 0xa4]
fld dword [esp + 0x40]
fadd dword [esp + 0x18]
fstp dword [esp + 0xa8]
fmul dword [0x7cd778]
fld dword [esp + 0xa4]
fmul dword [0x7cd778]
fstp dword [esp + 0xbc]
fld dword [esp + 0xa8]
fmul dword [0x7cd778]
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x5c], edx
fstp dword [esp + 0xc0]
fstp dword [esp + 0x58]
fsubrp st(1)
fld dword [esp + 0x3c]
fsub dword [esp + 0x14]
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x60], eax
fstp dword [esp + 0xb0]
fld dword [esp + 0x40]
fsub dword [esp + 0x18]
fstp dword [esp + 0xb4]
fmul dword [0x7cd778]
fld dword [esp + 0xb0]
fmul dword [0x7cd778]
fstp dword [esp + 0x84]
fld dword [esp + 0xb4]
fmul dword [0x7cd778]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x68], edx
fstp dword [esp + 0x88]
mov eax, dword [esp + 0x88]
fstp dword [esp + 0x64]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x34]
cmp eax, ecx
jl 0x638835
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
add ecx, 4
cmp eax, ecx
jg 0x63881f
mov eax, ecx
test eax, eax
jg 0x638825
xor eax, eax
mov edx, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x2c]
call dword [edx + 4]
test al, al
je 0x638873
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x58]
mov eax, ecx
inc ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x2c]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
mov dword [eax], edx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x64]
mov dword [eax + 0xc], ecx
mov edx, dword [esp + 0x68]
mov dword [eax + 0x10], edx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x30]
inc edi
cmp edi, ebp
mov dword [esp + 0x48], edi
jl 0x638671
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x20]
inc edx
cmp edx, eax
mov dword [esp + 0x70], edx
jl 0x638645
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x24]
inc edx
cmp edx, edi
mov dword [esp + 0x44], edx
jl 0x638635
lea edx, [esp + 0x28]
lea eax, [esp + 0xd0]
push edx
push eax
mov ecx, esi
call fcn.005f8f50
mov ecx, dword [esi + 0x28]
push 0
mov edx, dword [ecx]
call dword [edx + 0x5c]
mov esi, dword [esi + 8]
mov eax, 0x7e7fffff
add esi, 0x10
pop edi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
pop esi
pop ebp
test eax, eax
mov dword [esp + 0x1c], 0x7dedcc
pop ebx
je 0x638902
push eax
call fcn.00672c80
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x18], 0x7dedd8
je 0x638917
push eax
call fcn.00672c80
add esp, 4
add esp, 0xd8
ret 0x18