Function at 0x4c9cc8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x4c9ce0
add esp, 0xfffffff0
call fcn.00403a10
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c9ecb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x4c9d16
mov eax, ebx
mov edx, dword [0x4c09ec]
call fcn.00403830
test al, al
je 0x4c9d16
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4c9d24
mov eax, dword [ebp - 0xc]
call fcn.004cecf0
xor eax, eax
push ebp
push 0x4c9eae
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, ebx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0041e894
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 7
mov eax, dword [ebp - 4]
mov byte [eax + 0x11], 0
mov dl, 1
mov eax, dword [0x427ec4]
call fcn.0042965c
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x40], ebx
mov eax, dword [ebp - 4]
call fcn.004ca3f0
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x4ca5ec
mov eax, dword [ebp - 4]
mov byte [eax + 0x50], 3
lea edx, [ebp - 0x10]
mov eax, dword [0x4f383c]
mov eax, dword [eax]
call fcn.00470188
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, 0x54
call fcn.00404598
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp - 4]
mov dword [edx + 0xb0], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x28]
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0xca], 1
mov eax, dword [ebp - 4]
call fcn.004ca8cc
mov edx, dword [ebp - 4]
mov dword [edx + 0xdc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0xc0], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 0xffffffff
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x58], edx
mov dword [eax + 0x5c], 0x80000000
mov word [eax + 0x60], 0x3fff
mov eax, dword [ebp - 4]
mov byte [eax + 0xa9], 1
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], ebx
mov eax, dword [ebp - 4]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], 0x4ccde0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4ad050]
call fcn.004afd74
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], ebx
mov eax, dword [ebp - 4]
mov dword [ebx + 0x1c], eax
mov eax, dword [eax]
mov eax, dword [eax + 0x58]
mov dword [ebx + 0x18], eax
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4c2aa4]
call fcn.004e19cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4ad718]
call fcn.004b1738
mov edx, dword [ebp - 4]
mov dword [edx + 0x70], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9eb5
cmp dword [ebp - 0xc], 0
je 0x4c9ead
mov eax, dword [ebp - 0xc]
call fcn.004d1e3c
ret