Function at 0x5142e8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x51459c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, esi
call fcn.004c0834
mov edx, eax
mov eax, esi
call fcn.004c08d8
mov esi, eax
mov byte [esi + 4], 0x30
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x11]
mov byte [esi + 6], al
xor edx, edx
mov eax, esi
call fcn.004c0834
mov edx, eax
mov eax, esi
call fcn.004c08d8
mov edi, eax
mov byte [edi + 4], 2
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
mov edx, dword [edx + 4]
call fcn.00404e28
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.004bfa44
mov dl, 1
mov eax, esi
call fcn.004c0834
mov edx, eax
mov eax, esi
call fcn.004c08d8
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 0x30]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00513620
mov dl, 1
mov eax, esi
call fcn.004c0834
mov edx, eax
mov eax, esi
call fcn.004c08d8
mov ebx, eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 0xc]
xor ecx, ecx
mov eax, ebx
call fcn.00515694
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x24]
call fcn.005011f4
test eax, eax
jle 0x5143ea
mov dl, 1
mov eax, esi
call fcn.004c0834
mov edx, eax
mov eax, esi
call fcn.004c08d8
mov ebx, eax
push 0xa1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 0x14]
xor ecx, ecx
mov eax, ebx
call fcn.00515694
mov dl, 1
mov eax, esi
call fcn.004c0834
mov edx, eax
mov eax, esi
call fcn.004c08d8
mov ebx, eax
mov byte [ebx + 4], 0x30
xor edx, edx
mov eax, ebx
call fcn.004c0834
mov edx, eax
mov eax, ebx
call fcn.004c08d8
mov edi, eax
mov byte [edi + 4], 6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 0x1c]
mov eax, edi
call fcn.004bfa44
mov dl, 1
mov eax, ebx
call fcn.004c0834
mov edx, eax
mov eax, ebx
call fcn.004c08d8
mov ebx, eax
mov byte [ebx + 4], 0xa0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.00514f34
dec eax
jg 0x51447d
xor edx, edx
mov eax, ebx
call fcn.004c0834
mov edx, eax
mov eax, ebx
call fcn.004c08d8
mov edi, eax
mov byte [edi + 4], 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.00514f3c
mov edx, dword [edi + 0x20]
call fcn.004c19ec
jmp 0x5144e6
mov dl, 1
mov eax, ebx
call fcn.004c0834
mov edx, eax
mov eax, ebx
call fcn.004c08d8
mov ebx, eax
mov byte [ebx + 4], 0x24
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.00514f34
dec eax
test eax, eax
jl 0x5144e6
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
xor edx, edx
mov eax, ebx
call fcn.004c0834
mov edx, eax
mov eax, ebx
call fcn.004c08d8
mov edi, eax
mov byte [edi + 4], 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 8]
call fcn.00514f20
mov edx, dword [edi + 0x20]
call fcn.004c19ec
inc dword [ebp - 8]
dec dword [ebp - 0xc]
jne 0x5144b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x24]
call fcn.005011f4
test eax, eax
jle 0x514522
mov dl, 1
mov eax, esi
call fcn.004c0834
mov edx, eax
mov eax, esi
call fcn.004c08d8
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 0x24]
mov cl, 0x31
mov eax, ebx
call fcn.005012b0
mov byte [ebx + 4], 0xa2
xor edx, edx
mov eax, esi
call fcn.004c0834
mov edx, eax
mov eax, esi
call fcn.004c08d8
mov edi, eax
mov byte [edi + 4], 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 0x2c]
mov eax, edi
call fcn.004bfa44
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x28]
call fcn.005011f4
test eax, eax
jle 0x514586
mov dl, 1
mov eax, esi
call fcn.004c0834
mov edx, eax
mov eax, esi
call fcn.004c08d8
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 0x28]
mov cl, 0x31
mov eax, ebx
call fcn.005012b0
mov byte [ebx + 4], 0xa3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5145a3
lea eax, [ebp - 0x10]
call fcn.00404c40
ret