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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 2
mov dword [esp + 0xc], 0
jl 0x1003f70d
lea edi, [esi + 2]
mov dword [esp + 0x14], edi
lea eax, [edi + edi*2]
shl eax, 2
push eax
call fcn.10003ce0
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x1003f70d
mov edx, eax
mov eax, dword [ebp + 0x20]
cmp eax, 4
lea ecx, [edx + edi*8]
mov dword [esp + 0x1c], ecx
jne 0x1003f37e
mov eax, dword [ebp + 0x24]
test esi, esi
lea ecx, [eax + 0x18]
jle 0x1003f3b5
mov eax, edx
sub ecx, edx
mov edi, esi
mov ebx, dword [ecx + eax]
mov dword [eax], ebx
mov ebx, dword [ecx + eax + 4]
mov dword [eax + 4], ebx
add eax, 8
dec edi
jne 0x1003f366
mov edi, dword [esp + 0x14]
jmp 0x1003f3b5
mov ecx, dword [ebp + 0xc]
push edx
push ecx
push 1
push 0
push esi
push 2
push eax
call fcn.100460f0
add esp, 0x1c
test eax, eax
jne 0x1003f70d
mov edx, dword [ebp + 0x24]
mov eax, dword [esp + 0xc]
push edx
push eax
push 0xffffffffffffffff
push edi
push 4
call fcn.10045d80
mov edx, dword [esp + 0x20]
add esp, 0x14
fld qword [edx]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x1c]
fld qword [edx + esi*8 - 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0x10]
fstp qword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x18]
cmp esi, 3
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], 3
jg 0x1003f3ec
mov dword [esp + 0x18], esi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], edx
sub edi, ecx
mov eax, esi
fstp qword [esp + 0x78]
lea edx, [edx + edi*8 - 0x10]
sub eax, ecx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x84], edx
dec esi
mov edx, 1
mov dword [esp + 0x4c], esi
mov dword [esp + 0x38], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x48], edx
lea esi, [esp + 0x58]
mov dword [esp + 0x10], edx
lea ebx, [esp + 0x78]
xor edi, edi
jmp 0x1003f44a
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + edi + 0x30]
test eax, eax
je 0x1003f475
mov eax, dword [esp + edi + 0x28]
test eax, eax
je 0x1003f475
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esi], ecx
mov ecx, dword [eax + 8]
mov dword [esi + 4], edx
mov edx, dword [eax + 0xc]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
jmp 0x1003f5bb
lea eax, [esp + 0x88]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [esp + edi + 0x44]
push edx
mov edx, dword [esp + edi + 0x50]
push 1
push edx
mov edx, dword [ebp + 0xc]
shl eax, 4
add eax, edx
push eax
push ecx
call fcn.10051fb0
add esp, 0x20
test eax, eax
jne 0x1003f70d
fld qword [esp + 0xa0]
fld qword [esp + 0x98]
fmul qword [esp + 0x98]
fxch st(1)
fmul qword [esp + 0xa0]
faddp st(1)
fsqrt
fcom qword [0x10059b40]
fnstsw ax
test ah, 1
je 0x1003f4e1
fstp st(0)
fld qword [0x10059b48]
mov eax, dword [esp + edi + 0x28]
test eax, eax
jne 0x1003f564
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0xa0]
mov dword [esi], ecx
mov ecx, dword [esp + 0xa4]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
cmp eax, 2
mov dword [esi + 0xc], ecx
fstp st(0)
jle 0x1003f5bb
mov edx, dword [esp + edi + 0x48]
mov eax, dword [ebp + 0xc]
shl edx, 4
add eax, edx
fld qword [eax + 8]
fld qword [eax]
fsub qword [eax - 0x10]
fxch st(1)
fsub qword [eax - 8]
fxch st(1)
fmul qword [esi]
fxch st(1)
fmul qword [esp + 0xa0]
faddp st(1)
fcomp qword [0x10059b48]
fnstsw ax
test ah, 1
je 0x1003f5bb
fld qword [esi]
fchs
fstp qword [esi]
fld qword [esi + 8]
fchs
fstp qword [esi + 8]
jmp 0x1003f5bb
fld qword [eax + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
fst qword [esp + 0x50]
fld st(0)
mov dword [esi], ecx
mov dword [esi + 4], edx
fstp qword [esi + 8]
fld qword [esi]
fxch st(1)
fld st(1)
fmulp st(2)
fmul qword [esp + 0x50]
faddp st(1)
fsqrt
fcom qword [0x10059b40]
fnstsw ax
test ah, 1
je 0x1003f5a3
fstp st(0)
fstp st(0)
fld qword [0x10059b48]
jmp 0x1003f5ab
fxch st(1)
fdiv st(1)
fxch st(1)
fstp st(0)
fld qword [esi]
fmul st(1)
fstp qword [esi]
fld qword [esi + 8]
fmul st(1)
fstp qword [esi + 8]
fstp st(0)
mov edx, dword [esp + 0x10]
add ebx, 8
dec edx
add edi, 4
add esi, 0x10
cmp edx, 0xffffffff
mov dword [esp + 0x10], edx
jg 0x1003f446
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
lea esi, [edx - 2]
mov dword [ebx], 0
cmp esi, 2
mov dword [ebx + 4], 1
jle 0x1003f5fd
lea edi, [ebx + 8]
lea ecx, [esi - 2]
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebx + esi*4], 1
mov dword [ebx + edx*4 - 4], 0
test esi, esi
jle 0x1003f62a
mov eax, dword [esp + 0xc]
mov ecx, esi
lea eax, [eax + esi*8]
mov edx, dword [eax - 8]
mov dword [eax], edx
mov edx, dword [eax - 4]
mov dword [eax + 4], edx
add eax, 0xfffffff8
dec ecx
jne 0x1003f619
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edi, dword [ebp + 0xc]
mov dword [ebx - 8], eax
mov dword [ebx - 4], ecx
mov ecx, dword [ebp + 0x28]
mov edx, dword [edi]
cmp esi, 2
mov dword [ecx], edx
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov edx, dword [edi + 8]
mov dword [ecx + 8], edx
mov eax, dword [edi + 0xc]
mov edx, dword [esp + 0x58]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [ecx + 0x10], edx
mov edx, dword [esp + 0x60]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x64]
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], eax
jle 0x1003f6b0
mov edx, edi
lea ebx, [esi - 2]
lea eax, [ecx + 0x20]
sub edx, ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [edx + eax - 0x10]
mov dword [eax], ebx
mov ebx, dword [edx + eax - 0xc]
mov dword [eax + 4], ebx
mov ebx, dword [edx + eax - 8]
mov dword [eax + 8], ebx
mov ebx, dword [edx + eax - 4]
mov dword [eax + 0xc], ebx
mov ebx, dword [esp + 0x10]
add eax, 0x10
dec ebx
mov dword [esp + 0x10], ebx
jne 0x1003f683
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
fld qword [esp + 0x6c]
shl edx, 4
shl esi, 4
lea eax, [edx + ecx]
mov edx, dword [esp + 0x74]
fstp qword [esi + ecx]
mov esi, dword [esp + 0x78]
mov dword [eax - 0x18], edx
mov edx, dword [ebp + 8]
mov dword [eax - 0x14], esi
shl edx, 4
add edx, edi
push ecx
mov ecx, dword [ebp + 0x24]
mov esi, dword [edx - 0x10]
mov dword [eax - 0x10], esi
mov esi, dword [edx - 0xc]
mov dword [eax - 0xc], esi
mov esi, dword [edx - 8]
mov dword [eax - 8], esi
mov edx, dword [edx - 4]
mov dword [eax - 4], edx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push eax
push ebx
push ecx
push edx
push 4
call fcn.1003f980
add esp, 0x1c
mov eax, dword [esp + 0xc]
push eax
call fcn.10003d40
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret