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

Disassembly:
sub esp, 0x24
cmp byte [esp + 0x60], 0
fld dword [esp + 0x54]
fsub dword [esp + 0x3c]
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
fmul dword [0x41bf40]
push ebx
push ebp
fadd dword [esp + 0x4c]
mov ebp, dword [eax]
push esi
mov esi, dword [esp + 0x34]
fstp dword [esp + 0x10]
push edi
mov edi, dword [eax + 8]
fld dword [esp + 0x68]
fsub dword [esp + 0x50]
mov eax, dword [esi + 0x12b78]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x12b7c]
fmul dword [0x41bf40]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x12b80]
fadd dword [esp + 0x58]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x12b84]
mov dword [esp + 0x38], 0x3f800000
fstp dword [esp + 0x18]
mov dword [esp + 0x10], 0x3f800000
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x6c], eax
je 0x3c1735
mov ebx, edx
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0xc4]
mov edx, eax
sub edx, ecx
sub eax, ebx
mov ecx, eax
mov dword [esp + 0x4c], ecx
fild dword [esp + 0x50]
fcomp dword [esp + 0x64]
fnstsw ax
test ah, 1
jne 0x3c176e
fld dword [esp + 0x64]
fadd qword [0x3f85a8]
fnstcw word [esp + 0x64]
movzx eax, word [esp + 0x64]
or ah, 0xc
mov dword [esp + 0x50], eax
fldcw word [esp + 0x50]
fistp qword [esp + 0x2c]
mov edi, dword [esp + 0x2c]
fldcw word [esp + 0x64]
fild dword [esp + 0x4c]
fcomp dword [esp + 0x68]
fnstsw ax
test ah, 1
jne 0x3c17a7
fld dword [esp + 0x68]
fadd qword [0x3f85a8]
fnstcw word [esp + 0x64]
movzx eax, word [esp + 0x64]
or ah, 0xc
mov dword [esp + 0x68], eax
fldcw word [esp + 0x68]
fistp qword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
fldcw word [esp + 0x64]
cmp byte [esp + 0x70], 0
je 0x3c17c2
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0xc4]
mov ebx, edx
mov edx, eax
sub edx, ecx
sub eax, ebx
mov ecx, eax
push 0
push ecx
push edi
push edx
push ebp
push esi
call fcn.003c85e0
mov eax, dword [esi + 0x12b88]
mov ecx, dword [esi + 0x12b8c]
mov edx, dword [esi + 0x12b90]
push 0
mov ebx, 0xffff
push ebx
push ebx
push 0
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x12b94]
push 0
push esi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x7c], eax
call fcn.003c8630
mov eax, dword [esp + 0x6c]
add esp, 0x30
cmp byte [esp + 0x74], 0
je 0x3c1844
mov ecx, dword [eax + 0xec]
mov edx, dword [eax + 0xf0]
sar ecx, 3
mov dword [esp + 0x70], ecx
fild dword [esp + 0x70]
sar edx, 3
mov dword [esp + 0x70], edx
fstp dword [esp + 0x38]
fild dword [esp + 0x70]
fstp dword [esp + 0x10]
mov eax, dword [eax + 0x26c]
test eax, eax
mov dword [esp + 0x70], eax
jne 0x3c185c
mov dword [esp + 0x70], 1
jmp 0x3c187d
cmp eax, 6
je 0x3c1866
cmp eax, 0xa
jne 0x3c1870
mov dword [esp + 0x70], 4
jmp 0x3c187d
cmp eax, 0xc
jne 0x3c1881
mov dword [esp + 0x70], 8
mov eax, dword [esp + 0x70]
cmp byte [esp + 0x78], 0
jne 0x3c1894
mov dword [esp + 0x70], 1
mov eax, dword [esp + 0x70]
lea ecx, [eax - 1]
cmp ecx, 7
ja case.0x3c18a0.3
jmp dword [ecx*4 + 0x3c1a88]
mov ebp, 0x4e6cc4
jmp 0x3c18c1
mov ebp, 0x41f9d8
jmp 0x3c18c1
mov ebp, 0x41f9e8
jmp 0x3c18c1
mov ebp, 0x41fa08
xor edi, edi
test eax, eax
jle 0x3c1a0a
fld dword [esp + 0x14]
mov ebx, 0xc2400
fmul dword [esp + 0x38]
fstp dword [esp + 0x64]
fld dword [esp + 0x10]
fmul dword [esp + 0x58]
fstp dword [esp + 0x74]
fld dword [esp + 0x38]
fmul dword [esp + 0x54]
fstp dword [esp + 0x3c]
fld dword [esp + 0x18]
fmul dword [esp + 0x10]
fstp dword [esp + 0x68]
cmp byte [esp + 0x78], 0
mov eax, dword [esi + 8]
mov eax, dword [eax]
je 0x3c192a
mov edx, 1
mov ecx, edi
shl edx, cl
mov dword [eax], 0x102fbc
add eax, 0x14
mov dword [eax - 0x10], edx
mov dword [eax - 0xc], edx
mov dword [eax - 8], edx
mov dword [eax - 4], edx
fld dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov dword [eax], 0x435dc
mov dword [eax + 4], 4
mov ecx, 0x823c0
mov dword [eax + 8], ecx
fadd dword [ebp + edi*8]
add eax, 0x64
fstp dword [eax - 0x58]
fld dword [esp + 0x48]
fadd dword [ebp + edi*8 + 4]
mov dword [eax - 0x4c], edx
mov edx, dword [esp + 0x74]
mov dword [eax - 0x48], edx
mov edx, dword [esp + 0x40]
fstp dword [eax - 0x54]
fld dword [esp + 0x5c]
mov dword [eax - 0x44], edx
mov edx, dword [esp + 0x64]
mov dword [eax - 0x40], ecx
mov dword [eax - 0x50], ebx
fadd dword [ebp + edi*8]
fstp dword [eax - 0x3c]
fld dword [esp + 0x48]
fadd dword [ebp + edi*8 + 4]
mov dword [eax - 0x30], edx
mov edx, dword [esp + 0x74]
mov dword [eax - 0x2c], edx
mov edx, dword [esp + 0x40]
fstp dword [eax - 0x38]
fld dword [esp + 0x44]
mov dword [eax - 0x24], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax - 0x28], edx
mov edx, dword [esp + 0x68]
mov dword [eax - 0x34], ebx
fadd dword [ebp + edi*8]
fstp dword [eax - 0x20]
fld dword [esp + 0x60]
fadd dword [ebp + edi*8 + 4]
mov dword [eax - 0x14], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax - 0x18], ebx
fstp dword [eax - 0x1c]
mov dword [eax - 0x10], edx
mov dword [eax - 0xc], ecx
mov dword [eax - 8], 0x435e0
mov dword [eax - 4], 0
mov edx, dword [esi + 8]
mov dword [edx], eax
mov ecx, dword [esi + 8]
cmp eax, dword [ecx + 4]
jb 0x3c19f8
push 0
xor edx, edx
mov ecx, esi
call fcn.003bfc90
add edi, 1
cmp edi, dword [esp + 0x70]
jl 0x3c1900
mov ebx, 0xffff
cmp byte [esp + 0x78], 0
je 0x3c1a43
mov edx, dword [esi + 8]
mov eax, dword [edx]
mov dword [eax], 0x102fbc
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov ecx, dword [esi + 8]
add eax, 0x14
mov dword [ecx], eax
mov edx, dword [esi + 8]
cmp eax, dword [edx + 4]
jb 0x3c1a43
push 0
xor edx, edx
mov ecx, esi
call fcn.003bfc90
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 0
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
push esi
call fcn.003c85e0
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x40]
push 0
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push eax
push ecx
push esi
call fcn.003c8630
add esp, 0x30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret