Function at 0x4019b0
Capabilities:
Get common file path
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40355e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c4
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x94]
call sub.MFC42.DLL_CStringArray::CStringArray
xor esi, esi
lea ecx, [esp + 0xb4]
mov dword [esp + 0x5dc], esi
call sub.MFC42.DLL_CStringArray::CStringArray
lea eax, [esp + 0x34]
push esi
push eax
push esi
push 0x20019
push esi
push esi
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x600], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
mov dword [esp + 0x30], eax
jne 0x401b47
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor eax, eax
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x30], eax
test eax, eax
je 0x401a4c
cmp eax, 0xea
jne 0x401b3c
lea ecx, [esp + 0xa8]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x38]
push 0
push 0
push 0
lea eax, [esp + 0xd8]
push edx
push eax
push esi
push ecx
mov dword [esp + 0x40], 0x104
call ebx
test eax, eax
mov dword [esp + 0x30], eax
je 0x401a8a
cmp eax, 0xea
jne 0x401b32
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x1c]
push 0
push edx
push 0
push 0x20019
push 0
push 0
lea eax, [esp + 0xe0]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401b32
mov ecx, 0x80
lea edi, [esp + 0x2d0]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x2d0]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
push eax
push ecx
push 0
push str.ProfileImagePath
push edx
mov dword [esp + 0x30], 0x200
call ebp
test eax, eax
jne 0x401b27
mov ecx, dword [esp + 0xbc]
lea eax, [esp + 0x2d0]
push eax
push ecx
lea ecx, [esp + 0xbc]
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov eax, dword [esp + 0x9c]
lea edx, [esp + 0xc8]
push edx
push eax
lea ecx, [esp + 0x9c]
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x30]
inc esi
jmp 0x401a3d
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x9c]
xor edi, edi
test eax, eax
mov byte [esp + 0x5dc], 2
jle 0x40222f
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
mov ebp, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [esp + 0x98]
lea ecx, [eax + edi*4]
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
push str.Environment
lea ecx, [esp + 0x24]
mov byte [esp + 0x5e0], 3
call fcn.00402e8a
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x5dc], 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x28]
push edx
push eax
push str.TEMP
push ecx
push SysStringLen
mov byte [esp + 0x5f0], 5
call fcn.004026a0
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0xc4]
lea eax, [esp + 0x38]
push edx
push eax
push 0x405190
push ecx
push SysStringLen
call fcn.004026a0
add esp, 0x28
lea edx, [esp + 0x64]
lea ecx, [esp + 0x24]
push 0xd
push edx
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push str._userprofile_
push eax
call esi
add esp, 8
lea ecx, [esp + 0x64]
test eax, eax
sete bl
call fcn.00402e36
test bl, bl
je 0x401ee0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x98]
lea edx, [esp + 0x68]
mov byte [esp + 0x5dc], 6
mov dword [esp + 0x1c], 2
lea ecx, [eax + edi*4]
push ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList_
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x4d0]
push ecx
push edx
push str.ProfileImagePath
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x5f0], 7
call fcn.004029b0
add esp, 0x14
lea ecx, [esp + 0x68]
mov byte [esp + 0x5dc], 6
call fcn.00402e36
lea eax, [esp + 0x4d0]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0xc8]
push 0x104
push ecx
call ebp
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0xc8]
lea ecx, [esp + 0x2c]
push edx
mov byte [esp + 0x5e0], 8
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x44]
push 2
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x5e0], 9
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x44]
mov byte [esp + 0x5dc], 8
call fcn.00402e36
lea ecx, [esp + 0x8c]
push 0xc
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push eax
push str._SystemRoot_
call esi
add esp, 8
lea ecx, [esp + 0x8c]
test eax, eax
sete bl
call fcn.00402e36
test bl, bl
je 0x401dbc
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
add eax, 0xfffffff4
push eax
lea eax, [esp + 0x84]
push eax
call sub.MFC42.DLL_CString::Right
lea ecx, [esp + 0xc8]
push eax
lea edx, [esp + 0x50]
push ecx
push edx
mov byte [esp + 0x5e8], 0xa
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5e0], 0xb
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x5dc], 0xa
call fcn.00402e36
lea ecx, [esp + 0x80]
mov byte [esp + 0x5dc], 8
call fcn.00402e36
lea eax, [esp + 0x54]
push 0xd
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push eax
push str._SystemDrive_
call esi
add esp, 8
lea ecx, [esp + 0x54]
test eax, eax
sete bl
call fcn.00402e36
test bl, bl
je 0x401e56
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x5c]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
add eax, 0xfffffff3
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x88]
push eax
push ecx
mov byte [esp + 0x5e8], 0xc
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5e0], 0xd
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x84]
mov byte [esp + 0x5dc], 0xc
call fcn.00402e36
lea ecx, [esp + 0x5c]
mov byte [esp + 0x5dc], 8
call fcn.00402e36
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x24]
mov eax, dword [edx - 8]
add eax, 0xfffffff3
push eax
lea eax, [esp + 0x40]
push eax
call sub.MFC42.DLL_CString::Right
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x80]
push ecx
push edx
mov byte [esp + 0x5e8], 0xe
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x5e0], 0xf
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x7c]
mov byte [esp + 0x5dc], 0xe
call fcn.00402e36
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5dc], 8
call fcn.00402e36
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5dc], 6
call fcn.00402e36
lea ecx, [esp + 0x10]
mov byte [esp + 0x5dc], 5
call fcn.00402e36
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0xac], esp
push eax
call sub.MFC42.DLL_CString::CString_2
call fcn.00402520
add esp, 4
lea ecx, [esp + 0x78]
push 0xd
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push str._userprofile_
push eax
call esi
add esp, 8
lea ecx, [esp + 0x78]
test eax, eax
sete bl
call fcn.00402e36
test bl, bl
je 0x4021d0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x98]
lea ecx, [esp + 0x6c]
mov byte [esp + 0x5dc], 0x10
mov dword [esp + 0x1c], 2
lea eax, [edx + edi*4]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList_
push ecx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x2d0]
push edx
push ecx
push str.ProfileImagePath
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x5f0], 0x11
call fcn.004029b0
add esp, 0x14
lea ecx, [esp + 0x6c]
mov byte [esp + 0x5dc], 0x10
call fcn.00402e36
lea edx, [esp + 0x2d0]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x1cc]
push 0x104
push eax
call ebp
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1cc]
mov byte [esp + 0x5dc], 0x12
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 0x88]
push 2
push edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5e0], 0x13
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x88]
mov byte [esp + 0x5dc], 0x12
call fcn.00402e36
lea eax, [esp + 0x74]
push 0xc
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push eax
push str._SystemRoot_
call esi
add esp, 8
lea ecx, [esp + 0x74]
test eax, eax
sete bl
call fcn.00402e36
test bl, bl
je 0x4020b5
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x40]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
add eax, 0xfffffff4
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea eax, [esp + 0x1d0]
lea ecx, [esp + 0x94]
push eax
push ecx
mov byte [esp + 0x5e8], 0x14
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5e0], 0x15
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x90]
mov byte [esp + 0x5dc], 0x14
call fcn.00402e36
lea ecx, [esp + 0x40]
mov byte [esp + 0x5dc], 0x12
call fcn.00402e36
lea edx, [esp + 0x48]
push 0xd
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push eax
push str._SystemDrive_
call esi
add esp, 8
lea ecx, [esp + 0x48]
test eax, eax
sete bl
call fcn.00402e36
test bl, bl
je 0x402149
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x58]
mov eax, dword [eax - 8]
add eax, 0xfffffff3
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
push eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x54]
push edx
push eax
mov byte [esp + 0x5e8], 0x16
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5e0], 0x17
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x50]
mov byte [esp + 0x5dc], 0x16
call fcn.00402e36
lea ecx, [esp + 0x58]
mov byte [esp + 0x5dc], 0x12
call fcn.00402e36
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x38]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x28]
add eax, 0xfffffff3
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x64]
push eax
push ecx
mov byte [esp + 0x5e8], 0x18
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5e0], 0x19
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x60]
mov byte [esp + 0x5dc], 0x18
call fcn.00402e36
lea ecx, [esp + 0x38]
mov byte [esp + 0x5dc], 0x12
call fcn.00402e36
lea ecx, [esp + 0x18]
mov byte [esp + 0x5dc], 0x10
call fcn.00402e36
lea ecx, [esp + 0x14]
mov byte [esp + 0x5dc], 5
call fcn.00402e36
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0xac], esp
push edx
call sub.MFC42.DLL_CString::CString_2
call fcn.00402520
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x5dc], 4
call fcn.00402e36
lea ecx, [esp + 0x28]
mov byte [esp + 0x5dc], 3
call fcn.00402e36
lea ecx, [esp + 0x20]
mov byte [esp + 0x5dc], 2
call fcn.00402e36
mov eax, dword [esp + 0x9c]
inc edi
cmp edi, eax
jl 0x401b75
mov ecx, dword [esp + 0x30]
xor eax, eax
test ecx, ecx
sete al
lea ecx, [esp + 0x70]
mov esi, eax
mov byte [esp + 0x5dc], 1
call fcn.00402e36
lea ecx, [esp + 0xb4]
mov byte [esp + 0x5dc], 0
call fcn.00402e30
lea ecx, [esp + 0x94]
mov dword [esp + 0x5dc], 0xffffffff
call fcn.00402e30
mov ecx, dword [esp + 0x5d4]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5d0
ret