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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, dword [ebp + 0xc]
sub esp, 0x1f4
cmp eax, 2
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
jne 0x4610e4
push 0
push 0
push 0
push ebx
push 0
lea eax, [ebx + 2]
push eax
push 2
call fcn.0044a290
fldz
mov esi, eax
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
mov edx, dword [esi]
mov eax, dword [edx + 8]
fst qword [eax]
mov dword [esp + 0x3c], ecx
lea ecx, [ebx - 1]
fst qword [eax + 8]
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
lea edi, [ebx - 2]
fld1
add esp, 0x1c
cmp edi, 4
fld st(0)
mov ecx, 2
fdivrp st(2)
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], ecx
jl 0x461057
mov esi, 3
mov dword [esp + 0x2c], esi
lea edi, [esi - 2]
mov dword [esp + 0x1c], edi
fild dword [esp + 0x1c]
mov edi, dword [edx + 8]
add ecx, 4
fmul st(2)
fstp qword [edi + ecx*8 - 0x20]
mov edi, dword [edx + 8]
fild dword [esp + 0x30]
mov dword [esp + 0x30], ecx
fmul st(2)
fstp qword [edi + ecx*8 - 0x18]
mov edi, dword [edx + 8]
fild dword [esp + 0x2c]
fmul st(2)
fstp qword [edi + ecx*8 - 0x10]
lea edi, [esi + 1]
mov dword [esp + 0x1c], edi
fild dword [esp + 0x1c]
mov edi, dword [edx + 8]
add esi, 4
mov dword [esp + 0x2c], esi
fmul st(2)
fstp qword [edi + ecx*8 - 8]
lea edi, [ebx - 3]
cmp ecx, edi
jl 0x460ffc
mov esi, dword [esp + 0x38]
cmp ecx, ebx
jge 0x46107b
lea edi, [ecx - 1]
mov dword [esp + 0x3c], edi
fild dword [esp + 0x3c]
mov edi, dword [edx + 8]
add dword [esp + 0x3c], 1
add ecx, 1
cmp ecx, ebx
fmul st(2)
fstp qword [edi + ecx*8 - 8]
jl 0x461062
mov ecx, dword [ebp + 0x10]
fstp st(1)
fst qword [eax + ebx*8]
fst qword [eax + ebx*8 + 8]
xor eax, eax
test ebx, ebx
jle 0x4610d7
mov edx, dword [esp + 0x20]
add edx, 0x10
test byte [ecx + 0x94], 0x20
je 0x4610d1
cmp dword [ebp + 8], 2
jne 0x4610b6
fld qword [ecx + 0x50]
fstp qword [edx - 0x10]
fld qword [ecx + 0x58]
fstp qword [edx - 8]
fld qword [ecx + 0x60]
fstp qword [edx]
jmp 0x4610c8
fld qword [ecx + 0x40]
fstp qword [edx - 0x10]
fld qword [ecx + 0x48]
fstp qword [edx - 8]
fxch st(1)
fst qword [edx]
fxch st(1)
fst qword [edx + 8]
add eax, 1
add edx, 0x20
cmp eax, ebx
mov ecx, dword [ecx]
jl 0x461094
fstp st(1)
mov eax, esi
fstp st(0)
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [eax + 2]
cmp ebx, edx
jle 0x4610f4
lea edi, [ebx - 2]
mov dword [esp + 0x40], edi
jmp 0x46110a
add eax, 1
cmp ebx, eax
jle 0x461104
lea edi, [ebx - 1]
mov dword [esp + 0x40], edi
jmp 0x46110a
mov edi, ebx
mov dword [esp + 0x40], ebx
lea eax, [edi*4]
push eax
call fcn.00443680
lea esi, [edi + edi*2]
add esi, esi
add esi, esi
add esi, esi
push esi
mov dword [esp + 0x50], eax
call fcn.00443680
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
lea eax, [eax + eax*2 - 2]
push edi
push eax
call fcn.0046ce90
lea ecx, [edi*8]
mov dword [esp + 0x54], ecx
add ebx, 0xffffffff
lea edx, [edi - 1]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x34]
mov ecx, edi
add esp, 0x10
mov dword [esp + 0x1c], ebx
fild dword [esp + 0x1c]
shl ecx, 4
lea ecx, [ecx + edx - 8]
lea edx, [eax + edi*4 - 4]
fstp qword [esp + 0x68]
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], edx
mov esi, dword [ebp + 0xc]
cmp edi, esi
jge 0x46118d
mov esi, edi
mov dword [ebp + 0xc], esi
push 0
push 0
push 0
push edi
push 0
lea eax, [edi + esi]
push eax
push esi
call fcn.0044a290
fld1
mov ecx, dword [eax]
fldz
mov edx, dword [ecx + 8]
mov dword [esp + 0x54], eax
lea eax, [esi - 1]
lea ecx, [eax + edi]
add esp, 0x1c
lea ecx, [edx + ecx*8]
jmp 0x4611bd
fxch st(1)
fst qword [edx + eax*8]
sub eax, 1
fxch st(1)
sub ecx, 8
test eax, eax
fst qword [ecx + 8]
jge 0x4611bb
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, edi
lea eax, [ecx - 1]
sub ebx, eax
cmp ebx, 1
mov dword [esp + 0x1c], ebx
fild dword [esp + 0x1c]
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 1
fdivr qword [esp + 0x68]
jle 0x46129c
lea edx, [edx + ecx*8]
mov dword [esp + 0x20], edx
fild dword [esp + 0x30]
fmul st(1)
fld st(0)
call fcn.00418120
cmp dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
fisub dword [esp + 0x1c]
jge 0x46123d
mov ecx, dword [esp + 0x34]
mov esi, dword [esi]
test byte [esi + 0x94], 0x20
je 0x461235
add ecx, 1
cmp ecx, eax
jl 0x461227
mov dword [esp + 0x34], ecx
mov eax, dword [esi]
test byte [eax + 0x94], 0x20
jne 0x461253
mov eax, dword [eax]
test byte [eax + 0x94], 0x20
je 0x461248
fld st(2)
fsub st(1)
fmul qword [esi + 0x38]
fld qword [eax + 0x38]
fmulp st(2)
faddp st(1)
fcom st(3)
fnstsw ax
test ah, 0x41
jne 0x461278
mov eax, dword [esp + 0x20]
fstp st(3)
fld st(2)
fxch st(3)
fstp qword [eax]
jmp 0x461284
mov ecx, dword [esp + 0x20]
fstp st(0)
fxch st(2)
fst qword [ecx]
fxch st(2)
mov eax, dword [esp + 0x30]
add dword [esp + 0x20], 8
add eax, 1
cmp eax, ebx
mov dword [esp + 0x30], eax
jl 0x461208
mov edx, dword [esp + 0x50]
fstp st(2)
mov eax, dword [esp + 0x24]
fstp st(0)
push edx
fstp st(0)
push 0
push eax
call fcn.00418060
mov eax, dword [esp + 0x64]
add esp, 0xc
test eax, eax
mov esi, eax
jl 0x46132e
mov ecx, dword [ebp + 0xc]
fldz
mov edx, dword [esp + 0x28]
lea eax, [ecx - 1]
lea ecx, [ecx + ecx - 2]
lea ebx, [ecx + eax]
mov dword [esp + 0x1c], ebx
lea ecx, [ebx + 1]
cmp ecx, 4
mov eax, ebx
jl 0x461311
mov ecx, dword [edx + esi*4]
lea edx, [eax + 1]
shr edx, 2
mov ebx, edx
neg ebx
lea ecx, [ecx + eax*8 - 0x10]
lea eax, [eax + ebx*4]
fst qword [ecx + 0x10]
sub ecx, 0x20
sub edx, 1
fst qword [ecx + 0x28]
fst qword [ecx + 0x20]
fst qword [ecx + 0x18]
jne 0x4612f5
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
test eax, eax
jl 0x461327
mov ecx, dword [edx + esi*4]
lea ecx, [ecx + eax*8]
fst qword [ecx]
sub eax, 1
sub ecx, 8
test eax, eax
jge 0x46131b
sub esi, 1
jns 0x4612d7
fstp st(0)
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 0x10]
mov ebx, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 0
jle 0x461587
lea esp, [esp]
test byte [ebx + 0x94], 0x20
je 0x461574
mov edx, dword [esp + 0x38]
fld qword [ebx + 0x38]
mov eax, dword [edx]
sub esp, 8
fstp qword [esp]
push eax
call fcn.0046cc20
fld qword [ebx + 0x38]
mov edx, dword [esp + 0x44]
add esp, 0xc
mov esi, eax
mov eax, dword [edx]
lea ecx, [esp + 0x70]
push ecx
push esi
sub esp, 8
fstp qword [esp]
push eax
mov dword [esp + 0x60], esi
call fcn.004ba300
mov edx, dword [ebp + 0xc]
add esp, 0x14
add edx, 0xffffffff
js 0x461568
mov eax, esi
sub eax, edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x20], eax
lea ebx, [eax*8]
sub eax, esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esi + esi - 2]
mov esi, dword [esp + 0x1c]
add esi, eax
add esi, edx
add edx, 1
lea eax, [esi*8 - 0x10]
lea ecx, [esp + 0x70]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x1c], edx
jmp 0x4613f4
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x46154a
cmp eax, dword [esp + 0x58]
jge 0x46154a
xor eax, eax
cmp edx, 4
jl 0x461481
mov edx, dword [ebp + 0xc]
mov esi, dword [esp + 0x60]
add edx, 0xfffffffc
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x28]
lea esi, [edx + esi*4 + 8]
mov edx, dword [esp + 0x5c]
jmp 0x461430
fld qword [esp + eax*8 + 0x70]
mov edi, dword [esi - 8]
fmul qword [ecx]
lea edi, [edi + edx + 0x10]
add eax, 4
add esi, 0x10
fadd qword [edi]
fstp qword [edi]
mov edi, dword [esi - 0x14]
fld qword [esp + eax*8 + 0x58]
lea edi, [edi + edx + 8]
fmul qword [ecx]
fadd qword [edi]
fstp qword [edi]
mov edi, dword [esi - 0x10]
fld qword [esp + eax*8 + 0x60]
add edi, edx
fmul qword [ecx]
fadd qword [edi]
fstp qword [edi]
mov edi, dword [esi - 0xc]
fld qword [esp + eax*8 + 0x68]
lea edi, [edi + edx - 8]
fmul qword [ecx]
sub edx, 0x20
cmp eax, dword [esp + 0x54]
fadd qword [edi]
fstp qword [edi]
jle 0x461430
mov edx, dword [ebp + 0xc]
add edx, 0xffffffff
cmp eax, edx
mov dword [esp + 0x54], edx
jg 0x4614dd
mov esi, dword [esp + 0x4c]
mov edi, eax
sub edi, edx
mov edx, dword [esp + 0x28]
add edi, esi
lea edi, [edx + edi*4]
mov edx, dword [esp + 0x20]
sub edx, eax
sub edx, esi
mov esi, dword [ebp + 0xc]
lea esi, [esi + esi - 2]
add edx, esi
add edx, dword [esp + 0x54]
add edx, edx
add edx, edx
add edx, edx
jmp 0x4614c0
fld qword [esp + eax*8 + 0x70]
mov esi, dword [edi]
fmul qword [ecx]
add esi, edx
add eax, 1
sub edx, 8
fadd qword [esi]
add edi, 4
cmp eax, dword [esp + 0x54]
fstp qword [esi]
jle 0x4614c0
cmp dword [ebp + 8], 2
mov eax, dword [esp + 0x24]
jne 0x461523
mov edx, dword [esp + 0x34]
fld qword [edx + 0x50]
mov esi, dword [esp + 0x44]
fmul qword [ecx]
lea edi, [ebx + esi]
add esi, ebx
fadd qword [ebx + eax]
fstp qword [ebx + eax]
fld qword [edx + 0x58]
fmul qword [ecx]
fadd qword [edi + eax]
mov edi, dword [esp + 0x20]
fstp qword [esi + eax]
mov esi, dword [esp + 0x40]
fld qword [edx + 0x60]
lea esi, [edi + esi*2]
fmul qword [ecx]
lea eax, [eax + esi*8]
fadd qword [eax]
fstp qword [eax]
jmp 0x461546
mov esi, dword [esp + 0x34]
fld qword [esi + 0x40]
mov edx, dword [esp + 0x44]
fmul qword [ecx]
lea edi, [ebx + edx]
add edx, ebx
fadd qword [ebx + eax]
fstp qword [ebx + eax]
fld qword [esi + 0x48]
fmul qword [ecx]
fadd qword [edi + eax]
fstp qword [edx + eax]
mov edi, dword [esp + 0x40]
add dword [esp + 0x5c], 8
mov eax, 1
add dword [esp + 0x20], eax
add ebx, 8
add ecx, 8
sub dword [esp + 0x1c], eax
jne 0x4613f0
add dword [esp + 0x30], 1
mov ebx, dword [esp + 0x34]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
cmp dword [esp + 0x30], ecx
mov ebx, dword [ebx]
mov dword [esp + 0x34], ebx
jl 0x461350
cmp dword [ebp + 8], 2
fld1
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx - 2]
fst qword [edx + ecx*8]
mov edx, dword [esp + 0x2c]
mov edx, dword [edx]
fstp qword [edx + ecx*8]
mov ecx, dword [esp + 0x24]
jne 0x4615e1
fld qword [eax + 0x50]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
fstp qword [ecx]
fld qword [eax + 0x58]
fstp qword [edx + ecx]
fld qword [eax + 0x60]
mov eax, dword [ebp + 0x14]
fstp qword [esi + 8]
fld qword [eax + 0x50]
fstp qword [ecx + edx - 8]
fld qword [eax + 0x58]
fstp qword [esi]
fld qword [eax + 0x60]
mov eax, dword [esp + 0x50]
fstp qword [ecx + eax - 8]
jmp 0x461603
fld qword [eax + 0x40]
mov edx, dword [ebp + 0x14]
fstp qword [ecx]
fld qword [eax + 0x48]
mov eax, dword [esp + 0x44]
fstp qword [eax + ecx]
fld qword [edx + 0x40]
fstp qword [eax + ecx - 8]
mov ecx, dword [esp + 0x3c]
fld qword [edx + 0x48]
fstp qword [ecx]
mov edx, dword [esp + 0x48]
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0x28]
push edx
add esi, 0xffffffff
push esi
push esi
push edi
push eax
call fcn.0046d2e0
add esp, 0x14
test eax, eax
je 0x461669
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004483e0
sub dword [esp + 0x5c], 1
sub dword [esp + 0x30], 4
sub dword [esp + 0x54], 0x18
sub dword [esp + 0x48], 8
sub dword [esp + 0x40], 0x10
sub edi, 1
add esp, 4
cmp edi, 2
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], edi
jge 0x461181
mov ebx, dword [esp + 0x24]
jmp 0x4618c7
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x28]
push ebx
push edx
push esi
push esi
push edi
push eax
call fcn.0046d610
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x40]
lea ecx, [ebx + edi*8]
push ecx
push edx
push esi
push esi
push edi
push eax
call fcn.0046d610
add esp, 0x30
cmp dword [ebp + 8], 2
jne 0x4616bc
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x28]
mov ecx, edi
shl ecx, 4
add ecx, ebx
push ecx
push edx
push esi
push esi
push edi
push eax
call fcn.0046d610
add esp, 0x18
cmp dword [ebp + 8], 2
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
lea ecx, [edi - 1]
lea edx, [ecx + 1]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], edx
jne 0x4617dc
cmp edx, 4
fld1
jl 0x461796
mov edx, dword [esp + 0x24]
lea eax, [ecx + edi*2]
add edi, ecx
lea esi, [edx + eax*8]
lea ebx, [edx + ecx*8 - 0x10]
lea edx, [edx + edi*8]
mov edi, dword [esp + 0x20]
mov eax, ecx
shl eax, 5
lea eax, [eax + edi + 0x10]
mov edi, dword [esp + 0x2c]
shr edi, 2
mov dword [esp + 0x4c], edi
neg edi
lea ecx, [ecx + edi*4]
mov edi, dword [esp + 0x4c]
fld qword [ebx + 0x10]
sub edx, 0x20
fstp qword [eax - 0x10]
sub esi, 0x20
fld qword [edx + 0x20]
sub ebx, 0x20
fstp qword [eax - 8]
sub eax, 0x80
sub edi, 1
fld qword [esi + 0x20]
fstp qword [eax + 0x80]
fst qword [eax + 0x88]
fld qword [ebx + 0x28]
fstp qword [eax + 0x50]
fld qword [edx + 0x18]
fstp qword [eax + 0x58]
fld qword [esi + 0x18]
fstp qword [eax + 0x60]
fst qword [eax + 0x68]
fld qword [ebx + 0x20]
fstp qword [eax + 0x30]
fld qword [edx + 0x10]
fstp qword [eax + 0x38]
fld qword [esi + 0x10]
fstp qword [eax + 0x40]
fst qword [eax + 0x48]
fld qword [ebx + 0x18]
fstp qword [eax + 0x10]
fld qword [edx + 8]
fstp qword [eax + 0x18]
fld qword [esi + 8]
fstp qword [eax + 0x20]
fst qword [eax + 0x28]
jne 0x46171d
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
test ecx, ecx
jl 0x4618c5
mov edx, ecx
shl edx, 5
lea eax, [edx + eax + 0x10]
lea edx, [ecx + edi*2]
add edi, ecx
lea esi, [ebx + edx*8]
lea edx, [ebx + edi*8]
fld qword [ebx + ecx*8]
sub ecx, 1
fstp qword [eax - 0x10]
sub edx, 8
fld qword [edx + 8]
sub esi, 8
fstp qword [eax - 8]
sub eax, 0x20
test ecx, ecx
fld qword [esi + 8]
fstp qword [eax + 0x20]
fst qword [eax + 0x28]
jge 0x4617b2
jmp 0x4618c5
cmp edx, 4
jl 0x46188a
fld1
lea esi, [ebx + ecx*8 - 0x10]
fldz
lea edx, [edi + ecx]
lea edx, [ebx + edx*8]
mov ebx, ecx
shl ebx, 5
lea eax, [ebx + eax + 0x10]
mov ebx, dword [esp + 0x2c]
shr ebx, 2
mov dword [esp + 0x4c], ebx
neg ebx
lea ecx, [ecx + ebx*4]
mov ebx, dword [esp + 0x4c]
jmp 0x461814
fxch st(1)
fld qword [esi + 0x10]
sub edx, 0x20
fstp qword [eax - 0x10]
sub esi, 0x20
fld qword [edx + 0x20]
sub eax, 0x80
sub ebx, 1
fstp qword [eax + 0x78]
fst qword [eax + 0x80]
fxch st(1)
fst qword [eax + 0x88]
fld qword [esi + 0x28]
fstp qword [eax + 0x50]
fld qword [edx + 0x18]
fstp qword [eax + 0x58]
fxch st(1)
fst qword [eax + 0x60]
fxch st(1)
fst qword [eax + 0x68]
fld qword [esi + 0x20]
fstp qword [eax + 0x30]
fld qword [edx + 0x10]
fstp qword [eax + 0x38]
fxch st(1)
fst qword [eax + 0x40]
fxch st(1)
fst qword [eax + 0x48]
fld qword [esi + 0x18]
fstp qword [eax + 0x10]
fld qword [edx + 8]
fstp qword [eax + 0x18]
fxch st(1)
fst qword [eax + 0x20]
fxch st(1)
fst qword [eax + 0x28]
jne 0x461812
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
jmp 0x46188e
fldz
fld1
test ecx, ecx
jl 0x4618c3
mov edx, ecx
shl edx, 5
add edi, ecx
lea eax, [edx + eax + 0x10]
lea edx, [ebx + edi*8]
fld qword [ebx + ecx*8]
sub ecx, 1
fstp qword [eax - 0x10]
sub edx, 8
fld qword [edx + 8]
sub eax, 0x20
test ecx, ecx
fstp qword [eax + 0x18]
fxch st(1)
fst qword [eax + 0x20]
fxch st(1)
fst qword [eax + 0x28]
jge 0x4618a0
fstp st(1)
fstp st(0)
mov eax, dword [esp + 0x48]
push eax
call fcn.00418550
push ebx
call fcn.00418550
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0046cef0
mov eax, dword [esp + 0x44]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret