Function at 0x58aca4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x58afb4
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebx + 0xf8]
mov eax, ebx
call fcn.0058c3e8
mov byte [0x62f840], 1
call fcn.0040bd34
fstp qword [0x6305b4]
wait
call fcn.0040bd60
fstp qword [0x6305bc]
wait
mov eax, dword [ebx + 0x30]
call fcn.00587328
xor eax, eax
mov dword [0x62f83c], eax
xor eax, eax
mov dword [0x62f838], eax
mov dword [0x62f830], ebx
mov dword [0x62f82c], ebx
cmp word [ebx + 0x11e], 1
sbb eax, eax
inc eax
mov byte [ebx + 0xec], al
mov eax, dword [0x62f814]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], fcn.005890dc
mov eax, dword [0x62f814]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5897a8
mov byte [ebp - 1], 0
mov eax, ebx
mov edx, dword [0x6280b0]
call fcn.00403e1c
test al, al
je 0x58ae96
mov dl, 1
mov eax, dword [0x41cbb4]
call fcn.00403c60
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x168]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x58adc9
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dl, 1
mov eax, dword [0x41d528]
call fcn.00403c60
mov esi, eax
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.0041f4c0
mov eax, dword [ebx + 0x168]
mov edx, dword [ebp - 0x14]
call fcn.0041f66c
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.0058a79c
cmp word [edi + 0x5a], 0
je 0x58adc1
mov eax, dword [edi + 0x5c]
call dword [edi + 0x58]
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x58ad83
cmp word [ebx + 0x5a], 0
je 0x58add6
mov eax, dword [ebx + 0x5c]
call dword [ebx + 0x58]
mov al, 1
cmp dword [0x62f810], 0
je 0x58adf2
mov eax, ebx
call fcn.0058b5b4
mov eax, dword [0x62f810]
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
je 0x58ae00
mov eax, ebx
call fcn.0058afc8
mov byte [ebp - 1], al
cmp word [ebx + 0x62], 0
je 0x58ae0d
mov eax, dword [ebx + 0x64]
call dword [ebx + 0x60]
mov al, byte [0x630549]
mov byte [ebp - 9], al
lea eax, [ebp - 0x10]
mov edx, dword [0x63054c]
call fcn.00404b98
mov eax, dword [ebx + 0x168]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x58ae89
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0041f66c
mov esi, eax
push 0
push 0
mov eax, esi
call fcn.00421cc4
mov eax, dword [ebx + 0x168]
mov edx, dword [ebp - 0x14]
call fcn.0041f66c
mov edi, eax
cmp word [edi + 0x62], 0
je 0x58ae71
mov eax, dword [edi + 0x64]
call dword [edi + 0x60]
mov edx, esi
mov eax, edi
call fcn.0058a1c0
mov eax, esi
call fcn.00403c90
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x58ae3c
mov eax, dword [ebp - 8]
call fcn.00403c90
jmp 0x58af22
mov dl, 1
mov eax, dword [0x41d528]
call fcn.00403c60
mov esi, eax
mov edx, esi
mov eax, ebx
call fcn.0058a79c
cmp word [ebx + 0x5a], 0
je 0x58aeba
mov eax, dword [ebx + 0x5c]
call dword [ebx + 0x58]
mov al, 1
cmp dword [0x62f810], 0
je 0x58aed6
mov eax, ebx
call fcn.0058b5b4
mov eax, dword [0x62f810]
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
je 0x58aee4
mov eax, ebx
call fcn.0058afc8
mov byte [ebp - 1], al
cmp word [ebx + 0x62], 0
je 0x58aef1
mov eax, dword [ebx + 0x64]
call dword [ebx + 0x60]
mov al, byte [0x630549]
mov byte [ebp - 9], al
lea eax, [ebp - 0x10]
mov edx, dword [0x63054c]
call fcn.00404b98
push 0
push 0
mov eax, esi
call fcn.00421cc4
mov edx, esi
mov eax, ebx
call fcn.0058a1c0
mov eax, esi
call fcn.00403c90
mov byte [ebx + 0x120], 0
mov al, byte [ebp - 1]
and al, byte [0x63060f]
je 0x58af38
mov byte [ebp - 1], 0
cmp byte [ebp - 9], 0
je 0x58af77
push 0x10
lea edx, [ebp - 0x1c]
mov eax, 0xd7a6
call fcn.0056d0a0
mov eax, dword [ebp - 0x1c]
call fcn.00404fd0
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404fd0
mov edx, eax
mov eax, dword [0x62d2c4]
mov eax, dword [eax]
pop ecx
call fcn.0049671c
mov eax, dword [ebx + 0x34]
call fcn.00581a24
jmp 0x58af88
cmp byte [0x63060f], 0
je 0x58af88
mov eax, dword [ebx + 0x34]
call fcn.00581a24
mov byte [0x62f841], 0
xor eax, eax
mov dword [0x62f838], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58afbb
lea eax, [ebp - 0x1c]
call fcn.00404b00
lea eax, [ebp - 0x10]
call fcn.00404b00
ret