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

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
mov ecx, 0xd
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x40]
sub esp, 8
mov dword [esp + 0x18], 0xffffff9d
mov ebp, 1
mov eax, dword [edi]
mov dword [esi + 0x24], eax
fild dword [edi]
fmul dword [0x4a0484]
fldln2
fxch st(1)
fyl2x
fldln2
fld qword [0x49aa80]
fyl2x
fdivp st(1)
fadd qword [0x49a940]
fstp qword [esp]
call fcn.0048482e
fsub qword [0x49aaa8]
call fcn.004828ac
fild dword [esp + 0x50]
fild dword [esp + 0x4c]
lea ecx, [eax + 1]
mov edx, ebp
shl edx, cl
fst qword [esp + 0x2c]
mov dword [esi + 0x20], eax
mov dword [esp + 0x40], edx
fild dword [esp + 0x40]
fld st(2)
fmul dword [0x4a0480]
fmul qword [0x49a940]
fdiv st(2)
fldln2
fxch st(1)
fyl2x
fmul qword [0x4a0478]
fsub qword [0x4a0470]
fmul st(1)
fisub dword [edi]
call fcn.004828ac
fild dword [esp + 0x4c]
mov edi, eax
mov dword [esi + 0x1c], edi
fadd dword [0x4a0480]
fmul st(3)
fmul qword [0x49a940]
fdiv st(2)
fldln2
fxch st(1)
fyl2x
fmul qword [0x4a0478]
fsub qword [0x4a0470]
fmul st(1)
fadd qword [0x49a940]
call fcn.004828ac
sub eax, edi
mov edi, dword [esp + 0x4c]
fstp st(0)
lea ebx, [edi*4]
inc eax
fstp st(0)
push ebx
mov dword [esi + 0x28], eax
fstp st(0)
call fcn.004840c9
mov dword [esi + 0x10], eax
push ebx
call fcn.004840c9
push ebx
mov dword [esi + 0x14], eax
call fcn.004840c9
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x5c]
add esp, 0x14
cmp eax, 0x6590
mov dword [esi], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0x3f800000
jge 0x46b2cf
mov dword [esi + 0x30], 0
jmp 0x46b2ed
cmp eax, 0x9470
jge 0x46b2df
mov dword [esi + 0x30], 0x3f70a3d7
jmp 0x46b2ed
cmp eax, 0xb3b0
jle 0x46b2ed
mov dword [esi + 0x30], 0x3fa33333
fild dword [esp + 0x48]
xor ebx, ebx
mov dword [esp + 0x38], ebx
fstp qword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
sub esp, 8
inc ecx
mov dword [esp + 0x48], ecx
fild dword [esp + 0x48]
fmul qword [0x4a0468]
fsub qword [0x49aa80]
fadd qword [0x4a0470]
fmul qword [0x4a0460]
fldl2e
fmulp st(1)
fld st(0)
frndint
fxch st(1)
fsub st(1)
f2xm1
fld1
faddp st(1)
fscale
fstp st(1)
fmul qword [esp + 0x2c]
fadd st(0), st(0)
fdiv qword [esp + 0x34]
fadd qword [0x49a940]
fstp qword [esp]
call fcn.0048482e
add esp, 8
call fcn.004828ac
mov ecx, dword [esp + 0x38]
cmp ebx, eax
fld dword [ecx*4 + 0x4bed38]
jge 0x46b39d
fld dword [ecx*4 + 0x4bed3c]
mov edx, eax
sub edx, ebx
mov dword [esp + 0x38], edx
fsub st(1)
fidiv dword [esp + 0x38]
fstp dword [esp + 0x38]
cmp ebx, edi
jge 0x46b39d
fld qword [0x4a0458]
mov ecx, dword [esi + 0x10]
inc ebx
fadd st(1)
cmp ebx, eax
fstp dword [ecx + ebx*4 - 4]
fadd dword [esp + 0x38]
jl 0x46b381
mov eax, dword [esp + 0x40]
cmp eax, 0x57
mov dword [esp + 0x38], eax
fstp st(0)
jl 0x46b2fb
xor ebx, ebx
test edi, edi
jle 0x46b593
mov eax, dword [esp + 0x48]
lea ecx, [edi + edi]
cdq
idiv ecx
mov ecx, eax
mov edx, ecx
imul edx, ecx
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
imul eax, ebx
fild dword [esp + 0x40]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
fild dword [esp + 0x48]
mov eax, dword [eax + 0x78]
add eax, edi
fmul dword [0x4a0450]
fld1
cmp eax, ebx
fpatan
fmul qword [0x4a0448]
fld st(1)
fmul dword [0x4a0440]
fld1
fpatan
fmul qword [0x4a0438]
faddp st(1)
fxch st(1)
fmul dword [0x4a0434]
faddp st(1)
fstp dword [esp + 0x18]
jge 0x46b4c6
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
fld dword [esp + 0x18]
fsub dword [edi + 0x70]
mov eax, ecx
mov edi, edx
imul eax, dword [esp + 0x10]
imul edi, dword [esp + 0x10]
fstp dword [esp + 0x20]
mov dword [esp + 0x48], eax
mov eax, edi
imul eax, dword [esp + 0x10]
fild dword [esp + 0x48]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul dword [0x4a0450]
fld1
fpatan
fmul qword [0x4a0448]
fld st(1)
fmul dword [0x4a0440]
fld1
fpatan
fmul qword [0x4a0438]
faddp st(1)
fxch st(1)
fmul dword [0x4a0434]
faddp st(1)
fld dword [esp + 0x20]
fcompp
fnstsw ax
and eax, 0x4100
jne 0x46b4c6
mov eax, dword [esp + 0x10]
add edi, edx
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
add eax, ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x14]
inc eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x46b454
cmp ebp, dword [esp + 0x44]
jg 0x46b55b
mov eax, dword [esp + 0x3c]
mov edi, edx
mov eax, dword [eax + 0x7c]
add eax, ebx
mov dword [esp + 0x20], eax
mov eax, ecx
imul eax, ebp
imul edi, ebp
mov dword [esp + 0x48], eax
cmp ebp, dword [esp + 0x20]
jl 0x46b546
mov eax, edi
imul eax, ebp
fild dword [esp + 0x48]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
fild dword [esp + 0x1c]
fmul dword [0x4a0450]
fld1
fpatan
fmul qword [0x4a0448]
fld st(1)
fmul dword [0x4a0440]
fld1
fpatan
fmul qword [0x4a0438]
faddp st(1)
fxch st(1)
fmul dword [0x4a0434]
faddp st(1)
fld dword [esp + 0x18]
fadd dword [eax + 0x74]
fcompp
fnstsw ax
and eax, 0x4100
jne 0x46b55b
mov eax, dword [esp + 0x48]
inc ebp
add eax, ecx
add edi, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
cmp ebp, eax
jle 0x46b4eb
mov eax, dword [esp + 0x10]
mov edi, dword [esi + 0x18]
shl eax, 0x10
inc ebx
lea eax, [eax + ebp - 0x10001]
mov dword [edi + ebx*4 - 4], eax
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x40]
add eax, edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
add edi, ecx
cmp ebx, eax
mov dword [esp + 0x40], edi
jl 0x46b3d5
mov edi, eax
xor ebx, ebx
test edi, edi
mov dword [esp + 0x38], ebx
jle 0x46b5f7
fild dword [esp + 0x38]
mov ecx, dword [esi + 0x20]
mov edx, 1
inc ecx
fadd dword [0x4a0480]
shl edx, cl
fmul qword [esp + 0x2c]
mov dword [esp + 0x44], edx
fmul qword [0x49a940]
fdiv qword [esp + 0x24]
fldln2
fxch st(1)
fyl2x
fmul qword [0x4a0478]
fsub qword [0x4a0470]
fild dword [esp + 0x44]
fmulp st(1)
fadd qword [0x49a940]
call fcn.004828ac
mov ecx, dword [esi + 0x14]
inc ebx
cmp ebx, edi
mov dword [esp + 0x38], ebx
mov dword [ecx + ebx*4 - 4], eax
jl 0x46b59d
fld qword [esp + 0x2c]
fmul qword [0x49a940]
mov eax, dword [esp + 0x3c]
fdiv qword [esp + 0x24]
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x18]
push edx
push ecx
push edi
push ecx
add eax, 0x24
fstp dword [esp]
push eax
call fcn.0046b720
push 0xc
mov dword [esi + 8], eax
call fcn.004840c9
add esp, 0x18
mov dword [esi + 0xc], eax
xor ebx, ebx
lea eax, [edi*4]
push eax
call fcn.004840c9
mov edx, dword [esi + 0xc]
add ebx, 4
add esp, 4
cmp ebx, 0xc
mov dword [ebx + edx - 4], eax
jl 0x46b631
xor ebx, ebx
test edi, edi
mov dword [esp + 0x38], ebx
jle 0x46b70e
fld qword [esp + 0x24]
fadd st(0), st(0)
fild dword [esp + 0x38]
fadd qword [0x49a940]
fmul qword [esp + 0x2c]
fdiv st(1)
fldln2
fxch st(1)
fyl2x
fmul qword [0x4a0478]
fsub qword [0x4a0470]
fadd st(0), st(0)
fcom dword [0x49ecd4]
fnstsw ax
test ah, 5
jp 0x46b69f
fstp st(0)
fld dword [0x49ecd4]
jmp 0x46b6b6
fcom dword [0x4a0430]
fnstsw ax
and eax, 0x100
jne 0x46b6b6
fstp st(0)
fld dword [0x4a0430]
fld st(0)
call fcn.004828ac
mov dword [esp + 0x44], eax
xor ecx, ecx
fisub dword [esp + 0x44]
lea eax, [eax*4 + 0x88]
fld qword [0x49aaa8]
fsub st(1)
mov edx, dword [esi + 4]
add ecx, 4
fld dword [edx + eax - 4]
fmul st(1)
fld st(2)
fmul dword [edx + eax]
mov edx, dword [esi + 0xc]
add eax, 0x44
cmp ecx, 0xc
mov edx, dword [ecx + edx - 4]
faddp st(1)
fstp dword [edx + ebx*4]
jl 0x46b6d6
inc ebx
fstp st(0)
cmp ebx, edi
mov dword [esp + 0x38], ebx
fstp st(0)
jl 0x46b664
fstp st(0)
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret