Function at 0x4e86c4
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 0x4e8978
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, esi
call fcn.0049cb70
mov edx, eax
mov eax, esi
call fcn.0049cc14
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.0049cb70
mov edx, eax
mov eax, esi
call fcn.0049cc14
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.004055d0
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.0049bd80
mov dl, 1
mov eax, esi
call fcn.0049cb70
mov edx, eax
mov eax, esi
call fcn.0049cc14
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.004e79fc
mov dl, 1
mov eax, esi
call fcn.0049cb70
mov edx, eax
mov eax, esi
call fcn.0049cc14
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.004e9a70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x24]
call fcn.004d55b8
test eax, eax
jle 0x4e87c6
mov dl, 1
mov eax, esi
call fcn.0049cb70
mov edx, eax
mov eax, esi
call fcn.0049cc14
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.004e9a70
mov dl, 1
mov eax, esi
call fcn.0049cb70
mov edx, eax
mov eax, esi
call fcn.0049cc14
mov ebx, eax
mov byte [ebx + 4], 0x30
xor edx, edx
mov eax, ebx
call fcn.0049cb70
mov edx, eax
mov eax, ebx
call fcn.0049cc14
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.0049bd80
mov dl, 1
mov eax, ebx
call fcn.0049cb70
mov edx, eax
mov eax, ebx
call fcn.0049cc14
mov ebx, eax
mov byte [ebx + 4], 0xa0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.004e9310
dec eax
jg 0x4e8859
xor edx, edx
mov eax, ebx
call fcn.0049cb70
mov edx, eax
mov eax, ebx
call fcn.0049cc14
mov edi, eax
mov byte [edi + 4], 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.004e9318
mov edx, dword [edi + 0x20]
call fcn.0049dd28
jmp 0x4e88c2
mov dl, 1
mov eax, ebx
call fcn.0049cb70
mov edx, eax
mov eax, ebx
call fcn.0049cc14
mov ebx, eax
mov byte [ebx + 4], 0x24
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.004e9310
dec eax
test eax, eax
jl 0x4e88c2
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
xor edx, edx
mov eax, ebx
call fcn.0049cb70
mov edx, eax
mov eax, ebx
call fcn.0049cc14
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.004e92fc
mov edx, dword [edi + 0x20]
call fcn.0049dd28
inc dword [ebp - 8]
dec dword [ebp - 0xc]
jne 0x4e888c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x24]
call fcn.004d55b8
test eax, eax
jle 0x4e88fe
mov dl, 1
mov eax, esi
call fcn.0049cb70
mov edx, eax
mov eax, esi
call fcn.0049cc14
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.004d5674
mov byte [ebx + 4], 0xa2
xor edx, edx
mov eax, esi
call fcn.0049cb70
mov edx, eax
mov eax, esi
call fcn.0049cc14
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.0049bd80
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x28]
call fcn.004d55b8
test eax, eax
jle 0x4e8962
mov dl, 1
mov eax, esi
call fcn.0049cb70
mov edx, eax
mov eax, esi
call fcn.0049cc14
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.004d5674
mov byte [ebx + 4], 0xa3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e897f
lea eax, [ebp - 0x10]
call fcn.004053e8
ret