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

Disassembly:
sub esp, 0x68
mov eax, dword [0x1004d00c]
xor eax, esp
mov dword [esp + 0x64], eax
cmp byte [0x10055018], 0
push esi
push edi
je 0x1002f678
mov ecx, dword [0x1004ef20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x1002f678
mov ecx, dword [0x1004ef20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
call eax
test al, al
je 0x1002f678
mov ecx, dword [0x1004ef20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
call eax
test al, al
jne 0x1002f678
cvttss2si eax, dword [0x10055028]
mov ecx, dword [0x1004d048]
mov edi, dword [0x1004d044]
push ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x64], edi
add eax, 0xe
mov dword [esp + 0x50], eax
mov esi, eax
mov eax, esp
mov dword [eax], 0x801e1e1e
lea eax, [esi*2 + 2]
push eax
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, ecx
sub eax, esi
push eax
call fcn.10018b5e
push ecx
inc esi
mov eax, esp
mov dword [esp + 0x68], esi
add esi, esi
sub edi, dword [esp + 0x68]
push esi
push 1
push edi
push dword [esp + 0x78]
mov dword [eax], 0xff876acf
call fcn.10018b5e
push ecx
mov eax, esp
push 1
push esi
push dword [esp + 0x6c]
mov dword [eax], 0xff876acf
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x74]
push eax
mov dword [esp + 0x7c], eax
call fcn.10018b5e
push ecx
mov eax, esp
mov dword [eax], 0xff000000
lea eax, [esi + 2]
push eax
push eax
push edi
push dword [esp + 0x78]
call fcn.10018d36
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x1002f662
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov esi, eax
lea edi, [esp + 0x40]
sub esp, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x80]
push esi
call fcn.1002f68b
test al, al
je 0x1002f678
mov ecx, esi
call fcn.10017e78
mov ecx, dword [0x1004ef20]
lea edx, [esp + 8]
push edx
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov ecx, dword [0x10055090]
mov eax, dword [0x1005508c]
cmp eax, ecx
mov dword [esp + 0x50], ecx
jmp 0x1002f658
push 0xb
pop ecx
mov esi, eax
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
movss xmm0, dword [esp + 0x2c]
subss xmm0, dword [esp + 0x40]
movss dword [esp + 0x68], xmm0
movss xmm0, dword [esp + 0x30]
subss xmm0, dword [esp + 0x44]
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [0x100441c8]
movss dword [esp + 0x64], xmm0
call fcn.10012af0
movss dword [esp + 0x54], xmm0
movss xmm0, dword [esp + 0x64]
call fcn.10012b30
movss xmm4, dword [esp + 0x54]
movaps xmm5, xmm0
mulss xmm5, dword [esp + 0x68]
movaps xmm1, xmm4
mov eax, dword [0x1005505c]
mulss xmm1, dword [esp + 0x5c]
mulss xmm0, dword [esp + 0x5c]
subss xmm5, xmm1
movd xmm2, eax
movss xmm1, dword [0x10044390]
xorps xmm4, xmm1
mulss xmm4, dword [esp + 0x68]
cvtdq2ps xmm2, xmm2
subss xmm4, xmm0
movaps xmm0, xmm5
call fcn.10012b10
comiss xmm0, xmm2
ja 0x1002f4a2
movaps xmm0, xmm4
call fcn.10012b10
comiss xmm0, xmm2
jbe 0x1002f507
comiss xmm4, xmm5
movaps xmm0, xmm5
xorps xmm0, xmm1
jbe 0x1002f4db
comiss xmm4, xmm0
jbe 0x1002f4c2
movaps xmm0, xmm2
mulss xmm5, xmm0
divss xmm5, xmm4
movaps xmm4, xmm2
jmp 0x1002f507
neg eax
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movaps xmm0, xmm1
mulss xmm4, xmm0
divss xmm4, xmm5
movaps xmm5, xmm1
jmp 0x1002f507
comiss xmm4, xmm0
jbe 0x1002f4f0
movaps xmm0, xmm2
mulss xmm4, xmm0
divss xmm4, xmm5
movaps xmm5, xmm2
jmp 0x1002f507
neg eax
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movaps xmm0, xmm1
mulss xmm5, xmm0
divss xmm5, xmm4
movaps xmm4, xmm1
divss xmm5, xmm2
mov esi, dword [0x1004d048]
mov edi, dword [0x1004d044]
add esi, 0xfffffff2
add edi, 0xfffffff2
divss xmm4, xmm2
mulss xmm5, dword [0x10055028]
mulss xmm4, dword [0x10055028]
push dword [esp + 0x38]
cvttss2si ecx, xmm5
push 0x1c
push 0x1c
add esi, ecx
cvttss2si ecx, xmm4
add edi, ecx
push edi
push esi
call fcn.10018d36
movd xmm1, dword [esp + 0x1c]
xorps xmm0, xmm0
movd xmm2, dword [esp + 0x20]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm2, xmm2
movss dword [esp + 0x64], xmm1
comiss xmm1, xmm2
movss dword [esp + 0x68], xmm0
jbe 0x1002f5b0
cvtps2pd xmm0, xmm1
movsd qword [esp + 0x58], xmm0
fld qword [esp + 0x58]
cvtps2pd xmm0, xmm2
movsd qword [esp + 0x58], xmm0
fld qword [esp + 0x58]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIfmod
movd xmm1, dword [esp + 0x20]
cvtdq2ps xmm1, xmm1
fstp dword [esp + 0x5c]
movss xmm0, dword [esp + 0x5c]
movss dword [esp + 0x64], xmm1
movss dword [esp + 0x68], xmm0
push dword [0x10055070]
add esi, 0xfffffffd
push 0x1c
push 2
push edi
push esi
call fcn.10018b5e
movd xmm0, dword [esp + 0x20]
add edi, 0x1c
movss xmm1, dword [esp + 0x64]
cvtdq2ps xmm0, xmm0
push dword [esp + 0x3c]
divss xmm1, xmm0
movd xmm0, edi
mulss xmm1, dword [0x10044288]
cvtdq2ps xmm0, xmm0
cvttss2si eax, xmm1
subss xmm0, xmm1
push eax
push 2
cvttss2si eax, xmm0
push eax
push esi
call fcn.10018b5e
movss xmm1, dword [esp + 0x68]
comiss xmm1, dword [0x100441ac]
jbe 0x1002f64d
movd xmm0, dword [esp + 0x20]
cvtdq2ps xmm0, xmm0
push dword [0x10055088]
divss xmm1, xmm0
mulss xmm1, dword [0x10044288]
cvttss2si eax, xmm1
push eax
lea eax, [edi + 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
push 2
subss xmm0, xmm1
cvttss2si eax, xmm0
push eax
push esi
call fcn.10018b5e
mov eax, dword [esp + 0x60]
add eax, 0x2c
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x60], eax
jne 0x1002f3ec
cmp byte [0x100521c0], 0
je 0x1002f678
mov eax, dword [esp + 0x4c]
push eax
push eax
push ecx
push ecx
call fcn.1002f928
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor ecx, esp
call fcn.1003276a
add esp, 0x68
ret 4