Function at 0x4a7870
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4d24b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.004a77a0
mov eax, dword [esp + 0x174]
mov ecx, dword [esp + 0x170]
push eax
push ecx
mov ecx, dword [ebx + 0x18]
call fcn.004ab380
mov ebp, eax
mov esi, dword [ebp]
mov ecx, dword [ebp + 4]
add ebp, 4
mov edx, dword [ebp + 4]
add ebp, 4
mov eax, edx
add eax, ecx
add eax, esi
push eax
mov dword [esp + 0x14], ecx
mov dword [ebx + 0x10], edx
add ebp, 4
call fcn.004bd9e8
mov edx, dword [esp + 0x14]
mov edi, eax
lea eax, [edi + esi]
mov dword [ebx + 8], eax
add eax, edx
mov dword [ebx + 0xc], eax
mov ecx, esi
shr ecx, 2
mov dword [ebx], edi
mov dword [ebx + 4], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebx + 8]
mov ecx, edx
mov eax, ecx
shr ecx, 2
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0xc]
mov ecx, edx
add ebp, ecx
mov ecx, dword [ebx + 0x10]
mov edx, ecx
shr ecx, 2
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0x10]
mov eax, dword [ebp + esi]
add ebp, esi
add esp, 4
add ebp, 4
test eax, eax
jle 0x4a7a76
mov dword [esp + 0x10], eax
mov cl, byte [ebp]
cmp cl, 0xa
lea eax, [esp + 0x60]
je 0x4a795d
inc ebp
mov byte [eax], cl
mov cl, byte [ebp]
inc eax
cmp cl, 0xa
jne 0x4a7951
mov esi, dword [ebx + 0xc]
inc ebp
mov ecx, dword [ebp + 4]
mov byte [eax], 0
mov eax, dword [ebp]
add ebp, 4
add esi, ecx
push eax
lea ecx, [esp + 0x18]
add ebp, 4
call fcn.004ab610
lea eax, [esp + 0x60]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a7998
sub eax, edi
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x20]
call fcn.00403aa0
mov edi, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x174], 0
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
call fcn.00402ec0
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], esi
mov ecx, dword [ebx + 0x14]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x170], 1
call fcn.004a75f0
mov eax, dword [esp + 0x4c]
mov esi, 0x10
cmp eax, esi
jb 0x4a7a22
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004be8db
add esp, 4
cmp dword [esp + 0x30], esi
mov edi, 0xf
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
mov dword [esp + 0x168], 0xffffffff
jb 0x4a7a56
mov edx, dword [esp + 0x1c]
push edx
call fcn.004be8db
add esp, 4
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x10], eax
jne 0x4a7945
mov ecx, dword [ebp]
lea eax, [ebx + 0x1c]
mov dword [eax], ecx
mov edx, dword [ebp + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 8]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 4]
push eax
push ecx
mov ecx, dword [ebx + 0x18]
push edx
call fcn.004aac00
mov ecx, ebx
mov byte [ebx + 0x30], 1
call fcn.004a6080
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret 8