Function at 0x10006310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005bcc2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2f4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push 0x100c2358
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000668a
lea eax, [ebp - 0x300]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x300]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006390
push esi
sub ecx, edx
lea eax, [ebp - 0x300]
push edi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000bbf0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov eax, ecx
mov edi, dword [ebp - 0x1c]
sub eax, edi
cmp eax, 0x21
jb 0x100063f6
cmp ecx, 7
lea esi, [ebp - 0x2c]
lea eax, [edi + 0x21]
cmova esi, dword [ebp - 0x2c]
push 0x42
mov dword [ebp - 0x1c], eax
push 0x100c2390
lea eax, [esi + edi*2]
push eax
call fcn.1003c0f0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 0x42], ax
lea eax, [ebp - 0x2c]
jmp 0x1000640e
push 0x21
push 0x100c2390
mov byte [ebp - 0x10], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x10]
push 0x21
call fcn.10011580
mov dword [ebp - 0x38], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x34], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x48], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x38], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x10006485
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000647b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100066a1
push ecx
push edx
call fcn.1003acea
add esp, 8
cmp dword [ebp - 0x34], 7
lea esi, [ebp - 0x48]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0xf8], 0x100c2974
cmova esi, dword [ebp - 0x48]
call fcn.10008c20
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x10], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], 0x100c27d8
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xfc], eax
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0xf8]
lea ecx, [ebp - 0xf8]
add ecx, dword [eax + 4]
call fcn.10008ce0
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], 0x100c2a5c
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xfc], eax
lea ecx, [ebp - 0xf4]
call fcn.10008a80
push ecx
push 2
push esi
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 6
call fcn.10008950
test eax, eax
jne 0x1000656c
mov eax, dword [ebp - 0xf8]
lea ecx, [ebp - 0xf8]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10002950
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], 0x100c2a5c
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xfc], eax
mov byte [ebp - 4], 7
cmp dword [ebp - 0xa8], 0
je 0x10006639
call fcn.1003a538
push 0
push 0x989680
push edx
push eax
call fcn.1005b4a0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], edx
call fcn.1004647d
mov dword [ebp - 0x20], eax
add esp, 4
mov dword [ebp - 0x1c], 0x100c23d4
mov eax, 0x100c23d4
nop dword [eax + eax]
add eax, 2
cmp word [eax], 0
jne 0x100065e0
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0x18], eax
call fcn.1000b360
lea edx, [ebp - 0x20]
mov ecx, eax
call fcn.1000b5a0
lea ecx, [ebp - 0xf4]
call fcn.10008500
test eax, eax
jne 0x10006639
mov eax, dword [ebp - 0xf8]
lea ecx, [ebp - 0xf8]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10002950
lea ecx, [ebp - 0xf8]
call fcn.100066b0
mov ecx, dword [ebp - 0x34]
pop edi
pop esi
cmp ecx, 7
jbe 0x10006693
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10006672
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100066a6
push ecx
push edx
call fcn.1003acea
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.10046bf3
call fcn.10046bf3
int3