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

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
mov esi, ecx
mov al, byte [esi + 0x68]
test al, al
push edi
je 0x6c38fa
mov dword [esi + 0x58], 0x3f800000
mov al, byte [esi + 0x48]
xor ebx, ebx
test al, al
mov dword [esi + 0x64], ebx
mov dword [esi + 0x5c], ebx
jne 0x6c392e
cmp dword [esi + 0x54], 4
jne 0x6c392e
mov eax, dword [esi + 0x24]
movzx ecx, word [eax + 0xa]
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
fcomp dword [0x84f190]
fnstsw ax
test ah, 5
jp 0x6c392e
mov byte [esi + 0x4a], bl
fld dword [esi + 0x2c]
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x20], ebx
push 1
call fcn.0081cba0
push eax
call fcn.005fd460
fld dword [esp + 0x4c]
fcomp dword [0x8666fc]
add esp, 0xc
fnstsw ax
test ah, 0x41
jne 0x6c3963
mov dword [esp + 0x1c], 1
mov edi, dword [esi + 0x18]
call fcn.006f4850
mov ebp, dword [eax]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x48]
cmp eax, ebp
mov edi, dword [esi + 0x18]
jne 0x6c3a0a
mov eax, dword [esi + 0x20]
movzx ecx, byte [eax + 0x34]
mov edx, dword [eax + 0x3c]
imul ecx, ecx, 0x1c
lea eax, [ecx + edx - 0x1c]
movsx edx, word [eax + 8]
movsx ecx, word [eax + 0xc]
add ecx, edx
movzx dx, byte [eax + 0x12]
mov dword [esp + 0x38], ecx
xor ecx, ecx
mov cx, word [eax + 0x10]
fild dword [esp + 0x38]
sar ecx, 4
and ecx, 0xf00
or ecx, edx
movsx eax, cx
mov dword [esp + 0x38], eax
mov eax, dword [edi]
fisub dword [esp + 0x38]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
mov ecx, edi
fstp dword [esp + 0x20]
call dword [eax + 0x38]
mov edx, dword [edi]
push ecx
mov ecx, dword [esp + 0x24]
fstp dword [esp]
push ecx
mov ecx, edi
call dword [edx + 0x38]
push ecx
mov ecx, dword [esi + 0x20]
fstp dword [esp]
call fcn.006f91d0
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x38]
fsubr dword [esp + 0x14]
fstp dword [esp + 0x14]
jmp 0x6c3b35
call fcn.006f6ff0
mov edx, dword [edi]
mov ebp, dword [eax]
mov ecx, edi
call dword [edx + 0x48]
cmp eax, ebp
mov edi, dword [esi + 0x18]
jne 0x6c3a92
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
mov dword [esi + 0x20], eax
call fcn.00628a60
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 4]
push eax
mov ecx, esi
call fcn.006c31b0
mov ecx, dword [esi + 0x20]
call fcn.005ff930
fstp dword [esp + 0x14]
mov eax, dword [edi]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
mov ecx, edi
call dword [eax + 0x38]
mov edx, dword [edi]
push ecx
mov ecx, dword [esp + 0x24]
fstp dword [esp]
push ecx
mov ecx, edi
call dword [edx + 0x38]
push ecx
mov ecx, dword [esi + 0x20]
fstp dword [esp]
call fcn.006f91d0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x38]
fsubr dword [esp + 0x14]
fstp dword [esp + 0x14]
jmp 0x6c3b35
call fcn.006f53e0
mov edx, dword [edi]
mov ebp, dword [eax]
mov ecx, edi
call dword [edx + 0x48]
cmp eax, ebp
jne 0x6c3b35
mov edi, dword [esi + 0x18]
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x44]
mov edx, dword [edi + 0x20]
push ebx
push eax
push ecx
push edx
call fcn.006f5b80
mov ebp, eax
add esp, 0x10
mov ecx, ebp
call fcn.005ff980
fstp dword [esp + 0x14]
mov eax, dword [edi + 0x44]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x40], eax
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x38]
mov edx, dword [edi]
push ecx
mov ecx, dword [esp + 0x24]
fstp dword [esp]
push ecx
mov ecx, edi
call dword [edx + 0x38]
mov eax, dword [esp + 0x4c]
push ecx
fstp dword [esp]
push eax
mov ecx, ebp
call fcn.006f6510
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x38]
fsubr dword [esp + 0x14]
mov eax, dword [ebp + 0x3c]
mov eax, dword [eax + 8]
test al, 0x10
fstp dword [esp + 0x14]
je 0x6c3b29
mov dword [esp + 0x1c], 3
jmp 0x6c3b35
test al, 8
je 0x6c3b35
mov dword [esp + 0x1c], 2
fld dword [0xa8172c]
fmul dword [0x84f02c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x14]
call fcn.0081cba0
mov ecx, 0xa
sub ecx, eax
xor eax, eax
cmp ecx, ebx
setle al
dec eax
and eax, ecx
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x5c], eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x20]
cmp word [eax + 0xc], 6
jne 0x6c3b86
test byte [eax + 8], 8
mov byte [esp + 0x20], 1
jne 0x6c3b8b
mov byte [esp + 0x20], 0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov ecx, esi
call fcn.006c3650
fld dword [esp + 0x18]
fmul st(1)
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
lea edx, [esp + 0x54]
fstp dword [esp + 0x18]
push edx
fld dword [esp + 0x18]
push ecx
fdiv st(1)
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x74]
mov dword [esp + 0x78], 0
fstp dword [esp + 0x1c]
fstp st(0)
fld dword [esp + 0x2c]
fadd dword [esi + 0x10]
fstp dword [esp]
push eax
push ecx
call fcn.00610120
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x58], edx
lea edx, [esp + 0x94]
push edx
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x50]
lea ebx, [esi + 0x50]
push eax
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x54]
push 0x41200000
push ecx
call fcn.00610120
fld dword [ebx]
fsub dword [0x846c88]
add esp, 0x20
lea edx, [esp + 0x78]
push edx
sub esp, 8
fstp dword [esp + 4]
lea eax, [esp + 0x60]
fld dword [esp + 0x5c]
fsub dword [esp + 0x74]
fld dword [esp + 0x90]
fsub dword [esp + 0x54]
fmulp st(1)
fld dword [esp + 0x98]
fsub dword [esp + 0x5c]
fld dword [esp + 0x54]
fsub dword [esp + 0x6c]
fmulp st(1)
fsubp st(1)
fmul dword [0x84f140]
fstp dword [esp]
push eax
call fcn.00610120
mov eax, dword [esi + 0x5c]
add esp, 0x10
mov dword [esp + 0x38], eax
test eax, eax
jle 0x6c3cd5
fld dword [esp + 0x18]
fcomp dword [0x8591ec]
fnstsw ax
test ah, 5
jp 0x6c3cb0
fld dword [esp + 0x18]
jmp 0x6c3cb6
fld dword [0x8591ec]
fild dword [esp + 0x38]
mov edx, dword [ebx]
lea ecx, [esp + 0x78]
push ecx
push edx
fmul st(1)
push ecx
mov eax, ecx
fstp dword [esp]
push eax
fstp st(0)
call fcn.00610120
add esp, 0x10
mov al, byte [esi + 0x41]
test al, al
mov byte [esp + 0x13], 0
je 0x6c3d88
mov eax, dword [esi + 0x20]
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
cmp word [eax + 0xc], 0x1c
jne 0x6c3d0a
test byte [eax + 8], 4
mov byte [esp + 0x30], 1
jne 0x6c3d0f
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x6c3d21
cmp eax, 1
mov byte [esp + 0x20], 0
jne 0x6c3d26
mov byte [esp + 0x20], 1
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
push ecx
push edx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x48]
push edx
mov edx, dword [esi + 0x44]
push ebx
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [ebx]
push edx
mov edx, dword [esi + 0x28]
push eax
push ecx
push edx
call fcn.006cbf10
fld dword [esp + 0x64]
call fcn.0081cba0
mov ecx, dword [esp + 0x68]
mov ebp, eax
mov eax, dword [ebx]
lea edi, [esi + 0x30]
push edi
push eax
push ecx
push 0xa83e28
call fcn.00610120
add esp, 0x40
jmp 0x6c3f0b
fld dword [esp + 0x14]
mov byte [esp + 0x13], 1
call fcn.0081cba0
mov edx, dword [esi + 0x5c]
lea ebp, [eax + edx + 0xa]
mov al, byte [esp + 0x20]
test al, al
mov dword [esp + 0x38], ebp
je 0x6c3dd9
mov eax, dword [esp + 0x40]
push 0x42200000
push 0x41f00000
push 0x42be0000
push 0x42480000
push eax
call fcn.0060cca0
add esp, 0x14
call fcn.0081cba0
cmp ebp, eax
jge 0x6c3dd9
mov ebp, eax
mov dword [esp + 0x38], ebp
fild dword [esp + 0x38]
mov ecx, dword [esi + 0x28]
fild dword [esi + 0x5c]
push 0
push 1
fadd dword [esp + 0x1c]
fsubp st(1)
fstp dword [esp + 0x38]
call fcn.005f5ff0
mov ecx, dword [esi + 0x28]
fstp dword [esp + 0x34]
push ecx
call fcn.00626230
add esp, 4
test al, al
je 0x6c3e1f
mov edx, dword [esi + 0x28]
mov eax, dword [edx + 0x4d0]
mov ecx, dword [eax + 0xe18]
mov dword [esp + 0x38], ecx
jmp 0x6c3e27
mov dword [esp + 0x38], 0x40c00000
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
add ebp, 6
call fcn.006be850
mov eax, dword [ebx]
fadd dword [0x84d1f0]
lea edi, [esi + 0x30]
push edi
push eax
fstp dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
push ecx
lea edx, [esp + 0x94]
push edx
call fcn.00610120
mov al, byte [esp + 0x40]
add esp, 0x20
test al, al
je 0x6c3e83
mov dword [esp + 0x34], 0x3f800000
mov dword [esp + 0x38], 0x40000000
jmp 0x6c3e93
mov dword [esp + 0x34], 0x40400000
mov dword [esp + 0x38], 0x40300000
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x74]
push eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
push 0x40c00000
push 0
push ebp
lea edx, [esp + 0x54]
push edi
push edx
call fcn.006909a0
add esp, 0x20
test al, al
mov byte [esi + 0x70], al
je 0x6c3f0b
fld dword [0xa81734]
fst dword [esp + 0x38]
fcomp dword [0x8466f4]
fnstsw ax
test ah, 0x41
jne 0x6c3f0b
lea eax, [esi + 0x74]
push eax
call fcn.006738a0
fld dword [esp + 0x3c]
fsub dword [0x8466f4]
add esp, 4
fmul dword [0x846c88]
fadd st(1)
fdivrp st(1)
fld st(0)
fmul dword [esi + 0x74]
fstp dword [esi + 0x74]
fld st(0)
fmul dword [esi + 0x78]
fstp dword [esi + 0x78]
fmul dword [esi + 0x7c]
fstp dword [esi + 0x7c]
fld dword [edi + 8]
mov eax, dword [ebx]
fsub dword [esp + 0x44]
sub esp, 8
mov dword [esp + 0x40], eax
fstp dword [esp + 4]
fld dword [edi]
fsub dword [esp + 0x44]
fstp dword [esp]
call fcn.0079816a
fsubr dword [esp + 0x40]
add esp, 4
fstp dword [esp]
call fcn.006fec00
fabs
fcomp dword [0x846c88]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x6c3f64
mov ecx, dword [ebx]
push edi
push ecx
lea edx, [esp + 0x44]
push 0x40a00000
push edx
call fcn.00610120
add esp, 0x10
mov eax, dword [esi + 0x20]
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], ebp
cmp word [eax + 0xc], 6
jne 0x6c3fd7
mov ecx, dword [eax + 8]
test ch, 1
je 0x6c3fd7
fld dword [esi + 4]
push ecx
fsub dword [esp + 0x40]
fld dword [esi + 0xc]
fsub dword [esp + 0x48]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fstp dword [esp]
fstp st(0)
fstp st(0)
call fcn.00798108
fmul dword [0x860af0]
mov eax, dword [ebx]
push edi
push eax
fstp dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00610120
add esp, 0x14
mov dword [esi + 0x34], 0x42c00000
mov dword [esi + 0x3c], 0xa
mov byte [esi + 0x70], 0
mov al, byte [esp + 0x13]
test al, al
je 0x6c3ff6
mov eax, dword [0xa73878]
mov ecx, dword [esi + 0x28]
push 0
push edi
add ebp, eax
push ebp
push ecx
call fcn.006281d0
add esp, 0x10
fld dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret