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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61eb2b
push eax
mov eax, dword [0x6d26f0]
mov dword fs:[0], esp
sub esp, 0x114
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
jne 0x495f22
mov ecx, 0x41
xor eax, eax
mov edi, 0x6d25e4
push str.shell32
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, 0x6d24d4
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x495c74
push str.SHGetFolderPathA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
cmp ebp, ebx
je 0x495c69
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
push 0x26
push ebx
call ebp
test eax, eax
jne 0x495c2e
lea ecx, [esp + 0x20]
push 0x103
push ecx
push 0x6d25e4
call fcn.005e7540
add esp, 0xc
mov byte [0x6d26e7], bl
mov esi, 1
lea edx, [esp + 0x20]
push edx
push ebx
push ebx
push 0x24
push ebx
call ebp
cmp eax, ebx
jne 0x495c63
lea eax, [esp + 0x20]
push 0x103
push eax
push 0x6d24d4
call fcn.005e7540
add esp, 0xc
mov byte [0x6d25d7], bl
mov dword [esp + 0x18], 1
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, ebx
jne 0x495ce8
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x495ce8
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push ebx
push ebx
push 0x6a3c40
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x495cdd
lea edx, [esp + 0x20]
push 0x103
push edx
push 0x6d25e4
call fcn.005e7540
add esp, 0xc
mov byte [0x6d26e7], bl
mov esi, 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x18], ebx
jne 0x495d27
lea ecx, [esp + 0x20]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x495d27
lea edx, [esp + 0x20]
push 0x103
push edx
push 0x6d24d4
call fcn.005e7540
add esp, 0xc
mov byte [0x6d25d7], bl
mov dword [esp + 0x18], 1
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, ebx
je 0x495e60
push 0x7e
push 0x6d25e4
call fcn.005e71f0
add esp, 8
test eax, eax
je 0x495db2
push 0x6d25e4
lea ecx, [esp + 0x18]
call fcn.00603aaa
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov dword [esp + 0x134], ebx
call fcn.006037b1
lea ecx, [esp + 0x14]
push ecx
call fcn.0044deb0
mov edx, dword [esp + 0x18]
push 0x103
push edx
push 0x6d25e4
call fcn.005e7540
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [0x6d26e7], bl
call fcn.00603a3c
lea ecx, [esp + 0x14]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00603a3c
mov edi, 0x6d25e4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jle 0x495dfb
cmp byte [ecx + 0x6d25e3], 0x5c
je 0x495dfb
mov edi, 0x6a2bbc
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, 0x6d25e4
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, 0x6d25d8
call fcn.00401070
mov eax, 0x6d25e4
test eax, eax
je 0x495e60
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x495e60
push ebx
push ebx
push 0xffffffffffffffff
push 0x6d25e4
push ebx
push ebx
call ebp
cmp eax, ebx
mov dword [0x6d25e0], eax
je 0x495e60
lea ecx, [eax + eax + 2]
push ecx
call fcn.005ffe3f
add esp, 4
cmp eax, ebx
mov dword [0x6d25d8], eax
je 0x495e60
mov edx, dword [0x6d25e0]
push edx
push eax
push 0xffffffffffffffff
push 0x6d25e4
push ebx
push ebx
call ebp
mov dword [0x6d25e0], eax
cmp dword [esp + 0x18], ebx
je 0x495f18
mov edi, 0x6d24d4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jle 0x495eb3
cmp byte [ecx + 0x6d24d3], 0x5c
je 0x495eb3
mov edi, 0x6a2bbc
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, 0x6d24d4
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, 0x6d24c8
call fcn.00401070
mov eax, 0x6d24d4
test eax, eax
je 0x495f18
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x495f18
push ebx
push ebx
push 0xffffffffffffffff
push 0x6d24d4
push ebx
push ebx
call ebp
cmp eax, ebx
mov dword [0x6d24d0], eax
je 0x495f18
lea ecx, [eax + eax + 2]
push ecx
call fcn.005ffe3f
add esp, 4
cmp eax, ebx
mov dword [0x6d24c8], eax
je 0x495f18
mov edx, dword [0x6d24d0]
push edx
push eax
push 0xffffffffffffffff
push 0x6d24d4
push ebx
push ebx
call ebp
mov dword [0x6d24d0], eax
mov dword [0x6d26f0], 1
mov eax, dword [0x6d25d8]
cmp eax, ebx
jne 0x495f57
mov eax, 0x6d25dc
mov esi, eax
push eax
call fcn.005e71bf
mov edi, dword [esp + 0x138]
shl eax, 1
push eax
push esi
push edi
call fcn.005e9510
add esp, 0x10
test eax, eax
jne 0x495f5b
mov eax, 1
jmp 0x495f88
mov esi, eax
jmp 0x495f32
mov esi, dword [0x6d24c8]
cmp esi, ebx
je 0x495f69
mov eax, esi
jmp 0x495f70
mov eax, 0x6d24cc
mov esi, eax
push eax
call fcn.005e71bf
shl eax, 1
push eax
push esi
push edi
call fcn.005e9510
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