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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x158
mov eax, dword [0x1005c040]
xor eax, esp
mov dword [esp + 0x154], eax
cmp byte [0x100840e4], 0
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x20], eax
mov ecx, dword [ebp + 0xc]
movq xmm0, qword [eax + 0xc]
mov eax, dword [eax + 0x14]
push edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], ecx
movq qword [esp + 0x48], xmm0
mov dword [esp + 0x44], eax
je 0x10029f80
mov edx, dword [0x100840e0]
lea ecx, [esp + 0x114]
call fcn.10029c80
cmp dword [eax + 0x14], 0xf
jbe 0x10029df9
mov eax, dword [eax]
mov ecx, dword [esi + 0x10]
lea edi, [esi + 0x14]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi]
mov dword [esp + 0x18], 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 + 0x1c], eax
mov dword [esp + 0x14], 0
test eax, eax
je 0x10029e7a
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 + 0x2c]
mov ecx, dword [edi]
push ecx
push 0xc
push dword [esp + 0x3c]
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 + 0x3c]
push edi
push ecx
push 0x24
push dword [esp + 0x44]
call esi
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov esi, dword [esp + 0x68]
add esp, 0x34
jmp 0x10029f1d
mov ecx, 0x3f
xor edx, edx
mov al, byte [edx + str.r_7._2]
xor al, cl
inc ecx
mov byte [esp + edx + 0x50], al
and ecx, 0x800000ff
jns 0x10029e9e
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x10029e81
mov byte [esp + 0x60], 0
mov ecx, 0x6e
xor edx, edx
mov al, byte [edx + 0x10057064]
xor al, cl
inc ecx
mov byte [esp + edx + 0xb0], al
and ecx, 0x800000ff
jns 0x10029ed0
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x10029eb0
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, 0xf
jbe 0x10029f5b
mov edx, dword [esp + 0x114]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10029f51
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10029f51
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10031eb6
add esp, 8
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0xf
mov byte [esp + 0x114], 0
mov byte [0x100840e4], 0
cmp byte [0x100840e5], 0
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
je 0x1002a138
mov edx, dword [0x100840e0]
lea ecx, [esp + 0x12c]
call fcn.10029c80
mov ecx, eax
cmp dword [ecx + 0x14], 0xf
jbe 0x10029faf
mov ecx, dword [ecx]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], 0x2b6272
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 0x1002a02c
push eax
push 1
lea ecx, [esi + 0x14]
push 4
push ecx
call edi
push dword [esp + 0x28]
mov ecx, dword [esi + 0x14]
push ecx
push 0xc
push dword [esp + 0x3c]
lea eax, [ecx - 1]
mov dword [esi + 0x14], eax
call edi
push dword [esp + 0x38]
mov ecx, dword [esi + 0x14]
push ecx
push 0x24
push dword [esp + 0x48]
lea eax, [ecx - 1]
mov dword [esi + 0x14], eax
call edi
push dword [esp + 0x48]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
jmp 0x1002a0d5
mov ecx, 0x12
xor edx, edx
mov al, byte [edx + str._bprvmH]
xor al, cl
inc ecx
mov byte [esp + edx + 0x70], al
and ecx, 0x800000ff
jns 0x1002a050
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x1002a033
mov byte [esp + 0x80], 0
mov ecx, 0xa1
xor edx, edx
mov al, byte [edx + 0x100570ac]
xor al, cl
inc ecx
mov byte [esp + edx + 0xd0], al
and ecx, 0x800000ff
jns 0x1002a085
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x1002a065
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, 0xf
jbe 0x1002a113
mov edx, dword [esp + 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002a109
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002a109
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10031eb6
add esp, 8
mov dword [esp + 0x13c], 0
mov dword [esp + 0x140], 0xf
mov byte [esp + 0x12c], 0
mov byte [0x100840e5], 0
cmp byte [0x100840e6], 0
je 0x1002a35d
mov edx, dword [0x100840e0]
lea ecx, [esp + 0x144]
call fcn.10029c80
cmp dword [eax + 0x14], 0xf
jbe 0x1002a15f
mov eax, dword [eax]
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], 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]
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
test eax, eax
je 0x1002a1d5
push eax
push 1
lea eax, [esi + 0x14]
push 4
push eax
call edi
push dword [esp + 0x28]
push 1
push 0xc
push dword [esp + 0x3c]
call edi
push dword [esp + 0x38]
mov ecx, dword [esi + 0x14]
push ecx
push 0x1c
push dword [esp + 0x48]
lea eax, [ecx - 1]
mov dword [esi + 0x14], eax
call edi
push dword [esp + 0x48]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
jmp 0x1002a28b
mov ecx, 0x5f
xor edx, edx
nop dword [eax]
mov al, byte [edx + 0x100570dc]
xor al, cl
inc ecx
mov byte [esp + edx + 0x90], al
and ecx, 0x800000ff
jns 0x1002a200
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x1002a1e0
mov byte [esp + 0xa0], 0
mov ecx, 0x69
xor edx, edx
mov al, byte [edx + 0x100570c4]
xor al, cl
inc ecx
mov byte [esp + edx + 0xf0], al
and ecx, 0x800000ff
jns 0x1002a235
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x1002a215
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, 0xf
jbe 0x1002a2c9
mov edx, dword [esp + 0x144]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002a2bf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002a2bf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10031eb6
add esp, 8
xor edx, edx
mov dword [esp + 0x154], 0
mov dword [esp + 0x158], 0xf
xor edi, edi
mov byte [esp + 0x144], 0
mov dword [esp + 0x18], edx
nop
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 + 0x18]
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 + 0x18]
add edx, 0x24
mov dword [ecx + 8], eax
mov dword [esp + 0x18], edx
cmp edi, 0x1ab3f00
jl 0x1002a2f0
mov byte [0x100840e6], 0
cmp dword [esi + 0xc], 3
jne 0x1002a36e
mov byte [esi + 0x20], 1
mov dword [esi + 0x1c], 1
cmp byte [esi + 0x20], 0
je 0x1002abad
cmp dword [esi + 0x1c], 1
jne 0x1002a417
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
movss xmm2, dword [0x1005831c]
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 0x1002a3dd
subss xmm1, xmm2
comiss xmm4, xmm1
jb 0x1002a3dd
movss xmm1, dword [eax + 4]
movaps xmm0, xmm1
addss xmm0, xmm2
comiss xmm0, xmm3
jb 0x1002a3dd
subss xmm1, xmm2
comiss xmm3, xmm1
jb 0x1002a3dd
mov dword [esi + 0x1c], 2
jmp 0x1002a406
mov eax, dword [0x11e19238]
inc eax
cmp byte [0x11e1923c], 0
mov dword [0x11e19238], eax
je 0x1002a3f8
mov byte [0x11e1923c], 0
cmp eax, 0x96
jne 0x1002a417
mov dword [esi + 0x1c], 0
mov byte [0x11e1923c], 1
mov dword [0x11e19238], 0
cmp dword [esi + 0x1c], 2
jne 0x1002a9ce
mov eax, dword fs:[0x2c]
mov edi, dword [0x10083c64]
mov ecx, dword [eax + edi*4]
mov eax, dword [0x11e198c8]
cmp eax, dword [ecx + 4]
jle 0x1002a460
push 0x11e198c8
call fcn.10031f40
add esp, 4
cmp dword [0x11e198c8], 0xffffffff
jne 0x1002a460
push 0x11e198c8
call fcn.10031eef
add esp, 4
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + edi*4]
mov eax, dword [0x11e198b0]
cmp eax, dword [ecx + 4]
jle 0x1002a499
push 0x11e198b0
call fcn.10031f40
add esp, 4
cmp dword [0x11e198b0], 0xffffffff
jne 0x1002a499
push 0x11e198b0
call fcn.10031eef
add esp, 4
mov ecx, dword [0x10084074]
push 0x11e198cc
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
mov eax, dword [esi]
movss xmm6, dword [0x11e198cc]
movss xmm7, dword [0x11e198d0]
movss xmm4, dword [0x10058314]
movss xmm2, dword [eax]
movss xmm1, dword [eax + 4]
subss xmm2, xmm6
movss xmm5, dword [eax + 8]
subss xmm1, xmm7
subss xmm5, dword [0x11e198d4]
movss xmm0, dword [0x1005833c]
comiss xmm2, xmm4
movss dword [0x11e198b8], xmm2
movss dword [0x11e198bc], xmm1
movss dword [0x11e198c0], xmm5
jbe 0x1002a514
subss xmm2, xmm0
movss dword [0x11e198b8], xmm2
comiss xmm1, xmm4
jbe 0x1002a525
subss xmm1, xmm0
movss dword [0x11e198bc], xmm1
movss xmm3, dword [0x100583b0]
comiss xmm3, xmm2
jbe 0x1002a53e
addss xmm2, xmm0
movss dword [0x11e198b8], xmm2
comiss xmm3, xmm1
jbe 0x1002a54f
addss xmm1, xmm0
movss dword [0x11e198bc], xmm1
mulss xmm2, dword [0x10058140]
mulss xmm1, dword [0x10058140]
mulss xmm5, dword [0x10058140]
addss xmm2, xmm6
addss xmm1, xmm7
addss xmm5, dword [0x11e198d4]
comiss xmm2, xmm4
movss dword [ebp + 0x10], xmm2
movss dword [ebp + 0x14], xmm1
movss dword [ebp + 0x18], xmm5
jbe 0x1002a594
subss xmm2, xmm0
movss dword [ebp + 0x10], xmm2
comiss xmm1, xmm4
jbe 0x1002a5a2
subss xmm1, xmm0
movss dword [ebp + 0x14], xmm1
comiss xmm3, xmm2
jbe 0x1002a5b0
addss xmm2, xmm0
movss dword [ebp + 0x10], xmm2
comiss xmm3, xmm1
jbe 0x1002a5be
addss xmm1, xmm0
movss dword [ebp + 0x14], xmm1
mov ecx, dword [0x10084074]
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [esi + 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 + 0x1c], xmm4
movss dword [esp + 0x40], xmm2
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x18], xmm1
cvtps2pd xmm1, xmm0
cvtps2pd xmm0, xmm4
xorps xmm4, xmm4
ucomisd xmm0, xmm4
lahf
test ah, 0x44
jp 0x1002a641
ucomisd xmm1, xmm4
lahf
test ah, 0x44
jp 0x1002a641
xorps xmm0, xmm0
jmp 0x1002a65f
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10058270]
xorps xmm4, xmm4
comisd xmm4, xmm0
jbe 0x1002a65f
addsd xmm0, qword [0x10058278]
cvtsd2ss xmm0, xmm0
lea ecx, [esp + 0x28]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x20]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [esp + 0x18]
movss dword [esp + 0x30], xmm0
call fcn.10002cc0
xorps xmm1, xmm1
sqrtss xmm1, xmm0
comiss xmm1, dword [0x10058290]
jbe 0x1002a6b0
movss xmm3, dword [0x1005831c]
jmp 0x1002a6dc
comiss xmm1, dword [0x10058288]
jbe 0x1002a6c3
movss xmm3, dword [0x100582fc]
jmp 0x1002a6dc
cvtps2pd xmm0, xmm1
comisd xmm0, xmmword [0x10058260]
jbe 0x1002a776
movss xmm3, dword [0x100582e0]
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
movss dword [esp + 0x28], xmm3
mov dword [esp + 0x2c], 0
movss xmm0, dword [edi + 0x20]
movss dword [esp + 0x30], xmm0
call fcn.10002cc0
movss dword [esp + 0x18], xmm0
cvtps2pd xmm1, xmm3
xorps xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10058270]
xorps xmm1, xmm1
comisd xmm1, xmm0
jbe 0x1002a72c
addsd xmm0, qword [0x10058278]
movss xmm2, dword [ebp + 0x14]
subss xmm2, dword [esp + 0x14]
cvtsd2ss xmm0, xmm0
comiss xmm2, dword [0x10058314]
movaps xmm1, xmm2
movss dword [esp + 0x20], xmm0
mulss xmm1, dword [0x10058104]
movss dword [esp + 0x1c], xmm2
movss dword [esp + 0x14], xmm1
ja 0x1002a7dd
movss xmm0, dword [0x100583b0]
comiss xmm0, xmm2
ja 0x1002a7dd
xorps xmm3, xmm3
jmp 0x1002a834
comiss xmm1, dword [0x100581b8]
jbe 0x1002a789
movss xmm3, dword [0x100582b4]
jmp 0x1002a791
movss xmm3, dword [0x100582ac]
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
movss dword [esp + 0x28], xmm3
mov dword [esp + 0x2c], 0
movss xmm0, dword [edi + 0x20]
or dword [edi + 0x24], 0x20000
movss dword [esp + 0x30], xmm0
call fcn.10002cc0
cvtps2pd xmm1, xmm3
movss dword [esp + 0x18], xmm0
ucomisd xmm1, xmm4
lahf
test ah, 0x44
jp 0x1002a70b
xorps xmm0, xmm0
jmp 0x1002a72c
xorps xmm2, xmm2
comiss xmm2, xmm1
jbe 0x1002a7f2
xorps xmm1, xmmword [0x10058490]
movss dword [esp + 0x14], xmm1
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 + 0x20]
xorps xmm3, xmm3
fstp dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
add esp, 4
comiss xmm3, xmm2
mulss xmm0, dword [0x1005833c]
jbe 0x1002a828
addss xmm2, xmm0
jmp 0x1002a82c
subss xmm2, xmm0
movss xmm0, dword [0x100583b0]
addss xmm2, dword [esp + 0x20]
comiss xmm2, dword [0x10058314]
movaps xmm1, xmm2
movss dword [esp + 0x1c], xmm2
mulss xmm1, dword [0x10058104]
movss dword [esp + 0x14], xmm1
ja 0x1002a85f
comiss xmm0, xmm2
jbe 0x1002a8ab
comiss xmm3, xmm1
jbe 0x1002a871
xorps xmm1, xmmword [0x10058490]
movss dword [esp + 0x14], xmm1
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 + 0x20]
xorps xmm0, xmm0
add esp, 4
comiss xmm0, xmm2
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x1005833c]
jbe 0x1002a8a7
addss xmm2, xmm0
jmp 0x1002a8ab
subss xmm2, xmm0
mulss xmm2, dword [0x10058118]
movaps xmm0, xmm2
call fcn.10032d70
movss xmm3, dword [esp + 0x40]
movaps xmm1, xmm0
movsd xmm2, qword [0x100581f0]
shufps xmm1, xmm0, 1
mulss xmm1, dword [esp + 0x18]
mulss xmm0, dword [esp + 0x18]
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 0x1002a9ce
subsd xmm1, xmm2
comisd xmm3, xmm1
jb 0x1002a9ce
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 0x1002a9ce
subsd xmm1, xmm2
comisd xmm3, xmm1
jb 0x1002a9ce
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x28]
movss xmm0, dword [eax + 0xec]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [eax + 0xf0]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [eax + 0xf4]
movss dword [esp + 0x30], xmm0
call fcn.10002cc0
movss xmm1, dword [0x10058284]
comiss xmm1, xmm0
jb 0x1002a9ce
movss xmm0, dword [0x11e198b8]
movss xmm2, dword [0x10058184]
comiss xmm2, xmm0
jbe 0x1002a9c7
movss xmm1, dword [0x10058388]
comiss xmm0, xmm1
jbe 0x1002a9c7
movss xmm0, dword [0x11e198bc]
comiss xmm2, xmm0
jbe 0x1002a9c7
comiss xmm0, xmm1
jbe 0x1002a9c7
mov dword [esi + 0xc], 2
mov byte [esi + 0x20], 0
jmp 0x1002a9ce
mov dword [esi + 0x1c], 3
cmp dword [esi + 0x1c], 3
jne 0x1002abad
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10083c64]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x11e198b4]
cmp eax, dword [ecx + 4]
jle 0x1002aa17
push 0x11e198b4
call fcn.10031f40
add esp, 4
cmp dword [0x11e198b4], 0xffffffff
jne 0x1002aa17
push 0x11e198b4
call fcn.10031eef
add esp, 4
mov ecx, dword [0x10084074]
push 0x11e198a4
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
mov eax, dword [esi]
movss xmm5, dword [0x10058314]
movss xmm0, dword [0x1005833c]
movss xmm3, dword [eax]
subss xmm3, dword [0x11e198a4]
movss xmm4, dword [eax + 4]
subss xmm4, dword [0x11e198a8]
movss xmm6, dword [eax + 8]
subss xmm6, dword [0x11e198ac]
comiss xmm3, xmm5
movss dword [esp + 0x1c], xmm3
movss dword [esp + 0x18], xmm4
jbe 0x1002aa7c
subss xmm3, xmm0
movss dword [esp + 0x1c], xmm3
comiss xmm4, xmm5
movaps xmm7, xmm3
movss dword [esp + 0x14], xmm3
movaps xmm1, xmm3
jbe 0x1002aa9d
subss xmm4, xmm0
movss dword [esp + 0x14], xmm3
movss dword [esp + 0x18], xmm4
movss xmm3, dword [0x100583b0]
movaps xmm2, xmm4
comiss xmm3, xmm7
movss dword [esp + 0x20], xmm4
movss dword [esp + 0x38], xmm4
jbe 0x1002aad4
movss xmm1, dword [esp + 0x14]
movaps xmm7, xmm4
addss xmm1, xmm0
movss dword [esp + 0x20], xmm4
movss dword [esp + 0x1c], xmm1
jmp 0x1002aada
movss xmm7, dword [esp + 0x38]
comiss xmm3, dword [esp + 0x20]
jbe 0x1002aaee
movaps xmm2, xmm7
addss xmm2, xmm0
movss dword [esp + 0x18], xmm2
movss xmm4, dword [0x10058140]
mulss xmm1, xmm4
mulss xmm2, xmm4
addss xmm1, dword [0x11e198a4]
mulss xmm6, xmm4
addss xmm2, dword [0x11e198a8]
comiss xmm1, xmm5
addss xmm6, dword [0x11e198ac]
movss dword [ebp + 0x10], xmm1
movss dword [ebp + 0x14], xmm2
movss dword [ebp + 0x18], xmm6
jbe 0x1002ab37
subss xmm1, xmm0
movss dword [ebp + 0x10], xmm1
comiss xmm2, xmm5
jbe 0x1002ab45
subss xmm2, xmm0
movss dword [ebp + 0x14], xmm2
comiss xmm3, xmm1
jbe 0x1002ab53
addss xmm1, xmm0
movss dword [ebp + 0x10], xmm1
comiss xmm3, xmm2
jbe 0x1002ab61
addss xmm2, xmm0
movss dword [ebp + 0x14], xmm2
mov ecx, dword [0x10084074]
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
movss xmm0, dword [esp + 0x1c]
movss xmm2, dword [0x10058184]
comiss xmm2, xmm0
jbe 0x1002abad
movss xmm1, dword [0x10058388]
comiss xmm0, xmm1
jbe 0x1002abad
movss xmm0, dword [esp + 0x18]
comiss xmm2, xmm0
jbe 0x1002abad
comiss xmm0, xmm1
jbe 0x1002abad
mov dword [esi + 0xc], 2
mov byte [esi + 0x20], 0
cmp dword [esi + 0xc], 1
jne 0x1002ac9e
cmp byte [0x11e198c4], 0
jne 0x1002abdb
mov byte [esi + 0x20], 0
cmp dword [0x1008378c], 1
jge 0x1002abd4
mov dword [esi + 8], 0
mov byte [0x11e198c4], 1
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [esi + 8]
mov edi, eax
mov edx, dword [esp + 0x34]
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 + 0x34]
mov edi, dword [esp + 0x24]
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 0x1002aca9
mov edi, dword [esp + 0x24]
mov byte [0x11e198c4], 0
cmp dword [esi + 0xc], 2
jne 0x1002b0d0
cmp byte [0x11e198c5], 0
jne 0x1002acd2
mov dword [esi + 8], 0
xor ecx, ecx
mov byte [esi + 0x20], 0
mov byte [0x11e198c5], 1
jmp 0x1002acd5
mov ecx, dword [esi + 8]
mov eax, dword [0x1008378c]
test eax, eax
jle 0x1002ace9
cmp ecx, eax
jl 0x1002ace9
mov dword [esi + 0xc], 1
cmp ecx, dword [esi + 0x14]
jl 0x1002acfe
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 + 0x38], 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 + 0x20], xmm5
xorps xmm0, xmm0
movss dword [esp + 0x24], 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 + 0x40], xmm0
movaps xmm0, xmm5
cvtps2pd xmm2, xmm3
unpcklps xmm0, xmm4
movq qword [ebp + 0x10], xmm0
movq qword [esp + 0x28], xmm0
xorps xmm0, xmm0
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x1002addc
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x1002ae03
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10058270]
xorps xmm1, xmm1
movss xmm4, dword [esp + 0x24]
comisd xmm1, xmm0
jbe 0x1002ae03
addsd xmm0, qword [0x10058278]
movss xmm2, dword [0x10083788]
movss xmm5, dword [0x10058314]
subss xmm4, xmm2
comiss xmm2, xmm5
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x24], xmm4
movss dword [esp + 0x34], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [0x10058104]
movss dword [ebp + 0x14], xmm4
movss dword [esp + 0x14], xmm0
ja 0x1002ae59
movss xmm3, dword [0x100583b0]
comiss xmm3, xmm2
ja 0x1002ae59
movss xmm1, dword [0x1005833c]
jmp 0x1002aec4
xorps xmm2, xmm2
comiss xmm2, xmm0
jbe 0x1002ae6e
xorps xmm0, xmmword [0x10058490]
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 [0x10083788]
xorps xmm0, xmm0
movss xmm1, dword [0x1005833c]
add esp, 4
movss xmm4, dword [esp + 0x24]
movss xmm3, dword [0x100583b0]
movss xmm5, dword [0x10058314]
comiss xmm0, xmm2
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
mulss xmm0, xmm1
jbe 0x1002aec0
addss xmm2, xmm0
jmp 0x1002aec4
subss xmm2, xmm0
comiss xmm2, dword [0x100582f0]
ja 0x1002aeda
movss xmm0, dword [0x100583a0]
comiss xmm0, xmm2
jbe 0x1002aef2
cmp byte [0x10083786], 0
je 0x1002aef2
movss xmm0, dword [0x100582ec]
movss dword [ebp + 0x10], xmm0
jmp 0x1002aef8
movss xmm0, dword [esp + 0x20]
cmp byte [0x10083785], 0
je 0x1002af24
movq xmm0, qword [esp + 0x48]
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 0x1002af2a
movss xmm2, dword [esp + 0x38]
comiss xmm0, xmm5
jbe 0x1002af38
subss xmm0, xmm1
movss dword [ebp + 0x10], xmm0
comiss xmm3, xmm0
jbe 0x1002af46
addss xmm0, xmm1
movss dword [ebp + 0x10], xmm0
comiss xmm4, xmm5
jbe 0x1002af54
subss xmm4, xmm1
movss dword [ebp + 0x14], xmm4
comiss xmm3, xmm4
jbe 0x1002af62
addss xmm4, xmm1
movss dword [ebp + 0x14], xmm4
comiss xmm2, xmm5
jbe 0x1002af70
subss xmm2, xmm1
movss dword [ebp + 0x18], xmm2
comiss xmm3, xmm2
jbe 0x1002af7e
addss xmm2, xmm1
movss dword [ebp + 0x18], xmm2
mov ecx, dword [0x10084074]
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 + 0x2c]
comiss xmm2, dword [0x10058314]
movaps xmm0, xmm2
movss dword [esp + 0x44], xmm2
mulss xmm0, dword [0x10058104]
movss dword [esp + 0x14], xmm0
ja 0x1002afcc
movss xmm3, dword [0x100583b0]
comiss xmm3, xmm2
ja 0x1002afcc
xorps xmm5, xmm5
jmp 0x1002b023
xorps xmm2, xmm2
comiss xmm2, xmm0
jbe 0x1002afe1
xorps xmm0, xmmword [0x10058490]
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 + 0x48]
xorps xmm5, xmm5
movss xmm3, dword [0x100583b0]
add esp, 4
comiss xmm5, xmm2
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x1005833c]
jbe 0x1002b01f
addss xmm2, xmm0
jmp 0x1002b023
subss xmm2, xmm0
movss xmm1, dword [esp + 0x34]
addss xmm1, xmm2
comiss xmm1, dword [0x10058314]
movaps xmm0, xmm1
movss dword [esp + 0x34], xmm1
mulss xmm0, dword [0x10058104]
movss dword [esp + 0x14], xmm0
ja 0x1002b052
comiss xmm3, xmm1
jbe 0x1002b09e
comiss xmm5, xmm0
jbe 0x1002b064
xorps xmm0, xmmword [0x10058490]
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 + 0x38]
xorps xmm0, xmm0
add esp, 4
comiss xmm0, xmm1
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x1005833c]
jbe 0x1002b09a
addss xmm1, xmm0
jmp 0x1002b09e
subss xmm1, xmm0
mulss xmm1, dword [0x10058118]
movaps xmm0, xmm1
call fcn.10032d70
movaps xmm1, xmm0
shufps xmm1, xmm0, 1
mulss xmm1, dword [esp + 0x40]
mulss xmm0, dword [esp + 0x40]
movss dword [edi + 0x18], xmm1
movss dword [edi + 0x1c], xmm0
inc dword [esi + 8]
jmp 0x1002b0d7
mov byte [0x11e198c5], 0
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x1002b0f5
cmp byte [0x11e198c6], al
jne 0x1002b106
mov dword [esi + 8], eax
mov byte [esi + 0x20], al
mov byte [0x11e198c6], 1
jmp 0x1002b106
mov byte [0x11e198c6], 0
cmp eax, 2
je 0x1002b110
cmp eax, 1
je 0x1002b110
mov dword [0x1008378c], 0
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
xor ecx, esp
call fcn.10031b5e
mov esp, ebp
pop ebp
ret 0x14