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

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3c]
push edi
mov edi, ecx
fld dword [esi + 0x1c]
fsub dword [esi + 0x14]
fld dword [esi + 0x24]
fsub dword [esi + 0xc]
mov eax, dword [esi]
mov ecx, dword [edi + 0x14]
faddp st(1)
lea eax, [eax + eax*4]
shl eax, 4
fmul dword [0x10019198]
mov edx, dword [eax + ecx]
add eax, ecx
mov dword [esp + 0x1c], edx
xor ebp, ebp
mov eax, dword [eax + 4]
mov dword [esp + 0x40], ebp
fstp dword [esp + 0x14]
fld dword [esi + 0x20]
fsub dword [esi + 0x18]
fld dword [esi + 0x28]
fsub dword [esi + 0x10]
mov dword [esp + 0x10], eax
faddp st(1)
fmul dword [0x10019198]
fstp dword [esp + 0x18]
fld dword [esi + 0x14]
fsub dword [esi + 0xc]
fld dword [esi + 0x1c]
fsub dword [esi + 0x24]
faddp st(1)
fmul dword [0x10019198]
fstp dword [esp + 0x20]
fld dword [esi + 0x20]
fsub dword [esi + 0x28]
fld dword [esi + 0x18]
fsub dword [esi + 0x10]
faddp st(1)
fmul dword [0x10019198]
fstp dword [esp + 0x28]
fld dword [esp + 0x20]
fmul dword [0x100191b4]
fstp dword [esp + 0x30]
fld dword [esp + 0x1c]
fadd dword [esp + 0x30]
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fmul dword [0x100191b4]
fstp dword [esp + 0x34]
fld dword [esp + 0x10]
fadd dword [esp + 0x34]
fstp dword [esp + 0x2c]
lea ecx, [ebp - 3]
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
fld st(0)
fmul dword [esp + 0x14]
fadd dword [esp + 0x24]
fadd qword [0x10019160]
call fcn.004757b7
mov ebx, eax
test ebx, ebx
jl 0x46316d
cmp ebx, dword [edi + 8]
jge 0x46316d
fmul dword [esp + 0x18]
fadd dword [esp + 0x2c]
fadd qword [0x10019160]
call fcn.004757b7
test eax, eax
jl 0x46316f
cmp eax, dword [edi + 0xc]
jge 0x46316f
push eax
push ebx
mov ecx, edi
call fcn.0045f971
test eax, eax
je 0x46293a
mov eax, dword [esp + 0x40]
mov edx, 1
mov ecx, ebp
shl edx, cl
or eax, edx
mov dword [esp + 0x40], eax
inc ebp
cmp ebp, 5
jle 0x4628c3
fld dword [esp + 0x14]
fmul dword [0x100191b0]
fadd dword [esp + 0x1c]
fadd dword [esp + 0x30]
fadd qword [0x10019160]
call fcn.004757b7
mov ebx, eax
test ebx, ebx
jl 0x46316f
cmp ebx, dword [edi + 8]
jge 0x46316f
fld dword [esp + 0x18]
fmul dword [0x100191b0]
fadd dword [esp + 0x10]
fadd dword [esp + 0x34]
fadd qword [0x10019160]
call fcn.004757b7
test eax, eax
jl 0x46316f
cmp eax, dword [edi + 0xc]
jge 0x46316f
push eax
push ebx
mov ecx, edi
call fcn.0045f971
test eax, eax
je 0x4629b5
mov eax, dword [esp + 0x40]
or al, 0x40
mov dword [esp + 0x40], eax
fld dword [esp + 0x20]
fadd dword [esp + 0x14]
fmul dword [0x100191b4]
fadd dword [esp + 0x1c]
fadd qword [0x10019160]
call fcn.004757b7
mov ebx, eax
test ebx, ebx
jl 0x46316f
cmp ebx, dword [edi + 8]
jge 0x46316f
fld dword [esp + 0x28]
fadd dword [esp + 0x18]
fmul dword [0x100191b4]
fadd dword [esp + 0x10]
fadd qword [0x10019160]
call fcn.004757b7
test eax, eax
jl 0x46316f
cmp eax, dword [edi + 0xc]
jge 0x46316f
push eax
push ebx
mov ecx, edi
call fcn.0045f971
test eax, eax
je 0x462a2a
mov eax, dword [esp + 0x40]
or al, 0x80
mov dword [esp + 0x40], eax
fld dword [esp + 0x14]
fmul dword [0x100191b4]
fstp dword [esp + 0x34]
fld dword [esp + 0x20]
fmul dword [0x100191b0]
fadd dword [esp + 0x34]
fadd dword [esp + 0x1c]
fadd qword [0x10019160]
call fcn.004757b7
mov ebx, eax
test ebx, ebx
jl 0x46316f
cmp ebx, dword [edi + 8]
jge 0x46316f
fld dword [esp + 0x18]
fmul dword [0x100191b4]
fstp dword [esp + 0x30]
fld dword [esp + 0x28]
fmul dword [0x100191b0]
fadd dword [esp + 0x30]
fadd dword [esp + 0x10]
fadd qword [0x10019160]
call fcn.004757b7
test eax, eax
jl 0x46316f
cmp eax, dword [edi + 0xc]
jge 0x46316f
push eax
push ebx
mov ecx, edi
call fcn.0045f971
test eax, eax
je 0x462abc
mov eax, dword [esp + 0x40]
or ah, 1
mov dword [esp + 0x40], eax
fld dword [esp + 0x34]
fadd dword [esp + 0x1c]
xor ebp, ebp
mov dword [esp + 0x34], 2
fstp dword [esp + 0x24]
fld dword [esp + 0x30]
fadd dword [esp + 0x10]
fstp dword [esp + 0x2c]
fild dword [esp + 0x34]
fld st(0)
fmul dword [esp + 0x20]
fadd dword [esp + 0x24]
fadd qword [0x10019160]
call fcn.004757b7
mov ebx, eax
test ebx, ebx
jl 0x46316d
cmp ebx, dword [edi + 8]
jge 0x46316d
fmul dword [esp + 0x28]
fadd dword [esp + 0x2c]
fadd qword [0x10019160]
call fcn.004757b7
test eax, eax
jl 0x46316f
cmp eax, dword [edi + 0xc]
jge 0x46316f
push eax
push ebx
mov ecx, edi
call fcn.0045f971
test eax, eax
je 0x462b49
lea ecx, [ebp + 9]
mov eax, 1
shl eax, cl
or dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
inc ebp
dec eax
cmp eax, 0xfffffffd
mov dword [esp + 0x34], eax
jge 0x462ade
mov ebx, dword [esp + 0x40]
lea ecx, [esp + 0x40]
xor ebx, 0x5412
push ecx
mov ecx, edi
mov dword [esp + 0x44], ebx
call fcn.004631a1
test eax, eax
je 0x462beb
mov ecx, dword [esp + 0x40]
mov eax, ecx
sar eax, 0xd
sub eax, 0
je 0x46317b
dec eax
je 0x462bcc
dec eax
je 0x462bad
sar ecx, 0xa
and ecx, 7
mov dword [esi + 0x78], 2
mov dword [esi + 0x7c], ecx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 4
sar ecx, 0xa
and ecx, 7
mov dword [esi + 0x78], 3
mov dword [esi + 0x7c], ecx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 4
sar ecx, 0xa
and ecx, 7
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], ecx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 4
fld dword [esi + 0x3c]
fsub dword [esi + 0x44]
mov eax, dword [esi + 4]
mov dword [esp + 0x34], 3
fmul dword [0x1001917c]
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x14]
shl edx, 4
add eax, edx
xor ebp, ebp
fstp dword [esp + 0x20]
fld dword [esi + 0x40]
fsub dword [esi + 0x48]
mov ecx, dword [eax + 4]
mov dword [esp + 0x10], ecx
fmul dword [0x1001917c]
fstp dword [esp + 0x28]
fld dword [eax]
fld dword [esi + 0x44]
fsub dword [esi + 0x2c]
fld dword [esi + 0x3c]
fsub dword [esi + 0x34]
mov dword [esp + 0x40], ebp
faddp st(1)
fmul dword [0x10019198]
fmul dword [0x100191b4]
fadd st(1)
fstp dword [esp + 0x24]
fstp st(0)
fld dword [esi + 0x48]
fsub dword [esi + 0x30]
fld dword [esi + 0x40]
fsub dword [esi + 0x38]
faddp st(1)
fmul dword [0x10019198]
fmul dword [0x100191b4]
fadd dword [esp + 0x10]
fstp dword [esp + 0x2c]
fild dword [esp + 0x34]
fld st(0)
fmul dword [esp + 0x20]
fadd dword [esp + 0x24]
fadd qword [0x10019160]
call fcn.004757b7
mov ebx, eax
test ebx, ebx
jl 0x46316d
cmp ebx, dword [edi + 8]
jge 0x46316d
fmul dword [esp + 0x28]
fadd dword [esp + 0x2c]
fadd qword [0x10019160]
call fcn.004757b7
test eax, eax
jl 0x46316f
cmp eax, dword [edi + 0xc]
jge 0x46316f
push eax
push ebx
mov ecx, edi
call fcn.0045f971
test eax, eax
je 0x462ce4
mov eax, dword [esp + 0x40]
mov edx, 1
mov ecx, ebp
shl edx, cl
or eax, edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
inc ebp
dec eax
cmp eax, 0xfffffffc
mov dword [esp + 0x34], eax
jge 0x462c74
fld dword [esi + 0x5c]
fsub dword [esi + 0x54]
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0x14]
mov ebp, 0xfffffffd
fmul dword [0x1001917c]
lea eax, [eax + eax*4]
mov dword [esp + 0x34], ebp
shl eax, 4
add eax, ecx
fstp dword [esp + 0x14]
fld dword [esi + 0x60]
fsub dword [esi + 0x58]
fmul dword [0x1001917c]
fstp dword [esp + 0x18]
fld dword [esi + 0x54]
fsub dword [esi + 0x4c]
fld dword [esi + 0x5c]
fsub dword [esi + 0x64]
faddp st(1)
fmul dword [0x10019198]
fmul dword [0x100191b4]
fadd dword [eax]
fstp dword [esp + 0x24]
fld dword [esi + 0x58]
fsub dword [esi + 0x50]
fld dword [esi + 0x60]
fsub dword [esi + 0x68]
faddp st(1)
fmul dword [0x10019198]
fmul dword [0x100191b4]
fadd dword [eax + 4]
fstp dword [esp + 0x2c]
fild dword [esp + 0x34]
fld st(0)
fmul dword [esp + 0x14]
fadd dword [esp + 0x24]
fadd qword [0x10019160]
call fcn.004757b7
mov ebx, eax
test ebx, ebx
jl 0x46316d
cmp ebx, dword [edi + 8]
jge 0x46316d
fmul dword [esp + 0x18]
fadd dword [esp + 0x2c]
fadd qword [0x10019160]
call fcn.004757b7
test eax, eax
jl 0x46316f
cmp eax, dword [edi + 0xc]
jge 0x46316f
push eax
push ebx
mov ecx, edi
call fcn.0045f971
test eax, eax
je 0x462ddc
mov eax, dword [esp + 0x40]
lea ecx, [ebp + 0xb]
mov edx, 1
shl edx, cl
or eax, edx
mov dword [esp + 0x40], eax
inc ebp
mov dword [esp + 0x34], ebp
lea eax, [ebp + 3]
cmp eax, 7
jle 0x462d6b
mov ebx, dword [esp + 0x40]
lea ecx, [esp + 0x40]
xor ebx, 0x5412
push ecx
mov ecx, edi
mov dword [esp + 0x44], ebx
call fcn.004631a1
test eax, eax
jne 0x462b76
mov edx, dword [esi + 0x74]
lea eax, [edx*8 + 0x32]
mov edx, dword [edi + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [esi]
fild dword [esp + 0x38]
fld dword [esi + 0x64]
fsub dword [esi + 0xc]
fld dword [esi + 0x5c]
fsub dword [esi + 0x14]
lea ecx, [eax + eax*4]
faddp st(1)
shl ecx, 4
xor ebp, ebp
fdiv st(1)
lea eax, [ecx + edx]
mov ecx, dword [ecx + edx]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x40], ebp
fstp dword [esp + 0x14]
fld dword [esi + 0x60]
fsub dword [esi + 0x18]
fld dword [esi + 0x68]
fsub dword [esi + 0x10]
faddp st(1)
fdiv st(1)
fstp dword [esp + 0x18]
fld dword [esi + 0x3c]
fsub dword [esi + 0x24]
fld dword [esi + 0x34]
fsub dword [esi + 0xc]
faddp st(1)
fdiv st(1)
fstp dword [esp + 0x20]
fld dword [esi + 0x38]
fsub dword [esi + 0x10]
fld dword [esi + 0x40]
fsub dword [esi + 0x28]
faddp st(1)
fdiv st(1)
fstp dword [esp + 0x28]
fstp st(0)
fld dword [esp + 0x20]
fmul dword [0x100191b4]
fstp dword [esp + 0x30]
fld dword [esp + 0x1c]
fadd dword [esp + 0x30]
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fmul dword [0x100191b4]
fstp dword [esp + 0x34]
fld dword [esp + 0x10]
fadd dword [esp + 0x34]
fstp dword [esp + 0x2c]
lea eax, [ebp - 3]
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fld st(0)
fmul dword [esp + 0x14]
fadd dword [esp + 0x24]
fadd qword [0x10019160]
call fcn.004757b7
mov ebx, eax
test ebx, ebx
jl 0x46316d
cmp ebx, dword [edi + 8]
jge 0x46316d
fmul dword [esp + 0x18]
fadd dword [esp + 0x2c]
fadd qword [0x10019160]
call fcn.004757b7
test eax, eax
jl 0x46316f
cmp eax, dword [edi + 0xc]
jge 0x46316f
push eax
push ebx
mov ecx, edi
call fcn.0045f971
test eax, eax
je 0x462f3c
mov eax, dword [esp + 0x40]
mov edx, 1
mov ecx, ebp
shl edx, cl
or eax, edx
mov dword [esp + 0x40], eax
inc ebp
cmp ebp, 5
jle 0x462ec5
fld dword [esp + 0x14]
fmul dword [0x100191b0]
fadd dword [esp + 0x1c]
fadd dword [esp + 0x30]
fadd qword [0x10019160]
call fcn.004757b7
mov ebx, eax
test ebx, ebx
jl 0x46316f
cmp ebx, dword [edi + 8]
jge 0x46316f
fld dword [esp + 0x18]
fmul dword [0x100191b0]
fadd dword [esp + 0x10]
fadd dword [esp + 0x34]
fadd qword [0x10019160]
call fcn.004757b7
test eax, eax
jl 0x46316f
cmp eax, dword [edi + 0xc]
jge 0x46316f
push eax
push ebx
mov ecx, edi
call fcn.0045f971
test eax, eax
je 0x462fb7
mov eax, dword [esp + 0x40]
or al, 0x40
mov dword [esp + 0x40], eax
fld dword [esp + 0x20]
fadd dword [esp + 0x14]
fmul dword [0x100191b4]
fadd dword [esp + 0x1c]
fadd qword [0x10019160]
call fcn.004757b7
mov ebx, eax
test ebx, ebx
jl 0x46316f
cmp ebx, dword [edi + 8]
jge 0x46316f
fld dword [esp + 0x28]
fadd dword [esp + 0x18]
fmul dword [0x100191b4]
fadd dword [esp + 0x10]
fadd qword [0x10019160]
call fcn.004757b7
test eax, eax
jl 0x46316f
cmp eax, dword [edi + 0xc]
jge 0x46316f
push eax
push ebx
mov ecx, edi
call fcn.0045f971
test eax, eax
je 0x46302c
mov eax, dword [esp + 0x40]
or al, 0x80
mov dword [esp + 0x40], eax
fld dword [esp + 0x14]
fmul dword [0x100191b4]
fstp dword [esp + 0x34]
fld dword [esp + 0x20]
fmul dword [0x100191b0]
fadd dword [esp + 0x34]
fadd dword [esp + 0x1c]
fadd qword [0x10019160]
call fcn.004757b7
mov ebx, eax
test ebx, ebx
jl 0x46316f
cmp ebx, dword [edi + 8]
jge 0x46316f
fld dword [esp + 0x18]
fmul dword [0x100191b4]
fstp dword [esp + 0x30]
fld dword [esp + 0x28]
fmul dword [0x100191b0]
fadd dword [esp + 0x30]
fadd dword [esp + 0x10]
fadd qword [0x10019160]
call fcn.004757b7
test eax, eax
jl 0x46316f
cmp eax, dword [edi + 0xc]
jge 0x46316f
push eax
push ebx
mov ecx, edi
call fcn.0045f971
test eax, eax
je 0x4630be
mov eax, dword [esp + 0x40]
or ah, 1
mov dword [esp + 0x40], eax
fld dword [esp + 0x34]
fadd dword [esp + 0x1c]
xor ebp, ebp
mov dword [esp + 0x34], 2
fstp dword [esp + 0x24]
fld dword [esp + 0x30]
fadd dword [esp + 0x10]
fstp dword [esp + 0x2c]
fild dword [esp + 0x34]
fld st(0)
fmul dword [esp + 0x20]
fadd dword [esp + 0x24]
fadd qword [0x10019160]
call fcn.004757b7
mov ebx, eax
test ebx, ebx
jl 0x46316d
cmp ebx, dword [edi + 8]
jge 0x46316d
fmul dword [esp + 0x28]
fadd dword [esp + 0x2c]
fadd qword [0x10019160]
call fcn.004757b7
test eax, eax
jl 0x46316f
cmp eax, dword [edi + 0xc]
jge 0x46316f
push eax
push ebx
mov ecx, edi
call fcn.0045f971
test eax, eax
je 0x46313b
lea ecx, [ebp + 9]
mov eax, 1
shl eax, cl
or dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
inc ebp
dec eax
cmp eax, 0xfffffffd
mov dword [esp + 0x34], eax
jge 0x4630e0
mov ebx, dword [esp + 0x40]
lea ecx, [esp + 0x40]
xor ebx, 0x5412
push ecx
mov ecx, edi
mov dword [esp + 0x44], ebx
call fcn.004631a1
test eax, eax
je 0x46316f
jmp 0x462b76
fstp st(0)
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 4
sar ecx, 0xa
and ecx, 7
mov dword [esi + 0x78], 1
mov dword [esi + 0x7c], ecx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 4