Function at 0x1006c6c0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x1013ecd1
push eax
mov dword fs:[0], esp
mov eax, 0x26c0
push ebx
call fcn.1013b6d0
push esi
push edi
push 0x2000
lea eax, [ebp - 0x26d0]
mov dword [ebp - 0x4c], ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov edi, dword [ebx + 8]
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], eax
sub esp, 0xc
mov eax, esp
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmm0, xmmword [edi]
movups xmmword [eax], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
call fcn.10065f30
mov esi, eax
add esp, 0x18
cmp edi, esi
je 0x1006c7ee
mov edx, dword [edi + 0x14]
cmp edx, 8
jb 0x1006c7be
mov ecx, dword [edi]
lea edx, [edx*2 + 2]
cmp edx, 0x1000
jb 0x1006c7b4
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
mov dword [ebp - 0xa4], eax
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1006c820
mov ecx, dword [ebp - 0xa4]
push edx
push ecx
call fcn.1013b151
add esp, 8
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0xb8]
cmp ecx, 8
jb 0x1006c830
mov edx, dword [ebp - 0xcc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006c826
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006c826
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
mov edx, dword [edi + 0x10]
test edx, edx
je 0x1006c8ea
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x1006c845
mov ecx, dword [edi]
lea eax, [edx - 1]
or esi, 0xffffffff
cmp eax, esi
cmovb esi, eax
cmp word [ecx + esi*2], 0x5c
lea eax, [ecx + esi*2]
je 0x1006c86d
nop word [eax + eax]
cmp eax, ecx
je 0x1006c876
sub eax, 2
cmp word [eax], 0x5c
jne 0x1006c860
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x1006c8a6
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x1006c880
mov ecx, dword [edi]
cmp word [ecx + esi*2], 0x2f
lea eax, [ecx + esi*2]
je 0x1006c89d
nop word [eax + eax]
cmp eax, ecx
je 0x1006c8ea
sub eax, 2
cmp word [eax], 0x2f
jne 0x1006c890
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x1006c8ea
inc eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
cmp edx, eax
jb 0x1006db9a
sub edx, eax
mov ecx, 0xffffffff
cmp edx, 0xffffffff
cmovb ecx, edx
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x1006c8db
mov edx, dword [edi]
push ecx
lea eax, [edx + eax*2]
push eax
lea ecx, [ebp - 0x64]
call fcn.100512a0
jmp 0x1006c8f3
push edi
lea ecx, [ebp - 0x64]
call fcn.1004fd90
mov byte [ebp - 4], 1
mov eax, dword [0x101b24e4]
test eax, eax
je 0x1006c905
cmp eax, 0xa
jae 0x1006c949
push ecx
push str.ext_ms_
lea ecx, [ebp - 0x64]
call fcn.1006e350
test eax, eax
jne 0x1006c949
mov esi, dword [ebp - 0x54]
lea ecx, [ebp - 0x64]
mov edx, 4
cmp esi, edx
cmovb edx, esi
cmp dword [ebp - 0x50], 8
cmovae ecx, dword [ebp - 0x64]
sub esi, edx
lea eax, [esi*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov dword [ebp - 0x54], esi
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa4], eax
mov esi, dword [eax]
cmp esi, eax
je 0x1006cc92
nop
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x1006c96b
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.1006e350
cmp eax, 0xffffffff
jne 0x1006c986
mov ecx, dword [ebp - 0x4c]
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [ecx + 4]
jne 0x1006c960
mov eax, dword [ebp - 0xa4]
cmp esi, eax
je 0x1006cc92
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], ecx
cmp eax, ecx
je 0x1006ca07
mov edx, dword [ebx + 0xc]
cmp dword [edx + 0x14], 8
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0xa4], ecx
jb 0x1006c9b8
mov edx, dword [edx]
cmp dword [eax + 0x14], 8
mov ecx, eax
mov esi, dword [eax + 0x10]
jb 0x1006c9c5
mov ecx, dword [eax]
cmp esi, dword [ebp - 0xa4]
jne 0x1006ca0a
test esi, esi
je 0x1006c9fa
sub ecx, edx
mov dword [ebp - 0xa4], ecx
nop dword [eax]
movzx ecx, word [edx + ecx]
movzx eax, word [edx]
cmp cx, ax
jne 0x1006ca02
mov ecx, dword [ebp - 0xa4]
add edx, 2
sub esi, 1
jne 0x1006c9e0
mov eax, dword [ebp - 0x4c]
add eax, 0xffffffe8
jmp 0x1006ca0a
mov eax, dword [ebp - 0x44]
jmp 0x1006ca0a
mov eax, dword [ebx + 0xc]
cmp edi, eax
je 0x1006ca22
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x1006ca19
mov eax, dword [eax]
push ecx
push eax
mov ecx, edi
call fcn.10050370
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push edi
call fcn.1006dbb0
mov esi, eax
test esi, esi
jns 0x1006dadc
cmp esi, 0xc015001d
je 0x1006dadc
test byte [ebx + 0x14], 2
je 0x1006cc8b
push 0x1fe
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2d0]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x2c], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006ca94
sub ecx, edx
lea eax, [ebp - 0x2d0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.100512a0
push 1
push str._
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.1006ed80
mov dword [ebp - 0x98], 0
xor ecx, ecx
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x98], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x88], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 3
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x1006cb1c
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x98]
push eax
call fcn.1006ed80
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x7c]
movq qword [ebp - 0x48], xmm1
movq qword [ebp - 0x6c], xmm1
movups xmmword [ebp - 0xb0], xmm0
movups xmmword [ebp - 0x7c], xmm0
cmp edi, eax
je 0x1006cbbc
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x1006cba7
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1006cb91
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006cc7b
mov eax, edx
push ecx
push eax
call fcn.1013b151
movups xmm0, xmmword [ebp - 0xb0]
add esp, 8
movq xmm1, qword [ebp - 0x48]
xor eax, eax
mov ecx, 7
movups xmmword [edi], xmm0
mov word [ebp - 0x7c], ax
movq qword [edi + 0x10], xmm1
jmp 0x1006cbbf
mov ecx, dword [ebp - 0x68]
cmp ecx, 8
jb 0x1006cbf6
mov edx, dword [ebp - 0x7c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006cbec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006cc7b
push ecx
push edx
call fcn.1013b151
add esp, 8
mov ecx, dword [ebp - 0x84]
cmp ecx, 8
jb 0x1006cc32
mov edx, dword [ebp - 0x98]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006cc28
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006cc7b
push ecx
push edx
call fcn.1013b151
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
cmp ecx, 8
jb 0x1006cc8b
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006cc81
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006cc81
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
xor esi, esi
jmp 0x1006dadc
test byte [ebx + 0x14], 1
je 0x1006cca2
mov esi, 0xc0000225
jmp 0x1006dadc
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push edi
call fcn.1006dbb0
mov esi, eax
test esi, esi
jns 0x1006dadc
cmp esi, 0xc015001d
je 0x1006dadc
test byte [ebx + 0x14], 4
je 0x1006ccd4
mov esi, 0xc0000225
jmp 0x1006dadc
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1006ccde
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
cmp eax, 0xffffffff
je 0x1006ccf3
xor esi, esi
jmp 0x1006dadc
mov dword [ebp - 0x9c], 0
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 4
push eax
push str.SYSTEMCurrentControlSetControlSession_ManagerKnownDLLs
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1006cf6f
xor esi, esi
test eax, eax
jne 0x1006cf69
push 0x1fe
push eax
lea eax, [ebp - 0x6d0]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2d0]
push 0x1fe
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x4c], 0xff
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x44], 0
push eax
lea eax, [ebp - 0x2d0]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x6d0]
push eax
push esi
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp dword [ebp - 0x50], 8
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push eax
lea eax, [ebp - 0x2d0]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x1006cf56
push 0x1fe
push eax
lea eax, [ebp - 0x4d0]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x4c], 0xff
test byte [ebx + 0x14], 8
lea eax, [ebp - 0x4d0]
push 0xff
push eax
je 0x1006cdec
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x1006cdf2
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [ebp - 0xa4]
test eax, eax
jne 0x1006cf5c
lea ecx, [ebp - 0x4d0]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x6c], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x68], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006ce12
sub ecx, edx
lea eax, [ebp - 0x4d0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.100512a0
push 1
push 0x10195b38
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.1006ed80
mov dword [ebp - 0x40], 0
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 6
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006ce90
sub ecx, edx
lea eax, [ebp - 0x2d0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.1006ed80
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0xcc]
movq qword [ebp - 0xa8], xmm1
movq qword [ebp - 0xbc], xmm1
movups xmmword [ebp - 0x90], xmm0
movups xmmword [ebp - 0xcc], xmm0
cmp edi, eax
je 0x1006cf92
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x1006cf3e
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1006cf25
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006d04c
mov eax, edx
push ecx
push eax
call fcn.1013b151
movups xmm0, xmmword [ebp - 0x90]
add esp, 8
movq xmm1, qword [ebp - 0xa8]
xor eax, eax
mov ecx, 7
movups xmmword [edi], xmm0
mov word [ebp - 0xcc], ax
movq qword [edi + 0x10], xmm1
jmp 0x1006cf98
mov eax, dword [ebp - 0xa4]
inc esi
cmp esi, 0x1000
jl 0x1006cd22
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx + 0x10]
test edx, edx
je 0x1006d170
mov eax, SysReAllocString
sub eax, edx
cmp eax, 1
jb 0x1006db9f
jmp 0x1006d063
mov ecx, dword [ebp - 0xb8]
cmp ecx, 8
jb 0x1006cfd2
mov edx, dword [ebp - 0xcc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006cfc8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006d04c
push ecx
push edx
call fcn.1013b151
add esp, 8
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x1006d008
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006cffe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006d04c
push ecx
push edx
call fcn.1013b151
add esp, 8
mov ecx, dword [ebp - 0x68]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x1006db72
mov edx, dword [ebp - 0x7c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d052
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006d052
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
xor esi, esi
jmp 0x1006dacb
cmp dword [ecx + 0x14], 8
jb 0x1006d06b
mov ecx, dword [ecx]
push 1
push 0x10195b34
push edx
push ecx
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0xcc]
call fcn.1006ece0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 8
lea ecx, [ebp - 0xcc]
push dword [ebp - 0x54]
cmovae eax, dword [ebp - 0x64]
push eax
call fcn.1006ed80
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x14]
movq qword [ebp - 0x48], xmm1
movups xmmword [ebp - 0x90], xmm0
cmp ecx, 8
jb 0x1006d10a
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d0f4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006d149
push ecx
push edx
call fcn.1013b151
movups xmm0, xmmword [ebp - 0x90]
add esp, 8
movq xmm1, qword [ebp - 0x48]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xb8]
movq qword [ebp - 0x18], xmm1
movups xmmword [ebp - 0x28], xmm0
cmp ecx, 8
jb 0x1006d159
mov edx, dword [ebp - 0xcc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d14f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006d14f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp eax, 0xffffffff
jne 0x1006db58
mov eax, dword [ebx + 0x18]
push dword [eax + 4]
lea eax, [ebp - 0xcc]
push eax
call fcn.1006e090
push 1
push 0x10195b40
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.1006ed80
mov dword [ebp - 0x40], 0
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 9
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 8
lea ecx, [ebp - 0x40]
push dword [ebp - 0x54]
cmovae eax, dword [ebp - 0x64]
push eax
call fcn.1006ed80
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x14]
movq qword [ebp - 0x48], xmm1
movups xmmword [ebp - 0x90], xmm0
cmp ecx, 8
jb 0x1006d255
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d23f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006d2e2
push ecx
push edx
call fcn.1013b151
movups xmm0, xmmword [ebp - 0x90]
add esp, 8
movq xmm1, qword [ebp - 0x48]
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2c]
movq qword [ebp - 0x18], xmm1
movups xmmword [ebp - 0x28], xmm0
cmp ecx, 8
jb 0x1006d298
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d28e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006d2e2
push ecx
push edx
call fcn.1013b151
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x1006d2f2
mov edx, dword [ebp - 0xcc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d2e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006d2e8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp eax, 0xffffffff
jne 0x1006db58
test byte [ebx + 0x14], 8
lea eax, [ebp - 0x26d0]
push 0x1000
push eax
je 0x1006d323
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x1006d329
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x26d0]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x6c], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x68], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006d347
sub ecx, edx
lea eax, [ebp - 0x26d0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.100512a0
push 1
push 0x10195b3c
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xa
call fcn.1006ed80
mov dword [ebp - 0x40], 0
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 8
lea ecx, [ebp - 0x40]
push dword [ebp - 0x54]
cmovae eax, dword [ebp - 0x64]
push eax
call fcn.1006ed80
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x14]
movq qword [ebp - 0x48], xmm1
movups xmmword [ebp - 0x90], xmm0
cmp ecx, 8
jb 0x1006d43a
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d424
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006d4c1
push ecx
push edx
call fcn.1013b151
movups xmm0, xmmword [ebp - 0x90]
add esp, 8
movq xmm1, qword [ebp - 0x48]
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x2c]
movq qword [ebp - 0x18], xmm1
movups xmmword [ebp - 0x28], xmm0
cmp ecx, 8
jb 0x1006d47d
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d473
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006d4c1
push ecx
push edx
call fcn.1013b151
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x1006d4d1
mov edx, dword [ebp - 0x7c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d4c7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006d4c7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp eax, 0xffffffff
jne 0x1006db58
push 0x1000
lea eax, [ebp - 0x26d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x26d0]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x6c], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x68], 0
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006d520
sub ecx, edx
lea eax, [ebp - 0x26d0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.100512a0
push 1
push 0x10195b48
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xc
call fcn.1006ed80
mov dword [ebp - 0x40], 0
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 8
lea ecx, [ebp - 0x40]
push dword [ebp - 0x54]
cmovae eax, dword [ebp - 0x64]
push eax
call fcn.1006ed80
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x14]
movq qword [ebp - 0x48], xmm1
movups xmmword [ebp - 0x90], xmm0
cmp ecx, 8
jb 0x1006d613
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d5fd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006d69a
push ecx
push edx
call fcn.1013b151
movups xmm0, xmmword [ebp - 0x90]
add esp, 8
movq xmm1, qword [ebp - 0x48]
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x2c]
movq qword [ebp - 0x18], xmm1
movups xmmword [ebp - 0x28], xmm0
cmp ecx, 8
jb 0x1006d656
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d64c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006d69a
push ecx
push edx
call fcn.1013b151
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x1006d6aa
mov edx, dword [ebp - 0x7c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d6a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006d6a0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp eax, 0xffffffff
jne 0x1006db58
lea eax, [ebp - 0x26d0]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x26d0]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x6c], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x68], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006d6f1
sub ecx, edx
lea eax, [ebp - 0x26d0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.100512a0
push 1
push 0x10195b44
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xe
call fcn.1006ed80
mov dword [ebp - 0x40], 0
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 8
lea ecx, [ebp - 0x40]
push dword [ebp - 0x54]
cmovae eax, dword [ebp - 0x64]
push eax
call fcn.1006ed80
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x14]
movq qword [ebp - 0x48], xmm1
movups xmmword [ebp - 0x90], xmm0
cmp ecx, 8
jb 0x1006d7e4
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d7ce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006d86b
push ecx
push edx
call fcn.1013b151
movups xmm0, xmmword [ebp - 0x90]
add esp, 8
movq xmm1, qword [ebp - 0x48]
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x2c]
movq qword [ebp - 0x18], xmm1
movups xmmword [ebp - 0x28], xmm0
cmp ecx, 8
jb 0x1006d827
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d81d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006d86b
push ecx
push edx
call fcn.1013b151
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x1006d87b
mov edx, dword [ebp - 0x7c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d871
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006d871
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x1006d8a0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.1005b930
xor esi, esi
jmp 0x1006dacb
push 0x1000
lea eax, [ebp - 0x26d0]
push eax
push 0x10195b50
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x26d0]
push 0x10195b4c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov edx, eax
add esp, 0xc
test edx, edx
je 0x1006dac6
nop dword [eax]
mov ecx, edx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006d900
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x7c]
call fcn.100512a0
push 1
push 0x10195b5c
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x10
call fcn.1006ed80
mov dword [ebp - 0x40], 0
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 8
lea ecx, [ebp - 0x40]
push dword [ebp - 0x54]
cmovae eax, dword [ebp - 0x64]
push eax
call fcn.1006ed80
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x14]
movq qword [ebp - 0x48], xmm1
movups xmmword [ebp - 0x90], xmm0
cmp ecx, 8
jb 0x1006d9ed
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d9d7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006c820
push ecx
push edx
call fcn.1013b151
movups xmm0, xmmword [ebp - 0x90]
add esp, 8
movq xmm1, qword [ebp - 0x48]
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x2c]
movq qword [ebp - 0x18], xmm1
movups xmmword [ebp - 0x28], xmm0
cmp ecx, 8
jb 0x1006da34
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006da2a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006c820
push ecx
push edx
call fcn.1013b151
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x1006da86
mov edx, dword [ebp - 0x7c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006da7c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006c820
push ecx
push edx
call fcn.1013b151
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1006db58
lea eax, [ebp - 0xb4]
push eax
push 0x10195b60
push dword [ebp - 0xb4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x1006d8e0
mov esi, 0xc0000225
mov eax, dword [ebp - 0x9c]
test eax, eax
jle 0x1006dadc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x50]
cmp ecx, 8
jb 0x1006db12
mov edx, dword [ebp - 0x64]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006db08
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006db52
push ecx
push edx
call fcn.1013b151
add esp, 8
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
cmp ecx, 8
jb 0x1006db83
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006db79
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006db79
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x1006db72
cmp dword [ebp - 0x14], 8
mov ecx, edi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10050370
xor esi, esi
jmp 0x1006dacb
push ecx
push edx
call fcn.1013b151
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18
call fcn.100505c0
call fcn.100474b0
int3