Function at 0x4a8588
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 0x4a883b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, esi
call fcn.0045b008
mov edx, eax
mov eax, esi
call fcn.0045b0ac
mov esi, eax
mov byte [esi + 4], 0x30
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x11]
mov byte [esi + 6], al
xor edx, edx
mov eax, esi
call fcn.0045b008
mov edx, eax
mov eax, esi
call fcn.0045b0ac
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.00404574
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.0045a35c
mov dl, 1
mov eax, esi
call fcn.0045b008
mov edx, eax
mov eax, esi
call fcn.0045b0ac
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.004a78dc
mov dl, 1
mov eax, esi
call fcn.0045b008
mov edx, eax
mov eax, esi
call fcn.0045b0ac
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.004a9904
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x24]
call fcn.00499a14
test eax, eax
jle 0x4a8689
mov dl, 1
mov eax, esi
call fcn.0045b008
mov edx, eax
mov eax, esi
call fcn.0045b0ac
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.004a9904
mov dl, 1
mov eax, esi
call fcn.0045b008
mov edx, eax
mov eax, esi
call fcn.0045b0ac
mov ebx, eax
mov byte [ebx + 4], 0x30
xor edx, edx
mov eax, ebx
call fcn.0045b008
mov edx, eax
mov eax, ebx
call fcn.0045b0ac
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.0045a35c
mov dl, 1
mov eax, ebx
call fcn.0045b008
mov edx, eax
mov eax, ebx
call fcn.0045b0ac
mov ebx, eax
mov byte [ebx + 4], 0xa0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.004a91d4
dec eax
jg 0x4a871c
xor edx, edx
mov eax, ebx
call fcn.0045b008
mov edx, eax
mov eax, ebx
call fcn.0045b0ac
mov edi, eax
mov byte [edi + 4], 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.004a91dc
mov edx, dword [edi + 0x20]
call fcn.0045c180
jmp 0x4a8785
mov dl, 1
mov eax, ebx
call fcn.0045b008
mov edx, eax
mov eax, ebx
call fcn.0045b0ac
mov ebx, eax
mov byte [ebx + 4], 0x24
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.004a91d4
dec eax
test eax, eax
jl 0x4a8785
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
xor edx, edx
mov eax, ebx
call fcn.0045b008
mov edx, eax
mov eax, ebx
call fcn.0045b0ac
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.004a91c0
mov edx, dword [edi + 0x20]
call fcn.0045c180
inc dword [ebp - 8]
dec dword [ebp - 0xc]
jne 0x4a874f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x24]
call fcn.00499a14
test eax, eax
jle 0x4a87c1
mov dl, 1
mov eax, esi
call fcn.0045b008
mov edx, eax
mov eax, esi
call fcn.0045b0ac
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.00499ad0
mov byte [ebx + 4], 0xa2
xor edx, edx
mov eax, esi
call fcn.0045b008
mov edx, eax
mov eax, esi
call fcn.0045b0ac
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.0045a35c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x28]
call fcn.00499a14
test eax, eax
jle 0x4a8825
mov dl, 1
mov eax, esi
call fcn.0045b008
mov edx, eax
mov eax, esi
call fcn.0045b0ac
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.00499ad0
mov byte [ebx + 4], 0xa3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8842
lea eax, [ebp - 0x10]
call fcn.0040438c
ret