Function at 0x413499
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4818f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 2
call sub.MFC42u.DLL_CString::CString_4
push 0x100000
mov byte [esp + 0x3c], 3
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4136b9
push str.RegistryMachineSOFTWAREMicrosoftWindows_NTCurrentVersionWindows
lea eax, [esp + 0x18]
push 0x4a01d8
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call fcn.0042f3b0
lea edx, [esp + 0x18]
lea ecx, [esp + 0x1c]
push edx
push 0x20019
mov byte [esp + 0x40], 4
call fcn.0042f450
push eax
lea ecx, [esp + 0x28]
call fcn.0042f460
push eax
call fcn.0041f4e0
add esp, 0x10
cmp al, 1
jne 0x4136a1
mov eax, dword [esp + 0x18]
push ebp
push edi
push 0x100000
push ebx
push str.AppInit_DLLs
push 1
push eax
call fcn.0041f7e0
add esp, 0x14
cmp al, 1
jne 0x413694
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x413694
mov ecx, dword [ebx + 0xc]
add ecx, eax
mov byte [ecx + ebx], 0
mov edx, dword [ebx + 0xc]
mov edi, dword [ebx + 8]
lea ecx, [esp + 0x10]
add edx, edi
mov byte [edx + ebx + 1], 0
mov eax, dword [ebx + 8]
add eax, ebx
push eax
push 0x4a01d8
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [edx - 8]
test eax, eax
je 0x413694
mov eax, dword [esi + 0xc0]
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
mov edi, eax
push 0
lea ebp, [esi + 0xa0]
push ecx
push edi
push 1
mov ecx, ebp
call sub.MFC42u.DLL_CListCtrl::InsertItem
push str.AppInit_DLLs
push 1
push edi
mov ecx, ebp
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
push 2
push edi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0x4a01d8
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call fcn.00412a10
mov eax, dword [esi]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, esi
call dword [eax + 0xf0]
mov eax, dword [esp + 0x14]
mov ecx, ebp
push eax
push 3
push edi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov edx, dword [esi]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call dword [edx + 0x114]
test eax, eax
je 0x41367e
push 0x4a3890
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::TrimRight
push 0x2c
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
je 0x413694
push 3
push 0
push 0
push 0
push 0
push 4
push 0
push edi
mov ecx, ebp
call sub.MFC42u.DLL_CListCtrl::SetItem
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 3
call fcn.0042f420
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x38], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret