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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61dbcb
push eax
mov eax, dword [0x6d1690]
mov dword fs:[0], esp
sub esp, 0x114
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
jne 0x4955e2
mov ecx, 0x41
xor eax, eax
mov edi, 0x6d1584
push str.shell32
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, 0x6d1474
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 0x495334
push str.SHGetFolderPathA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
cmp ebp, ebx
je 0x495329
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 0x4952ee
lea ecx, [esp + 0x20]
push 0x103
push ecx
push 0x6d1584
call fcn.005e6720
add esp, 0xc
mov byte [0x6d1687], bl
mov esi, 1
lea edx, [esp + 0x20]
push edx
push ebx
push ebx
push 0x24
push ebx
call ebp
cmp eax, ebx
jne 0x495323
lea eax, [esp + 0x20]
push 0x103
push eax
push 0x6d1474
call fcn.005e6720
add esp, 0xc
mov byte [0x6d1577], 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 0x4953a8
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 0x4953a8
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push ebx
push ebx
push 0x6a2c40
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49539d
lea edx, [esp + 0x20]
push 0x103
push edx
push 0x6d1584
call fcn.005e6720
add esp, 0xc
mov byte [0x6d1687], bl
mov esi, 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x18], ebx
jne 0x4953e7
lea ecx, [esp + 0x20]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4953e7
lea edx, [esp + 0x20]
push 0x103
push edx
push 0x6d1474
call fcn.005e6720
add esp, 0xc
mov byte [0x6d1577], bl
mov dword [esp + 0x18], 1
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, ebx
je 0x495520
push 0x7e
push 0x6d1584
call fcn.005e63d0
add esp, 8
test eax, eax
je 0x495472
push 0x6d1584
lea ecx, [esp + 0x18]
call fcn.00602b44
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov dword [esp + 0x134], ebx
call fcn.0060284b
lea ecx, [esp + 0x14]
push ecx
call fcn.0044db10
mov edx, dword [esp + 0x18]
push 0x103
push edx
push 0x6d1584
call fcn.005e6720
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [0x6d1687], bl
call fcn.00602ad6
lea ecx, [esp + 0x14]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00602ad6
mov edi, 0x6d1584
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jle 0x4954bb
cmp byte [ecx + 0x6d1583], 0x5c
je 0x4954bb
mov edi, 0x6a1bbc
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, 0x6d1584
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, 0x6d1578
call fcn.00401070
mov eax, 0x6d1584
test eax, eax
je 0x495520
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x495520
push ebx
push ebx
push 0xffffffffffffffff
push 0x6d1584
push ebx
push ebx
call ebp
cmp eax, ebx
mov dword [0x6d1580], eax
je 0x495520
lea ecx, [eax + eax + 2]
push ecx
call fcn.005feedc
add esp, 4
cmp eax, ebx
mov dword [0x6d1578], eax
je 0x495520
mov edx, dword [0x6d1580]
push edx
push eax
push 0xffffffffffffffff
push 0x6d1584
push ebx
push ebx
call ebp
mov dword [0x6d1580], eax
cmp dword [esp + 0x18], ebx
je 0x4955d8
mov edi, 0x6d1474
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jle 0x495573
cmp byte [ecx + 0x6d1473], 0x5c
je 0x495573
mov edi, 0x6a1bbc
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, 0x6d1474
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, 0x6d1468
call fcn.00401070
mov eax, 0x6d1474
test eax, eax
je 0x4955d8
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4955d8
push ebx
push ebx
push 0xffffffffffffffff
push 0x6d1474
push ebx
push ebx
call ebp
cmp eax, ebx
mov dword [0x6d1470], eax
je 0x4955d8
lea ecx, [eax + eax + 2]
push ecx
call fcn.005feedc
add esp, 4
cmp eax, ebx
mov dword [0x6d1468], eax
je 0x4955d8
mov edx, dword [0x6d1470]
push edx
push eax
push 0xffffffffffffffff
push 0x6d1474
push ebx
push ebx
call ebp
mov dword [0x6d1470], eax
mov dword [0x6d1690], 1
mov eax, dword [0x6d1578]
cmp eax, ebx
jne 0x495617
mov eax, 0x6d157c
mov esi, eax
push eax
call fcn.005e639f
mov edi, dword [esp + 0x138]
shl eax, 1
push eax
push esi
push edi
call fcn.005e86f0
add esp, 0x10
test eax, eax
jne 0x49561b
mov eax, 1
jmp 0x495648
mov esi, eax
jmp 0x4955f2
mov esi, dword [0x6d1468]
cmp esi, ebx
je 0x495629
mov eax, esi
jmp 0x495630
mov eax, 0x6d146c
mov esi, eax
push eax
call fcn.005e639f
shl eax, 1
push eax
push esi
push edi
call fcn.005e86f0
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