Function at 0x401800
Capabilities:
Get file system object information
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40b44c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebp, ebp
mov ebx, 1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1cc], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x1cc], bl
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x1cc], 2
call sub.MFC42.DLL_CString::CString_1
mov edi, dword [esp + 0x1d4]
mov byte [esp + 0x1cc], 3
cmp edi, 0x80000001
jne 0x401883
push str.HKEY_CURRENT_USER
jmp 0x401890
cmp edi, 0x80000002
jne 0x401899
push str.HKEY_LOCAL_MACHINE
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
push 0x41109c
lea ecx, [esp + 0x18]
call fcn.0040ae8a
lea eax, [esp + 0x1d8]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x1d8]
lea ecx, [esp + 0x28]
push ecx
push ebx
push ebp
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x401c6c
push ebp
lea eax, [esp + 0x20]
push ebp
lea ecx, [esp + 0x28]
mov edx, dword [esp + 0x30]
push eax
push ecx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebp
jne 0x401c6c
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
inc eax
inc ecx
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
call sub.MFC42.DLL_operatornew
mov edi, eax
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x64], edi
call sub.MFC42.DLL_operatornew
add esp, 8
mov dword [esp + 0x2c], eax
mov bl, 8
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x48]
mov dword [esp + 0x48], edx
push eax
lea edx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x64]
push ebp
push eax
push edi
push ecx
push edx
mov dword [esp + 0x60], ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x401c4e
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x1cc], 4
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esp + 0x54]
mov byte [esp + 0x1d0], 5
call sub.MFC42.DLL_CString::CString
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d0], 6
call fcn.0040ae78
lea ecx, [esp + 0x50]
mov byte [esp + 0x1cc], 5
call fcn.0040adee
call sub.MFC42.DLL_AfxGetEmptyString
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax]
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], eax
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 0x34]
lea ecx, [esp + 0x18]
push edx
mov byte [esp + 0x1d0], 7
call fcn.0040ae78
lea ecx, [esp + 0x34]
mov byte [esp + 0x1cc], 5
call fcn.0040adee
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
push ebp
push str..exe
lea ecx, [esp + 0x20]
mov byte [esp + 0x1d4], bl
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
push ebp
je 0x401ace
push str..exe
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find
add eax, 4
lea ecx, [esp + 0x18]
push eax
lea eax, [esp + 0x64]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1d0], 9
call fcn.0040ae78
lea ecx, [esp + 0x60]
mov byte [esp + 0x1cc], bl
call fcn.0040adee
push ebp
push 0x411090
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x401b6e
mov ecx, dword [esp + 0x10]
push ebp
push 0x411090
mov edi, dword [ecx - 8]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
sub edi, eax
lea edx, [esp + 0x44]
inc edi
lea ecx, [esp + 0x10]
push edi
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1d0], 0xa
call fcn.0040ae78
mov byte [esp + 0x1cc], bl
lea ecx, [esp + 0x44]
jmp 0x401b69
push str..dll
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find
add eax, 4
lea ecx, [esp + 0x18]
push eax
lea eax, [esp + 0x50]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1d0], 0xb
call fcn.0040ae78
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1cc], bl
call fcn.0040adee
push ebp
push 0x411090
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x401b6e
mov ecx, dword [esp + 0x10]
push ebp
push 0x411090
mov edi, dword [ecx - 8]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
sub edi, eax
lea edx, [esp + 0x54]
inc edi
lea ecx, [esp + 0x10]
push edi
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1d0], 0xc
call fcn.0040ae78
mov byte [esp + 0x1cc], bl
lea ecx, [esp + 0x54]
call fcn.0040adee
mov ecx, dword [esp + 0x10]
push 0x100
lea eax, [esp + 0x68]
push 0x160
push eax
push ebp
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp + 0x64]
cmp eax, ebp
jne 0x401ba3
mov eax, dword [esi + 0x148]
mov edx, dword [esi + 0x150]
push eax
push 0xffffffffffffffff
push edx
jmp 0x401bad
push eax
mov eax, dword [esi + 0x150]
push 0xffffffffffffffff
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov eax, dword [esi + 0x194]
mov ecx, dword [esp + 0x30]
push ebp
push eax
push ebp
push ebp
lea edi, [esi + 0x154]
push ecx
push eax
push 3
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::InsertItem
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x194]
push edx
push 1
push eax
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x194]
push ecx
push 2
push edx
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 0x194]
inc ecx
inc eax
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x10]
mov dword [esi + 0x194], eax
mov byte [esp + 0x1cc], 5
call fcn.0040adee
lea ecx, [esp + 0x18]
mov byte [esp + 0x1cc], 4
call fcn.0040adee
lea ecx, [esp + 0x30]
mov byte [esp + 0x1cc], 3
call fcn.0040adee
mov edi, dword [esp + 0x5c]
jmp 0x40192d
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x30]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x1cc], 2
call fcn.0040adee
lea ecx, [esp + 0x24]
mov byte [esp + 0x1cc], 1
call fcn.0040adee
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1cc], 0
call fcn.0040adee
lea ecx, [esp + 0x1d8]
mov dword [esp + 0x1cc], 0xffffffff
call fcn.0040adee
mov ecx, dword [esp + 0x1c4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c0
ret 8