Function at 0x4d5bed
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a5358
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push edi
mov eax, dword [0x4d8684]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push 0x4b8420
push eax
call 0x51ff3b
mov dword [esp + 0x10], eax
and dword [esp + 0x40], 0
mov edi, 0x4b819c
lea eax, [esp + 0x14]
push edi
push eax
call 0x51ff3b
add esp, 0x10
mov byte [esp + 0x38], 1
push dword [esp + 8]
mov ecx, eax
mov eax, dword [esi + 0x1f70]
call fcn.00508d7c
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
mov dword [esp + 0x28], eax
call fcn.004bf355
or dword [esp + 0x38], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004bf355
lea eax, [esp + 8]
push 0x4b86d8
push eax
call 0x51ff3b
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x48], 2
call 0x51ff3b
add esp, 0x10
mov byte [esp + 0x38], 3
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
push eax
push dword [esi + 0x1f70]
call fcn.00508b82
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
call fcn.004bf355
or dword [esp + 0x38], 0xffffffff
mov ecx, dword [esp + 8]
add ecx, 0xfffffff0
call fcn.004bf355
lea eax, [esp + 0x24]
push 0x4b86e4
push eax
call 0x51ff3b
mov edi, eax
lea eax, [esp + 0x28]
push 0x4b83d8
push eax
mov dword [esp + 0x48], 4
call 0x51ff3b
add esp, 0x10
push 0
mov byte [esp + 0x3c], 5
mov ecx, dword [edi]
push 0
push ecx
push eax
push dword [esi + 0x1f70]
call fcn.00508b82
mov edi, eax
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004bf355
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004bf355
mov eax, dword [esp + 0x28]
cmp eax, 1
je 0x4d5e22
mov ecx, dword [esi + 0x1f88]
xor edx, edx
cmp ecx, edx
je 0x4d5da1
mov ecx, dword [esi + 0x1f7c]
inc ecx
cmp ecx, eax
jge 0x4d5da1
cmp eax, 1
jle 0x4d5da1
mov ecx, dword [esp + 0x18]
cmp ecx, edx
jl 0x4d5e22
jg 0x4d5d85
cmp dword [esp + 0x14], edx
jbe 0x4d5e22
mov eax, dword [ebp + 8]
mov dword [ebx], edx
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
jmp 0x4d5e1f
cmp dword [esi + 0x1f88], edx
je 0x4d5dc1
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov dword [ebx], edx
mov dword [ebx + 4], edx
mov dword [eax], edi
mov dword [eax + 4], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
jmp 0x4d5e1f
mov ecx, dword [esi + 0x1f7c]
inc ecx
cmp ecx, eax
jge 0x4d5df6
mov ecx, dword [esp + 0x18]
cmp ecx, edx
jl 0x4d5e22
mov eax, dword [esp + 0x14]
jg 0x4d5dde
cmp eax, edx
jbe 0x4d5e22
add dword [ebx], edi
mov edx, dword [esp + 0x10]
adc dword [ebx + 4], edx
sub eax, dword [ebx]
mov edx, dword [ebp + 8]
sbb ecx, dword [ebx + 4]
mov dword [edx], eax
mov dword [edx + 4], ecx
jmp 0x4d5e22
add dword [ebx], edi
mov eax, dword [esp + 0x10]
adc dword [ebx + 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
jne 0x4d5e22
mov ecx, dword [esp + 0x18]
cmp ecx, edx
jl 0x4d5e22
jg 0x4d5e19
cmp dword [esp + 0x14], edx
jbe 0x4d5e22
mov edx, dword [esp + 0x14]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 8