Function at 0x40f4d9
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4ee7c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00442ee0
mov al, byte [esp + 0xf]
xor ebp, ebp
mov dword [esp + 0x20], ebp
mov byte [esi + 8], al
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
mov cl, byte [esp + 0xf]
mov dword [esi + 0x1c], ebp
mov byte [esi + 0x18], cl
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
mov dl, byte [esp + 0xf]
mov dword [esi + 0x2c], ebp
mov byte [esi + 0x28], dl
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], ebp
lea ecx, [esi + 0x70]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::CString_4
mov dword [esi + 0x90], 0x504710
mov dword [esi + 0x9c], ebp
mov dword [esi + 0xa0], ebp
mov dword [esi + 0x98], ebp
mov dword [esi + 0x94], ebp
mov dword [esi + 0xa4], ebp
mov dword [esi + 0xa8], 0xa
lea edi, [esi + 0xd8]
mov byte [esp + 0x20], 5
mov dword [esp + 0x14], edi
lea ecx, [edi + 0x14]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [edi + 0x18]
mov byte [esp + 0x20], 6
call sub.MFC42.DLL_CString::CString_4
lea ecx, [edi + 0x1c]
mov byte [esp + 0x20], 7
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x9c4]
mov byte [esp + 0x20], 8
call sub.MFC42.DLL_CString::CString_4
push sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString_4
push 2
lea eax, [esi + 0x9c8]
push 4
push eax
mov byte [esp + 0x34], 9
call fcn.004e9c7e
lea ecx, [esi + 0x9d0]
mov byte [esp + 0x20], 0xa
call section..text
lea ecx, [esi + 0x9dc]
mov byte [esp + 0x20], 0xb
call fcn.00401750
lea ecx, [esi + 0xa48]
mov byte [esp + 0x20], 0xc
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0xa4c]
mov byte [esp + 0x20], 0xd
call sub.MFC42.DLL_CString::CString_4
mov ecx, 0x1ec
xor eax, eax
lea edi, [esi + 0x134]
mov dword [esi], 0x504704
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x58], ebp
mov dword [esi + 0x5c], ebp
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
mov dword [esi + 0x44], ebp
mov dword [esi + 0x60], ebp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], ebp
mov dword [esi + 0x7c], 0x1c20
mov dword [esi + 0x8c], ebp
mov dword [esi + 0x64], ebp
mov dword [esi + 0x78], ebp
mov dword [esi + 0x80], ebp
mov dword [esi + 0xd4], ebp
mov dword [esi + 0xb4], ebp
mov dword [esi + 0xb8], ebp
mov dword [esi + 0xbc], ebp
mov dword [esi + 0xb0], ebp
mov dword [esi + 0xc4], ebp
mov dword [esi + 0xc8], ebp
mov dword [esi + 0xcc], ebp
mov dword [esi + 0xc0], ebp
mov dword [esi + 0x74], ebp
rep stosd dword es:[edi], eax
mov ecx, 0x33
lea edi, [esi + 0x8e4]
rep stosd dword es:[edi], eax
lea edx, [esi + 0x9b4]
xor ecx, ecx
lea edi, [esi + 0x9e8]
mov byte [esp + 0x20], 0xe
mov dword [edx], ecx
mov dword [edx + 4], ecx
lea ecx, [esi + 0x9bc]
lea edx, [esp + 0x14]
mov dword [ecx], eax
push edx
mov dword [ecx + 4], eax
mov ecx, 0x18
rep stosd dword es:[edi], eax
call sub.MFC42.DLL_CTime::GetTickCount
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebp
push 1
push ebp
push ebp
mov dword [esi + 0x84], eax
call edi
push ebp
push 1
push ebp
push ebp
mov dword [esi + 0xd0], eax
call edi
push ebp
push 1
push ebp
push ebp
mov dword [esi + 0x54], eax
call edi
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x50], eax
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret