Function at 0x4c4150
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4f1ea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x28]
call fcn.004d9b70
mov eax, dword [esp + 0x94]
mov dword [esp + 0x88], 0
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0xdc]
test eax, eax
mov eax, dword [esi + 0xe0]
je 0x4c427c
mov ebp, dword [esp + 0x90]
test eax, eax
jne 0x4c41b7
push 7
push ebp
lea ecx, [esi + 0x7c]
call fcn.004d9c60
lea ecx, [esi + 0x48]
test ecx, ecx
je 0x4c41c3
lea edx, [esi + 0x4c]
jmp 0x4c41c5
xor edx, edx
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x34]
test eax, eax
mov dword [esp + 0x1c], ecx
je 0x4c41de
lea eax, [esi + 0x38]
jmp 0x4c41e0
xor eax, eax
mov ecx, dword [eax]
mov edi, dword [esp + 0x98]
mov eax, dword [eax + 4]
mov ebx, dword [esp + 0x9c]
cmp ecx, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
jne 0x4c4221
cmp eax, ebx
jne 0x4c4221
mov eax, dword [edx + 4]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [edx]
push ebx
push edi
push eax
push ecx
call fcn.00433130
add esp, 0x14
lea edx, [esp + 0x18]
push edx
call fcn.004346a0
lea eax, [esp + 0x14]
push eax
call fcn.004346a0
lea ecx, [esp + 0x28]
push ecx
call fcn.004346a0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov byte [esp + 0x2c], 0x28
jmp 0x4c42ff
mov ebp, dword [esp + 0x90]
test eax, eax
jne 0x4c4292
push 7
push ebp
lea ecx, [esi + 0x7c]
call fcn.004d9c60
lea edx, [esi + 0x34]
test edx, edx
je 0x4c429e
lea eax, [esi + 0x38]
jmp 0x4c42a0
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov edi, dword [esp + 0x98]
mov ebx, dword [esp + 0x9c]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
push eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
call fcn.004346a0
lea ecx, [esp + 0x1c]
push ecx
call fcn.004346a0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x24]
add esp, 8
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov byte [esp + 0x2c], 0xa
push 7
push ebp
lea ecx, [esp + 0x30]
call fcn.004d9c60
mov cl, byte [esp + 0x2c]
sub esp, 0x2c
mov eax, esp
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x3c], esp
mov byte [eax + 4], cl
mov dl, byte [esp + 0x59]
mov byte [eax + 5], dl
mov ecx, dword [esp + 0x5c]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x60]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x64]
mov dword [eax + 0x10], ecx
mov edx, dword [esp + 0x68]
mov dword [eax + 0x14], edx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0x18], ecx
mov edx, dword [esp + 0x70]
mov dword [eax + 0x1c], edx
mov ecx, dword [esp + 0x74]
mov dword [eax + 0x20], ecx
mov edx, dword [esp + 0x78]
mov dword [eax + 0x24], edx
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0x80]
mov dword [eax + 0x28], ecx
push edx
lea ecx, [esi + 0x7c]
mov dword [eax], 0x4f67d4
call fcn.004d9bb0
lea ecx, [esp + 0x54]
call fcn.004d9ba0
lea ecx, [esp + 0x28]
mov dword [esi + 0xd8], 1
mov dword [esp + 0x88], 0xffffffff
call fcn.004d9ba0
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x7c
ret 0x10