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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
lea eax, [esi*8 + 8]
mov dword [esp + 0x14], edi
push eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x1c], eax
call fcn.10003ce0
add esp, 4
cmp eax, edi
mov dword [esp + 0x6c], eax
jne 0x1004613d
mov dword [esp + 0x44], 1
jmp 0x1004671b
mov ebx, dword [ebp + 0xc]
lea edi, [eax + 8]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
imul eax, ebx
imul ecx, ebx
mov edx, eax
mov dword [esp + 0x60], edi
imul edx, esi
add edx, ecx
mov dword [esp + 0x58], 0
mov dword [esp + 0x34], edx
lea edx, [esi - 1]
test edx, edx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], edx
jle 0x100461fa
lea edx, [eax*8]
mov esi, edi
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 0x1c]
lea edx, [edx + ecx*8]
add ecx, eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x30]
lea ecx, [eax + ecx*8]
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push ebx
call fcn.10044be0
fst qword [esi]
fld qword [esp + 0x64]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
add edx, eax
fadd st(1)
add ecx, eax
mov eax, dword [esp + 0x30]
add esp, 0xc
add esi, 8
dec eax
mov dword [esp + 0x2c], edx
fstp qword [esp + 0x58]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
fstp st(0)
jne 0x100461ac
mov edx, dword [esp + 0x30]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 8]
sub eax, 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
je 0x1004677e
sub eax, 2
je 0x1004675d
dec eax
je 0x10046245
cmp esi, 1
jle 0x100466e2
lea eax, [ecx + 8]
sub edi, ecx
fld qword [edi + eax - 8]
fadd qword [eax - 8]
add eax, 8
dec edx
fstp qword [eax - 8]
jne 0x10046230
jmp 0x100466e2
mov esi, ebx
imul esi, ebx
shl esi, 3
cmp ebx, 6
jle 0x10046288
lea edx, [esi + ebx*4]
shl edx, 1
push edx
call fcn.10003ce0
add esp, 4
mov dword [esp + 0x50], eax
test eax, eax
je 0x1004671b
mov ecx, eax
lea eax, [esi*8]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x54], 1
lea esi, [ecx + eax]
add eax, esi
jmp 0x100462a1
lea eax, [esp + 0xb0]
lea esi, [esp + 0x1d0]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x80]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push eax
push ecx
push ebx
call fcn.10056480
mov edx, dword [esp + 0x48]
add esp, 0x1c
push edx
push esi
push ebx
push 0x3f50624d
push 0xd2f1a9fc
call fcn.1004df80
xor esi, esi
add esp, 0x14
cmp eax, esi
mov dword [esp + 0x44], eax
jne 0x1004671b
mov edx, dword [esp + 0x34]
mov ecx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x3c]
sub edx, ebx
lea eax, [ecx + eax*8]
lea ecx, [ecx + edx*8]
push ecx
push eax
push ebx
mov dword [esp + 0x4c], eax
call fcn.10044be0
fcomp qword [0x10059c60]
add esp, 0xc
mov dword [esp + 0x24], 1
fnstsw ax
test ah, 1
jne 0x1004631e
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], esi
cmp eax, esi
jle 0x100463a5
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0x1c]
lea eax, [edx*8]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
add edx, eax
mov eax, dword [esp + 0x30]
mov esi, edi
mov dword [esp + 0x40], eax
lea edx, [ecx + edx*8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
push ebx
call fcn.10056370
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add edx, eax
fstp qword [esi]
add ecx, eax
mov eax, dword [esp + 0x50]
add esp, 0x10
add esi, 8
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x40], eax
jne 0x10046363
xor esi, esi
cmp dword [esp + 0x24], esi
jne 0x100463cb
mov eax, dword [ebp + 0x10]
mov dword [edi - 8], esi
mov dword [edi - 4], esi
lea esi, [eax*8]
xor eax, eax
mov dword [esp + 0x10], esi
mov dword [edi + esi - 8], eax
mov dword [edi + esi - 4], eax
jmp 0x100463f2
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi + eax*8 - 0x10]
mov dword [edi - 8], ecx
mov edx, dword [edi + eax*8 - 0xc]
mov ecx, dword [edi]
mov dword [edi - 4], edx
shl eax, 3
mov dword [esp + 0x10], eax
mov esi, eax
mov dword [edi + eax - 8], ecx
mov edx, dword [edi + 4]
mov dword [edi + eax - 4], edx
mov eax, dword [esp + 0x18]
push eax
call fcn.10003ce0
xor ecx, ecx
add esp, 4
cmp eax, ecx
mov dword [esp + 0x14], eax
je 0x1004671b
cmp dword [esp + 0x24], ecx
jne 0x1004642d
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + esi - 8], ecx
mov dword [edx + esi - 4], ecx
mov esi, dword [esp + 0x38]
jmp 0x10046527
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
lea edx, [ecx + esi]
mov ecx, dword [ebp + 0x1c]
sub eax, esi
lea edx, [ecx + edx*8]
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
push ebx
call fcn.10056370
fld qword [edi]
fld qword [edi - 8]
mov eax, dword [esp + 0x38]
add esp, 0x10
fst qword [esp + 0x18]
fxch st(1)
fst qword [esp + 0x48]
fxch st(1)
fmul qword [esp + 0x18]
fxch st(2)
fstp qword [esp + 0x18]
fmul qword [esp + 0x48]
fld qword [esp + 0x18]
fmul qword [esp + 0x18]
fld qword [edi + eax*8 - 8]
fmul qword [edi + eax*8]
fxch st(2)
faddp st(3)
fxch st(1)
fadd st(0), st(0)
fxch st(1)
fsubp st(2)
fxch st(1)
fstp qword [esp + 0x18]
fdivr qword [esp + 0x18]
fst qword [esp + 0x18]
fcomp qword [0x10059c68]
fnstsw ax
test ah, 1
jne 0x100464c3
mov ecx, dword [esp + 0x14]
mov dword [ecx], 0x54442d18
mov dword [ecx + 4], 0x400921fb
jmp 0x10046500
fld qword [esp + 0x18]
fcomp qword [0x10059c88]
fnstsw ax
test ah, 0x41
je 0x100464e7
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x100464fc
fld qword [esp + 0x18]
call sub.MSVCRT.dll__CIacos
fsubr qword [0x10059c90]
mov edx, dword [esp + 0x14]
fstp qword [edx]
mov ecx, dword [esp + 0x14]
fld qword [ecx]
fcomp qword [0x10059c98]
fnstsw ax
test ah, 1
je 0x10046513
fld qword [ecx]
jmp 0x10046519
fld qword [0x10059c98]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
fst qword [ecx]
fstp qword [ecx + eax - 8]
mov ecx, dword [esp + 0x3c]
lea eax, [ecx + esi]
mov ecx, dword [esp + 0x30]
cmp ecx, 1
jle 0x10046682
lea ecx, [eax*8]
sub edi, edx
mov dword [esp + 0x24], ecx
lea ecx, [esi*8]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x38]
add eax, ecx
mov ecx, dword [ebp + 0x1c]
lea esi, [edx + 8]
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 0x30]
dec ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [esp + 0x2c]
sub eax, edx
mov edx, dword [esp + 0x30]
add eax, ecx
push eax
push edx
push ebx
call fcn.10056370
fld qword [edi + esi - 8]
fld qword [edi + esi]
add esp, 0x10
fst qword [esp + 0x18]
fxch st(1)
fst qword [esp + 0x48]
fxch st(1)
fmul qword [esp + 0x18]
fxch st(2)
fstp qword [esp + 0x18]
fmul qword [esp + 0x48]
fld qword [esp + 0x18]
fmul qword [esp + 0x18]
fld qword [edi + esi - 8]
fxch st(2)
faddp st(3)
fxch st(1)
fmul qword [edi + esi]
fxch st(2)
fstp qword [esp + 0x18]
fsubr qword [esp + 0x18]
fxch st(1)
fadd st(0), st(0)
fxch st(1)
fstp qword [esp + 0x18]
fdivr qword [esp + 0x18]
fst qword [esp + 0x18]
fcomp qword [0x10059c68]
fnstsw ax
test ah, 1
jne 0x10046600
mov dword [esi], 0x54442d18
mov dword [esi + 4], 0x400921fb
jmp 0x10046631
fld qword [esp + 0x18]
fcomp qword [0x10059c88]
fnstsw ax
test ah, 0x41
je 0x10046620
mov dword [esi], 0
mov dword [esi + 4], 0
jmp 0x10046631
fld qword [esp + 0x18]
call sub.MSVCRT.dll__CIacos
fsubr qword [0x10059c90]
fstp qword [esi]
fld qword [esi]
fcomp qword [0x10059c98]
fnstsw ax
test ah, 1
je 0x10046644
fld qword [esi]
jmp 0x1004664a
fld qword [0x10059c98]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
add edx, eax
fstp qword [esi]
add ecx, eax
mov eax, dword [esp + 0x34]
add esi, 8
dec eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], eax
jne 0x1004656f
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x30]
test ecx, ecx
jle 0x100466dc
mov ebx, dword [ebp + 0x20]
sub edx, edi
mov eax, edi
sub ebx, edi
mov esi, ecx
fld qword [eax]
fld qword [edx + eax]
fld qword [eax + edx + 8]
fld qword [eax - 8]
fxch st(3)
fadd qword [eax + 8]
fxch st(1)
fmul qword [eax + 8]
fxch st(3)
fadd qword [eax]
fxch st(2)
fmul qword [eax - 8]
fxch st(1)
fdivp st(3)
fxch st(1)
lea ecx, [eax + 8]
dec esi
fdivp st(1)
fstp qword [esp + 0x60]
fadd qword [esp + 0x60]
fmul qword [0x10059ca0]
fsubr qword [0x10059c68]
fmul qword [eax]
fadd qword [ebx + eax]
mov eax, ecx
fstp qword [ecx + ebx]
jne 0x10046691
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x20]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x70]
push ecx
push eax
push esi
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x88], edx
call fcn.100031a0
add esp, 0xc
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.10003d40
mov eax, dword [ebp + 8]
add esp, 4
cmp eax, 3
jne 0x10046752
mov edx, dword [esp + 0x14]
push edx
call fcn.10003d40
mov eax, dword [esp + 0x58]
add esp, 4
test eax, eax
je 0x10046752
mov eax, dword [esp + 0x50]
push eax
call fcn.10003d40
add esp, 4
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 1
jle 0x100466e2
lea eax, [ecx + 8]
sub edi, ecx
fld qword [eax + edi - 8]
fsqrt
add eax, 8
dec edx
fadd qword [eax - 0x10]
fstp qword [eax - 8]
jne 0x10046767
jmp 0x100466e2
mov eax, 1
cmp esi, eax
mov dword [esp + 0x28], eax
jle 0x100466e2
add ecx, 8
fild dword [esp + 0x28]
inc eax
add ecx, 8
cmp eax, esi
mov dword [esp + 0x28], eax
fstp qword [ecx - 8]
jl 0x10046792
jmp 0x100466df