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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
test dl, dl
je 0x4d2832
add esp, 0xfffffff0
call fcn.00403a90
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, dword [ebp - 8]
call fcn.004049f0
mov eax, dword [ebp + 0x14]
call fcn.004049f0
mov eax, dword [ebp + 0x10]
call fcn.004049f0
mov edi, 0x4dc308
xor eax, eax
push ebp
push 0x4d2a31
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 8]
call fcn.00404594
lea eax, [ebx + 0x14]
mov edx, dword [ebp + 0x14]
call fcn.00404594
lea eax, [ebx + 0x18]
mov edx, dword [ebp + 0x10]
call fcn.00404594
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x1c], eax
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [ebx + 0x34], eax
xor eax, eax
mov dword [ebx + 0x38], eax
mov byte [ebx + 0x2c], 0
mov ecx, dword [edi]
mov dl, 1
mov eax, dword [0x4b04d0]
call fcn.004b0a84
mov esi, eax
mov dword [ebx + 0x20], esi
mov eax, dword [edi]
mov edx, dword [eax + 0x374]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebx + 0x20]
mov edx, 0xffffff
call fcn.004b1318
mov eax, dword [ebx + 0x20]
mov edx, 0xd56f13
call fcn.004b1304
mov eax, dword [ebx + 0x20]
mov dl, 1
call fcn.004b12dc
mov eax, dword [ebx + 0x20]
xor edx, edx
call fcn.0045f688
mov eax, dword [ebx + 0x20]
xor edx, edx
call fcn.0045f6ac
mov dl, 1
mov eax, dword [0x41c4a8]
call fcn.004036fc
mov dword [ebx + 0x40], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x3f0]
mov edx, ebx
call fcn.0041e6e4
inc eax
mov dword [ebx + 0x24], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x3f0]
mov edx, dword [eax + 8]
inc edx
mov eax, dword [edi]
mov eax, dword [eax + 0x374]
call fcn.004b850c
mov eax, dword [edi]
mov esi, dword [eax + 0x374]
push 0
mov ecx, dword [ebx + 0x24]
xor edx, edx
mov eax, esi
call fcn.004ba6b4
push dword [ebx + 0xc]
push dword [ebx + 8]
lea edx, [ebp - 0xc]
mov eax, 0x4d2a64
call fcn.0040d8e8
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebx + 0x24]
mov edx, 1
mov eax, esi
call fcn.004ba6b4
mov eax, dword [ebx + 0x10]
push eax
mov ecx, dword [ebx + 0x24]
mov edx, 2
mov eax, esi
call fcn.004ba6b4
push 0
mov ecx, dword [ebx + 0x24]
mov edx, 3
mov eax, esi
call fcn.004ba6b4
push 0
mov ecx, dword [ebx + 0x24]
mov edx, 4
mov eax, esi
call fcn.004ba6b4
push 0
mov ecx, dword [ebx + 0x24]
mov edx, 5
mov eax, esi
call fcn.004ba6b4
push 0
mov ecx, dword [ebx + 0x24]
mov edx, 6
mov eax, esi
call fcn.004ba6b4
push 0
mov ecx, dword [ebx + 0x24]
mov edx, 7
mov eax, esi
call fcn.004ba6b4
cmp byte [ebp + 8], 0
je 0x4d2a09
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [ebx + 0x18]
push eax
mov eax, dword [ebx + 0x1c]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4c95c0]
call fcn.004c9648
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2a38
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404564
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.00404564
ret