Function at 0x4d5c6c
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe4c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1b0], ebx
mov dword [ebp - 0x1b4], ebx
mov dword [ebp - 0x1ac], ebx
mov dword [ebp - 0x1a8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov edi, eax
mov esi, dword [ebp + 0xc]
lea ebx, [ebp - 0x64]
xor eax, eax
push ebp
push 0x4d5ed5
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 8]
mov edx, esi
mov eax, edi
call fcn.004d5548
lea ecx, [ebp - 0xc]
mov edx, esi
mov eax, dword [ebp - 0x18]
call fcn.004d5548
lea ecx, [ebp - 0x10]
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.004d5548
lea ecx, [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp + 0x14]
call fcn.004d5548
mov eax, ebx
xor ecx, ecx
mov edx, 0x40
call fcn.00403830
mov edx, ebx
mov eax, 0x4d5ee8
mov ecx, 8
call fcn.00403230
mov dword [ebx + 8], 3
mov eax, dword [ebp - 8]
test eax, eax
je 0x4d5d2a
sub eax, 4
mov eax, dword [eax]
mov edx, eax
mov word [ebx + 0x1c], dx
mov word [ebx + 0x1e], dx
mov dword [ebx + 0x20], 0x40
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4d5d47
sub eax, 4
mov eax, dword [eax]
mov edx, eax
mov word [ebx + 0x24], dx
mov word [ebx + 0x26], dx
movzx eax, word [ebx + 0x1c]
add eax, dword [ebx + 0x20]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4d5d67
sub eax, 4
mov eax, dword [eax]
mov edx, eax
mov word [ebx + 0x2c], dx
mov word [ebx + 0x2e], dx
movzx eax, word [ebx + 0x24]
add eax, dword [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov ax, 0x18
mov word [ebx + 0xc], ax
mov word [ebx + 0xe], ax
movzx eax, word [ebx + 0x2c]
add eax, dword [ebx + 0x30]
mov dword [ebx + 0x10], eax
mov word [ebx + 0x14], 0x18
movzx eax, word [ebx + 0xc]
mov word [ebx + 0x16], ax
movzx eax, word [ebx + 0xc]
add eax, dword [ebx + 0x10]
mov dword [ebx + 0x18], eax
mov word [ebx + 0x34], 0
mov word [ebx + 0x36], 0
xor eax, eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0x8205
lea ecx, [ebp - 0x1a8]
lea edx, [ebp - 0x24]
mov eax, dword [ebp + 0x14]
call fcn.004d56bc
mov edx, dword [ebp - 0x1a8]
lea eax, [ebp - 0x1a4]
mov ecx, 0xff
call fcn.004051f8
lea edx, [ebp - 0x1a4]
lea eax, [ebp - 0x83]
mov cl, 0x1e
call fcn.00403720
lea ecx, [ebp - 0x1ac]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.004d5860
mov edx, dword [ebp - 0x1ac]
lea eax, [ebp - 0x1a4]
mov ecx, 0xff
call fcn.004051f8
lea edx, [ebp - 0x1a4]
lea eax, [ebp - 0xa2]
mov cl, 0x1e
call fcn.00403720
lea eax, [ebp - 4]
mov edx, 0x40
call fcn.00405680
lea eax, [ebp - 4]
call fcn.0040544c
mov edx, eax
mov eax, ebx
mov ecx, 0x40
call fcn.00403230
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
lea eax, [ebp - 0x1b0]
lea edx, [ebp - 0x83]
call fcn.004051c0
push dword [ebp - 0x1b0]
lea eax, [ebp - 0x1b4]
lea edx, [ebp - 0xa2]
call fcn.004051c0
push dword [ebp - 0x1b4]
lea eax, [ebp - 4]
mov edx, 6
call fcn.004052f0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004d51f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5edc
lea eax, [ebp - 0x1b4]
mov edx, 4
call fcn.00404f80
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404f80
ret