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

Disassembly:
mov eax, 0x45740c
call fcn.004324bc
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 [0x4747d0]
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 0x41ef4d
lea ecx, [ebp - 0x1d0]
push ecx
push esi
push esi
push 5
push esi
call eax
test eax, eax
je 0x41eec8
push 1
pop edi
cmp dword [ebp - 0xbc], edi
jne 0x41eedc
cmp dword [ebp - 0xc4], esi
jbe 0x41eedc
lea eax, [ebp - 0x1d0]
push eax
push esi
push esi
push 0x8005
push esi
call dword [ebx + 0x54]
test eax, eax
jne 0x41ef4d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1d0]
push eax
call fcn.004483c4
jmp 0x41f207
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.My_Documents
call fcn.004482f5
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.0042003e
push esi
call fcn.0040b6a8
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.0040bffd
add esp, 0x10
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 4], edi
call fcn.00448374
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00448287
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push dword [ebp + 8]
call fcn.00447ffc
call fcn.0040b31f
pop ecx
jmp 0x41f207
lea edi, [ebx + 0x4c]
push edi
mov dword [ebp - 0x28], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x41f207
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 0x41efa2
lea eax, [ebp - 0x1d0]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x41f1f4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1d0]
push eax
call fcn.004483c4
jmp 0x41f1f4
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 0x41f1e8
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 0x41f00d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x430]
push eax
call fcn.004483c4
jmp 0x41f1e8
cmp dword [ebp - 0xbc], 2
je 0x41f06b
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push str.NetworkLogon
push 0x80000002
call edi
test eax, eax
jne 0x41f186
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 0x41f059
mov dword [ebp - 0x18], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], esi
je 0x41f186
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 0x41f1e8
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x1c]
push eax
call fcn.004482f5
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.00447ffc
push ecx
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.SoftwareMicrosoftWindowsCurrentVersionProfileList
call fcn.004482f5
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.0040bffd
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 0x41f171
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 0x41f168
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.Personal
call fcn.004482f5
push ecx
lea eax, [ebp - 0x328]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
mov byte [ebp - 4], 5
call fcn.0041feb8
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
call fcn.0040bffd
add esp, 0x10
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 6
call fcn.00448374
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00448287
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00448287
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
jmp 0x41f1e3
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.My_Documents
call fcn.004482f5
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.0042003e
push esi
call fcn.0040b6a8
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea eax, [ebp - 0x24]
push eax
call fcn.0040bffd
add esp, 0x10
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 4], 8
call fcn.00448374
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00448287
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