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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6428cb
push eax
mov eax, dword [0x6fceb0]
mov dword fs:[0], esp
sub esp, 0x114
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
jne 0x4a57e4
mov ecx, 0x41
xor eax, eax
mov edi, 0x6fcda4
push str.shell32.dll
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, 0x6fcc94
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [esp + 0x1c], ebx
call fcn.0044abc0
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4a5536
push str.SHGetFolderPathA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
cmp ebp, ebx
je 0x4a552b
push ebx
call dword [0x6fc3fc]
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
push 0x26
push ebx
call ebp
test eax, eax
jne 0x4a54f0
lea ecx, [esp + 0x20]
push 0x103
push ecx
push 0x6fcda4
call fcn.00609f00
add esp, 0xc
mov byte [0x6fcea7], bl
mov esi, 1
lea edx, [esp + 0x20]
push edx
push ebx
push ebx
push 0x24
push ebx
call ebp
cmp eax, ebx
jne 0x4a5525
lea eax, [esp + 0x20]
push 0x103
push eax
push 0x6fcc94
call fcn.00609f00
add esp, 0xc
mov byte [0x6fcd97], bl
mov dword [esp + 0x18], 1
call dword [0x6fc400]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, ebx
jne 0x4a55aa
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4a55aa
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push ebx
push ebx
push str.ProgramFilesDir
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a559f
lea edx, [esp + 0x20]
push 0x103
push edx
push 0x6fcda4
call fcn.00609f00
add esp, 0xc
mov byte [0x6fcea7], bl
mov esi, 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x18], ebx
jne 0x4a55e9
lea ecx, [esp + 0x20]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4a55e9
lea edx, [esp + 0x20]
push 0x103
push edx
push 0x6fcc94
call fcn.00609f00
add esp, 0xc
mov byte [0x6fcd97], bl
mov dword [esp + 0x18], 1
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, ebx
je 0x4a5722
push 0x7e
push 0x6fcda4
call fcn.00609c00
add esp, 8
test eax, eax
je 0x4a5674
push 0x6fcda4
lea ecx, [esp + 0x18]
call fcn.00622df8
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov dword [esp + 0x134], ebx
call fcn.00622aff
lea ecx, [esp + 0x14]
push ecx
call fcn.00453af0
mov edx, dword [esp + 0x18]
push 0x103
push edx
push 0x6fcda4
call fcn.00609f00
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [0x6fcea7], bl
call fcn.00622d8a
lea ecx, [esp + 0x14]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00622d8a
mov edi, 0x6fcda4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jle 0x4a56bd
cmp byte [ecx + 0x6fcda3], 0x5c
je 0x4a56bd
mov edi, 0x6cae80
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, 0x6fcda4
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, 0x6fcd98
call fcn.00401070
mov eax, 0x6fcda4
test eax, eax
je 0x4a5722
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4a5722
push ebx
push ebx
push 0xffffffffffffffff
push 0x6fcda4
push ebx
push ebx
call ebp
cmp eax, ebx
mov dword [0x6fcda0], eax
je 0x4a5722
lea ecx, [eax + eax + 2]
push ecx
call fcn.00622acb
add esp, 4
cmp eax, ebx
mov dword [0x6fcd98], eax
je 0x4a5722
mov edx, dword [0x6fcda0]
push edx
push eax
push 0xffffffffffffffff
push 0x6fcda4
push ebx
push ebx
call ebp
mov dword [0x6fcda0], eax
cmp dword [esp + 0x18], ebx
je 0x4a57da
mov edi, 0x6fcc94
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jle 0x4a5775
cmp byte [ecx + 0x6fcc93], 0x5c
je 0x4a5775
mov edi, 0x6cae80
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, 0x6fcc94
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, 0x6fcc88
call fcn.00401070
mov eax, 0x6fcc94
test eax, eax
je 0x4a57da
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4a57da
push ebx
push ebx
push 0xffffffffffffffff
push 0x6fcc94
push ebx
push ebx
call ebp
cmp eax, ebx
mov dword [0x6fcc90], eax
je 0x4a57da
lea ecx, [eax + eax + 2]
push ecx
call fcn.00622acb
add esp, 4
cmp eax, ebx
mov dword [0x6fcc88], eax
je 0x4a57da
mov edx, dword [0x6fcc90]
push edx
push eax
push 0xffffffffffffffff
push 0x6fcc94
push ebx
push ebx
call ebp
mov dword [0x6fcc90], eax
mov dword [0x6fceb0], 1
mov eax, dword [0x6fcd98]
cmp eax, ebx
jne 0x4a5819
mov eax, 0x6fcd9c
mov esi, eax
push eax
call fcn.00609a4e
mov edi, dword [esp + 0x138]
shl eax, 1
push eax
push esi
push edi
call fcn.0060bf70
add esp, 0x10
test eax, eax
jne 0x4a581d
mov eax, 1
jmp 0x4a584a
mov esi, eax
jmp 0x4a57f4
mov esi, dword [0x6fcc88]
cmp esi, ebx
je 0x4a582b
mov eax, esi
jmp 0x4a5832
mov eax, 0x6fcc8c
mov esi, eax
push eax
call fcn.00609a4e
shl eax, 1
push eax
push esi
push edi
call fcn.0060bf70
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