Function at 0x40ec83
Capabilities:
Get file system object information
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444a71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4e4
mov dword [ebp - 0x4dc], ecx
lea eax, [ebp - 0x170]
push eax
push 0x20019
push 0
mov ecx, dword [0x45e898]
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f093
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x17c], 0x103
lea edx, [ebp - 0x17c]
push edx
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x174]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x170]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x288]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
push 1
push 0x22
lea ecx, [ebp - 0x498]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
push 1
lea ecx, [ebp - 0x49c]
push ecx
lea ecx, [ebp - 0x288]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x4bc], eax
mov edx, dword [ebp - 0x498]
mov dword [ebp - 0x4b8], edx
mov eax, dword [ebp - 0x4bc]
mov ecx, dword [eax]
mov dword [ebp - 0x4b4], ecx
mov edx, dword [ebp - 0x4b8]
push edx
mov eax, dword [ebp - 0x4b4]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x494], al
lea ecx, [ebp - 0x49c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x498]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x494]
and ecx, 0xff
test ecx, ecx
je 0x40ee17
mov edx, dword [ebp - 0x288]
mov eax, dword [edx - 8]
mov dword [ebp - 0x4c0], eax
mov ecx, dword [ebp - 0x4c0]
sub ecx, 1
push ecx
lea edx, [ebp - 0x4a0]
push edx
lea ecx, [ebp - 0x288]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x4e0], eax
mov eax, dword [ebp - 0x4e0]
mov dword [ebp - 0x4e4], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4e4]
push ecx
lea ecx, [ebp - 0x288]
call fcn.004423b4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4a0]
call sub.MFC42.DLL_CString::CString
push 1
push 0x22
lea ecx, [ebp - 0x4a8]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 3
push 1
lea edx, [ebp - 0x4ac]
push edx
lea ecx, [ebp - 0x288]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x4cc], eax
mov eax, dword [ebp - 0x4a8]
mov dword [ebp - 0x4c8], eax
mov ecx, dword [ebp - 0x4cc]
mov edx, dword [ecx]
mov dword [ebp - 0x4c4], edx
mov eax, dword [ebp - 0x4c8]
push eax
mov ecx, dword [ebp - 0x4c4]
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x4a4], al
lea ecx, [ebp - 0x4ac]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4a8]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x4a4]
and edx, 0xff
test edx, edx
je 0x40ef0c
mov eax, dword [ebp - 0x288]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x4d0], ecx
mov edx, dword [ebp - 0x4d0]
sub edx, 1
push edx
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0x288]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x4e8], eax
mov ecx, dword [ebp - 0x4e8]
mov dword [ebp - 0x4ec], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x4ec]
push edx
lea ecx, [ebp - 0x288]
call fcn.004423b4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4b0]
call sub.MFC42.DLL_CString::CString
push 0x45d088
lea ecx, [ebp - 0x288]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x40ef50
push 0x104
lea eax, [ebp - 0x38c]
push eax
mov ecx, dword [ebp - 0x288]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jbe 0x40ef50
lea edx, [ebp - 0x38c]
push edx
lea ecx, [ebp - 0x288]
call sub.MFC42.DLL_CString::operator_1
push 0x45d08c
lea ecx, [ebp - 0x288]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x40ef94
push 0x104
lea eax, [ebp - 0x490]
push eax
mov ecx, dword [ebp - 0x288]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
test eax, eax
jbe 0x40ef94
lea edx, [ebp - 0x490]
push edx
lea ecx, [ebp - 0x288]
call sub.MFC42.DLL_CString::operator_1
push 1
mov eax, dword [ebp - 0x4dc]
add eax, 0x94
push eax
push 0
push 1
mov ecx, dword [ebp - 0x288]
push ecx
call dword [sym.imp.SHELL32.dll_ExtractIconExA]
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x284], eax
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x178], eax
mov edx, dword [ebp - 0x4dc]
add edx, 0x88
mov dword [ebp - 0x4d4], edx
cmp dword [ebp - 0x4d4], 0
jne 0x40eff6
mov dword [ebp - 0x4f0], 0
jmp 0x40f005
mov eax, dword [ebp - 0x4d4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x4f0], ecx
cmp dword [ebp - 0x4f0], 0
je 0x40f01f
mov ecx, dword [ebp - 0x4dc]
add ecx, 0x88
call sub.MFC42.DLL_CImageList::DeleteImageList
push 1
push 1
push 0x11
mov edx, dword [ebp - 0x178]
push edx
mov eax, dword [ebp - 0x284]
push eax
mov ecx, dword [ebp - 0x4dc]
add ecx, 0x88
call sub.MFC42.DLL_CImageList::Create
mov ecx, dword [ebp - 0x4dc]
cmp dword [ecx + 0x94], 0
je 0x40f081
mov edx, dword [ebp - 0x4dc]
mov eax, dword [edx + 0x94]
mov dword [ebp - 0x4d8], eax
mov ecx, dword [ebp - 0x4d8]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x4dc]
mov eax, dword [edx + 0x8c]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x288]
call sub.MFC42.DLL_CString::CString
push 0x4001
push 0x160
lea ecx, [ebp - 0x16c]
push ecx
push 0
push 0x45d090
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov edx, dword [ebp - 0x4dc]
mov dword [edx + 0x84], eax
mov eax, dword [ebp - 0x4dc]
cmp dword [eax + 0x84], 0
je 0x40f0f0
mov ecx, dword [ebp - 0x4dc]
mov edx, dword [ecx + 0x84]
push edx
push 0
push 0x402
mov eax, dword [ebp - 0x4dc]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret