Function at 0x486960
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5fa03b
push eax
mov eax, dword [0x6cd1f8]
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
jne 0x486d3c
mov ecx, 0x41
xor eax, eax
mov edi, 0x6cd0ec
push str.shell32
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, 0x6ccfdc
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, ebp
je 0x486a6b
push str.SHGetFolderPathA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x486a60
push ebp
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push 0x26
push ebp
call esi
test eax, eax
jne 0x486a1d
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, 1
mov edx, ecx
mov esi, edi
mov edi, 0x6cd0ec
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0x24
push 0
call esi
test eax, eax
jne 0x486a5a
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], 1
mov edx, ecx
mov esi, edi
mov edi, 0x6ccfdc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebp, ebp
jne 0x486ae5
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x486ae5
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x24]
push 0x6a07f8
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x486ada
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, 1
mov edx, ecx
mov esi, edi
mov edi, 0x6cd0ec
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x486b2d
lea ecx, [esp + 0x20]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x486b2d
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x6ccfdc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov bl, 0x5c
je 0x486c77
push 0x7e
push 0x6cd0ec
call fcn.005c2f50
add esp, 8
test eax, eax
je 0x486bc8
push 0x6cd0ec
lea ecx, [esp + 0x14]
call fcn.005df5c4
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov dword [esp + 0x134], 0
call fcn.005df2cb
lea ecx, [esp + 0x18]
push ecx
call fcn.00447290
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x6cd0ec
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.005df556
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], 0xffffffff
call fcn.005df556
mov edi, 0x6cd0ec
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x486c10
cmp byte [ecx + 0x6cd0eb], bl
je 0x486c10
mov edi, 0x69f758
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x6cd0ec
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x6cd0e0
call fcn.00401070
mov eax, 0x6cd0ec
test eax, eax
je 0x486c77
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x486c77
push eax
push eax
push 0xffffffffffffffff
push 0x6cd0ec
push eax
push eax
call ebp
test eax, eax
mov dword [0x6cd0e8], eax
je 0x486c77
lea ecx, [eax + eax + 2]
push ecx
call fcn.005db95d
add esp, 4
mov dword [0x6cd0e0], eax
test eax, eax
je 0x486c77
mov edx, dword [0x6cd0e8]
push edx
push eax
push 0xffffffffffffffff
push 0x6cd0ec
push 0
push 0
call ebp
mov dword [0x6cd0e8], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x486d32
mov edi, 0x6ccfdc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x486ccb
cmp byte [ecx + 0x6ccfdb], bl
je 0x486ccb
mov edi, 0x69f758
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x6ccfdc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x6ccfd0
call fcn.00401070
mov eax, 0x6ccfdc
test eax, eax
je 0x486d32
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x486d32
push eax
push eax
push 0xffffffffffffffff
push 0x6ccfdc
push eax
push eax
call ebp
test eax, eax
mov dword [0x6ccfd8], eax
je 0x486d32
lea ecx, [eax + eax + 2]
push ecx
call fcn.005db95d
add esp, 4
mov dword [0x6ccfd0], eax
test eax, eax
je 0x486d32
mov edx, dword [0x6ccfd8]
push edx
push eax
push 0xffffffffffffffff
push 0x6ccfdc
push 0
push 0
call ebp
mov dword [0x6ccfd8], eax
mov dword [0x6cd1f8], 1
mov eax, dword [0x6cd0e0]
test eax, eax
jne 0x486d71
mov eax, 0x6cd0e4
mov esi, eax
push eax
call fcn.005c2f1a
mov edi, dword [esp + 0x138]
shl eax, 1
push eax
push esi
push edi
call fcn.005c52b0
add esp, 0x10
test eax, eax
jne 0x486d75
mov eax, 1
jmp 0x486da2
mov esi, eax
jmp 0x486d4c
mov esi, dword [0x6ccfd0]
test esi, esi
je 0x486d83
mov eax, esi
jmp 0x486d8a
mov eax, 0x6ccfd4
mov esi, eax
push eax
call fcn.005c2f1a
shl eax, 1
push eax
push esi
push edi
call fcn.005c52b0
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x120
ret