Function at 0x100271d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x1003b040]
xor eax, esp
mov dword [esp + 0x10c], eax
cmp byte [0x1006500c], 0
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0xc]
movq xmm0, qword [eax + 0xc]
mov eax, dword [eax + 0x14]
push edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], ecx
movq qword [esp + 0x30], xmm0
mov dword [esp + 0x2c], eax
je 0x100273c0
mov edx, dword [0x10065008]
lea ecx, [esp + 0xcc]
call fcn.100270c0
cmp dword [eax + 0x14], 0xf
jbe 0x10027239
mov eax, dword [eax]
mov ecx, dword [esi + 0x10]
lea edi, [esi + 0x14]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], 0x2b6277
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
test eax, eax
je 0x100272ba
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push eax
push 1
push 4
push edi
call esi
push dword [esp + 0x1c]
mov ecx, dword [edi]
push ecx
push 0xc
push dword [esp + 0x30]
lea eax, [ecx - 1]
mov dword [edi], eax
call esi
mov ecx, dword [edi]
lea eax, [ecx - 1]
mov dword [edi], eax
mov edi, dword [esp + 0x2c]
push edi
push ecx
push 0x24
push dword [esp + 0x3c]
call esi
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov esi, dword [esp + 0x50]
add esp, 0x34
jmp 0x1002735d
mov ecx, 0x3f
xor edx, edx
mov al, byte [edx + str.r_7._2]
xor al, cl
inc ecx
mov byte [esp + edx + 0x48], al
and ecx, 0x800000ff
jns 0x100272de
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x100272c1
mov byte [esp + 0x58], 0
mov ecx, 0x6e
xor edx, edx
mov al, byte [edx + 0x10036e68]
xor al, cl
inc ecx
mov byte [esp + edx + 0x84], al
and ecx, 0x800000ff
jns 0x10027310
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x100272f0
push 0
lea eax, [esp + 0x4c]
mov byte [esp + 0x9c], 0
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xorps xmm0, xmm0
mov dword [esp + 0x94], 0
movups xmmword [esp + 0x84], xmm0
mov byte [esp + 0x98], 0
movups xmmword [esp + 0x48], xmm0
mov byte [esp + 0x58], 0
mov ecx, dword [esp + 0xe0]
cmp ecx, 0xf
jbe 0x1002739b
mov edx, dword [esp + 0xcc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10027391
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10027391
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1002e516
add esp, 8
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0xf
mov byte [esp + 0xcc], 0
mov byte [0x1006500c], 0
cmp byte [0x1006500d], 0
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
je 0x10027572
mov edx, dword [0x10065008]
lea ecx, [esp + 0xe4]
call fcn.100270c0
mov ecx, eax
cmp dword [ecx + 0x14], 0xf
jbe 0x100273ef
mov ecx, dword [ecx]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
push ecx
mov dword [esp + 0x10], 0x2b6272
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
test eax, eax
je 0x1002746c
push eax
push 1
lea ecx, [esi + 0x14]
push 4
push ecx
call edi
push dword [esp + 0x1c]
mov ecx, dword [esi + 0x14]
push ecx
push 0xc
push dword [esp + 0x30]
lea eax, [ecx - 1]
mov dword [esi + 0x14], eax
call edi
push dword [esp + 0x2c]
mov ecx, dword [esi + 0x14]
push ecx
push 0x24
push dword [esp + 0x3c]
lea eax, [ecx - 1]
mov dword [esi + 0x14], eax
call edi
push dword [esp + 0x3c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
jmp 0x1002750f
mov ecx, 0x12
xor edx, edx
mov al, byte [edx + str._bprvmH]
xor al, cl
inc ecx
mov byte [esp + edx + 0x5c], al
and ecx, 0x800000ff
jns 0x10027490
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x10027473
mov byte [esp + 0x6c], 0
mov ecx, 0xa1
xor edx, edx
mov al, byte [edx + 0x10036e80]
xor al, cl
inc ecx
mov byte [esp + edx + 0x9c], al
and ecx, 0x800000ff
jns 0x100274c2
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x100274a2
push 0
lea eax, [esp + 0x60]
mov byte [esp + 0xb4], 0
push eax
lea eax, [esp + 0xa4]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xorps xmm0, xmm0
mov dword [esp + 0xac], 0
movups xmmword [esp + 0x9c], xmm0
mov byte [esp + 0xb0], 0
movups xmmword [esp + 0x5c], xmm0
mov byte [esp + 0x6c], 0
mov ecx, dword [esp + 0xf8]
cmp ecx, 0xf
jbe 0x1002754d
mov edx, dword [esp + 0xe4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10027543
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10027543
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1002e516
add esp, 8
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0xf
mov byte [esp + 0xe4], 0
mov byte [0x1006500d], 0
cmp byte [0x1006500e], 0
je 0x10027791
mov edx, dword [0x10065008]
lea ecx, [esp + 0xfc]
call fcn.100270c0
cmp dword [eax + 0x14], 0xf
jbe 0x10027599
mov eax, dword [eax]
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], 0x2b6272
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
test eax, eax
je 0x1002760f
push eax
push 1
lea eax, [esi + 0x14]
push 4
push eax
call edi
push dword [esp + 0x1c]
push 1
push 0xc
push dword [esp + 0x30]
call edi
push dword [esp + 0x2c]
mov ecx, dword [esi + 0x14]
push ecx
push 0x1c
push dword [esp + 0x3c]
lea eax, [ecx - 1]
mov dword [esi + 0x14], eax
call edi
push dword [esp + 0x3c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
jmp 0x100276c0
mov ecx, 0x5f
xor edx, edx
mov al, byte [edx + 0x10036eac]
xor al, cl
inc ecx
mov byte [esp + edx + 0x70], al
and ecx, 0x800000ff
jns 0x10027633
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x10027616
mov byte [esp + 0x80], 0
mov ecx, 0x69
xor edx, edx
nop dword [eax + eax]
mov al, byte [edx + 0x10036ec4]
xor al, cl
inc ecx
mov byte [esp + edx + 0xb4], al
and ecx, 0x800000ff
jns 0x10027670
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x10027650
push 0
lea eax, [esp + 0x74]
mov byte [esp + 0xcc], 0
push eax
lea eax, [esp + 0xbc]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xorps xmm0, xmm0
mov dword [esp + 0xc4], 0
movups xmmword [esp + 0xb4], xmm0
mov byte [esp + 0xc8], 0
movups xmmword [esp + 0x70], xmm0
mov byte [esp + 0x80], 0
mov ecx, dword [esp + 0x110]
cmp ecx, 0xf
jbe 0x100276fe
mov edx, dword [esp + 0xfc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100276f4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100276f4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1002e516
add esp, 8
xor edx, edx
mov dword [esp + 0x10c], 0
mov dword [esp + 0x110], 0xf
xor edi, edi
mov byte [esp + 0xfc], 0
mov dword [esp + 0xc], edx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [edi + eax]
mov dword [edx + ecx + 0x18], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [edi + eax + 0xc]
mov dword [edx + ecx + 0x14], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [edi + eax + 4]
mov dword [edx + ecx + 0xc], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [edi + eax + 8]
mov dword [edx + ecx + 0x10], eax
mov edx, dword [esi + 4]
mov ecx, dword [esi]
add ecx, dword [esp + 0xc]
mov eax, dword [edi + edx + 0x10]
mov dword [ecx], eax
mov eax, dword [edi + edx + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [edi + edx + 0x18]
add edi, 0x1c
mov edx, dword [esp + 0xc]
add edx, 0x24
mov dword [ecx + 8], eax
mov dword [esp + 0xc], edx
cmp edi, 0x1ab3f00
jl 0x10027724
mov byte [0x1006500e], 0
cmp dword [esi + 0xc], 3
jne 0x100277a2
mov byte [esi + 0x20], 1
mov dword [esi + 0x1c], 1
cmp byte [esi + 0x20], 0
je 0x10028015
cmp dword [esi + 0x1c], 1
jne 0x1002784b
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
movss xmm2, dword [0x100378e8]
movss xmm4, dword [eax]
movss xmm3, dword [eax + 4]
mov eax, dword [esi + 0x10]
movss xmm1, dword [eax]
movaps xmm0, xmm1
addss xmm0, xmm2
comiss xmm0, xmm4
jb 0x10027811
subss xmm1, xmm2
comiss xmm4, xmm1
jb 0x10027811
movss xmm1, dword [eax + 4]
movaps xmm0, xmm1
addss xmm0, xmm2
comiss xmm0, xmm3
jb 0x10027811
subss xmm1, xmm2
comiss xmm3, xmm1
jb 0x10027811
mov dword [esi + 0x1c], 2
jmp 0x1002783a
mov eax, dword [0x102528a4]
inc eax
cmp byte [0x102528a8], 0
mov dword [0x102528a4], eax
je 0x1002782c
mov byte [0x102528a8], 0
cmp eax, 0x96
jne 0x1002784b
mov dword [esi + 0x1c], 0
mov byte [0x102528a8], 1
mov dword [0x102528a4], 0
cmp dword [esi + 0x1c], 2
jne 0x10027e30
mov eax, dword fs:[0x2c]
mov edi, dword [0x10063e08]
mov ecx, dword [eax + edi*4]
mov eax, dword [0x10253108]
cmp eax, dword [ecx + 4]
jle 0x10027894
push 0x10253108
call fcn.1002e5a0
add esp, 4
cmp dword [0x10253108], 0xffffffff
jne 0x10027894
push 0x10253108
call fcn.1002e54f
add esp, 4
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + edi*4]
mov eax, dword [0x102530f0]
cmp eax, dword [ecx + 4]
jle 0x100278cd
push 0x102530f0
call fcn.1002e5a0
add esp, 4
cmp dword [0x102530f0], 0xffffffff
jne 0x100278cd
push 0x102530f0
call fcn.1002e54f
add esp, 4
mov ecx, dword [0x10064b38]
push 0x1025310c
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
mov eax, dword [esi]
movss xmm4, dword [0x100378dc]
movss xmm2, dword [0x10037900]
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
movss xmm5, dword [eax + 8]
subss xmm0, dword [0x1025310c]
subss xmm1, dword [0x10253110]
subss xmm5, dword [0x10253114]
comiss xmm0, xmm4
movss dword [0x102530f8], xmm0
movss dword [0x102530fc], xmm1
movss dword [0x10253100], xmm5
jbe 0x10027940
subss xmm0, xmm2
movss dword [0x102530f8], xmm0
comiss xmm1, xmm4
movaps xmm7, xmm0
movss dword [esp + 0xc], xmm0
jbe 0x10027960
subss xmm1, xmm2
movss dword [esp + 0xc], xmm0
movss dword [0x102530fc], xmm1
movss xmm3, dword [0x10037988]
movaps xmm6, xmm1
comiss xmm3, xmm7
movss dword [esp + 0x14], xmm1
jbe 0x1002798d
movss xmm0, dword [esp + 0xc]
movaps xmm7, xmm1
addss xmm0, xmm2
movss dword [0x102530f8], xmm0
jmp 0x10027993
movss xmm7, dword [esp + 0x14]
comiss xmm3, xmm6
jbe 0x100279a7
movaps xmm1, xmm7
addss xmm1, xmm2
movss dword [0x102530fc], xmm1
movss xmm6, dword [0x10037718]
mulss xmm0, xmm6
mulss xmm1, xmm6
addss xmm0, dword [0x1025310c]
mulss xmm5, xmm6
addss xmm1, dword [0x10253110]
comiss xmm0, xmm4
addss xmm5, dword [0x10253114]
movss dword [ebp + 0x10], xmm0
movss dword [ebp + 0x14], xmm1
movss dword [ebp + 0x18], xmm5
jbe 0x100279f0
subss xmm0, xmm2
movss dword [ebp + 0x10], xmm0
comiss xmm1, xmm4
movaps xmm5, xmm0
jbe 0x10027a01
subss xmm1, xmm2
movss dword [ebp + 0x14], xmm1
comiss xmm3, xmm5
movaps xmm4, xmm1
jbe 0x10027a12
addss xmm0, xmm2
movss dword [ebp + 0x10], xmm0
comiss xmm3, xmm4
jbe 0x10027a20
addss xmm1, xmm2
movss dword [ebp + 0x14], xmm1
mov ecx, dword [0x10064b38]
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [esi + 0x10]
xorps xmm4, xmm4
movss xmm1, dword [eax]
movss xmm0, dword [eax + 4]
movss xmm2, dword [ecx]
movss xmm3, dword [ecx + 8]
subss xmm2, xmm1
subss xmm3, dword [eax + 8]
movss dword [esp + 0x28], xmm1
movss xmm1, dword [ecx + 4]
subss xmm1, xmm0
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x10], xmm2
movss dword [esp + 8], xmm3
cvtps2pd xmm5, xmm2
cvtps2pd xmm0, xmm1
movss dword [esp + 0xc], xmm1
ucomisd xmm0, xmm4
lahf
test ah, 0x44
jp 0x10027aa3
ucomisd xmm5, xmm4
lahf
test ah, 0x44
jp 0x10027aa3
xorps xmm0, xmm0
jmp 0x10027ad6
movaps xmm1, xmm5
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10037838]
xorps xmm4, xmm4
movss xmm1, dword [esp + 0xc]
movss xmm2, dword [esp + 0x10]
movss xmm3, dword [esp + 8]
comisd xmm4, xmm0
jbe 0x10027ad6
addsd xmm0, qword [0x10037848]
mulss xmm1, xmm1
mulss xmm2, xmm2
cvtsd2ss xmm0, xmm0
addss xmm1, xmm2
mulss xmm3, xmm3
movss dword [esp + 0x14], xmm0
xorps xmm0, xmm0
addss xmm1, xmm3
sqrtss xmm0, xmm1
xorps xmm1, xmm1
sqrtss xmm1, xmm0
comiss xmm1, dword [0x10037858]
jbe 0x10027bb2
movss xmm2, dword [0x100378e8]
mov edi, dword [esp + 0x18]
movaps xmm0, xmm2
mulss xmm0, xmm2
movss xmm1, dword [edi + 0x20]
mulss xmm1, xmm1
addss xmm0, xmm1
cvtps2pd xmm1, xmm2
sqrtss xmm0, xmm0
movss dword [esp + 0xc], xmm0
xorps xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10037838]
xorps xmm1, xmm1
comisd xmm1, xmm0
jbe 0x10027b5d
addsd xmm0, qword [0x10037848]
movss xmm2, dword [ebp + 0x14]
xorps xmm1, xmm1
subss xmm2, dword [esp + 0x14]
cvtsd2ss xmm1, xmm0
comiss xmm2, dword [0x100378dc]
movaps xmm3, xmm2
movss dword [esp + 0x10], xmm1
mulss xmm3, dword [0x100376dc]
movss dword [esp + 0x14], xmm2
movss dword [esp + 8], xmm3
ja 0x10027c42
movss xmm0, dword [0x10037988]
comiss xmm0, xmm2
ja 0x10027c42
xorps xmm4, xmm4
jmp 0x10027c9f
comiss xmm1, dword [0x10037854]
jbe 0x10027bc8
movss xmm2, dword [0x100378bc]
jmp 0x10027b17
cvtps2pd xmm0, xmm1
comisd xmm0, xmmword [0x10037818]
jbe 0x10027be2
movss xmm2, dword [0x100378a0]
jmp 0x10027b17
comiss xmm1, dword [0x10037780]
jbe 0x10027bf5
movss xmm2, dword [0x10037874]
jmp 0x10027bfd
movss xmm2, dword [0x10037864]
mov edi, dword [esp + 0x18]
movaps xmm0, xmm2
mulss xmm0, xmm2
movss xmm1, dword [edi + 0x20]
mulss xmm1, xmm1
or dword [edi + 0x24], 0x20000
addss xmm1, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
cvtps2pd xmm1, xmm2
movss dword [esp + 0xc], xmm0
ucomisd xmm1, xmm4
lahf
test ah, 0x44
jp 0x10027b3c
xorps xmm0, xmm0
jmp 0x10027b5d
xorps xmm1, xmm1
comiss xmm1, xmm3
jbe 0x10027c57
xorps xmm3, xmmword [0x10037a10]
movss dword [esp + 8], xmm3
fld dword [esp + 8]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm2, dword [esp + 0x18]
xorps xmm4, xmm4
movss xmm1, dword [esp + 0x14]
add esp, 4
comiss xmm4, xmm2
fstp dword [esp + 8]
movss xmm0, dword [esp + 8]
mulss xmm0, dword [0x10037900]
jbe 0x10027c93
addss xmm2, xmm0
jmp 0x10027c97
subss xmm2, xmm0
movss xmm0, dword [0x10037988]
addss xmm1, xmm2
comiss xmm1, dword [0x100378dc]
movaps xmm3, xmm1
movss dword [esp + 0x10], xmm1
mulss xmm3, dword [0x100376dc]
movss dword [esp + 8], xmm3
ja 0x10027cc8
comiss xmm0, xmm1
jbe 0x10027d14
comiss xmm4, xmm3
jbe 0x10027cda
xorps xmm3, xmmword [0x10037a10]
movss dword [esp + 8], xmm3
fld dword [esp + 8]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm1, dword [esp + 0x14]
xorps xmm0, xmm0
add esp, 4
comiss xmm0, xmm1
fstp dword [esp + 8]
movss xmm0, dword [esp + 8]
mulss xmm0, dword [0x10037900]
jbe 0x10027d10
addss xmm1, xmm0
jmp 0x10027d14
subss xmm1, xmm0
mulss xmm1, dword [0x100376f4]
movaps xmm0, xmm1
call fcn.1002f500
movss xmm3, dword [esp + 0x28]
movaps xmm1, xmm0
movsd xmm2, qword [0x100377b0]
shufps xmm1, xmm0, 1
mulss xmm1, dword [esp + 0xc]
mulss xmm0, dword [esp + 0xc]
movss dword [edi + 0x18], xmm1
cvtps2pd xmm3, xmm3
movss dword [edi + 0x1c], xmm0
mov eax, dword [esi + 0x10]
movss xmm1, dword [eax]
cvtps2pd xmm1, xmm1
movaps xmm0, xmm1
addsd xmm0, xmm2
comisd xmm0, xmm3
jb 0x10027e30
subsd xmm1, xmm2
comisd xmm3, xmm1
jb 0x10027e30
movss xmm1, dword [eax + 4]
movss xmm3, dword [esp + 0x20]
cvtps2pd xmm1, xmm1
cvtps2pd xmm3, xmm3
movaps xmm0, xmm1
addsd xmm0, xmm2
comisd xmm0, xmm3
jb 0x10027e30
subsd xmm1, xmm2
comisd xmm3, xmm1
jb 0x10027e30
mov eax, dword [esp + 0x24]
movss xmm1, dword [eax + 0xec]
movss xmm2, dword [eax + 0xf0]
movss xmm0, dword [eax + 0xf4]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm2, xmm0
movss xmm0, dword [0x1003786c]
comiss xmm0, xmm2
jb 0x10027e30
movss xmm0, dword [0x102530f8]
movss xmm2, dword [0x10037758]
comiss xmm2, xmm0
jbe 0x10027e29
movss xmm1, dword [0x10037960]
comiss xmm0, xmm1
jbe 0x10027e29
movss xmm0, dword [0x102530fc]
comiss xmm2, xmm0
jbe 0x10027e29
comiss xmm0, xmm1
jbe 0x10027e29
mov dword [esi + 0xc], 2
mov byte [esi + 0x20], 0
jmp 0x10027e30
mov dword [esi + 0x1c], 3
cmp dword [esi + 0x1c], 3
jne 0x10028015
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10063e08]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x102530f4]
cmp eax, dword [ecx + 4]
jle 0x10027e79
push 0x102530f4
call fcn.1002e5a0
add esp, 4
cmp dword [0x102530f4], 0xffffffff
jne 0x10027e79
push 0x102530f4
call fcn.1002e54f
add esp, 4
mov ecx, dword [0x10064b38]
push 0x102530e4
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
mov eax, dword [esi]
movss xmm5, dword [0x100378dc]
movss xmm0, dword [0x10037900]
movss xmm3, dword [eax]
subss xmm3, dword [0x102530e4]
movss xmm4, dword [eax + 4]
subss xmm4, dword [0x102530e8]
movss xmm6, dword [eax + 8]
subss xmm6, dword [0x102530ec]
comiss xmm3, xmm5
movss dword [esp + 0xc], xmm3
movss dword [esp + 0x10], xmm4
jbe 0x10027ede
subss xmm3, xmm0
movss dword [esp + 0xc], xmm3
comiss xmm4, xmm5
movaps xmm7, xmm3
movss dword [esp + 8], xmm3
movaps xmm1, xmm3
jbe 0x10027eff
subss xmm4, xmm0
movss dword [esp + 8], xmm3
movss dword [esp + 0x10], xmm4
movss xmm3, dword [0x10037988]
movaps xmm2, xmm4
comiss xmm3, xmm7
movss dword [esp + 0x14], xmm4
movss dword [esp + 0x20], xmm4
jbe 0x10027f36
movss xmm1, dword [esp + 8]
movaps xmm7, xmm4
addss xmm1, xmm0
movss dword [esp + 0x14], xmm4
movss dword [esp + 0xc], xmm1
jmp 0x10027f3c
movss xmm7, dword [esp + 0x20]
comiss xmm3, dword [esp + 0x14]
jbe 0x10027f50
movaps xmm2, xmm7
addss xmm2, xmm0
movss dword [esp + 0x10], xmm2
movss xmm4, dword [0x10037718]
mulss xmm1, xmm4
mulss xmm2, xmm4
addss xmm1, dword [0x102530e4]
mulss xmm6, xmm4
addss xmm2, dword [0x102530e8]
comiss xmm1, xmm5
addss xmm6, dword [0x102530ec]
movss dword [ebp + 0x10], xmm1
movss dword [ebp + 0x14], xmm2
movss dword [ebp + 0x18], xmm6
jbe 0x10027f99
subss xmm1, xmm0
movss dword [ebp + 0x10], xmm1
comiss xmm2, xmm5
movaps xmm6, xmm1
jbe 0x10027faa
subss xmm2, xmm0
movss dword [ebp + 0x14], xmm2
comiss xmm3, xmm6
movaps xmm4, xmm2
jbe 0x10027fbb
addss xmm1, xmm0
movss dword [ebp + 0x10], xmm1
comiss xmm3, xmm4
jbe 0x10027fc9
addss xmm2, xmm0
movss dword [ebp + 0x14], xmm2
mov ecx, dword [0x10064b38]
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
movss xmm0, dword [esp + 0xc]
movss xmm2, dword [0x10037758]
comiss xmm2, xmm0
jbe 0x10028015
movss xmm1, dword [0x10037960]
comiss xmm0, xmm1
jbe 0x10028015
movss xmm0, dword [esp + 0x10]
comiss xmm2, xmm0
jbe 0x10028015
comiss xmm0, xmm1
jbe 0x10028015
mov dword [esi + 0xc], 2
mov byte [esi + 0x20], 0
cmp dword [esi + 0xc], 1
jne 0x10028106
cmp byte [0x10253104], 0
jne 0x10028043
mov byte [esi + 0x20], 0
cmp dword [0x10075f08], 1
jge 0x1002803c
mov dword [esi + 8], 0
mov byte [0x10253104], 1
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [esi + 8]
mov edi, eax
mov edx, dword [esp + 0x1c]
lea esi, [ecx + ecx*2]
mov ecx, dword [edi]
mov edx, dword [edx + 0x10]
mov dword [edx + esi*4], ecx
mov eax, dword [edi + 4]
mov dword [edx + esi*4 + 4], eax
mov eax, dword [edi + 8]
mov dword [edx + esi*4 + 8], eax
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 8]
mov ecx, dword [esi]
lea edx, [eax + eax*8]
mov eax, dword [edi + 0x24]
mov dword [ecx + edx*4 + 0x18], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi]
lea edx, [eax + eax*8]
mov eax, dword [edi + 0x20]
mov dword [ecx + edx*4 + 0x14], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi]
lea edx, [eax + eax*8]
mov eax, dword [edi + 0x1c]
mov dword [ecx + edx*4 + 0x10], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi]
lea edx, [eax + eax*8]
mov eax, dword [edi + 0x18]
mov dword [ecx + edx*4 + 0xc], eax
mov eax, dword [esi + 8]
movss xmm0, dword [ebp + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [esi]
movss dword [eax + ecx*4], xmm0
movss xmm0, dword [ebp + 0x14]
movss dword [eax + ecx*4 + 4], xmm0
movss xmm0, dword [ebp + 0x18]
movss dword [eax + ecx*4 + 8], xmm0
mov eax, dword [esi + 8]
mov ecx, dword [esi]
lea edx, [eax + eax*8]
mov eax, dword [edi + 0x30]
mov dword [ecx + edx*4 + 0x20], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi]
lea edx, [eax + eax*8]
mov eax, dword [edi + 0x2c]
mov dword [ecx + edx*4 + 0x1c], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x14], eax
inc eax
mov dword [esi + 8], eax
jmp 0x10028111
mov edi, dword [esp + 0x18]
mov byte [0x10253104], 0
cmp dword [esi + 0xc], 2
jne 0x10028538
cmp byte [0x10253105], 0
jne 0x1002813a
mov dword [esi + 8], 0
xor ecx, ecx
mov byte [esi + 0x20], 0
mov byte [0x10253105], 1
jmp 0x1002813d
mov ecx, dword [esi + 8]
mov eax, dword [0x10075f08]
test eax, eax
jle 0x10028151
cmp ecx, eax
jl 0x10028151
mov dword [esi + 0xc], 1
cmp ecx, dword [esi + 0x14]
jl 0x10028166
xor eax, eax
mov edx, 3
cmp byte [esi + 0x18], al
cmovne eax, edx
mov dword [esi + 0xc], eax
mov eax, dword [esi]
lea ecx, [ecx + ecx*8]
mov eax, dword [eax + ecx*4 + 0x18]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 8]
lea ecx, [eax + eax*8]
mov eax, dword [esi]
mov eax, dword [eax + ecx*4 + 0x14]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 8]
lea ecx, [eax + eax*8]
mov eax, dword [esi]
movss xmm3, dword [eax + ecx*4 + 0x10]
movss dword [edi + 0x1c], xmm3
mov eax, dword [esi + 8]
lea ecx, [eax + eax*8]
mov eax, dword [esi]
movss xmm2, dword [eax + ecx*4 + 0xc]
movss dword [edi + 0x18], xmm2
movaps xmm1, xmm2
mov eax, dword [esi + 8]
mulss xmm1, xmm2
lea ecx, [eax + eax*8]
mov eax, dword [esi]
movss xmm5, dword [eax + ecx*4]
movss dword [ebp + 0x10], xmm5
movss xmm4, dword [eax + ecx*4 + 4]
movss dword [ebp + 0x14], xmm4
movss xmm0, dword [eax + ecx*4 + 8]
movss dword [ebp + 0x18], xmm0
movss dword [esp + 0x20], xmm0
movaps xmm0, xmm3
mulss xmm0, xmm3
mov eax, dword [eax + ecx*4 + 0x20]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 8]
addss xmm1, xmm0
movss dword [esp + 0x14], xmm5
xorps xmm0, xmm0
movss dword [esp + 0x18], xmm4
lea ecx, [eax + eax*8]
mov eax, dword [esi]
sqrtss xmm0, xmm1
mov eax, dword [eax + ecx*4 + 0x1c]
mov dword [edi + 0x2c], eax
cvtps2pd xmm1, xmm2
movss dword [esp + 0x28], xmm0
movaps xmm0, xmm5
cvtps2pd xmm2, xmm3
unpcklps xmm0, xmm4
movq qword [ebp + 0x10], xmm0
movq qword [esp + 0x3c], xmm0
xorps xmm0, xmm0
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x10028244
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x1002826b
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10037838]
xorps xmm1, xmm1
movss xmm4, dword [esp + 0x18]
comisd xmm1, xmm0
jbe 0x1002826b
addsd xmm0, qword [0x10037848]
movss xmm2, dword [0x10075f04]
movss xmm5, dword [0x100378dc]
subss xmm4, xmm2
comiss xmm2, xmm5
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x18], xmm4
movss dword [esp + 0x1c], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [0x100376dc]
movss dword [ebp + 0x14], xmm4
movss dword [esp + 8], xmm0
ja 0x100282c1
movss xmm3, dword [0x10037988]
comiss xmm3, xmm2
ja 0x100282c1
movss xmm1, dword [0x10037900]
jmp 0x1002832c
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x100282d6
xorps xmm0, xmmword [0x10037a10]
movss dword [esp + 8], xmm0
fld dword [esp + 8]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm2, dword [0x10075f04]
xorps xmm0, xmm0
movss xmm1, dword [0x10037900]
add esp, 4
movss xmm4, dword [esp + 0x18]
movss xmm3, dword [0x10037988]
movss xmm5, dword [0x100378dc]
comiss xmm0, xmm2
fstp dword [esp + 8]
movss xmm0, dword [esp + 8]
mulss xmm0, xmm1
jbe 0x10028328
addss xmm2, xmm0
jmp 0x1002832c
subss xmm2, xmm0
comiss xmm2, dword [0x100378b0]
ja 0x10028342
movss xmm0, dword [0x10037980]
comiss xmm0, xmm2
jbe 0x1002835a
cmp byte [0x10075f02], 0
je 0x1002835a
movss xmm0, dword [0x100378ac]
movss dword [ebp + 0x10], xmm0
jmp 0x10028360
movss xmm0, dword [esp + 0x14]
cmp byte [0x10075f01], 0
je 0x1002838c
movq xmm0, qword [esp + 0x30]
mov eax, dword [esp + 0x2c]
movq qword [ebp + 0x10], xmm0
movss xmm4, dword [ebp + 0x14]
movss xmm0, dword [ebp + 0x10]
mov dword [ebp + 0x18], eax
movss xmm2, dword [ebp + 0x18]
jmp 0x10028392
movss xmm2, dword [esp + 0x20]
comiss xmm0, xmm5
jbe 0x100283a0
subss xmm0, xmm1
movss dword [ebp + 0x10], xmm0
comiss xmm3, xmm0
jbe 0x100283ae
addss xmm0, xmm1
movss dword [ebp + 0x10], xmm0
comiss xmm4, xmm5
jbe 0x100283bc
subss xmm4, xmm1
movss dword [ebp + 0x14], xmm4
comiss xmm3, xmm4
jbe 0x100283ca
addss xmm4, xmm1
movss dword [ebp + 0x14], xmm4
comiss xmm2, xmm5
jbe 0x100283d8
subss xmm2, xmm1
movss dword [ebp + 0x18], xmm2
comiss xmm3, xmm2
jbe 0x100283e6
addss xmm2, xmm1
movss dword [ebp + 0x18], xmm2
mov ecx, dword [0x10064b38]
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
movss xmm2, dword [ebp + 0x14]
subss xmm2, dword [esp + 0x40]
comiss xmm2, dword [0x100378dc]
movaps xmm0, xmm2
movss dword [esp + 0x2c], xmm2
mulss xmm0, dword [0x100376dc]
movss dword [esp + 8], xmm0
ja 0x10028434
movss xmm3, dword [0x10037988]
comiss xmm3, xmm2
ja 0x10028434
xorps xmm4, xmm4
jmp 0x1002848b
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x10028449
xorps xmm0, xmmword [0x10037a10]
movss dword [esp + 8], xmm0
fld dword [esp + 8]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm2, dword [esp + 0x30]
xorps xmm4, xmm4
movss xmm3, dword [0x10037988]
add esp, 4
comiss xmm4, xmm2
fstp dword [esp + 8]
movss xmm0, dword [esp + 8]
mulss xmm0, dword [0x10037900]
jbe 0x10028487
addss xmm2, xmm0
jmp 0x1002848b
subss xmm2, xmm0
movss xmm1, dword [esp + 0x1c]
addss xmm1, xmm2
comiss xmm1, dword [0x100378dc]
movaps xmm0, xmm1
movss dword [esp + 0x1c], xmm1
mulss xmm0, dword [0x100376dc]
movss dword [esp + 8], xmm0
ja 0x100284ba
comiss xmm3, xmm1
jbe 0x10028506
comiss xmm4, xmm0
jbe 0x100284cc
xorps xmm0, xmmword [0x10037a10]
movss dword [esp + 8], xmm0
fld dword [esp + 8]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm1, dword [esp + 0x20]
xorps xmm0, xmm0
add esp, 4
comiss xmm0, xmm1
fstp dword [esp + 8]
movss xmm0, dword [esp + 8]
mulss xmm0, dword [0x10037900]
jbe 0x10028502
addss xmm1, xmm0
jmp 0x10028506
subss xmm1, xmm0
mulss xmm1, dword [0x100376f4]
movaps xmm0, xmm1
call fcn.1002f500
movaps xmm1, xmm0
shufps xmm1, xmm0, 1
mulss xmm1, dword [esp + 0x28]
mulss xmm0, dword [esp + 0x28]
movss dword [edi + 0x18], xmm1
movss dword [edi + 0x1c], xmm0
inc dword [esi + 8]
jmp 0x1002853f
mov byte [0x10253105], 0
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x1002855d
cmp byte [0x10253106], al
jne 0x1002856e
mov dword [esi + 8], eax
mov byte [esi + 0x20], al
mov byte [0x10253106], 1
jmp 0x1002856e
mov byte [0x10253106], 0
cmp eax, 2
je 0x10028578
cmp eax, 1
je 0x10028578
mov dword [0x10075f08], 0
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
call fcn.1002e1ee
mov esp, ebp
pop ebp
ret 0x14