Function at 0x41a939
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a38d8
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_5
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 2
call sub.MFC42u.DLL_CString::CString_5
push 0x100000
mov byte [esp + 0x3c], 3
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41ab43
push str.RegistryMachineSOFTWAREMicrosoftWindows_NTCurrentVersionWindows
lea eax, [esp + 0x18]
push 0x4c61d8
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call fcn.0043c770
lea edx, [esp + 0x18]
lea ecx, [esp + 0x1c]
push edx
push 0x20019
mov byte [esp + 0x40], 4
call fcn.0043c810
push eax
lea ecx, [esp + 0x28]
call fcn.0043c820
push eax
call fcn.0042c6d0
add esp, 0x10
cmp al, 1
jne 0x41ab2b
mov eax, dword [esp + 0x18]
push ebp
push edi
push 0x100000
push ebx
push str.AppInit_DLLs
push 1
push eax
call fcn.0042c9d0
add esp, 0x14
cmp al, 1
jne 0x41ab1e
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x41ab1e
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 0x4c61d8
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 0x41ab1e
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]
mov edi, eax
lea ebp, [esi + 0xa0]
push ecx
push edi
mov ecx, ebp
call fcn.00403850
push str.AppInit_DLLs
push 1
push edi
mov ecx, ebp
call fcn.00403f00
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
push 2
push edi
call fcn.00403f00
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0x4c61d8
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call fcn.004198d0
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 fcn.00403f00
mov edx, dword [esi]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call dword [edx + 0x118]
test eax, eax
je 0x41ab14
push 0x4cb1a4
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 0x41ab1e
push 3
push edi
mov ecx, ebp
call fcn.00404310
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.0043c7e0
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