Function at 0x10023ed0
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 [0x10038dd0], 0
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], eax
movq xmm0, qword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x2c], ecx
movq qword [esp + 0x58], xmm0
mov dword [esp + 0x44], eax
je 0x100240c0
mov edx, dword [0x10038dcc]
lea ecx, [esp + 0x124]
call fcn.10023dc0
cmp dword [eax + 0x14], 0x10
jb 0x10023f35
mov eax, dword [eax]
mov ecx, dword [edi + 0x10]
lea esi, [edi + 0x14]
mov dword [esp + 0x14], ecx
mov ecx, dword [edi]
mov dword [esp + 0x1c], 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 0x10023fb8
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 + 0x30]
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 + 0x48]
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
jmp 0x1002405d
mov ecx, 0x3f
xor edx, edx
nop
mov al, byte [edx + str.r_7._2]
xor al, cl
inc ecx
mov byte [esp + edx + 0x60], al
and ecx, 0x800000ff
jns 0x10023fdd
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x10023fc0
mov byte [esp + 0x70], 0
mov ecx, 0x6e
xor edx, edx
nop
mov al, byte [edx + 0x10033b1c]
xor al, cl
inc ecx
mov byte [esp + edx + 0xc0], al
and ecx, 0x800000ff
jns 0x10024010
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x10023ff0
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 edx, dword [esp + 0x138]
cmp edx, 0x10
jb 0x1002409b
mov ecx, dword [esp + 0x124]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10024091
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10024091
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002b4a5
add esp, 8
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0xf
mov byte [esp + 0x124], 0
mov byte [0x10038dd0], 0
cmp byte [0x10038dd1], 0
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
je 0x10024289
mov edx, dword [0x10038dcc]
lea ecx, [esp + 0x13c]
call fcn.10023dc0
mov ecx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x100240ef
mov ecx, dword [ecx]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
push ecx
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 0x1002416c
push eax
push 1
lea ecx, [edi + 0x14]
push 4
push ecx
call esi
push dword [esp + 0x20]
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 + 0x30]
mov ecx, dword [edi + 0x14]
push ecx
push 0x24
push dword [esp + 0x40]
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
jmp 0x10024226
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 0x10024193
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x10024173
mov byte [esp + 0x90], 0
mov ecx, 0xa1
xor edx, edx
nop dword [eax + eax]
mov al, byte [edx + 0x10033b64]
xor al, cl
inc ecx
mov byte [esp + edx + 0xe0], al
and ecx, 0x800000ff
jns 0x100241d0
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x100241b0
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 edx, dword [esp + 0x150]
cmp edx, 0x10
jb 0x10024264
mov ecx, dword [esp + 0x13c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002425a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002425a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002b4a5
add esp, 8
mov dword [esp + 0x14c], 0
mov dword [esp + 0x150], 0xf
mov byte [esp + 0x13c], 0
mov byte [0x10038dd1], 0
cmp byte [0x10038dd2], 0
je 0x100244ad
mov edx, dword [0x10038dcc]
lea ecx, [esp + 0x154]
call fcn.10023dc0
cmp dword [eax + 0x14], 0x10
jb 0x100242b0
mov eax, dword [eax]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x14], 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 0x10024326
push eax
push 1
lea eax, [edi + 0x14]
push 4
push eax
call esi
push dword [esp + 0x20]
push 1
push 0xc
push dword [esp + 0x38]
call esi
push dword [esp + 0x30]
mov ecx, dword [edi + 0x14]
push ecx
push 0x1c
push dword [esp + 0x40]
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
jmp 0x100243db
mov ecx, 0x5f
xor edx, edx
nop dword [eax]
mov al, byte [edx + 0x10033b94]
xor al, cl
inc ecx
mov byte [esp + edx + 0xa0], al
and ecx, 0x800000ff
jns 0x10024350
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x10024330
mov byte [esp + 0xb0], 0
mov ecx, 0x69
xor edx, edx
mov al, byte [edx + 0x10033b7c]
xor al, cl
inc ecx
mov byte [esp + edx + 0x100], al
and ecx, 0x800000ff
jns 0x10024385
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x10024365
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 edx, dword [esp + 0x168]
cmp edx, 0x10
jb 0x10024419
mov ecx, dword [esp + 0x154]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002440f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002440f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002b4a5
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 [eax + esi + 0xc]
mov dword [ecx + edx + 0x14], eax
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [eax + esi + 4]
mov dword [ecx + edx + 0xc], eax
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [eax + esi + 8]
mov dword [ecx + edx + 0x10], eax
mov edx, dword [edi + 4]
mov ecx, dword [edi]
add ecx, dword [esp + 0x10]
mov eax, dword [edx + esi + 0x10]
mov dword [ecx], eax
mov eax, dword [edx + esi + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [edx + esi + 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 0x10024440
mov byte [0x10038dd2], 0
cmp dword [edi + 0xc], 3
xorps xmm1, xmm1
movsd xmm0, qword [0x100344e0]
movsd qword [esp + 0x48], xmm0
movsd xmm0, qword [0x100344f0]
movsd qword [esp + 0x38], xmm1
movsd qword [esp + 0x50], xmm0
jne 0x100244e5
mov byte [edi + 0x20], 1
mov dword [edi + 0x1c], 1
jmp 0x100244ef
cmp byte [edi + 0x20], 0
je 0x10024cff
cmp dword [edi + 0x1c], 1
jne 0x10024585
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
movss xmm2, dword [0x10034584]
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 0x10024554
subss xmm1, xmm2
comiss xmm4, xmm1
jb 0x10024554
movss xmm1, dword [eax + 4]
movaps xmm0, xmm1
addss xmm0, xmm2
comiss xmm0, xmm3
jb 0x10024554
subss xmm1, xmm2
comiss xmm3, xmm1
jb 0x10024554
mov dword [edi + 0x1c], 2
jmp 0x10024574
mov eax, dword [0x102263d0]
inc eax
mov byte [0x102263d4], 0
mov dword [0x102263d0], eax
cmp eax, 0x96
jne 0x10024585
mov dword [edi + 0x1c], 0
mov byte [0x102263d4], 1
mov dword [0x102263d0], 0
cmp dword [edi + 0x1c], 2
mov esi, dword [0x10038728]
jne 0x10024b65
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + esi*4]
mov eax, dword [0x1022685c]
cmp eax, dword [ecx + 4]
jle 0x100245ce
push 0x1022685c
call fcn.1002b5e6
add esp, 4
cmp dword [0x1022685c], 0xffffffff
jne 0x100245ce
push 0x1022685c
call fcn.1002b59c
add esp, 4
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + esi*4]
mov eax, dword [0x10226844]
cmp eax, dword [ecx + 4]
jle 0x10024607
push 0x10226844
call fcn.1002b5e6
add esp, 4
cmp dword [0x10226844], 0xffffffff
jne 0x10024607
push 0x10226844
call fcn.1002b59c
add esp, 4
mov ecx, dword [0x10038da0]
push 0x10226860
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
mov eax, dword [edi]
movss xmm6, dword [0x10226860]
movss xmm7, dword [0x10226864]
movss xmm4, dword [0x10034574]
movss xmm2, dword [eax]
movss xmm0, dword [eax + 4]
subss xmm2, xmm6
movss xmm5, dword [eax + 8]
subss xmm0, xmm7
subss xmm5, dword [0x10226868]
movss xmm1, dword [0x100345a4]
comiss xmm2, xmm4
movss dword [0x1022684c], xmm2
movss dword [0x10226850], xmm0
movss dword [0x10226854], xmm5
jbe 0x10024682
subss xmm2, xmm1
movss dword [0x1022684c], xmm2
comiss xmm0, xmm4
jbe 0x10024693
subss xmm0, xmm1
movss dword [0x10226850], xmm0
movss xmm3, dword [0x10034614]
comiss xmm3, xmm2
jbe 0x100246ac
addss xmm2, xmm1
movss dword [0x1022684c], xmm2
comiss xmm3, xmm0
jbe 0x100246bd
addss xmm0, xmm1
movss dword [0x10226850], xmm0
mulss xmm2, dword [0x100343b8]
mulss xmm0, dword [0x100343b8]
mulss xmm5, dword [0x100343b8]
addss xmm2, xmm6
addss xmm0, xmm7
addss xmm5, dword [0x10226868]
comiss xmm2, xmm4
movss dword [ebp + 0x10], xmm2
movss dword [ebp + 0x14], xmm0
movss dword [ebp + 0x18], xmm5
jbe 0x10024702
subss xmm2, xmm1
movss dword [ebp + 0x10], xmm2
comiss xmm0, xmm4
jbe 0x10024710
subss xmm0, xmm1
movss dword [ebp + 0x14], xmm0
comiss xmm3, xmm2
jbe 0x1002471e
addss xmm2, xmm1
movss dword [ebp + 0x10], xmm2
comiss xmm3, xmm0
jbe 0x1002472c
addss xmm0, xmm1
movss dword [ebp + 0x14], xmm0
mov ecx, dword [0x10038da0]
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
mov ecx, dword [esp + 0x2c]
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 + 0x34], xmm1
subss xmm0, xmm2
movss xmm1, dword [ecx + 8]
subss xmm1, dword [eax + 8]
movss dword [esp + 0x14], xmm4
movss dword [esp + 0x30], xmm2
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x10], xmm1
cvtps2pd xmm1, xmm0
cvtps2pd xmm0, xmm4
movsd xmm4, qword [esp + 0x38]
ucomisd xmm0, xmm4
lahf
test ah, 0x44
jp 0x100247b2
ucomisd xmm1, xmm4
lahf
test ah, 0x44
jp 0x100247b2
movaps xmm0, xmm4
jmp 0x100247cf
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [esp + 0x48]
movsd xmm4, qword [esp + 0x38]
comisd xmm4, xmm0
jbe 0x100247cf
addsd xmm0, qword [esp + 0x50]
cvtsd2ss xmm0, xmm0
lea ecx, [esp + 0x20]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x14]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x10]
movss dword [esp + 0x28], xmm0
call fcn.10002950
xorps xmm1, xmm1
sqrtss xmm1, xmm0
comiss xmm1, dword [0x10034500]
jbe 0x10024820
movss xmm3, dword [0x10034584]
jmp 0x1002484c
comiss xmm1, dword [0x100344fc]
jbe 0x10024833
movss xmm3, dword [0x10034550]
jmp 0x1002484c
cvtps2pd xmm0, xmm1
comisd xmm0, xmmword [0x100344c0]
jbe 0x100248f0
movss xmm3, dword [0x10034534]
mov eax, dword [esp + 0x18]
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.10002950
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 + 0x38]
comisd xmm1, xmm0
jbe 0x100248a2
addsd xmm0, qword [esp + 0x50]
movss xmm1, dword [ebp + 0x14]
subss xmm1, dword [esp + 0xc]
cvtsd2ss xmm0, xmm0
comiss xmm1, dword [0x10034574]
movaps xmm2, xmm1
movss dword [esp + 0x1c], xmm0
mulss xmm2, dword [0x10034380]
movss dword [esp + 0x14], xmm1
movss dword [esp + 0xc], xmm2
ja 0x10024963
movss xmm0, dword [0x10034614]
comiss xmm0, xmm1
ja 0x10024963
xorps xmm3, xmm3
jmp 0x100249be
comiss xmm1, dword [0x10034428]
mov eax, dword [esp + 0x18]
lea esi, [eax + 0x18]
mov ecx, esi
jbe 0x1002490c
movss xmm3, dword [0x10034518]
jmp 0x10024914
movss xmm3, dword [0x10034510]
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.10002950
cvtps2pd xmm1, xmm3
movss dword [esp + 0x10], xmm0
ucomisd xmm1, xmm4
lahf
test ah, 0x44
jp 0x10024882
movaps xmm0, xmm4
jmp 0x100248a2
xorps xmm3, xmm3
comiss xmm3, xmm2
jbe 0x1002497c
movaps xmm0, xmm1
mulss xmm0, dword [0x100345e8]
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 + 0x18]
xorps xmm3, xmm3
fstp dword [esp + 0x10]
movss xmm0, dword [esp + 0x10]
add esp, 4
comiss xmm3, xmm1
mulss xmm0, dword [0x100345a4]
jbe 0x100249b2
addss xmm1, xmm0
jmp 0x100249b6
subss xmm1, xmm0
movss xmm0, dword [0x10034614]
addss xmm1, dword [esp + 0x1c]
comiss xmm1, dword [0x10034574]
movaps xmm2, xmm1
movss dword [esp + 0x14], xmm1
mulss xmm2, dword [0x10034380]
movss dword [esp + 0xc], xmm2
ja 0x100249e9
comiss xmm0, xmm1
jbe 0x10024a39
comiss xmm3, xmm2
jbe 0x100249ff
movaps xmm0, xmm1
mulss xmm0, dword [0x100345e8]
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 + 0x18]
xorps xmm0, xmm0
add esp, 4
comiss xmm0, xmm1
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [0x100345a4]
jbe 0x10024a35
addss xmm1, xmm0
jmp 0x10024a39
subss xmm1, xmm0
mulss xmm1, dword [0x10034394]
movaps xmm0, xmm1
call fcn.1002c450
mov eax, dword [esp + 0x18]
movaps xmm1, xmm0
movss xmm3, dword [esp + 0x30]
movsd xmm2, qword [0x10034460]
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 0x10024b5f
subsd xmm1, xmm2
comisd xmm3, xmm1
jb 0x10024b5f
movss xmm1, dword [eax + 4]
movss xmm3, dword [esp + 0x34]
cvtps2pd xmm1, xmm1
cvtps2pd xmm3, xmm3
movaps xmm0, xmm1
addsd xmm0, xmm2
comisd xmm0, xmm3
jb 0x10024b5f
subsd xmm1, xmm2
comisd xmm3, xmm1
jb 0x10024b5f
mov eax, dword [esp + 0x2c]
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.10002950
movss xmm1, dword [0x100344f8]
comiss xmm1, xmm0
jb 0x10024b5f
movss xmm0, dword [0x1022684c]
movss xmm2, dword [0x10034400]
comiss xmm2, xmm0
jbe 0x10024b58
movss xmm1, dword [0x100345f0]
comiss xmm0, xmm1
jbe 0x10024b58
movss xmm0, dword [0x10226850]
comiss xmm2, xmm0
jbe 0x10024b58
comiss xmm0, xmm1
jbe 0x10024b58
mov dword [edi + 0xc], 2
mov byte [edi + 0x20], 0
jmp 0x10024b5f
mov dword [edi + 0x1c], 3
mov esi, dword [0x10038728]
cmp dword [edi + 0x1c], 3
jne 0x10024cff
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + esi*4]
mov eax, dword [0x10226848]
cmp eax, dword [ecx + 4]
jle 0x10024ba8
push 0x10226848
call fcn.1002b5e6
add esp, 4
cmp dword [0x10226848], 0xffffffff
jne 0x10024ba8
push 0x10226848
call fcn.1002b59c
add esp, 4
mov ecx, dword [0x10038da0]
push 0x10226838
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
mov eax, dword [edi]
movss xmm6, dword [0x10226838]
movss xmm4, dword [0x10034574]
movss xmm7, dword [0x1022683c]
movss xmm2, dword [eax]
movss xmm0, dword [eax + 4]
subss xmm2, xmm6
movss xmm5, dword [eax + 8]
subss xmm0, xmm7
subss xmm5, dword [0x10226840]
movss xmm1, dword [0x100345a4]
comiss xmm2, xmm4
movss dword [esp + 0x14], xmm2
jbe 0x10024c0f
subss xmm2, xmm1
movss dword [esp + 0x14], xmm2
comiss xmm0, xmm4
jbe 0x10024c18
subss xmm0, xmm1
movss xmm3, dword [0x10034614]
comiss xmm3, xmm2
jbe 0x10024c2f
addss xmm2, xmm1
movss dword [esp + 0x14], xmm2
comiss xmm3, xmm0
movss dword [esp + 0x10], xmm0
jbe 0x10024c44
addss xmm0, xmm1
movss dword [esp + 0x10], xmm0
mulss xmm2, dword [0x100343b8]
mulss xmm0, dword [0x100343b8]
mulss xmm5, dword [0x100343b8]
addss xmm2, xmm6
addss xmm0, xmm7
addss xmm5, dword [0x10226840]
comiss xmm2, xmm4
movss dword [ebp + 0x10], xmm2
movss dword [ebp + 0x14], xmm0
movss dword [ebp + 0x18], xmm5
jbe 0x10024c89
subss xmm2, xmm1
movss dword [ebp + 0x10], xmm2
comiss xmm0, xmm4
jbe 0x10024c97
subss xmm0, xmm1
movss dword [ebp + 0x14], xmm0
comiss xmm3, xmm2
jbe 0x10024ca5
addss xmm2, xmm1
movss dword [ebp + 0x10], xmm2
comiss xmm3, xmm0
jbe 0x10024cb3
addss xmm0, xmm1
movss dword [ebp + 0x14], xmm0
mov ecx, dword [0x10038da0]
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
movss xmm0, dword [esp + 0x14]
movss xmm2, dword [0x10034400]
comiss xmm2, xmm0
jbe 0x10024cff
movss xmm1, dword [0x100345f0]
comiss xmm0, xmm1
jbe 0x10024cff
movss xmm0, dword [esp + 0x10]
comiss xmm2, xmm0
jbe 0x10024cff
comiss xmm0, xmm1
jbe 0x10024cff
mov dword [edi + 0xc], 2
mov byte [edi + 0x20], 0
mov eax, dword [edi + 0xc]
cmp eax, 1
jne 0x10024dea
cmp byte [0x10226858], 0
jne 0x10024d2e
mov byte [edi + 0x20], 0
cmp dword [0x10049a2c], eax
jge 0x10024d27
mov dword [edi + 8], 0
mov byte [0x10226858], 1
mov ecx, dword [esp + 0x2c]
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 + 0x18]
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
mov eax, dword [edi + 0xc]
jmp 0x10024df5
mov esi, dword [esp + 0x18]
mov byte [0x10226858], 0
cmp eax, 2
jne 0x10025228
cmp byte [0x10226859], 0
jne 0x10024e1d
mov dword [edi + 8], 0
xor ecx, ecx
mov byte [edi + 0x20], 0
mov byte [0x10226859], 1
jmp 0x10024e20
mov ecx, dword [edi + 8]
mov eax, dword [0x10049a2c]
test eax, eax
jle 0x10024e34
cmp ecx, eax
jl 0x10024e34
mov dword [edi + 0xc], 1
cmp ecx, dword [edi + 0x14]
jl 0x10024e49
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 + 0x34], 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 + 0x14], xmm5
xorps xmm0, xmm0
movss dword [esp + 0x18], 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 + 0x1c], xmm0
movaps xmm0, xmm5
cvtps2pd xmm2, xmm3
unpcklps xmm0, xmm4
movq qword [ebp + 0x10], xmm0
movq qword [esp + 0x20], xmm0
movsd xmm0, qword [esp + 0x38]
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x10024f2a
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x10024f50
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 + 0x38]
movss xmm4, dword [esp + 0x18]
comisd xmm1, xmm0
jbe 0x10024f50
addsd xmm0, qword [esp + 0x50]
movss xmm2, dword [0x10049a28]
movss xmm5, dword [0x10034574]
subss xmm4, xmm2
comiss xmm2, xmm5
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x18], xmm4
movss dword [esp + 0x30], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [0x10034380]
movss dword [ebp + 0x14], xmm4
movss dword [esp + 0xc], xmm0
ja 0x10024fa6
movss xmm3, dword [0x10034614]
comiss xmm3, xmm2
ja 0x10024fa6
movss xmm1, dword [0x100345a4]
jmp 0x10025015
xorps xmm3, xmm3
comiss xmm3, xmm0
jbe 0x10024fbf
movaps xmm0, xmm2
mulss xmm0, dword [0x100345e8]
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 [0x10049a28]
xorps xmm0, xmm0
movss xmm1, dword [0x100345a4]
add esp, 4
movss xmm4, dword [esp + 0x18]
movss xmm3, dword [0x10034614]
movss xmm5, dword [0x10034574]
comiss xmm0, xmm2
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
mulss xmm0, xmm1
jbe 0x10025011
addss xmm2, xmm0
jmp 0x10025015
subss xmm2, xmm0
comiss xmm2, dword [0x10034544]
ja 0x1002502b
movss xmm0, dword [0x1003460c]
comiss xmm0, xmm2
jbe 0x10025043
cmp byte [0x10049a26], 0
je 0x10025043
movss xmm0, dword [0x10034540]
movss dword [ebp + 0x10], xmm0
jmp 0x10025049
movss xmm0, dword [esp + 0x14]
cmp byte [0x10049a25], 0
je 0x10025075
movq xmm0, qword [esp + 0x58]
mov eax, dword [esp + 0x44]
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 0x1002507b
movss xmm2, dword [esp + 0x34]
comiss xmm0, xmm5
jbe 0x10025089
subss xmm0, xmm1
movss dword [ebp + 0x10], xmm0
comiss xmm3, xmm0
jbe 0x10025097
addss xmm0, xmm1
movss dword [ebp + 0x10], xmm0
comiss xmm4, xmm5
jbe 0x100250a5
subss xmm4, xmm1
movss dword [ebp + 0x14], xmm4
comiss xmm3, xmm4
jbe 0x100250b3
addss xmm4, xmm1
movss dword [ebp + 0x14], xmm4
comiss xmm2, xmm5
jbe 0x100250c1
subss xmm2, xmm1
movss dword [ebp + 0x18], xmm2
comiss xmm3, xmm2
jbe 0x100250cf
addss xmm2, xmm1
movss dword [ebp + 0x18], xmm2
mov ecx, dword [0x10038da0]
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
movss xmm1, dword [ebp + 0x14]
subss xmm1, dword [esp + 0x24]
comiss xmm1, dword [0x10034574]
movaps xmm2, xmm1
movss dword [esp + 0x14], xmm1
mulss xmm2, dword [0x10034380]
movss dword [esp + 0xc], xmm2
ja 0x1002511d
movss xmm0, dword [0x10034614]
comiss xmm0, xmm1
ja 0x1002511d
xorps xmm3, xmm3
jmp 0x10025178
xorps xmm0, xmm0
comiss xmm0, xmm2
jbe 0x10025136
movaps xmm0, xmm1
mulss xmm0, dword [0x100345e8]
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 + 0x18]
xorps xmm3, xmm3
fstp dword [esp + 0x10]
movss xmm0, dword [esp + 0x10]
add esp, 4
comiss xmm3, xmm1
mulss xmm0, dword [0x100345a4]
jbe 0x1002516c
addss xmm1, xmm0
jmp 0x10025170
subss xmm1, xmm0
movss xmm0, dword [0x10034614]
addss xmm1, dword [esp + 0x30]
comiss xmm1, dword [0x10034574]
movaps xmm2, xmm1
movss dword [esp + 0x14], xmm1
mulss xmm2, dword [0x10034380]
movss dword [esp + 0xc], xmm2
ja 0x100251a3
comiss xmm0, xmm1
jbe 0x100251f3
comiss xmm3, xmm2
jbe 0x100251b9
movaps xmm0, xmm1
mulss xmm0, dword [0x100345e8]
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 + 0x18]
xorps xmm0, xmm0
add esp, 4
comiss xmm0, xmm1
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [0x100345a4]
jbe 0x100251ef
addss xmm1, xmm0
jmp 0x100251f3
subss xmm1, xmm0
mulss xmm1, dword [0x10034394]
movaps xmm0, xmm1
call fcn.1002c450
movaps xmm1, xmm0
shufps xmm1, xmm0, 1
mulss xmm1, dword [esp + 0x1c]
mulss xmm0, dword [esp + 0x1c]
movss dword [esi + 0x18], xmm1
movss dword [esi + 0x1c], xmm0
inc dword [edi + 8]
mov eax, dword [edi + 0xc]
jmp 0x1002522f
mov byte [0x10226859], 0
test eax, eax
jne 0x1002524a
cmp byte [0x1022685a], al
jne 0x1002525b
mov dword [edi + 8], eax
mov byte [edi + 0x20], al
mov byte [0x1022685a], 1
jmp 0x1002525b
mov byte [0x1022685a], 0
cmp eax, 2
je 0x10025265
cmp eax, 1
je 0x10025265
mov dword [0x10049a2c], 0
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
xor ecx, esp
call fcn.1002b17d
mov esp, ebp
pop ebp
ret 0x14