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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x48ee18
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48f034
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x47e5fc]
call fcn.0047e98c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x48f00a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x48f04c
mov edx, esi
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x38]
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0x38]
call fcn.00404010
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x48f05c
mov edx, esi
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x38]
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 8]
call fcn.00404010
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x48f06c
mov edx, esi
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x38]
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x18]
call fcn.00404010
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x48f07c
mov edx, esi
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x38]
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404010
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x48f08c
mov edx, esi
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x38]
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x1c]
call fcn.00404010
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x48f09c
mov edx, esi
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x38]
mov edx, dword [ebp - 0x20]
mov eax, 0x48f0ac
call fcn.00408130
mov byte [ebx + 4], al
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x48f0bc
mov edx, esi
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x38]
mov edx, dword [ebp - 0x24]
lea eax, [ebx + 0xc]
call fcn.00404010
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x48f0d0
mov edx, esi
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x38]
mov edx, dword [ebp - 0x28]
lea eax, [ebx + 0x10]
call fcn.00404010
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x48f0dc
mov edx, esi
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x38]
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + 0x24]
call fcn.00404010
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x48f0f0
mov edx, esi
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x38]
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 0x30]
call fcn.00404010
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x48f0fc
mov edx, esi
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x38]
mov edx, dword [ebp - 0x34]
lea eax, [ebx + 0x28]
call fcn.00404010
lea eax, [ebp - 4]
push eax
mov ecx, 0x48f10c
mov edx, esi
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x38]
cmp dword [ebp - 4], 0
je 0x48efc9
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x48f118
call fcn.004042c8
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00408644
mov dword [ebx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
mov ecx, 0x48f124
mov edx, esi
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x38]
mov edx, dword [ebp - 0x38]
lea eax, [ebx + 0x2c]
call fcn.00404010
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f011
mov eax, dword [ebp - 8]
call fcn.0040322c
ret