Function at 0x4c1ba0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 1
je 0x4c1bb8
jmp 0x4c1bc4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
call dword [edx + 0x34]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c1bcc
jmp 0x4c1bd8
jmp 0x4c1dd2
xor eax, eax
push 0x4c1db2
push ebp
push 0x415ce0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [eax + 0x70], 0
mov eax, dword [ebp - 8]
mov byte [eax + 0x11], 1
mov edx, 0
mov eax, dword [ebp - 8]
call fcn.004cd770
mov eax, dword [ebp - 8]
call fcn.004cdc30
mov edx, dword [ebp - 8]
mov dword [edx + 0xa4], eax
mov eax, dword [ebp - 8]
call fcn.004cddb0
mov edx, dword [ebp - 8]
mov dword [edx + 0xa0], eax
mov eax, dword [ebp - 8]
call fcn.004cdcf0
mov edx, dword [ebp - 8]
mov dword [edx + 0xa8], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xa4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x1cc]
mov dword [edx + 0x2c], ecx
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xa4]
mov eax, dword [ebp - 8]
mov edx, 0x4c19d0
mov dword [ecx + 0x24], edx
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x5c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 8]
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x1c8]
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xa0]
mov ecx, dword [ebp - 8]
mov eax, 0x4c1b40
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 0x60], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa8]
mov edx, dword [ebp - 8]
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x1d0]
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa8]
mov edx, dword [ebp - 8]
mov ecx, 0x4c19a0
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 8]
mov dword [eax + 0x64], 0
mov eax, 0x68a66c
mov edx, 1
call fcn.004bc970
mov edx, dword [ebp - 8]
mov dword [edx + 0x9c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x9c]
mov edx, dword [ebp - 8]
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x1d4]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x9c]
mov ecx, dword [ebp - 8]
mov eax, 0x4c1b70
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x6c], 0xcc0020
mov eax, dword [ebp - 8]
mov dword [eax + 0x50], 0
mov eax, dword [ebp - 8]
lea eax, [eax + 0x84]
mov dword [eax], 0
mov dword [eax + 4], 0
mov byte [eax + 0xc], 1
mov byte [eax + 8], 1
mov byte [eax + 9], 1
mov byte [eax + 0xb], 0
mov byte [eax + 0xd], 0
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
jne 0x4c1d94
jmp 0x4c1da7
cmp dword [ebp - 4], 0
jne 0x4c1d9c
jmp 0x4c1da7
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x44]
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x4c1dd2
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret