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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a632e
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, edi
call fcn.00413314
mov eax, dword [edi + 4]
mov ebx, eax
add ebx, 0xe
mov edx, dword [ebx + 4]
mov dword [ebp - 8], edx
mov edx, dword [ebx + 8]
mov dword [ebp - 0xc], edx
mov edx, ebx
add edx, 0x28
mov dword [ebp - 0x10], edx
mov edx, dword [edi + 4]
add eax, dword [edx + 0xa]
mov edi, eax
mov ax, word [ebx + 0xe]
dec ax
je 0x4a6183
sub ax, 3
je 0x4a618a
sub ax, 4
je 0x4a6191
jmp 0x4a6198
mov esi, 2
jmp 0x4a61ad
mov esi, 0x10
jmp 0x4a61ad
mov esi, pe_nt_image_headers32
jmp 0x4a61ad
lea edx, [ebp - 0x14]
mov eax, 0xeea5
call fcn.00408cc8
mov eax, dword [ebp - 0x14]
call fcn.004a4658
mov eax, dword [ebp - 4]
mov byte [eax + 0x1c], 0
mov eax, dword [ebp - 0x10]
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0x16
mov ecx, esi
call fcn.004a535c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
test eax, eax
jne 0x4a61ed
mov dl, 1
mov eax, dword [0x40fad8]
call fcn.00402e6c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov dword [edx + 8], eax
jmp 0x4a61f3
xor edx, edx
mov ecx, dword [eax]
call dword [ecx]
xor eax, eax
push ebp
push 0x4a622e
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
push 0x4a8660
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x1c]
mov edx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
call fcn.004a53b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a6260
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov byte [eax + 0x15], 1
jmp 0x4a626f
inc byte [eax + 0x15]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov cl, byte [eax + 0x15]
mov edx, 1
shl edx, cl
cmp edx, dword [eax + 0x16]
jl 0x4a626c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x20]
cmp dword [eax + 0xf], 0
jne 0x4a62bb
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
lea esi, [edx + 0x16]
lea edi, [eax + 0xf]
mov ecx, 0xc1
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov dl, byte [edx + 0x15]
mov byte [eax + 0xd], dl
mov eax, dword [ebp - 4]
mov byte [eax + 0x27], 0
jmp 0x4a62c2
mov eax, dword [ebp - 4]
mov byte [eax + 0x27], 1
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x10], eax
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
movzx eax, word [eax + 0x30]
call fcn.004a0334
mov edx, dword [ebp - 4]
mov esi, dword [edx + 4]
mov word [esi + 0x30], ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x18]
movzx eax, word [esi + 0x32]
call fcn.004a0334
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
mov word [edx + 0x32], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6335
lea eax, [ebp - 0x14]
call fcn.00403c04
ret