Function at 0x40a0ef
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x41cf0b
call fcn.0041baa0
push ecx
push ebx
push esi
push edi
mov esi, ecx
push dword [0x420ad8]
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
lea ecx, [esi + 8]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_2
push str.none
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_1
mov edi, 0x429ea8
lea ecx, [esi + 0x18]
push edi
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString_2
and byte [esi + 0x24], bl
push edi
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString_2
push edi
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 0xf
push edi
lea ecx, [esi + 0x48]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::CString_2
push edi
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 0x13
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 0x14
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 0x15
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 0x16
mov dword [esi + 0x64], ebx
call sub.MFC42.DLL_CString::CString_1
push str.downloads.shopathomeselect.com
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 0x17
call sub.MFC42.DLL_CString::CString_1
push str.agent_setup4030.cab
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 0x18
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 0x19
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 0x1a
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 0x1b
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x84]
mov byte [ebp - 4], 0x1c
mov dword [esi + 0x80], ebx
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0x88]
push edi
mov ecx, ebx
mov byte [ebp - 4], 0x1d
call sub.MFC42.DLL_CString::CString_1
and dword [esi + 0x8c], 0
or dword [esi + 0x90], 0xffffffff
lea edi, [esi + 0x8c]
push str.blah
mov ecx, ebx
mov byte [ebp - 4], 0x1e
call fcn.0041b4e4
mov dword [edi], 0xa
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret