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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x168
mov eax, dword [0x1003800c]
xor eax, esp
mov dword [esp + 0x164], eax
cmp byte [0x10038c5c], 0
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], eax
movq xmm0, qword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x14], ecx
movq qword [esp + 0x58], xmm0
mov dword [esp + 0x3c], eax
je 0x100235d3
mov edx, dword [0x10038c58]
lea ecx, [esp + 0x124]
call fcn.100232d0
cmp dword [eax + 0x14], 0x10
jb 0x10023445
mov eax, dword [eax]
mov ecx, dword [edi + 0x10]
lea esi, [edi + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [edi]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], 0x2b6277
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
test eax, eax
je 0x100234cb
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 + 0x20]
mov ecx, dword [edi + 0x14]
push ecx
push 0xc
push dword [esp + 0x34]
lea eax, [ecx - 1]
mov dword [edi + 0x14], eax
call esi
push dword [esp + 0x30]
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 + 0x40]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
lea esi, [edi + 0x14]
jmp 0x1002356e
mov ecx, 0x3f
xor edx, edx
mov al, byte [edx + str.r_7._2]
xor al, cl
inc ecx
mov byte [esp + edx + 0x60], al
and ecx, 0x800000ff
jns 0x100234ef
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x100234d2
mov byte [esp + 0x70], 0
mov ecx, 0x6e
xor edx, edx
mov al, byte [edx + 0x1003438c]
xor al, cl
inc ecx
mov byte [esp + edx + 0xc0], al
and ecx, 0x800000ff
jns 0x10023521
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x10023501
push 0
lea eax, [esp + 0x64]
mov byte [esp + 0xd8], 0
push eax
lea eax, [esp + 0xc8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xorps xmm0, xmm0
mov dword [esp + 0xd0], 0
movaps xmmword [esp + 0xc0], xmm0
mov byte [esp + 0xd4], 0
movaps xmmword [esp + 0x60], xmm0
mov byte [esp + 0x70], 0
mov ecx, dword [esp + 0x138]
cmp ecx, 0x10
jb 0x100235ac
mov edx, dword [esp + 0x124]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100235a2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100235a2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1002aad6
add esp, 8
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0xf
mov byte [esp + 0x124], 0
mov byte [0x10038c5c], 0
jmp 0x100235d6
lea esi, [edi + 0x14]
cmp byte [0x10038c5d], 0
lea eax, [edi + 0x10]
mov dword [esp + 0x18], eax
je 0x100237a9
mov edx, dword [0x10038c58]
lea ecx, [esp + 0x13c]
call fcn.100232d0
cmp dword [eax + 0x14], 0x10
jb 0x10023604
mov eax, dword [eax]
lea ecx, [edi + 0x10]
mov dword [esp + 0xc], 0x2b6272
mov dword [esp + 0x18], ecx
mov ecx, dword [ecx]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
test eax, eax
je 0x1002368c
push eax
push 1
push 4
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [esp + 0x20]
mov ecx, dword [esi]
push ecx
push 0xc
push dword [esp + 0x48]
lea eax, [ecx - 1]
mov dword [esi], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [esp + 0x30]
mov ecx, dword [esi]
push ecx
push 0x24
push dword [esp + 0x5c]
lea eax, [ecx - 1]
mov dword [esi], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [esp + 0x40]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
jmp 0x10023746
mov ecx, 0x12
xor edx, edx
mov al, byte [edx + str._bprvmH]
xor al, cl
inc ecx
mov byte [esp + edx + 0x80], al
and ecx, 0x800000ff
jns 0x100236b3
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x10023693
mov byte [esp + 0x90], 0
mov ecx, 0xa1
xor edx, edx
nop dword [eax + eax]
mov al, byte [edx + 0x100343a4]
xor al, cl
inc ecx
mov byte [esp + edx + 0xe0], al
and ecx, 0x800000ff
jns 0x100236f0
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x100236d0
push 0
lea eax, [esp + 0x84]
mov byte [esp + 0xf8], 0
push eax
lea eax, [esp + 0xe8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xorps xmm0, xmm0
mov dword [esp + 0xf0], 0
movaps xmmword [esp + 0xe0], xmm0
mov byte [esp + 0xf4], 0
movaps xmmword [esp + 0x80], xmm0
mov byte [esp + 0x90], 0
mov ecx, dword [esp + 0x150]
cmp ecx, 0x10
jb 0x10023784
mov edx, dword [esp + 0x13c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002377a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002377a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1002aad6
add esp, 8
mov dword [esp + 0x14c], 0
mov dword [esp + 0x150], 0xf
mov byte [esp + 0x13c], 0
mov byte [0x10038c5d], 0
cmp byte [0x10038c5e], 0
je 0x100239dd
mov edx, dword [0x10038c58]
lea ecx, [esp + 0x154]
call fcn.100232d0
cmp dword [eax + 0x14], 0x10
jb 0x100237d5
mov eax, dword [eax]
lea ecx, [edi + 0x10]
jmp 0x100237d9
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], 0x2b6272
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
test eax, eax
je 0x10023853
push eax
push 1
push 4
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [esp + 0x20]
push 1
push 0xc
push dword [esp + 0x4c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [esi]
lea eax, [ecx - 1]
mov dword [esi], eax
mov esi, dword [esp + 0x30]
push esi
push ecx
push 0x1c
push dword [esp + 0x58]
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 0x1002390b
mov ecx, 0x5f
xor edx, edx
nop word [eax + eax]
mov al, byte [edx + 0x100343d0]
xor al, cl
inc ecx
mov byte [esp + edx + 0xa0], al
and ecx, 0x800000ff
jns 0x10023880
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x10023860
mov byte [esp + 0xb0], 0
mov ecx, 0x69
xor edx, edx
mov al, byte [edx + 0x100343e8]
xor al, cl
inc ecx
mov byte [esp + edx + 0x100], al
and ecx, 0x800000ff
jns 0x100238b5
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x10023895
push 0
lea eax, [esp + 0xa4]
mov byte [esp + 0x118], 0
push eax
lea eax, [esp + 0x108]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xorps xmm0, xmm0
mov dword [esp + 0x110], 0
movaps xmmword [esp + 0x100], xmm0
mov byte [esp + 0x114], 0
movaps xmmword [esp + 0xa0], xmm0
mov byte [esp + 0xb0], 0
mov ecx, dword [esp + 0x168]
cmp ecx, 0x10
jb 0x10023949
mov edx, dword [esp + 0x154]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002393f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002393f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1002aad6
add esp, 8
xor edx, edx
mov dword [esp + 0x164], 0
mov dword [esp + 0x168], 0xf
xor esi, esi
mov byte [esp + 0x154], 0
mov dword [esp + 0x10], edx
nop
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [esi + eax]
mov dword [ecx + edx + 0x18], eax
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [esi + eax + 0xc]
mov dword [ecx + edx + 0x14], eax
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [esi + eax + 4]
mov dword [ecx + edx + 0xc], eax
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [esi + eax + 8]
mov dword [ecx + edx + 0x10], eax
mov edx, dword [edi + 4]
mov ecx, dword [edi]
add ecx, dword [esp + 0x10]
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 + 0x10]
add edx, 0x24
mov dword [ecx + 8], eax
mov dword [esp + 0x10], edx
cmp esi, 0x1ab3f00
jl 0x10023970
mov byte [0x10038c5e], 0
cmp dword [edi + 0xc], 3
jne 0x100239ee
mov byte [edi + 0x20], 1
mov dword [edi + 0x1c], 1
cmp byte [edi + 0x20], 0
xorps xmm1, xmm1
movsd xmm0, qword [0x10034dc8]
movsd qword [esp + 0x48], xmm0
movsd xmm0, qword [0x10034dd8]
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x50], xmm0
je 0x1002422e
cmp dword [edi + 0x1c], 1
jne 0x10023ab3
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
movss xmm2, dword [0x10034e78]
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 0x10023a82
subss xmm1, xmm2
comiss xmm4, xmm1
jb 0x10023a82
movss xmm1, dword [eax + 4]
movaps xmm0, xmm1
addss xmm0, xmm2
comiss xmm0, xmm3
jb 0x10023a82
subss xmm1, xmm2
comiss xmm3, xmm1
jb 0x10023a82
mov dword [edi + 0x1c], 2
jmp 0x10023aa2
mov eax, dword [0x10226380]
inc eax
mov byte [0x10226384], 0
mov dword [0x10226380], eax
cmp eax, 0x96
jne 0x10023ab3
mov dword [edi + 0x1c], 0
mov byte [0x10226384], 1
mov dword [0x10226380], 0
cmp dword [edi + 0x1c], 2
mov esi, dword [0x1003865c]
jne 0x1002409a
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + esi*4]
mov eax, dword [0x10226784]
cmp eax, dword [ecx + 4]
jle 0x10023afc
push 0x10226784
call fcn.1002ac17
add esp, 4
cmp dword [0x10226784], 0xffffffff
jne 0x10023afc
push 0x10226784
call fcn.1002abcd
add esp, 4
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + esi*4]
mov eax, dword [0x1022676c]
cmp eax, dword [ecx + 4]
jle 0x10023b35
push 0x1022676c
call fcn.1002ac17
add esp, 4
cmp dword [0x1022676c], 0xffffffff
jne 0x10023b35
push 0x1022676c
call fcn.1002abcd
add esp, 4
mov ecx, dword [0x10038940]
push 0x10226788
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
mov eax, dword [edi]
movss xmm6, dword [0x10226788]
movss xmm7, dword [0x1022678c]
movss xmm4, dword [0x10034e6c]
movss xmm2, dword [eax]
movss xmm1, dword [eax + 4]
subss xmm2, xmm6
movss xmm5, dword [eax + 8]
subss xmm1, xmm7
subss xmm5, dword [0x10226790]
movss xmm0, dword [0x10034e94]
comiss xmm2, xmm4
movss dword [0x10226774], xmm2
movss dword [0x10226778], xmm1
movss dword [0x1022677c], xmm5
jbe 0x10023bb0
subss xmm2, xmm0
movss dword [0x10226774], xmm2
comiss xmm1, xmm4
jbe 0x10023bc1
subss xmm1, xmm0
movss dword [0x10226778], xmm1
movss xmm3, dword [0x10034f18]
comiss xmm3, xmm2
jbe 0x10023bda
addss xmm2, xmm0
movss dword [0x10226774], xmm2
comiss xmm3, xmm1
jbe 0x10023beb
addss xmm1, xmm0
movss dword [0x10226778], xmm1
mulss xmm2, dword [0x10034c84]
mulss xmm1, dword [0x10034c84]
mulss xmm5, dword [0x10034c84]
addss xmm2, xmm6
addss xmm1, xmm7
addss xmm5, dword [0x10226790]
comiss xmm2, xmm4
movss dword [ebp + 0x10], xmm2
movss dword [ebp + 0x14], xmm1
movss dword [ebp + 0x18], xmm5
jbe 0x10023c30
subss xmm2, xmm0
movss dword [ebp + 0x10], xmm2
comiss xmm1, xmm4
jbe 0x10023c3e
subss xmm1, xmm0
movss dword [ebp + 0x14], xmm1
comiss xmm3, xmm2
jbe 0x10023c4c
addss xmm2, xmm0
movss dword [ebp + 0x10], xmm2
comiss xmm3, xmm1
jbe 0x10023c5a
addss xmm1, xmm0
movss dword [ebp + 0x14], xmm1
mov ecx, dword [0x10038940]
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [edi + 0x10]
movss xmm1, dword [eax + 4]
movss xmm4, dword [ecx + 4]
movss xmm2, dword [eax]
subss xmm4, xmm1
movss xmm0, dword [ecx]
movss dword [esp + 0x38], xmm1
subss xmm0, xmm2
movss xmm1, dword [ecx + 8]
subss xmm1, dword [eax + 8]
movss dword [esp + 0x2c], xmm4
movss dword [esp + 0x34], xmm2
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x10], xmm1
cvtps2pd xmm1, xmm0
cvtps2pd xmm0, xmm4
movsd xmm4, qword [esp + 0x40]
ucomisd xmm0, xmm4
lahf
test ah, 0x44
jp 0x10023ce0
ucomisd xmm1, xmm4
lahf
test ah, 0x44
jp 0x10023ce0
movaps xmm0, xmm4
jmp 0x10023cfd
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [esp + 0x48]
movsd xmm4, qword [esp + 0x40]
comisd xmm4, xmm0
jbe 0x10023cfd
addsd xmm0, qword [esp + 0x50]
cvtsd2ss xmm0, xmm0
lea ecx, [esp + 0x20]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0x30]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x2c]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x10]
movss dword [esp + 0x28], xmm0
call fcn.10002930
xorps xmm1, xmm1
sqrtss xmm1, xmm0
comiss xmm1, dword [0x10034de8]
jbe 0x10023d4e
movss xmm3, dword [0x10034e78]
jmp 0x10023d7a
comiss xmm1, dword [0x10034de4]
jbe 0x10023d61
movss xmm3, dword [0x10034e48]
jmp 0x10023d7a
cvtps2pd xmm0, xmm1
comisd xmm0, xmmword [0x10034da8]
jbe 0x10023e21
movss xmm3, dword [0x10034e2c]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
lea esi, [eax + 0x18]
movss dword [esp + 0x20], xmm3
movss dword [esi], xmm3
mov dword [esp + 0x24], 0
movss xmm0, dword [eax + 0x20]
movss dword [esp + 0x28], xmm0
call fcn.10002930
movss dword [esp + 0x10], xmm0
cvtps2pd xmm1, xmm3
movaps xmm0, xmm4
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [esp + 0x48]
movsd xmm1, qword [esp + 0x40]
comisd xmm1, xmm0
jbe 0x10023dd0
addsd xmm0, qword [esp + 0x50]
movss xmm2, dword [ebp + 0x14]
xorps xmm1, xmm1
subss xmm2, dword [esp + 0xc]
cvtsd2ss xmm1, xmm0
comiss xmm2, dword [0x10034e6c]
movaps xmm3, xmm2
movss dword [esp + 0x18], xmm1
mulss xmm3, dword [0x10034c50]
movss dword [esp + 0x30], xmm2
movss dword [esp + 0xc], xmm3
ja 0x10023e94
movss xmm0, dword [0x10034f18]
comiss xmm0, xmm2
ja 0x10023e94
xorps xmm3, xmm3
jmp 0x10023ef5
comiss xmm1, dword [0x10034cf8]
mov eax, dword [esp + 0x1c]
lea esi, [eax + 0x18]
mov ecx, esi
jbe 0x10023e3d
movss xmm3, dword [0x10034e08]
jmp 0x10023e45
movss xmm3, dword [0x10034dfc]
movaps xmm0, xmm3
movss dword [ecx], xmm0
lea ecx, [esp + 0x20]
movss xmm0, dword [eax + 0x20]
or dword [eax + 0x24], 0x20000
movss dword [esp + 0x20], xmm3
mov dword [esp + 0x24], 0
movss dword [esp + 0x28], xmm0
call fcn.10002930
cvtps2pd xmm1, xmm3
movss dword [esp + 0x10], xmm0
ucomisd xmm1, xmm4
lahf
test ah, 0x44
jp 0x10023db0
movaps xmm0, xmm4
jmp 0x10023dd0
xorps xmm1, xmm1
comiss xmm1, xmm3
jbe 0x10023ead
movaps xmm0, xmm2
mulss xmm0, dword [0x10034ee0]
movss dword [esp + 0xc], xmm0
fld dword [esp + 0xc]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm2, dword [esp + 0x34]
xorps xmm3, xmm3
movss xmm1, dword [esp + 0x1c]
add esp, 4
comiss xmm3, xmm2
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [0x10034e94]
jbe 0x10023ee9
addss xmm2, xmm0
jmp 0x10023eed
subss xmm2, xmm0
movss xmm0, dword [0x10034f18]
addss xmm1, xmm2
comiss xmm1, dword [0x10034e6c]
movaps xmm2, xmm1
movss dword [esp + 0x18], xmm1
mulss xmm2, dword [0x10034c50]
movss dword [esp + 0xc], xmm2
ja 0x10023f1e
comiss xmm0, xmm1
jbe 0x10023f6e
comiss xmm3, xmm2
jbe 0x10023f34
movaps xmm0, xmm1
mulss xmm0, dword [0x10034ee0]
movss dword [esp + 0xc], xmm0
fld dword [esp + 0xc]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm1, dword [esp + 0x1c]
xorps xmm0, xmm0
add esp, 4
comiss xmm0, xmm1
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [0x10034e94]
jbe 0x10023f6a
addss xmm1, xmm0
jmp 0x10023f6e
subss xmm1, xmm0
mulss xmm1, dword [0x10034c60]
movaps xmm0, xmm1
call fcn.1002baf0
mov eax, dword [esp + 0x1c]
movaps xmm1, xmm0
movss xmm3, dword [esp + 0x34]
movsd xmm2, qword [0x10034d38]
shufps xmm1, xmm0, 1
mulss xmm1, dword [esp + 0x10]
mulss xmm0, dword [esp + 0x10]
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 0x10024094
subsd xmm1, xmm2
comisd xmm3, xmm1
jb 0x10024094
movss xmm1, dword [eax + 4]
movss xmm3, dword [esp + 0x38]
cvtps2pd xmm1, xmm1
cvtps2pd xmm3, xmm3
movaps xmm0, xmm1
addsd xmm0, xmm2
comisd xmm0, xmm3
jb 0x10024094
subsd xmm1, xmm2
comisd xmm3, xmm1
jb 0x10024094
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
movss xmm0, dword [eax + 0xec]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [eax + 0xf0]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [eax + 0xf4]
movss dword [esp + 0x28], xmm0
call fcn.10002930
movss xmm1, dword [0x10034de0]
comiss xmm1, xmm0
jb 0x10024094
movss xmm0, dword [0x10226774]
movss xmm2, dword [0x10034cc8]
comiss xmm2, xmm0
jbe 0x1002408d
movss xmm1, dword [0x10034ee8]
comiss xmm0, xmm1
jbe 0x1002408d
movss xmm0, dword [0x10226778]
comiss xmm2, xmm0
jbe 0x1002408d
comiss xmm0, xmm1
jbe 0x1002408d
mov dword [edi + 0xc], 2
mov byte [edi + 0x20], 0
jmp 0x10024094
mov dword [edi + 0x1c], 3
mov esi, dword [0x1003865c]
cmp dword [edi + 0x1c], 3
jne 0x1002422e
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + esi*4]
mov eax, dword [0x10226770]
cmp eax, dword [ecx + 4]
jle 0x100240dd
push 0x10226770
call fcn.1002ac17
add esp, 4
cmp dword [0x10226770], 0xffffffff
jne 0x100240dd
push 0x10226770
call fcn.1002abcd
add esp, 4
mov ecx, dword [0x10038940]
push 0x10226760
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
mov eax, dword [edi]
movss xmm6, dword [0x10226760]
movss xmm4, dword [0x10034e6c]
movss xmm7, dword [0x10226764]
movss xmm2, dword [eax]
movss xmm0, dword [eax + 4]
subss xmm2, xmm6
movss xmm5, dword [eax + 8]
subss xmm0, xmm7
subss xmm5, dword [0x10226768]
movss xmm1, dword [0x10034e94]
comiss xmm2, xmm4
jbe 0x10024138
subss xmm2, xmm1
comiss xmm0, xmm4
jbe 0x10024141
subss xmm0, xmm1
movss xmm3, dword [0x10034f18]
comiss xmm3, xmm2
movss dword [esp + 0x10], xmm2
jbe 0x1002415e
addss xmm2, xmm1
movss dword [esp + 0x10], xmm2
comiss xmm3, xmm0
movss dword [esp + 0x18], xmm0
jbe 0x10024173
addss xmm0, xmm1
movss dword [esp + 0x18], xmm0
mulss xmm2, dword [0x10034c84]
mulss xmm0, dword [0x10034c84]
mulss xmm5, dword [0x10034c84]
addss xmm2, xmm6
addss xmm0, xmm7
addss xmm5, dword [0x10226768]
comiss xmm2, xmm4
movss dword [ebp + 0x10], xmm2
movss dword [ebp + 0x14], xmm0
movss dword [ebp + 0x18], xmm5
jbe 0x100241b8
subss xmm2, xmm1
movss dword [ebp + 0x10], xmm2
comiss xmm0, xmm4
jbe 0x100241c6
subss xmm0, xmm1
movss dword [ebp + 0x14], xmm0
comiss xmm3, xmm2
jbe 0x100241d4
addss xmm2, xmm1
movss dword [ebp + 0x10], xmm2
comiss xmm3, xmm0
jbe 0x100241e2
addss xmm0, xmm1
movss dword [ebp + 0x14], xmm0
mov ecx, dword [0x10038940]
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
movss xmm0, dword [esp + 0x10]
movss xmm2, dword [0x10034cc8]
comiss xmm2, xmm0
jbe 0x1002422e
movss xmm1, dword [0x10034ee8]
comiss xmm0, xmm1
jbe 0x1002422e
movss xmm0, dword [esp + 0x18]
comiss xmm2, xmm0
jbe 0x1002422e
comiss xmm0, xmm1
jbe 0x1002422e
mov dword [edi + 0xc], 2
mov byte [edi + 0x20], 0
cmp dword [edi + 0xc], 1
jne 0x10024315
cmp byte [0x10226780], 0
jne 0x1002425c
mov byte [edi + 0x20], 0
cmp dword [0x100499f8], 1
jge 0x10024255
mov dword [edi + 8], 0
mov byte [0x10226780], 1
mov ecx, dword [esp + 0x14]
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 + 0x1c]
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 0x1002431c
mov byte [0x10226780], 0
cmp dword [edi + 0xc], 2
jne 0x10024780
cmp byte [0x10226781], 0
jne 0x10024345
mov dword [edi + 8], 0
xor eax, eax
mov byte [edi + 0x20], 0
mov byte [0x10226781], 1
jmp 0x10024348
mov eax, dword [edi + 8]
mov ecx, dword [0x100499f8]
test ecx, ecx
jle 0x1002435d
cmp eax, ecx
jl 0x1002435d
mov dword [edi + 0xc], 1
cmp eax, dword [edi + 0x14]
jl 0x10024372
xor eax, eax
mov ecx, 3
cmp byte [edi + 0x18], al
cmovne eax, ecx
mov dword [edi + 0xc], eax
mov ecx, dword [esp + 0x14]
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 esi, dword [esp + 0x1c]
lea ecx, [eax + eax*8]
mov eax, dword [edi]
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 + 0x38], 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 + 0xc], 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 + 0x34], xmm0
movaps xmm0, xmm5
cvtps2pd xmm2, xmm3
unpcklps xmm0, xmm4
movq qword [ebp + 0x10], xmm0
movq qword [esp + 0x20], xmm0
movsd xmm0, qword [esp + 0x40]
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x10024481
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x100244a7
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [esp + 0x48]
movsd xmm1, qword [esp + 0x40]
movss xmm4, dword [esp + 0xc]
comisd xmm1, xmm0
jbe 0x100244a7
addsd xmm0, qword [esp + 0x50]
movss xmm2, dword [0x100499f4]
movss xmm5, dword [0x10034e6c]
subss xmm4, xmm2
comiss xmm2, xmm5
cvtsd2ss xmm0, xmm0
movss dword [esp + 0xc], xmm4
movss dword [esp + 0x10], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [0x10034c50]
movss dword [ebp + 0x14], xmm4
movss dword [esp + 0x14], xmm0
ja 0x100244fd
movss xmm3, dword [0x10034f18]
comiss xmm3, xmm2
ja 0x100244fd
movss xmm1, dword [0x10034e94]
jmp 0x1002456c
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x10024516
movaps xmm0, xmm2
mulss xmm0, dword [0x10034ee0]
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 [0x100499f4]
xorps xmm0, xmm0
movss xmm1, dword [0x10034e94]
add esp, 4
movss xmm4, dword [esp + 0xc]
movss xmm3, dword [0x10034f18]
movss xmm5, dword [0x10034e6c]
fstp dword [esp + 0x14]
comiss xmm0, xmm2
movss xmm0, dword [esp + 0x14]
mulss xmm0, xmm1
jbe 0x10024568
addss xmm2, xmm0
jmp 0x1002456c
subss xmm2, xmm0
comiss xmm2, dword [0x10034e3c]
ja 0x10024582
movss xmm0, dword [0x10034f04]
comiss xmm0, xmm2
jbe 0x1002459a
cmp byte [0x100499f2], 0
je 0x1002459a
movss xmm0, dword [0x10034e38]
movss dword [ebp + 0x10], xmm0
jmp 0x100245a0
movss xmm0, dword [esp + 0x18]
cmp byte [0x100499f1], 0
je 0x100245cc
movq xmm0, qword [esp + 0x58]
mov eax, dword [esp + 0x3c]
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 0x100245d2
movss xmm2, dword [esp + 0x38]
comiss xmm0, xmm5
jbe 0x100245e0
subss xmm0, xmm1
movss dword [ebp + 0x10], xmm0
comiss xmm3, xmm0
jbe 0x100245ee
addss xmm0, xmm1
movss dword [ebp + 0x10], xmm0
comiss xmm4, xmm5
jbe 0x100245fc
subss xmm4, xmm1
movss dword [ebp + 0x14], xmm4
comiss xmm3, xmm4
jbe 0x1002460a
addss xmm4, xmm1
movss dword [ebp + 0x14], xmm4
comiss xmm2, xmm5
jbe 0x10024618
subss xmm2, xmm1
movss dword [ebp + 0x18], xmm2
comiss xmm3, xmm2
jbe 0x10024626
addss xmm2, xmm1
movss dword [ebp + 0x18], xmm2
mov ecx, dword [0x10038940]
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 + 0x24]
comiss xmm2, dword [0x10034e6c]
movaps xmm1, xmm2
movss dword [esp + 0x3c], xmm2
mulss xmm1, dword [0x10034c50]
movss dword [esp + 0x14], xmm1
ja 0x10024674
movss xmm0, dword [0x10034f18]
comiss xmm0, xmm2
ja 0x10024674
xorps xmm3, xmm3
jmp 0x100246cf
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x1002468d
movaps xmm0, xmm2
mulss xmm0, dword [0x10034ee0]
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 + 0x40]
xorps xmm3, xmm3
fstp dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
add esp, 4
comiss xmm3, xmm2
mulss xmm0, dword [0x10034e94]
jbe 0x100246c3
addss xmm2, xmm0
jmp 0x100246c7
subss xmm2, xmm0
movss xmm0, dword [0x10034f18]
movss xmm1, dword [esp + 0x10]
addss xmm1, xmm2
comiss xmm1, dword [0x10034e6c]
movaps xmm2, xmm1
movss dword [esp + 0x10], xmm1
mulss xmm2, dword [0x10034c50]
movss dword [esp + 0x14], xmm2
ja 0x100246fe
comiss xmm0, xmm1
jbe 0x1002474e
comiss xmm3, xmm2
jbe 0x10024714
movaps xmm0, xmm1
mulss xmm0, dword [0x10034ee0]
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 + 0x14]
xorps xmm0, xmm0
fstp dword [esp + 0x18]
add esp, 4
comiss xmm0, xmm1
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x10034e94]
jbe 0x1002474a
addss xmm1, xmm0
jmp 0x1002474e
subss xmm1, xmm0
mulss xmm1, dword [0x10034c60]
movaps xmm0, xmm1
call fcn.1002baf0
movaps xmm1, xmm0
shufps xmm1, xmm0, 1
mulss xmm1, dword [esp + 0x34]
mulss xmm0, dword [esp + 0x34]
movss dword [esi + 0x18], xmm1
movss dword [esi + 0x1c], xmm0
inc dword [edi + 8]
jmp 0x10024787
mov byte [0x10226781], 0
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x100247a5
cmp byte [0x10226782], al
jne 0x100247b6
mov dword [edi + 8], eax
mov byte [edi + 0x20], al
mov byte [0x10226782], 1
jmp 0x100247b6
mov byte [0x10226782], 0
cmp eax, 2
je 0x100247c0
cmp eax, 1
je 0x100247c0
mov dword [0x100499f8], 0
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
xor ecx, esp
call fcn.1002a7ae
mov esp, ebp
pop ebp
ret 0x14