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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x168
mov eax, dword [0x1006200c]
xor eax, esp
mov dword [esp + 0x164], eax
cmp byte [0x100c97ec], 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 + 0x30], ecx
movq qword [esp + 0x58], xmm0
mov dword [esp + 0x3c], eax
je 0x1002baa3
mov edx, dword [0x100c97e8]
lea ecx, [esp + 0x124]
call fcn.1002b7a0
cmp dword [eax + 0x14], 0x10
jb 0x1002b915
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 + 0x20], ecx
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x18], 0x2b6277
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x1002b99b
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 + 0x24]
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 + 0x34]
mov ecx, dword [edi + 0x14]
push ecx
push 0x24
push dword [esp + 0x4c]
lea eax, [ecx - 1]
mov dword [edi + 0x14], eax
call esi
push dword [esp + 0x44]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
lea esi, [edi + 0x14]
jmp 0x1002ba3e
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 0x1002b9bf
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x1002b9a2
mov byte [esp + 0x70], 0
mov ecx, 0x6e
xor edx, edx
mov al, byte [edx + 0x1005da3c]
xor al, cl
inc ecx
mov byte [esp + edx + 0xc0], al
and ecx, 0x800000ff
jns 0x1002b9f1
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x1002b9d1
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 0x1002ba7c
mov edx, dword [esp + 0x124]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002ba72
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002ba72
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10032be6
add esp, 8
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0xf
mov byte [esp + 0x124], 0
mov byte [0x100c97ec], 0
jmp 0x1002baa6
lea esi, [edi + 0x14]
cmp byte [0x100c97ed], 0
je 0x1002bc6e
mov edx, dword [0x100c97e8]
lea ecx, [esp + 0x13c]
call fcn.1002b7a0
cmp dword [eax + 0x14], 0x10
jb 0x1002bacd
mov eax, dword [eax]
mov ecx, dword [edi + 0x10]
lea esi, [edi + 0x14]
mov dword [esp + 0x20], ecx
mov ecx, dword [edi]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x18], 0x2b6272
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x1002bb52
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 + 0x24]
mov ecx, dword [esi]
push ecx
push 0xc
push dword [esp + 0x3c]
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 + 0x34]
mov ecx, dword [esi]
push ecx
push 0x24
push dword [esp + 0x44]
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 + 0x44]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
jmp 0x1002bc0b
mov ecx, 0x12
xor edx, edx
nop dword [eax]
mov al, byte [edx + str._bprvmH]
xor al, cl
inc ecx
mov byte [esp + edx + 0x80], al
and ecx, 0x800000ff
jns 0x1002bb80
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x1002bb60
mov byte [esp + 0x90], 0
mov ecx, 0xa1
xor edx, edx
mov al, byte [edx + 0x1005da54]
xor al, cl
inc ecx
mov byte [esp + edx + 0xe0], al
and ecx, 0x800000ff
jns 0x1002bbb5
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x1002bb95
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 0x1002bc49
mov edx, dword [esp + 0x13c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002bc3f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002bc3f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10032be6
add esp, 8
mov dword [esp + 0x14c], 0
mov dword [esp + 0x150], 0xf
mov byte [esp + 0x13c], 0
mov byte [0x100c97ed], 0
cmp byte [0x100c97ee], 0
je 0x1002be9d
mov edx, dword [0x100c97e8]
lea ecx, [esp + 0x154]
call fcn.1002b7a0
cmp dword [eax + 0x14], 0x10
jb 0x1002bc98
mov eax, dword [eax]
lea esi, [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x20], ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x18], 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 + 0x10], 0
test eax, eax
je 0x1002bd13
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 + 0x28]
push 1
push 0xc
push dword [esp + 0x3c]
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 + 0x38]
push esi
push ecx
push 0x1c
push dword [esp + 0x40]
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 0x1002bdcb
mov ecx, 0x5f
xor edx, edx
nop word [eax + eax]
mov al, byte [edx + 0x1005da80]
xor al, cl
inc ecx
mov byte [esp + edx + 0xa0], al
and ecx, 0x800000ff
jns 0x1002bd40
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x1002bd20
mov byte [esp + 0xb0], 0
mov ecx, 0x69
xor edx, edx
mov al, byte [edx + 0x1005da98]
xor al, cl
inc ecx
mov byte [esp + edx + 0x100], al
and ecx, 0x800000ff
jns 0x1002bd75
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x1002bd55
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 0x1002be09
mov edx, dword [esp + 0x154]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002bdff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002bdff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10032be6
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 + 0x14], 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 + 0x14]
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 + 0x14]
add edx, 0x24
mov dword [ecx + 8], eax
mov dword [esp + 0x14], edx
cmp esi, 0x1ab3f00
jl 0x1002be30
mov byte [0x100c97ee], 0
cmp dword [edi + 0xc], 3
jne 0x1002beae
mov byte [edi + 0x20], 1
mov dword [edi + 0x1c], 1
cmp byte [edi + 0x20], 0
xorps xmm1, xmm1
movsd xmm0, qword [0x1005e4d8]
movsd qword [esp + 0x48], xmm0
movsd xmm0, qword [0x1005e4e8]
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x50], xmm0
je 0x1002c6e7
cmp dword [edi + 0x1c], 1
jne 0x1002bf73
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
movss xmm2, dword [0x1005e588]
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 0x1002bf42
subss xmm1, xmm2
comiss xmm4, xmm1
jb 0x1002bf42
movss xmm1, dword [eax + 4]
movaps xmm0, xmm1
addss xmm0, xmm2
comiss xmm0, xmm3
jb 0x1002bf42
subss xmm1, xmm2
comiss xmm3, xmm1
jb 0x1002bf42
mov dword [edi + 0x1c], 2
jmp 0x1002bf62
mov eax, dword [0x102ca59c]
inc eax
mov byte [0x102ca5a0], 0
mov dword [0x102ca59c], eax
cmp eax, 0x96
jne 0x1002bf73
mov dword [edi + 0x1c], 0
mov byte [0x102ca5a0], 1
mov dword [0x102ca59c], 0
cmp dword [edi + 0x1c], 2
mov esi, dword [0x10062724]
jne 0x1002c553
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + esi*4]
mov eax, dword [0x1033142c]
cmp eax, dword [ecx + 4]
jle 0x1002bfbc
push 0x1033142c
call fcn.10032d27
add esp, 4
cmp dword [0x1033142c], 0xffffffff
jne 0x1002bfbc
push 0x1033142c
call fcn.10032cdd
add esp, 4
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + esi*4]
mov eax, dword [0x10331414]
cmp eax, dword [ecx + 4]
jle 0x1002bff5
push 0x10331414
call fcn.10032d27
add esp, 4
cmp dword [0x10331414], 0xffffffff
jne 0x1002bff5
push 0x10331414
call fcn.10032cdd
add esp, 4
mov ecx, dword [0x100c9388]
push 0x10331430
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
mov eax, dword [edi]
movss xmm6, dword [0x10331430]
movss xmm7, dword [0x10331434]
movss xmm4, dword [0x1005e574]
movss xmm2, dword [eax]
movss xmm0, dword [eax + 4]
subss xmm2, xmm6
movss xmm5, dword [eax + 8]
subss xmm0, xmm7
subss xmm5, dword [0x10331438]
movss xmm1, dword [0x1005e5a4]
comiss xmm2, xmm4
movss dword [0x1033141c], xmm2
movss dword [0x10331420], xmm0
movss dword [0x10331424], xmm5
jbe 0x1002c070
subss xmm2, xmm1
movss dword [0x1033141c], xmm2
comiss xmm0, xmm4
jbe 0x1002c081
subss xmm0, xmm1
movss dword [0x10331420], xmm0
movss xmm3, dword [0x1005e60c]
comiss xmm3, xmm2
jbe 0x1002c09a
addss xmm2, xmm1
movss dword [0x1033141c], xmm2
comiss xmm3, xmm0
jbe 0x1002c0ab
addss xmm0, xmm1
movss dword [0x10331420], xmm0
mulss xmm2, dword [0x1005e388]
mulss xmm0, dword [0x1005e388]
mulss xmm5, dword [0x1005e388]
addss xmm2, xmm6
addss xmm0, xmm7
addss xmm5, dword [0x10331438]
comiss xmm2, xmm4
movss dword [ebp + 0x10], xmm2
movss dword [ebp + 0x14], xmm0
movss dword [ebp + 0x18], xmm5
jbe 0x1002c0f0
subss xmm2, xmm1
movss dword [ebp + 0x10], xmm2
comiss xmm0, xmm4
jbe 0x1002c0fe
subss xmm0, xmm1
movss dword [ebp + 0x14], xmm0
comiss xmm3, xmm2
jbe 0x1002c10c
addss xmm2, xmm1
movss dword [ebp + 0x10], xmm2
comiss xmm3, xmm0
jbe 0x1002c11a
addss xmm0, xmm1
movss dword [ebp + 0x14], xmm0
mov ecx, dword [0x100c9388]
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
mov ecx, dword [esp + 0x30]
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 + 0x18], xmm4
movss dword [esp + 0x34], xmm2
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x14], xmm1
cvtps2pd xmm1, xmm0
cvtps2pd xmm0, xmm4
movsd xmm4, qword [esp + 0x40]
ucomisd xmm0, xmm4
lahf
test ah, 0x44
jp 0x1002c1a0
ucomisd xmm1, xmm4
lahf
test ah, 0x44
jp 0x1002c1a0
movaps xmm0, xmm4
jmp 0x1002c1bd
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 0x1002c1bd
addsd xmm0, qword [esp + 0x50]
cvtsd2ss xmm0, xmm0
lea ecx, [esp + 0x24]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x20]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x18]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x14]
movss dword [esp + 0x2c], xmm0
call fcn.10002d20
xorps xmm1, xmm1
sqrtss xmm1, xmm0
comiss xmm1, dword [0x1005e4fc]
jbe 0x1002c20e
movss xmm3, dword [0x1005e588]
jmp 0x1002c23a
comiss xmm1, dword [0x1005e4f4]
jbe 0x1002c221
movss xmm3, dword [0x1005e54c]
jmp 0x1002c23a
cvtps2pd xmm0, xmm1
comisd xmm0, xmmword [0x1005e4b8]
jbe 0x1002c2de
movss xmm3, dword [0x1005e52c]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
lea esi, [eax + 0x18]
movss dword [esp + 0x24], xmm3
movss dword [esi], xmm3
mov dword [esp + 0x28], 0
movss xmm0, dword [eax + 0x20]
movss dword [esp + 0x2c], xmm0
call fcn.10002d20
movss dword [esp + 0x14], 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 0x1002c290
addsd xmm0, qword [esp + 0x50]
movss xmm1, dword [ebp + 0x14]
subss xmm1, dword [esp + 0x10]
cvtsd2ss xmm0, xmm0
comiss xmm1, dword [0x1005e574]
movaps xmm2, xmm1
movss dword [esp + 0x20], xmm0
mulss xmm2, dword [0x1005e348]
movss dword [esp + 0x18], xmm1
movss dword [esp + 0x10], xmm2
ja 0x1002c351
movss xmm0, dword [0x1005e60c]
comiss xmm0, xmm1
ja 0x1002c351
xorps xmm3, xmm3
jmp 0x1002c3ac
comiss xmm1, dword [0x1005e3f8]
mov eax, dword [esp + 0x1c]
lea esi, [eax + 0x18]
mov ecx, esi
jbe 0x1002c2fa
movss xmm3, dword [0x1005e510]
jmp 0x1002c302
movss xmm3, dword [0x1005e508]
movaps xmm0, xmm3
movss dword [ecx], xmm0
lea ecx, [esp + 0x24]
movss xmm0, dword [eax + 0x20]
or dword [eax + 0x24], 0x20000
movss dword [esp + 0x24], xmm3
mov dword [esp + 0x28], 0
movss dword [esp + 0x2c], xmm0
call fcn.10002d20
cvtps2pd xmm1, xmm3
movss dword [esp + 0x14], xmm0
ucomisd xmm1, xmm4
lahf
test ah, 0x44
jp 0x1002c270
movaps xmm0, xmm4
jmp 0x1002c290
xorps xmm3, xmm3
comiss xmm3, xmm2
jbe 0x1002c36a
movaps xmm0, xmm1
mulss xmm0, dword [0x1005e5d0]
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm1, dword [esp + 0x1c]
xorps xmm3, xmm3
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
add esp, 4
comiss xmm3, xmm1
mulss xmm0, dword [0x1005e5a4]
jbe 0x1002c3a0
addss xmm1, xmm0
jmp 0x1002c3a4
subss xmm1, xmm0
movss xmm0, dword [0x1005e60c]
addss xmm1, dword [esp + 0x20]
comiss xmm1, dword [0x1005e574]
movaps xmm2, xmm1
movss dword [esp + 0x18], xmm1
mulss xmm2, dword [0x1005e348]
movss dword [esp + 0x10], xmm2
ja 0x1002c3d7
comiss xmm0, xmm1
jbe 0x1002c427
comiss xmm3, xmm2
jbe 0x1002c3ed
movaps xmm0, xmm1
mulss xmm0, dword [0x1005e5d0]
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
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 + 0x10]
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [0x1005e5a4]
jbe 0x1002c423
addss xmm1, xmm0
jmp 0x1002c427
subss xmm1, xmm0
mulss xmm1, dword [0x1005e360]
movaps xmm0, xmm1
call fcn.10033ad0
mov eax, dword [esp + 0x1c]
movaps xmm1, xmm0
movss xmm3, dword [esp + 0x34]
movsd xmm2, qword [0x1005e428]
shufps xmm1, xmm0, 1
mulss xmm1, dword [esp + 0x14]
mulss xmm0, dword [esp + 0x14]
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 0x1002c54d
subsd xmm1, xmm2
comisd xmm3, xmm1
jb 0x1002c54d
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 0x1002c54d
subsd xmm1, xmm2
comisd xmm3, xmm1
jb 0x1002c54d
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x24]
movss xmm0, dword [eax + 0xec]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [eax + 0xf0]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [eax + 0xf4]
movss dword [esp + 0x2c], xmm0
call fcn.10002d20
movss xmm1, dword [0x1005e4f0]
comiss xmm1, xmm0
jb 0x1002c54d
movss xmm0, dword [0x1033141c]
movss xmm2, dword [0x1005e3d0]
comiss xmm2, xmm0
jbe 0x1002c546
movss xmm1, dword [0x1005e5dc]
comiss xmm0, xmm1
jbe 0x1002c546
movss xmm0, dword [0x10331420]
comiss xmm2, xmm0
jbe 0x1002c546
comiss xmm0, xmm1
jbe 0x1002c546
mov dword [edi + 0xc], 2
mov byte [edi + 0x20], 0
jmp 0x1002c54d
mov dword [edi + 0x1c], 3
mov esi, dword [0x10062724]
cmp dword [edi + 0x1c], 3
jne 0x1002c6e7
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + esi*4]
mov eax, dword [0x10331418]
cmp eax, dword [ecx + 4]
jle 0x1002c596
push 0x10331418
call fcn.10032d27
add esp, 4
cmp dword [0x10331418], 0xffffffff
jne 0x1002c596
push 0x10331418
call fcn.10032cdd
add esp, 4
mov ecx, dword [0x100c9388]
push 0x10331408
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
mov eax, dword [edi]
movss xmm6, dword [0x10331408]
movss xmm4, dword [0x1005e574]
movss xmm7, dword [0x1033140c]
movss xmm1, dword [eax]
movss xmm0, dword [eax + 4]
subss xmm1, xmm6
movss xmm5, dword [eax + 8]
subss xmm0, xmm7
subss xmm5, dword [0x10331410]
movss xmm2, dword [0x1005e5a4]
comiss xmm1, xmm4
jbe 0x1002c5f1
subss xmm1, xmm2
comiss xmm0, xmm4
jbe 0x1002c5fa
subss xmm0, xmm2
movss xmm3, dword [0x1005e60c]
comiss xmm3, xmm1
movss dword [esp + 0x18], xmm1
jbe 0x1002c617
addss xmm1, xmm2
movss dword [esp + 0x18], xmm1
comiss xmm3, xmm0
movss dword [esp + 0x14], xmm0
jbe 0x1002c62c
addss xmm0, xmm2
movss dword [esp + 0x14], xmm0
mulss xmm1, dword [0x1005e388]
mulss xmm0, dword [0x1005e388]
mulss xmm5, dword [0x1005e388]
addss xmm1, xmm6
addss xmm0, xmm7
addss xmm5, dword [0x10331410]
comiss xmm1, xmm4
movss dword [ebp + 0x10], xmm1
movss dword [ebp + 0x14], xmm0
movss dword [ebp + 0x18], xmm5
jbe 0x1002c671
subss xmm1, xmm2
movss dword [ebp + 0x10], xmm1
comiss xmm0, xmm4
jbe 0x1002c67f
subss xmm0, xmm2
movss dword [ebp + 0x14], xmm0
comiss xmm3, xmm1
jbe 0x1002c68d
addss xmm1, xmm2
movss dword [ebp + 0x10], xmm1
comiss xmm3, xmm0
jbe 0x1002c69b
addss xmm0, xmm2
movss dword [ebp + 0x14], xmm0
mov ecx, dword [0x100c9388]
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 [0x1005e3d0]
comiss xmm2, xmm0
jbe 0x1002c6e7
movss xmm1, dword [0x1005e5dc]
comiss xmm0, xmm1
jbe 0x1002c6e7
movss xmm0, dword [esp + 0x14]
comiss xmm2, xmm0
jbe 0x1002c6e7
comiss xmm0, xmm1
jbe 0x1002c6e7
mov dword [edi + 0xc], 2
mov byte [edi + 0x20], 0
cmp dword [edi + 0xc], 1
jne 0x1002c7ce
cmp byte [0x10331428], 0
jne 0x1002c715
mov byte [edi + 0x20], 0
cmp dword [0x100e57d0], 1
jge 0x1002c70e
mov dword [edi + 8], 0
mov byte [0x10331428], 1
mov ecx, dword [esp + 0x30]
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 0x1002c7d9
mov esi, dword [esp + 0x1c]
mov byte [0x10331428], 0
cmp dword [edi + 0xc], 2
jne 0x1002cc0e
cmp byte [0x10331429], 0
jne 0x1002c802
mov dword [edi + 8], 0
xor ecx, ecx
mov byte [edi + 0x20], 0
mov byte [0x10331429], 1
jmp 0x1002c805
mov ecx, dword [edi + 8]
mov eax, dword [0x100e57d0]
test eax, eax
jle 0x1002c819
cmp ecx, eax
jl 0x1002c819
mov dword [edi + 0xc], 1
cmp ecx, dword [edi + 0x14]
jl 0x1002c82e
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 + 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 + 0x30], xmm5
xorps xmm0, xmm0
movss dword [esp + 0x1c], 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 + 0x24], xmm0
movsd xmm0, qword [esp + 0x40]
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x1002c90f
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x1002c935
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 + 0x1c]
comisd xmm1, xmm0
jbe 0x1002c935
addsd xmm0, qword [esp + 0x50]
movss xmm2, dword [0x100e57cc]
movss xmm5, dword [0x1005e574]
subss xmm4, xmm2
comiss xmm2, xmm5
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x1c], xmm4
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [0x1005e348]
movss dword [ebp + 0x14], xmm4
movss dword [esp + 0x10], xmm0
ja 0x1002c98b
movss xmm3, dword [0x1005e60c]
comiss xmm3, xmm2
ja 0x1002c98b
movss xmm1, dword [0x1005e5a4]
jmp 0x1002c9fa
xorps xmm3, xmm3
comiss xmm3, xmm0
jbe 0x1002c9a4
movaps xmm0, xmm2
mulss xmm0, dword [0x1005e5d0]
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm2, dword [0x100e57cc]
xorps xmm0, xmm0
movss xmm1, dword [0x1005e5a4]
add esp, 4
movss xmm4, dword [esp + 0x1c]
movss xmm3, dword [0x1005e60c]
movss xmm5, dword [0x1005e574]
comiss xmm0, xmm2
fstp dword [esp + 0x10]
movss xmm0, dword [esp + 0x10]
mulss xmm0, xmm1
jbe 0x1002c9f6
addss xmm2, xmm0
jmp 0x1002c9fa
subss xmm2, xmm0
comiss xmm2, dword [0x1005e540]
ja 0x1002ca10
movss xmm0, dword [0x1005e604]
comiss xmm0, xmm2
jbe 0x1002ca28
cmp byte [0x100e57ca], 0
je 0x1002ca28
movss xmm0, dword [0x1005e53c]
movss dword [ebp + 0x10], xmm0
jmp 0x1002ca2e
movss xmm0, dword [esp + 0x30]
cmp byte [0x100e57c9], 0
je 0x1002ca5a
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 0x1002ca60
movss xmm2, dword [esp + 0x38]
comiss xmm0, xmm5
jbe 0x1002ca6e
subss xmm0, xmm1
movss dword [ebp + 0x10], xmm0
comiss xmm3, xmm0
jbe 0x1002ca7c
addss xmm0, xmm1
movss dword [ebp + 0x10], xmm0
comiss xmm4, xmm5
jbe 0x1002ca8a
subss xmm4, xmm1
movss dword [ebp + 0x14], xmm4
comiss xmm3, xmm4
jbe 0x1002ca98
addss xmm4, xmm1
movss dword [ebp + 0x14], xmm4
comiss xmm2, xmm5
jbe 0x1002caa6
subss xmm2, xmm1
movss dword [ebp + 0x18], xmm2
comiss xmm3, xmm2
jbe 0x1002cab4
addss xmm2, xmm1
movss dword [ebp + 0x18], xmm2
mov ecx, dword [0x100c9388]
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 + 0x28]
comiss xmm2, dword [0x1005e574]
movaps xmm1, xmm2
movss dword [esp + 0x3c], xmm2
mulss xmm1, dword [0x1005e348]
movss dword [esp + 0x10], xmm1
ja 0x1002cb02
movss xmm0, dword [0x1005e60c]
comiss xmm0, xmm2
ja 0x1002cb02
xorps xmm3, xmm3
jmp 0x1002cb5d
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x1002cb1b
movaps xmm0, xmm2
mulss xmm0, dword [0x1005e5d0]
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
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 + 0x14]
movss xmm0, dword [esp + 0x14]
add esp, 4
comiss xmm3, xmm2
mulss xmm0, dword [0x1005e5a4]
jbe 0x1002cb51
addss xmm2, xmm0
jmp 0x1002cb55
subss xmm2, xmm0
movss xmm0, dword [0x1005e60c]
movss xmm1, dword [esp + 0x18]
addss xmm1, xmm2
comiss xmm1, dword [0x1005e574]
movaps xmm2, xmm1
movss dword [esp + 0x18], xmm1
mulss xmm2, dword [0x1005e348]
movss dword [esp + 0x10], xmm2
ja 0x1002cb8c
comiss xmm0, xmm1
jbe 0x1002cbdc
comiss xmm3, xmm2
jbe 0x1002cba2
movaps xmm0, xmm1
mulss xmm0, dword [0x1005e5d0]
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
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 + 0x10]
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [0x1005e5a4]
jbe 0x1002cbd8
addss xmm1, xmm0
jmp 0x1002cbdc
subss xmm1, xmm0
mulss xmm1, dword [0x1005e360]
movaps xmm0, xmm1
call fcn.10033ad0
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 0x1002cc15
mov byte [0x10331429], 0
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x1002cc33
cmp byte [0x1033142a], al
jne 0x1002cc44
mov dword [edi + 8], eax
mov byte [edi + 0x20], al
mov byte [0x1033142a], 1
jmp 0x1002cc44
mov byte [0x1033142a], 0
cmp eax, 2
je 0x1002cc4e
cmp eax, 1
je 0x1002cc4e
mov dword [0x100e57d0], 0
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
xor ecx, esp
call fcn.100328be
mov esp, ebp
pop ebp
ret 0x14