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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x102d94c0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [0x102f5648]
cmp byte [edi + 0x71], 0
je 0x100121ad
mov dword [edi + 0x58], esi
mov dword [edi + 0x5c], ebx
mov byte [edi + 0x71], 0
mov dword [edi + 0x50], esi
xor ecx, ecx
mov dword [edi + 0x54], ebx
mov eax, dword [edi + 0x34]
mov edx, dword [edi + 0x30]
sub eax, edx
sar eax, 2
mov dword [esp + 0x34], ecx
test eax, eax
je 0x100121f4
mov ecx, dword [edx + ecx*4]
push ebx
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test al, al
jne 0x10012523
mov eax, dword [edi + 0x34]
mov ecx, dword [esp + 0x34]
mov edx, dword [edi + 0x30]
inc ecx
sub eax, edx
mov dword [esp + 0x34], ecx
sar eax, 2
cmp ecx, eax
jb 0x100121c8
cmp dword [edi + 0x164], 0
je 0x10012213
push ebx
push esi
push edi
lea ecx, [edi + 0x140]
call fcn.100138f9
test al, al
jne 0x10012523
cmp byte [edi + 0x70], 0
je 0x10012523
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x54]
push eax
push dword [edi + 0x18]
call fcn.1013dde0
mov eax, dword [edi]
add esp, 0xc
sub eax, 1
je 0x100123c3
sub eax, 1
je 0x10012378
dec eax
sub eax, 1
jne 0x10012523
mov ecx, dword [edi + 0x1c]
imul edx, dword [edi + 0x28], 0x220
cvtsi2ss xmm0, esi
lea esi, [esp + 0x38]
lea eax, [ecx + 0xd0]
push esi
add eax, edx
push eax
fld dword [eax + 0xc]
lea eax, [ecx + 0x120]
fild dword [ebp + 0xc]
add ecx, 0xe0
add eax, edx
add edx, ecx
lea ecx, [esp + 0x24]
push eax
fstp dword [esp + 0x1c]
fsub dword [esp + 0x1c]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [edi + 0x60]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 0x2c]
movss dword [esp + 0x30], xmm0
call fcn.10021622
mov ecx, dword [edi + 0x1c]
lea esi, [esp + 0x50]
imul edx, dword [edi + 0x28], 0x220
add esp, 0xc
lea eax, [ecx + 0xd0]
push esi
add eax, edx
push eax
fld dword [eax + 0xc]
lea eax, [ecx + 0x120]
fild dword [edi + 0x5c]
add ecx, 0xe0
add eax, edx
add edx, ecx
lea ecx, [esp + 0x30]
push eax
fstp dword [esp + 0x1c]
fsub dword [esp + 0x1c]
cvtsi2ss xmm0, dword [edi + 0x58]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [edi + 0x60]
fstp dword [esp + 0x38]
movss dword [esp + 0x3c], xmm0
call fcn.10021622
fld dword [esp + 0x48]
add esp, 0xc
fld dword [esp + 0x48]
fld dword [esp + 0x40]
fld dword [esp + 0x4c]
fld dword [esp + 0x38]
fsub dword [esp + 0x44]
mov eax, dword [edi + 0x1c]
imul ecx, dword [edi + 0x28], 0x220
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd dword [edi + 0x64]
fstp dword [ecx + eax + 0x78]
fxch st(3)
fsubrp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd dword [edi + 0x68]
fstp dword [ecx + eax + 0x7c]
fsubrp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd dword [edi + 0x6c]
fstp dword [ecx + eax + 0x80]
jmp 0x10012523
imul edx, dword [edi + 0x28], 0x220
mov eax, esi
sub eax, dword [edi + 0x5c]
sub eax, dword [edi + 0x58]
mov ecx, dword [edi + 0x1c]
add eax, ebx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul qword [0x102c6180]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd qword [0x102c6248]
fmul dword [edx + ecx + 0x64]
fstp dword [edx + ecx + 0x64]
mov dword [edi + 0x58], esi
mov dword [edi + 0x5c], ebx
jmp 0x10012523
imul ecx, dword [edi + 0x28], 0x220
mov edx, dword [edi + 0x1c]
mov eax, dword [ecx + edx + 0x48]
sub eax, 0
je 0x10012492
sub eax, 1
jne 0x10012523
fild dword [esp + 0x34]
lea esi, [ecx + edx]
lea eax, [edx + 0x50]
add eax, ecx
movss xmm0, dword [esi + 0xdc]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esi + 0xd4]
push ecx
push ecx
movss dword [esp + 0x20], xmm0
fsub dword [esp + 0x20]
fld dword [esi + 0xd0]
fld qword [0x102c6260]
fstp qword [esp]
fild dword [ebp + 0xc]
push eax
movss dword [esp + 0x20], xmm0
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fsub st(2)
call fcn.101f5020
fild dword [ebp + 8]
push eax
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fsub st(1)
call fcn.101f5020
fild dword [edi + 0x5c]
push eax
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fsubrp st(2)
fxch st(1)
call fcn.101f5020
fild dword [edi + 0x58]
push eax
fstp dword [esp + 0x30]
fsubr dword [esp + 0x30]
call fcn.101f5020
cvttss2si edx, dword [esp + 0x2c]
push eax
lea eax, [edi + 0x40]
push eax
cvttss2si ecx, dword [esi + 0xd8]
call fcn.1001ba1c
add esp, 0x20
jmp 0x10012523
lea eax, [ecx + edx]
sub esp, 0x34
fld dword [eax + 0xdc]
add ecx, 0x50
fild dword [esp + 0x68]
add edx, ecx
lea ecx, [edi + 0x40]
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fsub dword [eax + 0xd4]
fsub st(1)
fld dword [eax + 0xd0]
fild dword [ebp + 0xc]
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fsub st(2)
fstp qword [esp + 0x2c]
fild dword [ebp + 8]
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fsub st(1)
fstp qword [esp + 0x24]
fild dword [edi + 0x5c]
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fsubrp st(2)
fxch st(1)
fstp qword [esp + 0x1c]
fild dword [edi + 0x58]
fstp dword [esp + 0x48]
fsubr dword [esp + 0x48]
fstp qword [esp + 0x14]
fstp qword [esp + 0xc]
fld dword [eax + 0xd8]
fstp qword [esp + 4]
fld dword [0x102c6258]
fstp dword [esp]
call fcn.100214f1
add esp, 0x34
mov ecx, dword [esp + 0x54]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101f469d
mov esp, ebp
pop ebp
ret 8