Function at 0x4d7ba4
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x4d7bad
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4d7ede
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 8]
mov eax, edi
call fcn.004cfc5c
xor eax, eax
push ebp
push 0x4d7e7e
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x14]
mov edx, 0x4d7ef4
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.0040453c
mov eax, dword [ebp - 0x10]
mov edx, 0x4d7f08
call fcn.004046c0
je 0x4d7c2e
lea ecx, [ebp - 0x18]
mov edx, 0x4d7f10
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
call fcn.0040453c
lea ecx, [ebp - 0xc]
mov edx, 0x4d7f24
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x60]
lea ecx, [ebp - 0x1c]
mov edx, 0x4d7f34
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.0040453c
lea ecx, [ebp - 0x20]
mov edx, 0x4d7f44
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x20]
lea eax, [esi + 4]
call fcn.0040453c
lea ecx, [ebp - 0x24]
mov edx, 0x4d7f68
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x24]
lea eax, [esi + 8]
call fcn.0040453c
lea ecx, [ebp - 0x28]
mov edx, 0x4d7f80
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x28]
lea eax, [esi + 0xc]
call fcn.0040453c
lea ecx, [ebp - 0x2c]
mov edx, 0x4d7f90
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x2c]
lea eax, [esi + 0x10]
call fcn.0040453c
lea ecx, [ebp - 0x30]
mov edx, 0x4d7fa0
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x30]
lea eax, [esi + 0x14]
call fcn.0040453c
lea ecx, [ebp - 0x34]
mov edx, 0x4d7fb4
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x34]
lea eax, [esi + 0x18]
call fcn.0040453c
lea ecx, [ebp - 0x38]
mov edx, 0x4d7fc0
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x38]
lea eax, [esi + 0x1c]
call fcn.0040453c
lea ecx, [ebp - 0x3c]
mov edx, 0x4d7fd8
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x3c]
lea eax, [esi + 0x20]
call fcn.0040453c
lea ecx, [ebp - 0x40]
mov edx, 0x4d7fec
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x40]
lea eax, [esi + 0x24]
call fcn.0040453c
lea ecx, [ebp - 0x44]
mov edx, 0x4d7ffc
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x44]
lea eax, [esi + 0x28]
call fcn.0040453c
lea ecx, [ebp - 0x48]
mov edx, 0x4d8014
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x48]
lea eax, [esi + 0x2c]
call fcn.0040453c
lea ecx, [ebp - 0x4c]
mov edx, 0x4d8028
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x4c]
lea eax, [esi + 0x30]
call fcn.0040453c
lea ecx, [ebp - 0x50]
mov edx, 0x4d803c
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x50]
lea eax, [esi + 0x34]
call fcn.0040453c
lea ecx, [ebp - 0x54]
mov edx, 0x4d804c
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x54]
lea eax, [esi + 0x38]
call fcn.0040453c
lea ecx, [ebp - 0x58]
mov edx, 0x4d805c
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x58]
lea eax, [esi + 0x3c]
call fcn.0040453c
lea ecx, [ebp - 0x5c]
mov edx, 0x4d8068
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x5c]
lea eax, [esi + 0x40]
call fcn.0040453c
lea ecx, [ebp - 0x60]
mov edx, 0x4d8078
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x60]
lea eax, [esi + 0x44]
call fcn.0040453c
lea ecx, [ebp - 0x64]
mov edx, 0x4d8088
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x64]
lea eax, [esi + 0x48]
call fcn.0040453c
lea ecx, [ebp - 0x68]
mov edx, 0x4d8098
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x68]
lea eax, [esi + 0x4c]
call fcn.0040453c
lea ecx, [ebp - 0x6c]
mov edx, 0x4d80b4
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x6c]
lea eax, [esi + 0x50]
call fcn.0040453c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d7ea8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7ee5
lea eax, [ebp - 0x6c]
mov edx, 0x17
call fcn.004049d8
lea eax, [ebp - 0x10]
call fcn.004042b4
lea eax, [ebp - 0xc]
mov edx, dword [0x4cf598]
mov ecx, 2
call fcn.00404fc8
ret