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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x158
mov eax, dword [0x1003d00c]
xor eax, esp
mov dword [esp + 0x154], eax
cmp byte [0x100c24ec], 0
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], eax
movq xmm0, qword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x28], ecx
movq qword [esp + 0x38], xmm0
mov dword [esp + 0x34], eax
je 0x100273b0
mov edx, dword [0x100c24e8]
lea ecx, [esp + 0x114]
call fcn.100270b0
cmp dword [eax + 0x14], 0x10
jb 0x10027225
mov eax, dword [eax]
mov ecx, dword [edi + 0x10]
lea esi, [edi + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x1c], 0x2b6277
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
test eax, eax
je 0x100272a8
push eax
push 1
push 4
push esi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
call esi
push dword [esp + 0x28]
mov ecx, dword [edi + 0x14]
push ecx
push 0xc
push dword [esp + 0x38]
lea eax, [ecx - 1]
mov dword [edi + 0x14], eax
call esi
push dword [esp + 0x38]
mov ecx, dword [edi + 0x14]
push ecx
push 0x24
push dword [esp + 0x58]
lea eax, [ecx - 1]
mov dword [edi + 0x14], eax
call esi
push dword [esp + 0x48]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
jmp 0x1002734d
mov ecx, 0x3f
xor edx, edx
nop
mov al, byte [edx + str.r_7._2]
xor al, cl
inc ecx
mov byte [esp + edx + 0x50], al
and ecx, 0x800000ff
jns 0x100272cd
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x100272b0
mov byte [esp + 0x60], 0
mov ecx, 0x6e
xor edx, edx
nop
mov al, byte [edx + 0x10037c38]
xor al, cl
inc ecx
mov byte [esp + edx + 0xb0], al
and ecx, 0x800000ff
jns 0x10027300
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x100272e0
push 0
lea eax, [esp + 0x54]
mov byte [esp + 0xc8], 0
push eax
lea eax, [esp + 0xb8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xorps xmm0, xmm0
mov dword [esp + 0xc0], 0
movaps xmmword [esp + 0xb0], xmm0
mov byte [esp + 0xc4], 0
movaps xmmword [esp + 0x50], xmm0
mov byte [esp + 0x60], 0
mov ecx, dword [esp + 0x128]
cmp ecx, 0x10
jb 0x1002738b
mov edx, dword [esp + 0x114]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10027381
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10027381
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1002e4f6
add esp, 8
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0xf
mov byte [esp + 0x114], 0
mov byte [0x100c24ec], 0
cmp byte [0x100c24ed], 0
lea eax, [edi + 0x10]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov dword [esp + 0x1c], eax
je 0x10027575
mov edx, dword [0x100c24e8]
lea ecx, [esp + 0x12c]
call fcn.100270b0
cmp dword [eax + 0x14], 0x10
jb 0x100273e4
mov eax, dword [eax]
lea ecx, [edi + 0x10]
mov dword [esp + 0x14], 0x2b6272
mov dword [esp + 0x1c], ecx
mov ecx, dword [ecx]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
test eax, eax
je 0x10027467
push eax
push 1
lea edx, [edi + 0x14]
push 4
push edx
call esi
push dword [esp + 0x28]
mov ecx, dword [edi + 0x14]
push ecx
push 0xc
push dword [esp + 0x48]
lea eax, [ecx - 1]
mov dword [edi + 0x14], eax
call esi
push dword [esp + 0x38]
mov ecx, dword [edi + 0x14]
push ecx
push 0x24
push dword [esp + 0x50]
lea eax, [ecx - 1]
mov dword [edi + 0x14], eax
call esi
push dword [esp + 0x48]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
jmp 0x10027512
mov ecx, 0x12
xor edx, edx
nop
mov al, byte [edx + str._bprvmH]
xor al, cl
inc ecx
mov byte [esp + edx + 0x70], al
and ecx, 0x800000ff
jns 0x1002748d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x10027470
mov byte [esp + 0x80], 0
mov ecx, 0xa1
xor edx, edx
mov al, byte [edx + 0x10037c80]
xor al, cl
inc ecx
mov byte [esp + edx + 0xd0], 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 + 0x74]
mov byte [esp + 0xe8], 0
push eax
lea eax, [esp + 0xd8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xorps xmm0, xmm0
mov dword [esp + 0xe0], 0
movaps xmmword [esp + 0xd0], xmm0
mov byte [esp + 0xe4], 0
movaps xmmword [esp + 0x70], xmm0
mov byte [esp + 0x80], 0
mov ecx, dword [esp + 0x140]
cmp ecx, 0x10
jb 0x10027550
mov edx, dword [esp + 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10027546
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10027546
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1002e4f6
add esp, 8
mov dword [esp + 0x13c], 0
mov dword [esp + 0x140], 0xf
mov byte [esp + 0x12c], 0
mov byte [0x100c24ed], 0
cmp byte [0x100c24ee], 0
je 0x1002779e
mov edx, dword [0x100c24e8]
lea ecx, [esp + 0x144]
call fcn.100270b0
cmp dword [eax + 0x14], 0x10
jb 0x100275a1
mov eax, dword [eax]
lea ecx, [edi + 0x10]
jmp 0x100275a5
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x1c], 0x2b6272
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
mov dword [esp + 0x1c], 0
add esp, 8
test esi, esi
je 0x1002761b
push esi
push 1
lea edx, [edi + 0x14]
push 4
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push esi
push 1
push 0xc
push dword [esp + 0x40]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [edi + 0x14]
push esi
push ecx
push 0x1c
push dword [esp + 0x58]
lea eax, [ecx - 1]
mov dword [edi + 0x14], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
jmp 0x100276cd
mov ecx, 0x5f
xor edx, edx
mov al, byte [edx + 0x10037cb0]
xor al, cl
inc ecx
mov byte [esp + edx + 0x90], al
and ecx, 0x800000ff
jns 0x10027642
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x10027622
mov byte [esp + 0xa0], 0
mov ecx, 0x69
xor edx, edx
mov al, byte [edx + 0x10037c98]
xor al, cl
inc ecx
mov byte [esp + edx + 0xf0], al
and ecx, 0x800000ff
jns 0x10027677
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x10027657
push 0
lea eax, [esp + 0x94]
mov byte [esp + 0x108], 0
push eax
lea eax, [esp + 0xf8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xorps xmm0, xmm0
mov dword [esp + 0x100], 0
movaps xmmword [esp + 0xf0], xmm0
mov byte [esp + 0x104], 0
movaps xmmword [esp + 0x90], xmm0
mov byte [esp + 0xa0], 0
mov ecx, dword [esp + 0x158]
cmp ecx, 0x10
jb 0x1002770b
mov edx, dword [esp + 0x144]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10027701
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10027701
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1002e4f6
add esp, 8
xor edx, edx
mov dword [esp + 0x154], 0
mov dword [esp + 0x158], 0xf
xor esi, esi
mov byte [esp + 0x144], 0
mov dword [esp + 0x18], edx
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [esi + eax]
mov dword [edx + ecx + 0x18], eax
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [esi + eax + 0xc]
mov dword [edx + ecx + 0x14], eax
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [esi + eax + 4]
mov dword [edx + ecx + 0xc], eax
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [esi + eax + 8]
mov dword [edx + ecx + 0x10], eax
mov edx, dword [edi + 4]
mov ecx, dword [edi]
add ecx, dword [esp + 0x18]
mov eax, dword [esi + edx + 0x10]
mov dword [ecx], eax
mov eax, dword [esi + edx + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esi + edx + 0x18]
add esi, 0x1c
mov edx, dword [esp + 0x18]
add edx, 0x24
mov dword [ecx + 8], eax
mov dword [esp + 0x18], edx
cmp esi, 0x1ab3f00
jl 0x10027731
mov byte [0x100c24ee], 0
cmp dword [edi + 0xc], 3
jne 0x100277af
mov byte [edi + 0x20], 1
mov dword [edi + 0x1c], 1
cmp byte [edi + 0x20], 0
je 0x10027fd9
cmp dword [edi + 0x1c], 1
jne 0x10027858
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
movss xmm2, dword [0x10038bd8]
movss xmm4, dword [eax]
movss xmm3, dword [eax + 4]
mov eax, dword [edi + 0x10]
movss xmm1, dword [eax]
movaps xmm0, xmm1
addss xmm0, xmm2
comiss xmm0, xmm4
jb 0x1002781e
subss xmm1, xmm2
comiss xmm4, xmm1
jb 0x1002781e
movss xmm1, dword [eax + 4]
movaps xmm0, xmm1
addss xmm0, xmm2
comiss xmm0, xmm3
jb 0x1002781e
subss xmm1, xmm2
comiss xmm3, xmm1
jb 0x1002781e
mov dword [edi + 0x1c], 2
jmp 0x10027847
mov eax, dword [0x102b08f4]
inc eax
cmp byte [0x102b08f8], 0
mov dword [0x102b08f4], eax
je 0x10027839
mov byte [0x102b08f8], 0
cmp eax, 0x96
jne 0x10027858
mov dword [edi + 0x1c], 0
mov byte [0x102b08f8], 1
mov dword [0x102b08f4], 0
cmp dword [edi + 0x1c], 2
mov esi, dword [0x100c1ed4]
jne 0x10027e45
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + esi*4]
mov eax, dword [0x102b0d70]
cmp eax, dword [ecx + 4]
jle 0x100278a1
push 0x102b0d70
call fcn.1002e580
add esp, 4
cmp dword [0x102b0d70], 0xffffffff
jne 0x100278a1
push 0x102b0d70
call fcn.1002e52f
add esp, 4
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + esi*4]
mov eax, dword [0x102b0d58]
cmp eax, dword [ecx + 4]
jle 0x100278da
push 0x102b0d58
call fcn.1002e580
add esp, 4
cmp dword [0x102b0d58], 0xffffffff
jne 0x100278da
push 0x102b0d58
call fcn.1002e52f
add esp, 4
mov ecx, dword [0x100c21e0]
push 0x102b0d74
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
mov eax, dword [edi]
movss xmm6, dword [0x102b0d74]
movss xmm7, dword [0x102b0d78]
movss xmm4, dword [0x10038bbc]
movss xmm2, dword [eax]
movss xmm0, dword [eax + 4]
subss xmm2, xmm6
movss xmm5, dword [eax + 8]
subss xmm0, xmm7
subss xmm5, dword [0x102b0d7c]
movss xmm1, dword [0x10038bfc]
comiss xmm2, xmm4
movss dword [0x102b0d60], xmm2
movss dword [0x102b0d64], xmm0
movss dword [0x102b0d68], xmm5
jbe 0x10027955
subss xmm2, xmm1
movss dword [0x102b0d60], xmm2
comiss xmm0, xmm4
jbe 0x10027966
subss xmm0, xmm1
movss dword [0x102b0d64], xmm0
movss xmm3, dword [0x10038c84]
comiss xmm3, xmm2
jbe 0x1002797f
addss xmm2, xmm1
movss dword [0x102b0d60], xmm2
comiss xmm3, xmm0
jbe 0x10027990
addss xmm0, xmm1
movss dword [0x102b0d64], xmm0
mulss xmm2, dword [0x100389ac]
mulss xmm0, dword [0x100389ac]
mulss xmm5, dword [0x100389ac]
addss xmm2, xmm6
addss xmm0, xmm7
addss xmm5, dword [0x102b0d7c]
comiss xmm2, xmm4
movss dword [ebp + 0x10], xmm2
movss dword [ebp + 0x14], xmm0
movss dword [ebp + 0x18], xmm5
jbe 0x100279d5
subss xmm2, xmm1
movss dword [ebp + 0x10], xmm2
comiss xmm0, xmm4
jbe 0x100279e3
subss xmm0, xmm1
movss dword [ebp + 0x14], xmm0
comiss xmm3, xmm2
jbe 0x100279f1
addss xmm2, xmm1
movss dword [ebp + 0x10], xmm2
comiss xmm3, xmm0
jbe 0x100279ff
addss xmm0, xmm1
movss dword [ebp + 0x14], xmm0
mov ecx, dword [0x100c21e0]
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [edi + 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 + 0x2c], xmm1
movss xmm1, dword [ecx + 4]
subss xmm1, xmm0
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x1c], xmm2
movss dword [esp + 0x14], xmm3
cvtps2pd xmm5, xmm2
cvtps2pd xmm0, xmm1
movss dword [esp + 0x18], xmm1
ucomisd xmm0, xmm4
lahf
test ah, 0x44
jp 0x10027a82
ucomisd xmm5, xmm4
lahf
test ah, 0x44
jp 0x10027a82
xorps xmm0, xmm0
jmp 0x10027ab5
movaps xmm1, xmm5
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10038ae8]
xorps xmm4, xmm4
movss xmm1, dword [esp + 0x18]
movss xmm2, dword [esp + 0x1c]
movss xmm3, dword [esp + 0x14]
comisd xmm4, xmm0
jbe 0x10027ab5
addsd xmm0, qword [0x10038b00]
mulss xmm1, xmm1
mulss xmm2, xmm2
cvtsd2ss xmm0, xmm0
addss xmm1, xmm2
mulss xmm3, xmm3
movss dword [esp + 0x24], xmm0
xorps xmm0, xmm0
addss xmm1, xmm3
sqrtss xmm0, xmm1
xorps xmm1, xmm1
sqrtss xmm1, xmm0
comiss xmm1, dword [0x10038b14]
jbe 0x10027b10
mov eax, dword [esp + 0x20]
movss xmm2, dword [0x10038bd8]
movaps xmm0, xmm2
mulss xmm0, xmm2
movss xmm1, dword [eax + 0x20]
mulss xmm1, xmm1
addss xmm0, xmm1
sqrtss xmm0, xmm0
jmp 0x10027b5b
comiss xmm1, dword [0x10038b10]
jbe 0x10027b23
movss xmm2, dword [0x10038b78]
jmp 0x10027b3c
cvtps2pd xmm0, xmm1
comisd xmm0, xmmword [0x10038ac8]
jbe 0x10027bdd
movss xmm2, dword [0x10038b58]
mov eax, dword [esp + 0x20]
movaps xmm0, xmm2
mulss xmm0, xmm2
movss xmm1, dword [eax + 0x20]
mulss xmm1, xmm1
addss xmm1, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
lea esi, [eax + 0x18]
movss dword [esp + 0x18], xmm0
movss dword [esi], xmm2
cvtps2pd xmm1, xmm2
xorps xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10038ae8]
xorps xmm1, xmm1
comisd xmm1, xmm0
jbe 0x10027b8c
addsd xmm0, qword [0x10038b00]
movss xmm2, dword [ebp + 0x14]
xorps xmm1, xmm1
subss xmm2, dword [esp + 0x24]
cvtsd2ss xmm1, xmm0
comiss xmm2, dword [0x10038bbc]
movaps xmm3, xmm2
movss dword [esp + 0x1c], xmm1
mulss xmm3, dword [0x10038974]
movss dword [esp + 0x24], xmm2
movss dword [esp + 0x14], xmm3
ja 0x10027c46
movss xmm0, dword [0x10038c84]
comiss xmm0, xmm2
ja 0x10027c46
xorps xmm3, xmm3
jmp 0x10027ca7
comiss xmm1, dword [0x10038a2c]
mov eax, dword [esp + 0x20]
lea esi, [eax + 0x18]
mov ecx, esi
jbe 0x10027bf9
movss xmm2, dword [0x10038b38]
jmp 0x10027c01
movss xmm2, dword [0x10038b2c]
movaps xmm0, xmm2
movss dword [ecx], xmm0
movss xmm1, dword [eax + 0x20]
mulss xmm0, xmm2
or dword [eax + 0x24], 0x20000
mulss xmm1, xmm1
addss xmm1, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
cvtps2pd xmm1, xmm2
movss dword [esp + 0x18], xmm0
ucomisd xmm1, xmm4
lahf
test ah, 0x44
jp 0x10027b6b
xorps xmm0, xmm0
jmp 0x10027b8c
xorps xmm1, xmm1
comiss xmm1, xmm3
jbe 0x10027c5f
movaps xmm0, xmm2
mulss xmm0, dword [0x10038c50]
movss dword [esp + 0x14], xmm0
fld dword [esp + 0x14]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm2, dword [esp + 0x28]
xorps xmm3, xmm3
movss xmm1, dword [esp + 0x20]
add esp, 4
comiss xmm3, xmm2
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x10038bfc]
jbe 0x10027c9b
addss xmm2, xmm0
jmp 0x10027c9f
subss xmm2, xmm0
movss xmm0, dword [0x10038c84]
addss xmm1, xmm2
comiss xmm1, dword [0x10038bbc]
movaps xmm2, xmm1
movss dword [esp + 0x1c], xmm1
mulss xmm2, dword [0x10038974]
movss dword [esp + 0x14], xmm2
ja 0x10027cd0
comiss xmm0, xmm1
jbe 0x10027d20
comiss xmm3, xmm2
jbe 0x10027ce6
movaps xmm0, xmm1
mulss xmm0, dword [0x10038c50]
movss dword [esp + 0x14], xmm0
fld dword [esp + 0x14]
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 + 0x14]
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x10038bfc]
jbe 0x10027d1c
addss xmm1, xmm0
jmp 0x10027d20
subss xmm1, xmm0
mulss xmm1, dword [0x10038988]
movaps xmm0, xmm1
call fcn.1002f370
mov eax, dword [esp + 0x20]
movaps xmm1, xmm0
movss xmm3, dword [esp + 0x2c]
movsd xmm2, qword [0x10038a70]
shufps xmm1, xmm0, 1
mulss xmm1, dword [esp + 0x18]
mulss xmm0, dword [esp + 0x18]
movss dword [esi], xmm1
cvtps2pd xmm3, xmm3
movss dword [eax + 0x1c], xmm0
mov eax, dword [edi + 0x10]
movss xmm1, dword [eax]
cvtps2pd xmm1, xmm1
movaps xmm0, xmm1
addsd xmm0, xmm2
comisd xmm0, xmm3
jb 0x10027e3f
subsd xmm1, xmm2
comisd xmm3, xmm1
jb 0x10027e3f
movss xmm1, dword [eax + 4]
movss xmm3, dword [esp + 0x30]
cvtps2pd xmm1, xmm1
cvtps2pd xmm3, xmm3
movaps xmm0, xmm1
addsd xmm0, xmm2
comisd xmm0, xmm3
jb 0x10027e3f
subsd xmm1, xmm2
comisd xmm3, xmm1
jb 0x10027e3f
mov eax, dword [esp + 0x28]
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 [0x10038b34]
comiss xmm0, xmm2
jb 0x10027e3f
movss xmm0, dword [0x102b0d60]
movss xmm2, dword [0x100389f4]
comiss xmm2, xmm0
jbe 0x10027e38
movss xmm1, dword [0x10038c58]
comiss xmm0, xmm1
jbe 0x10027e38
movss xmm0, dword [0x102b0d64]
comiss xmm2, xmm0
jbe 0x10027e38
comiss xmm0, xmm1
jbe 0x10027e38
mov dword [edi + 0xc], 2
mov byte [edi + 0x20], 0
jmp 0x10027e3f
mov dword [edi + 0x1c], 3
mov esi, dword [0x100c1ed4]
cmp dword [edi + 0x1c], 3
jne 0x10027fd9
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + esi*4]
mov eax, dword [0x102b0d5c]
cmp eax, dword [ecx + 4]
jle 0x10027e88
push 0x102b0d5c
call fcn.1002e580
add esp, 4
cmp dword [0x102b0d5c], 0xffffffff
jne 0x10027e88
push 0x102b0d5c
call fcn.1002e52f
add esp, 4
mov ecx, dword [0x100c21e0]
push 0x102b0d4c
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
mov eax, dword [edi]
movss xmm6, dword [0x102b0d4c]
movss xmm4, dword [0x10038bbc]
movss xmm7, dword [0x102b0d50]
movss xmm1, dword [eax]
movss xmm0, dword [eax + 4]
subss xmm1, xmm6
movss xmm5, dword [eax + 8]
subss xmm0, xmm7
subss xmm5, dword [0x102b0d54]
movss xmm2, dword [0x10038bfc]
comiss xmm1, xmm4
jbe 0x10027ee3
subss xmm1, xmm2
comiss xmm0, xmm4
jbe 0x10027eec
subss xmm0, xmm2
movss xmm3, dword [0x10038c84]
comiss xmm3, xmm1
movss dword [esp + 0x18], xmm1
jbe 0x10027f09
addss xmm1, xmm2
movss dword [esp + 0x18], xmm1
comiss xmm3, xmm0
movss dword [esp + 0x1c], xmm0
jbe 0x10027f1e
addss xmm0, xmm2
movss dword [esp + 0x1c], xmm0
mulss xmm1, dword [0x100389ac]
mulss xmm0, dword [0x100389ac]
mulss xmm5, dword [0x100389ac]
addss xmm1, xmm6
addss xmm0, xmm7
addss xmm5, dword [0x102b0d54]
comiss xmm1, xmm4
movss dword [ebp + 0x10], xmm1
movss dword [ebp + 0x14], xmm0
movss dword [ebp + 0x18], xmm5
jbe 0x10027f63
subss xmm1, xmm2
movss dword [ebp + 0x10], xmm1
comiss xmm0, xmm4
jbe 0x10027f71
subss xmm0, xmm2
movss dword [ebp + 0x14], xmm0
comiss xmm3, xmm1
jbe 0x10027f7f
addss xmm1, xmm2
movss dword [ebp + 0x10], xmm1
comiss xmm3, xmm0
jbe 0x10027f8d
addss xmm0, xmm2
movss dword [ebp + 0x14], xmm0
mov ecx, dword [0x100c21e0]
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
movss xmm0, dword [esp + 0x18]
movss xmm2, dword [0x100389f4]
comiss xmm2, xmm0
jbe 0x10027fd9
movss xmm1, dword [0x10038c58]
comiss xmm0, xmm1
jbe 0x10027fd9
movss xmm0, dword [esp + 0x1c]
comiss xmm2, xmm0
jbe 0x10027fd9
comiss xmm0, xmm1
jbe 0x10027fd9
mov dword [edi + 0xc], 2
mov byte [edi + 0x20], 0
cmp dword [edi + 0xc], 1
jne 0x100280c0
cmp byte [0x102b0d6c], 0
jne 0x10028007
mov byte [edi + 0x20], 0
cmp dword [0x100d3f38], 1
jge 0x10028000
mov dword [edi + 8], 0
mov byte [0x102b0d6c], 1
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x10]
lea esi, [ecx + ecx*2]
mov ecx, dword [eax]
mov dword [edx + esi*4], ecx
mov ecx, dword [eax + 4]
mov dword [edx + esi*4 + 4], ecx
mov eax, dword [eax + 8]
mov dword [edx + esi*4 + 8], eax
mov eax, dword [edi + 8]
mov ecx, dword [edi]
mov esi, dword [esp + 0x20]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x24]
mov dword [ecx + edx*4 + 0x18], eax
mov eax, dword [edi + 8]
mov ecx, dword [edi]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x20]
mov dword [ecx + edx*4 + 0x14], eax
mov eax, dword [edi + 8]
mov ecx, dword [edi]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x1c]
mov dword [ecx + edx*4 + 0x10], eax
mov eax, dword [edi + 8]
mov ecx, dword [edi]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x18]
mov dword [ecx + edx*4 + 0xc], eax
mov eax, dword [edi + 8]
movss xmm0, dword [ebp + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [edi]
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 [edi + 8]
mov ecx, dword [edi]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x30]
mov dword [ecx + edx*4 + 0x20], eax
mov eax, dword [edi + 8]
mov ecx, dword [edi]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x2c]
mov dword [ecx + edx*4 + 0x1c], eax
mov eax, dword [edi + 8]
mov dword [edi + 0x14], eax
inc eax
mov dword [edi + 8], eax
jmp 0x100280cb
mov esi, dword [esp + 0x20]
mov byte [0x102b0d6c], 0
cmp dword [edi + 0xc], 2
jne 0x10028501
cmp byte [0x102b0d6d], 0
jne 0x100280f4
mov dword [edi + 8], 0
xor ecx, ecx
mov byte [edi + 0x20], 0
mov byte [0x102b0d6d], 1
jmp 0x100280f7
mov ecx, dword [edi + 8]
mov eax, dword [0x100d3f38]
test eax, eax
jle 0x1002810b
cmp ecx, eax
jl 0x1002810b
mov dword [edi + 0xc], 1
cmp ecx, dword [edi + 0x14]
jl 0x10028120
xor eax, eax
mov edx, 3
cmp byte [edi + 0x18], al
cmovne eax, edx
mov dword [edi + 0xc], eax
mov eax, dword [edi]
lea ecx, [ecx + ecx*8]
mov eax, dword [eax + ecx*4 + 0x18]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 8]
lea ecx, [eax + eax*8]
mov eax, dword [edi]
mov eax, dword [eax + ecx*4 + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 8]
lea ecx, [eax + eax*8]
mov eax, dword [edi]
movss xmm3, dword [eax + ecx*4 + 0x10]
movss dword [esi + 0x1c], xmm3
mov eax, dword [edi + 8]
lea ecx, [eax + eax*8]
mov eax, dword [edi]
movss xmm2, dword [eax + ecx*4 + 0xc]
movss dword [esi + 0x18], xmm2
movaps xmm1, xmm2
mov eax, dword [edi + 8]
mulss xmm1, xmm2
lea ecx, [eax + eax*8]
mov eax, dword [edi]
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 + 0x30], xmm0
movaps xmm0, xmm3
mulss xmm0, xmm3
mov eax, dword [eax + ecx*4 + 0x20]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 8]
addss xmm1, xmm0
movss dword [esp + 0x18], xmm5
xorps xmm0, xmm0
movss dword [esp + 0x20], xmm4
lea ecx, [eax + eax*8]
mov eax, dword [edi]
sqrtss xmm0, xmm1
mov eax, dword [eax + ecx*4 + 0x1c]
mov dword [esi + 0x2c], eax
cvtps2pd xmm1, xmm2
movss dword [esp + 0x24], xmm0
movaps xmm0, xmm5
cvtps2pd xmm2, xmm3
unpcklps xmm0, xmm4
movq qword [ebp + 0x10], xmm0
movq qword [esp + 0x44], xmm0
xorps xmm0, xmm0
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x100281fe
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x10028225
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10038ae8]
xorps xmm1, xmm1
movss xmm4, dword [esp + 0x20]
comisd xmm1, xmm0
jbe 0x10028225
addsd xmm0, qword [0x10038b00]
movss xmm2, dword [0x100d3f34]
movss xmm5, dword [0x10038bbc]
subss xmm4, xmm2
comiss xmm2, xmm5
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x20], xmm4
movss dword [esp + 0x28], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [0x10038974]
movss dword [ebp + 0x14], xmm4
movss dword [esp + 0x14], xmm0
ja 0x1002827e
movss xmm3, dword [0x10038c84]
comiss xmm3, xmm2
ja 0x1002827e
movss xmm1, dword [0x10038bfc]
jmp 0x100282ed
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x10028297
movaps xmm0, xmm2
mulss xmm0, dword [0x10038c50]
movss dword [esp + 0x14], xmm0
fld dword [esp + 0x14]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm2, dword [0x100d3f34]
xorps xmm0, xmm0
movss xmm1, dword [0x10038bfc]
add esp, 4
movss xmm4, dword [esp + 0x20]
movss xmm3, dword [0x10038c84]
movss xmm5, dword [0x10038bbc]
comiss xmm0, xmm2
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
mulss xmm0, xmm1
jbe 0x100282e9
addss xmm2, xmm0
jmp 0x100282ed
subss xmm2, xmm0
comiss xmm2, dword [0x10038b6c]
ja 0x10028303
movss xmm0, dword [0x10038c74]
comiss xmm0, xmm2
jbe 0x1002831b
cmp byte [0x100d3f32], 0
je 0x1002831b
movss xmm0, dword [0x10038b68]
movss dword [ebp + 0x10], xmm0
jmp 0x10028321
movss xmm0, dword [esp + 0x18]
cmp byte [0x100d3f31], 0
je 0x1002834d
movq xmm0, qword [esp + 0x38]
mov eax, dword [esp + 0x34]
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 0x10028353
movss xmm2, dword [esp + 0x30]
comiss xmm0, xmm5
jbe 0x10028361
subss xmm0, xmm1
movss dword [ebp + 0x10], xmm0
comiss xmm3, xmm0
jbe 0x1002836f
addss xmm0, xmm1
movss dword [ebp + 0x10], xmm0
comiss xmm4, xmm5
jbe 0x1002837d
subss xmm4, xmm1
movss dword [ebp + 0x14], xmm4
comiss xmm3, xmm4
jbe 0x1002838b
addss xmm4, xmm1
movss dword [ebp + 0x14], xmm4
comiss xmm2, xmm5
jbe 0x10028399
subss xmm2, xmm1
movss dword [ebp + 0x18], xmm2
comiss xmm3, xmm2
jbe 0x100283a7
addss xmm2, xmm1
movss dword [ebp + 0x18], xmm2
mov ecx, dword [0x100c21e0]
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 + 0x48]
comiss xmm2, dword [0x10038bbc]
movaps xmm1, xmm2
movss dword [esp + 0x34], xmm2
mulss xmm1, dword [0x10038974]
movss dword [esp + 0x14], xmm1
ja 0x100283f5
movss xmm0, dword [0x10038c84]
comiss xmm0, xmm2
ja 0x100283f5
xorps xmm3, xmm3
jmp 0x10028450
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x1002840e
movaps xmm0, xmm2
mulss xmm0, dword [0x10038c50]
movss dword [esp + 0x14], xmm0
fld dword [esp + 0x14]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm2, dword [esp + 0x38]
xorps xmm3, xmm3
fstp dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
add esp, 4
comiss xmm3, xmm2
mulss xmm0, dword [0x10038bfc]
jbe 0x10028444
addss xmm2, xmm0
jmp 0x10028448
subss xmm2, xmm0
movss xmm0, dword [0x10038c84]
movss xmm1, dword [esp + 0x28]
addss xmm1, xmm2
comiss xmm1, dword [0x10038bbc]
movaps xmm2, xmm1
movss dword [esp + 0x28], xmm1
mulss xmm2, dword [0x10038974]
movss dword [esp + 0x14], xmm2
ja 0x1002847f
comiss xmm0, xmm1
jbe 0x100284cf
comiss xmm3, xmm2
jbe 0x10028495
movaps xmm0, xmm1
mulss xmm0, dword [0x10038c50]
movss dword [esp + 0x14], xmm0
fld dword [esp + 0x14]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm1, dword [esp + 0x2c]
xorps xmm0, xmm0
add esp, 4
comiss xmm0, xmm1
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x10038bfc]
jbe 0x100284cb
addss xmm1, xmm0
jmp 0x100284cf
subss xmm1, xmm0
mulss xmm1, dword [0x10038988]
movaps xmm0, xmm1
call fcn.1002f370
movaps xmm1, xmm0
shufps xmm1, xmm0, 1
mulss xmm1, dword [esp + 0x24]
mulss xmm0, dword [esp + 0x24]
movss dword [esi + 0x18], xmm1
movss dword [esi + 0x1c], xmm0
inc dword [edi + 8]
jmp 0x10028508
mov byte [0x102b0d6d], 0
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x10028526
cmp byte [0x102b0d6e], al
jne 0x10028537
mov dword [edi + 8], eax
mov byte [edi + 0x20], al
mov byte [0x102b0d6e], 1
jmp 0x10028537
mov byte [0x102b0d6e], 0
cmp eax, 2
je 0x10028541
cmp eax, 1
je 0x10028541
mov dword [0x100d3f38], 0
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
xor ecx, esp
call fcn.1002e1ce
mov esp, ebp
pop ebp
ret 0x14