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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x158
mov eax, dword [0x10039040]
xor eax, esp
mov dword [esp + 0x154], eax
cmp byte [0x10039d58], 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 0x100249c4
mov edx, dword [0x10039d54]
lea ecx, [esp + 0x114]
call fcn.100246c0
cmp dword [eax + 0x14], 0xf
jbe 0x10024839
mov eax, dword [eax]
mov ecx, dword [esi + 0x10]
lea edi, [esi + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
mov dword [esp + 0x20], 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 0x100248bc
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 + 0x28]
mov ecx, dword [edi]
push ecx
push 0xc
push dword [esp + 0x38]
lea eax, [ecx - 1]
mov dword [edi], eax
call esi
push dword [esp + 0x38]
mov ecx, dword [edi]
push ecx
push 0x24
push dword [esp + 0x4c]
lea eax, [ecx - 1]
mov dword [edi], eax
call esi
push dword [esp + 0x48]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov esi, dword [esp + 0x68]
add esp, 0x34
jmp 0x1002495f
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 0x100248e0
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x100248c3
mov byte [esp + 0x60], 0
mov ecx, 0x6e
xor edx, edx
mov al, byte [edx + 0x10034a70]
xor al, cl
inc ecx
mov byte [esp + edx + 0xb0], al
and ecx, 0x800000ff
jns 0x10024912
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x100248f2
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 0x1002499d
mov edx, dword [esp + 0x114]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10024993
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10024993
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1002bd66
add esp, 8
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0xf
mov byte [esp + 0x114], 0
mov byte [0x10039d58], 0
jmp 0x100249c7
lea edi, [esi + 0x14]
cmp byte [0x10039d59], 0
je 0x10024b7a
mov edx, dword [0x10039d54]
lea ecx, [esp + 0x12c]
call fcn.100246c0
cmp dword [eax + 0x14], 0xf
jbe 0x100249ee
mov eax, dword [eax]
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
mov dword [esp + 0x20], 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 0x10024a6e
push eax
push 1
push 4
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [esp + 0x28]
mov ecx, dword [edi]
push ecx
push 0xc
push dword [esp + 0x38]
lea eax, [ecx - 1]
mov dword [edi], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [edi]
lea eax, [ecx - 1]
mov dword [edi], eax
mov edi, dword [esp + 0x38]
push edi
push ecx
push 0x24
push dword [esp + 0x4c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
jmp 0x10024b17
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 0x10024a92
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x10024a75
mov byte [esp + 0x80], 0
mov ecx, 0xa1
xor edx, edx
mov al, byte [edx + 0x10034ab8]
xor al, cl
inc ecx
mov byte [esp + edx + 0xd0], al
and ecx, 0x800000ff
jns 0x10024ac7
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x10024aa7
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 0x10024b55
mov edx, dword [esp + 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10024b4b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10024b4b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1002bd66
add esp, 8
mov dword [esp + 0x13c], 0
mov dword [esp + 0x140], 0xf
mov byte [esp + 0x12c], 0
mov byte [0x10039d59], 0
cmp byte [0x10039d5a], 0
je 0x10024dad
mov edx, dword [0x10039d54]
lea ecx, [esp + 0x144]
call fcn.100246c0
cmp dword [eax + 0x14], 0xf
jbe 0x10024ba1
mov eax, dword [eax]
mov ecx, dword [esi + 0x10]
lea edi, [esi + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x20], 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 0x10024c1d
push eax
push 1
push 4
push edi
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
call edi
push dword [esp + 0x28]
push 1
push 0xc
push dword [esp + 0x38]
call edi
push dword [esp + 0x38]
mov ecx, dword [esi + 0x14]
push ecx
push 0x1c
push dword [esp + 0x4c]
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 0x10024cd6
mov ecx, 0x5f
xor edx, edx
mov al, byte [edx + 0x10034ae8]
xor al, cl
inc ecx
mov byte [esp + edx + 0x90], al
and ecx, 0x800000ff
jns 0x10024c44
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x10024c24
mov byte [esp + 0xa0], 0
mov ecx, 0x69
xor edx, edx
nop dword [eax]
mov al, byte [edx + 0x10034ad0]
xor al, cl
inc ecx
mov byte [esp + edx + 0xf0], al
and ecx, 0x800000ff
jns 0x10024c80
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x10024c60
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 0x10024d14
mov edx, dword [esp + 0x144]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10024d0a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10024d0a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1002bd66
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 word [eax + eax]
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 0x10024d40
mov byte [0x10039d5a], 0
cmp dword [esi + 0xc], 3
jne 0x10024dbe
mov byte [esi + 0x20], 1
mov dword [esi + 0x1c], 1
cmp byte [esi + 0x20], 0
je 0x10025638
cmp dword [esi + 0x1c], 1
jne 0x10024e67
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
movss xmm2, dword [0x100354dc]
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 0x10024e2d
subss xmm1, xmm2
comiss xmm4, xmm1
jb 0x10024e2d
movss xmm1, dword [eax + 4]
movaps xmm0, xmm1
addss xmm0, xmm2
comiss xmm0, xmm3
jb 0x10024e2d
subss xmm1, xmm2
comiss xmm3, xmm1
jb 0x10024e2d
mov dword [esi + 0x1c], 2
jmp 0x10024e56
mov eax, dword [0x10227430]
inc eax
cmp byte [0x10227434], 0
mov dword [0x10227430], eax
je 0x10024e48
mov byte [0x10227434], 0
cmp eax, 0x96
jne 0x10024e67
mov dword [esi + 0x1c], 0
mov byte [0x10227434], 1
mov dword [0x10227430], 0
cmp dword [esi + 0x1c], 2
jne 0x10025453
mov eax, dword fs:[0x2c]
mov edi, dword [0x100396a8]
mov ecx, dword [eax + edi*4]
mov eax, dword [0x102278bc]
cmp eax, dword [ecx + 4]
jle 0x10024eb0
push 0x102278bc
call fcn.1002bdf0
add esp, 4
cmp dword [0x102278bc], 0xffffffff
jne 0x10024eb0
push 0x102278bc
call fcn.1002bd9f
add esp, 4
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + edi*4]
mov eax, dword [0x102278a4]
cmp eax, dword [ecx + 4]
jle 0x10024ee9
push 0x102278a4
call fcn.1002bdf0
add esp, 4
cmp dword [0x102278a4], 0xffffffff
jne 0x10024ee9
push 0x102278a4
call fcn.1002bd9f
add esp, 4
mov ecx, dword [0x10039be8]
push 0x102278c0
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
mov eax, dword [esi]
movss xmm4, dword [0x100354cc]
movss xmm2, dword [0x100354fc]
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
movss xmm5, dword [eax + 8]
subss xmm0, dword [0x102278c0]
subss xmm1, dword [0x102278c4]
subss xmm5, dword [0x102278c8]
comiss xmm0, xmm4
movss dword [0x102278ac], xmm0
movss dword [0x102278b0], xmm1
movss dword [0x102278b4], xmm5
jbe 0x10024f5c
subss xmm0, xmm2
movss dword [0x102278ac], xmm0
comiss xmm1, xmm4
movaps xmm7, xmm0
movss dword [esp + 0x18], xmm0
jbe 0x10024f7c
subss xmm1, xmm2
movss dword [esp + 0x18], xmm0
movss dword [0x102278b0], xmm1
movss xmm3, dword [0x1003556c]
movaps xmm6, xmm1
comiss xmm3, xmm7
movss dword [esp + 0x1c], xmm1
jbe 0x10024fa9
movss xmm0, dword [esp + 0x18]
movaps xmm7, xmm1
addss xmm0, xmm2
movss dword [0x102278ac], xmm0
jmp 0x10024faf
movss xmm7, dword [esp + 0x1c]
comiss xmm3, xmm6
jbe 0x10024fc3
movaps xmm1, xmm7
addss xmm1, xmm2
movss dword [0x102278b0], xmm1
movss xmm6, dword [0x10035310]
mulss xmm0, xmm6
mulss xmm1, xmm6
addss xmm0, dword [0x102278c0]
mulss xmm5, xmm6
addss xmm1, dword [0x102278c4]
comiss xmm0, xmm4
addss xmm5, dword [0x102278c8]
movss dword [ebp + 0x10], xmm0
movss dword [ebp + 0x14], xmm1
movss dword [ebp + 0x18], xmm5
jbe 0x1002500c
subss xmm0, xmm2
movss dword [ebp + 0x10], xmm0
comiss xmm1, xmm4
movaps xmm5, xmm0
jbe 0x1002501d
subss xmm1, xmm2
movss dword [ebp + 0x14], xmm1
comiss xmm3, xmm5
movaps xmm4, xmm1
jbe 0x1002502e
addss xmm0, xmm2
movss dword [ebp + 0x10], xmm0
comiss xmm3, xmm4
jbe 0x1002503c
addss xmm1, xmm2
movss dword [ebp + 0x14], xmm1
mov ecx, dword [0x10039be8]
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 + 0x18], xmm4
movss dword [esp + 0x40], xmm2
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x20], xmm1
cvtps2pd xmm1, xmm0
cvtps2pd xmm0, xmm4
xorps xmm4, xmm4
ucomisd xmm0, xmm4
lahf
test ah, 0x44
jp 0x100250bf
ucomisd xmm1, xmm4
lahf
test ah, 0x44
jp 0x100250bf
xorps xmm0, xmm0
jmp 0x100250dd
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10035438]
xorps xmm4, xmm4
comisd xmm4, xmm0
jbe 0x100250dd
addsd xmm0, qword [0x10035448]
cvtsd2ss xmm0, xmm0
lea ecx, [esp + 0x28]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x18]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [esp + 0x20]
movss dword [esp + 0x30], xmm0
call fcn.10002930
xorps xmm1, xmm1
sqrtss xmm1, xmm0
comiss xmm1, dword [0x10035458]
jbe 0x1002512e
movss xmm3, dword [0x100354dc]
jmp 0x1002515a
comiss xmm1, dword [0x10035454]
jbe 0x10025141
movss xmm3, dword [0x100354a8]
jmp 0x1002515a
cvtps2pd xmm0, xmm1
comisd xmm0, xmmword [0x10035418]
jbe 0x100251f7
movss xmm3, dword [0x1003548c]
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.10002930
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 [0x10035438]
xorps xmm1, xmm1
comisd xmm1, xmm0
jbe 0x100251aa
addsd xmm0, qword [0x10035448]
movss xmm2, dword [ebp + 0x14]
xorps xmm1, xmm1
subss xmm2, dword [esp + 0x14]
cvtsd2ss xmm1, xmm0
comiss xmm2, dword [0x100354cc]
movaps xmm3, xmm2
movss dword [esp + 0x20], xmm1
mulss xmm3, dword [0x100352d8]
movss dword [esp + 0x1c], xmm2
movss dword [esp + 0x14], xmm3
ja 0x1002525e
movss xmm0, dword [0x1003556c]
comiss xmm0, xmm2
ja 0x1002525e
xorps xmm4, xmm4
jmp 0x100252bb
comiss xmm1, dword [0x10035380]
jbe 0x1002520a
movss xmm3, dword [0x10035470]
jmp 0x10025212
movss xmm3, dword [0x10035468]
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.10002930
cvtps2pd xmm1, xmm3
movss dword [esp + 0x18], xmm0
ucomisd xmm1, xmm4
lahf
test ah, 0x44
jp 0x10025189
xorps xmm0, xmm0
jmp 0x100251aa
xorps xmm1, xmm1
comiss xmm1, xmm3
jbe 0x10025273
xorps xmm3, xmmword [0x100355b0]
movss dword [esp + 0x14], xmm3
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 xmm4, xmm4
movss xmm1, dword [esp + 0x24]
add esp, 4
comiss xmm4, xmm2
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x100354fc]
jbe 0x100252af
addss xmm2, xmm0
jmp 0x100252b3
subss xmm2, xmm0
movss xmm0, dword [0x1003556c]
addss xmm1, xmm2
comiss xmm1, dword [0x100354cc]
movaps xmm3, xmm1
movss dword [esp + 0x20], xmm1
mulss xmm3, dword [0x100352d8]
movss dword [esp + 0x14], xmm3
ja 0x100252e4
comiss xmm0, xmm1
jbe 0x10025330
comiss xmm4, xmm3
jbe 0x100252f6
xorps xmm3, xmmword [0x100355b0]
movss dword [esp + 0x14], xmm3
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 + 0x24]
xorps xmm0, xmm0
add esp, 4
comiss xmm0, xmm1
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x100354fc]
jbe 0x1002532c
addss xmm1, xmm0
jmp 0x10025330
subss xmm1, xmm0
mulss xmm1, dword [0x100352ec]
movaps xmm0, xmm1
call fcn.1002cd40
movss xmm3, dword [esp + 0x40]
movaps xmm1, xmm0
movsd xmm2, qword [0x100353b8]
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 0x10025453
subsd xmm1, xmm2
comisd xmm3, xmm1
jb 0x10025453
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 0x10025453
subsd xmm1, xmm2
comisd xmm3, xmm1
jb 0x10025453
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.10002930
movss xmm1, dword [0x10035450]
comiss xmm1, xmm0
jb 0x10025453
movss xmm0, dword [0x102278ac]
movss xmm2, dword [0x10035358]
comiss xmm2, xmm0
jbe 0x1002544c
movss xmm1, dword [0x10035548]
comiss xmm0, xmm1
jbe 0x1002544c
movss xmm0, dword [0x102278b0]
comiss xmm2, xmm0
jbe 0x1002544c
comiss xmm0, xmm1
jbe 0x1002544c
mov dword [esi + 0xc], 2
mov byte [esi + 0x20], 0
jmp 0x10025453
mov dword [esi + 0x1c], 3
cmp dword [esi + 0x1c], 3
jne 0x10025638
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100396a8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x102278a8]
cmp eax, dword [ecx + 4]
jle 0x1002549c
push 0x102278a8
call fcn.1002bdf0
add esp, 4
cmp dword [0x102278a8], 0xffffffff
jne 0x1002549c
push 0x102278a8
call fcn.1002bd9f
add esp, 4
mov ecx, dword [0x10039be8]
push 0x10227898
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
mov eax, dword [esi]
movss xmm5, dword [0x100354cc]
movss xmm0, dword [0x100354fc]
movss xmm3, dword [eax]
subss xmm3, dword [0x10227898]
movss xmm4, dword [eax + 4]
subss xmm4, dword [0x1022789c]
movss xmm6, dword [eax + 8]
subss xmm6, dword [0x102278a0]
comiss xmm3, xmm5
movss dword [esp + 0x18], xmm3
movss dword [esp + 0x20], xmm4
jbe 0x10025501
subss xmm3, xmm0
movss dword [esp + 0x18], xmm3
comiss xmm4, xmm5
movaps xmm7, xmm3
movss dword [esp + 0x14], xmm3
movaps xmm1, xmm3
jbe 0x10025522
subss xmm4, xmm0
movss dword [esp + 0x14], xmm3
movss dword [esp + 0x20], xmm4
movss xmm3, dword [0x1003556c]
movaps xmm2, xmm4
comiss xmm3, xmm7
movss dword [esp + 0x1c], xmm4
movss dword [esp + 0x38], xmm4
jbe 0x10025559
movss xmm1, dword [esp + 0x14]
movaps xmm7, xmm4
addss xmm1, xmm0
movss dword [esp + 0x1c], xmm4
movss dword [esp + 0x18], xmm1
jmp 0x1002555f
movss xmm7, dword [esp + 0x38]
comiss xmm3, dword [esp + 0x1c]
jbe 0x10025573
movaps xmm2, xmm7
addss xmm2, xmm0
movss dword [esp + 0x20], xmm2
movss xmm4, dword [0x10035310]
mulss xmm1, xmm4
mulss xmm2, xmm4
addss xmm1, dword [0x10227898]
mulss xmm6, xmm4
addss xmm2, dword [0x1022789c]
comiss xmm1, xmm5
addss xmm6, dword [0x102278a0]
movss dword [ebp + 0x10], xmm1
movss dword [ebp + 0x14], xmm2
movss dword [ebp + 0x18], xmm6
jbe 0x100255bc
subss xmm1, xmm0
movss dword [ebp + 0x10], xmm1
comiss xmm2, xmm5
movaps xmm6, xmm1
jbe 0x100255cd
subss xmm2, xmm0
movss dword [ebp + 0x14], xmm2
comiss xmm3, xmm6
movaps xmm4, xmm2
jbe 0x100255de
addss xmm1, xmm0
movss dword [ebp + 0x10], xmm1
comiss xmm3, xmm4
jbe 0x100255ec
addss xmm2, xmm0
movss dword [ebp + 0x14], xmm2
mov ecx, dword [0x10039be8]
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 [0x10035358]
comiss xmm2, xmm0
jbe 0x10025638
movss xmm1, dword [0x10035548]
comiss xmm0, xmm1
jbe 0x10025638
movss xmm0, dword [esp + 0x20]
comiss xmm2, xmm0
jbe 0x10025638
comiss xmm0, xmm1
jbe 0x10025638
mov dword [esi + 0xc], 2
mov byte [esi + 0x20], 0
cmp dword [esi + 0xc], 1
jne 0x10025729
cmp byte [0x102278b8], 0
jne 0x10025666
mov byte [esi + 0x20], 0
cmp dword [0x1004aa8c], 1
jge 0x1002565f
mov dword [esi + 8], 0
mov byte [0x102278b8], 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 0x10025734
mov edi, dword [esp + 0x24]
mov byte [0x102278b8], 0
cmp dword [esi + 0xc], 2
jne 0x10025b5b
cmp byte [0x102278b9], 0
jne 0x1002575d
mov dword [esi + 8], 0
xor ecx, ecx
mov byte [esi + 0x20], 0
mov byte [0x102278b9], 1
jmp 0x10025760
mov ecx, dword [esi + 8]
mov eax, dword [0x1004aa8c]
test eax, eax
jle 0x10025774
cmp ecx, eax
jl 0x10025774
mov dword [esi + 0xc], 1
cmp ecx, dword [esi + 0x14]
jl 0x10025789
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 + 0x1c], 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 0x10025867
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x1002588e
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10035438]
xorps xmm1, xmm1
movss xmm4, dword [esp + 0x24]
comisd xmm1, xmm0
jbe 0x1002588e
addsd xmm0, qword [0x10035448]
movss xmm2, dword [0x1004aa88]
movss xmm5, dword [0x100354cc]
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 [0x100352d8]
movss dword [ebp + 0x14], xmm4
movss dword [esp + 0x14], xmm0
ja 0x100258e4
movss xmm3, dword [0x1003556c]
comiss xmm3, xmm2
ja 0x100258e4
movss xmm1, dword [0x100354fc]
jmp 0x1002594f
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x100258f9
xorps xmm0, xmmword [0x100355b0]
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 [0x1004aa88]
xorps xmm0, xmm0
movss xmm1, dword [0x100354fc]
add esp, 4
movss xmm4, dword [esp + 0x24]
movss xmm3, dword [0x1003556c]
movss xmm5, dword [0x100354cc]
comiss xmm0, xmm2
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
mulss xmm0, xmm1
jbe 0x1002594b
addss xmm2, xmm0
jmp 0x1002594f
subss xmm2, xmm0
comiss xmm2, dword [0x1003549c]
ja 0x10025965
movss xmm0, dword [0x10035564]
comiss xmm0, xmm2
jbe 0x1002597d
cmp byte [0x1004aa86], 0
je 0x1002597d
movss xmm0, dword [0x10035498]
movss dword [ebp + 0x10], xmm0
jmp 0x10025983
movss xmm0, dword [esp + 0x1c]
cmp byte [0x1004aa85], 0
je 0x100259af
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 0x100259b5
movss xmm2, dword [esp + 0x38]
comiss xmm0, xmm5
jbe 0x100259c3
subss xmm0, xmm1
movss dword [ebp + 0x10], xmm0
comiss xmm3, xmm0
jbe 0x100259d1
addss xmm0, xmm1
movss dword [ebp + 0x10], xmm0
comiss xmm4, xmm5
jbe 0x100259df
subss xmm4, xmm1
movss dword [ebp + 0x14], xmm4
comiss xmm3, xmm4
jbe 0x100259ed
addss xmm4, xmm1
movss dword [ebp + 0x14], xmm4
comiss xmm2, xmm5
jbe 0x100259fb
subss xmm2, xmm1
movss dword [ebp + 0x18], xmm2
comiss xmm3, xmm2
jbe 0x10025a09
addss xmm2, xmm1
movss dword [ebp + 0x18], xmm2
mov ecx, dword [0x10039be8]
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 [0x100354cc]
movaps xmm0, xmm2
movss dword [esp + 0x44], xmm2
mulss xmm0, dword [0x100352d8]
movss dword [esp + 0x14], xmm0
ja 0x10025a57
movss xmm3, dword [0x1003556c]
comiss xmm3, xmm2
ja 0x10025a57
xorps xmm4, xmm4
jmp 0x10025aae
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x10025a6c
xorps xmm0, xmmword [0x100355b0]
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 xmm4, xmm4
movss xmm3, dword [0x1003556c]
add esp, 4
comiss xmm4, xmm2
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x100354fc]
jbe 0x10025aaa
addss xmm2, xmm0
jmp 0x10025aae
subss xmm2, xmm0
movss xmm1, dword [esp + 0x34]
addss xmm1, xmm2
comiss xmm1, dword [0x100354cc]
movaps xmm0, xmm1
movss dword [esp + 0x34], xmm1
mulss xmm0, dword [0x100352d8]
movss dword [esp + 0x14], xmm0
ja 0x10025add
comiss xmm3, xmm1
jbe 0x10025b29
comiss xmm4, xmm0
jbe 0x10025aef
xorps xmm0, xmmword [0x100355b0]
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 [0x100354fc]
jbe 0x10025b25
addss xmm1, xmm0
jmp 0x10025b29
subss xmm1, xmm0
mulss xmm1, dword [0x100352ec]
movaps xmm0, xmm1
call fcn.1002cd40
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 0x10025b62
mov byte [0x102278b9], 0
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x10025b80
cmp byte [0x102278ba], al
jne 0x10025b91
mov dword [esi + 8], eax
mov byte [esi + 0x20], al
mov byte [0x102278ba], 1
jmp 0x10025b91
mov byte [0x102278ba], 0
cmp eax, 2
je 0x10025b9b
cmp eax, 1
je 0x10025b9b
mov dword [0x1004aa8c], 0
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
xor ecx, esp
call fcn.1002ba3e
mov esp, ebp
pop ebp
ret 0x14