Function at 0x458333
Capabilities:
Get common file path
Get session user name
Query or enumerate registry value

Disassembly:
mov eax, 0x4b3308
call fcn.00483228
sub esp, 0x52c
push ebx
push esi
lea eax, [ebp - 0xcc]
push edi
mov ebx, ecx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xcc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov al, byte [0x4e7e70]
push 0x40
mov byte [ebp - 0x1d0], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x1cf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebx + 0x54]
xor esi, esi
cmp eax, esi
je 0x45844e
lea ecx, [ebp - 0x1d0]
push ecx
push esi
push esi
push 5
push esi
call eax
test eax, eax
je 0x4583c9
push 1
pop edi
cmp dword [ebp - 0xbc], edi
jne 0x4583dd
cmp dword [ebp - 0xc4], esi
jbe 0x4583dd
lea eax, [ebp - 0x1d0]
push eax
push esi
push esi
push 0x8005
push esi
call dword [ebx + 0x54]
test eax, eax
jne 0x45844e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1d0]
push eax
call fcn.0049da15
jmp 0x458708
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.My_Documents
call fcn.0049d946
push ecx
mov dword [ebp - 4], esi
mov esi, esp
mov dword [ebp - 0x14], esp
push ecx
mov ecx, ebx
mov eax, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0045953f
push esi
call fcn.00447404
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00447f34
add esp, 0x10
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 4], edi
call fcn.0049d9c5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0049d8d8
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push dword [ebp + 8]
call fcn.0049d64d
call fcn.00446d96
pop ecx
jmp 0x458708
lea edi, [ebx + 0x4c]
push edi
mov dword [ebp - 0x28], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x458708
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], esi
push eax
push 5
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, esi
jne 0x4584a3
lea eax, [ebp - 0x1d0]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4586f5
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1d0]
push eax
call fcn.0049da15
jmp 0x4586f5
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x10]
mov ebx, 0xf003f
push eax
push ebx
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push 0x80000001
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 0x2c], esi
call edi
test eax, eax
jne 0x4586e9
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push str.Personal
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45850e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x430]
push eax
call fcn.0049da15
jmp 0x4586e9
cmp dword [ebp - 0xbc], 2
je 0x45856c
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push str.NetworkLogon
push 0x80000002
call edi
test eax, eax
jne 0x458687
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x538]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push str.UserProfiles
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45855a
mov dword [ebp - 0x18], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], esi
je 0x458687
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x50
push eax
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x4586e9
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0049d946
push 1
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov dword [ebp - 4], 2
call fcn.0049d64d
push ecx
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.SoftwareMicrosoftWindowsCurrentVersionProfileList
call fcn.0049d946
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.00447f34
add esp, 0x10
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push eax
push ebx
push esi
push dword [ebp - 0x18]
push 0x80000002
call edi
test eax, eax
jne 0x458672
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push str.ProfileImagePath
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x458669
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.Personal
call fcn.0049d946
push ecx
lea eax, [ebp - 0x328]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
mov byte [ebp - 4], 5
call fcn.004593b9
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
call fcn.00447f34
add esp, 0x10
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 6
call fcn.0049d9c5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0049d8d8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0049d8d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
jmp 0x4586e4
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.My_Documents
call fcn.0049d946
push ecx
mov dword [ebp - 4], 7
mov esi, esp
mov dword [ebp - 0x34], esp
push ecx
mov ecx, dword [ebp - 0x14]
mov eax, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.0045953f
push esi
call fcn.00447404
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea eax, [ebp - 0x24]
push eax
call fcn.00447f34
add esp, 0x10
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 4], 8
call fcn.0049d9c5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0049d8d8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x28]
mov eax, dword [edi]
push dword [ebp - 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov edi, dword [edi]
push edi
mov eax, dword [edi]
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4