Function at 0x5ae86c
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 0x5aeb7c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebx + 0xf8]
mov eax, ebx
call fcn.005afe78
mov byte [0x5dba94], 1
call fcn.0040c9a8
fstp qword [0x5dc198]
wait
call fcn.0040c9d4
fstp qword [0x5dc1a0]
wait
mov eax, dword [ebx + 0x30]
call fcn.005aa768
xor eax, eax
mov dword [0x5dba90], eax
xor eax, eax
mov dword [0x5dba8c], eax
mov dword [0x5dba84], ebx
mov dword [0x5dba80], ebx
cmp word [ebx + 0x11c], 1
sbb eax, eax
inc eax
mov byte [ebx + 0xec], al
mov eax, dword [0x5dba68]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], fcn.005ad524
mov eax, dword [0x5dba68]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5adac0
mov byte [ebp - 1], 0
mov eax, ebx
mov edx, dword [0x597c34]
call fcn.00403fd4
test al, al
je 0x5aea5e
mov dl, 1
mov eax, dword [0x419cd4]
call fcn.00403e18
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x128]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x5ae991
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dl, 1
mov eax, dword [0x41a628]
call fcn.00403e18
mov esi, eax
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.0041c82c
mov eax, dword [ebx + 0x128]
mov edx, dword [ebp - 0x14]
call fcn.0041cac0
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.005ae6d4
cmp word [edi + 0x5a], 0
je 0x5ae989
mov eax, dword [edi + 0x5c]
call dword [edi + 0x58]
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x5ae94b
cmp word [ebx + 0x5a], 0
je 0x5ae99e
mov eax, dword [ebx + 0x5c]
call dword [ebx + 0x58]
mov al, 1
cmp dword [0x5dba64], 0
je 0x5ae9ba
mov eax, ebx
call fcn.005af174
mov eax, dword [0x5dba64]
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
je 0x5ae9c8
mov eax, ebx
call fcn.005aeb90
mov byte [ebp - 1], al
cmp word [ebx + 0x62], 0
je 0x5ae9d5
mov eax, dword [ebx + 0x64]
call dword [ebx + 0x60]
mov al, byte [0x5dc12d]
mov byte [ebp - 9], al
lea eax, [ebp - 0x10]
mov edx, dword [0x5dc130]
call fcn.00404d0c
mov eax, dword [ebx + 0x128]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x5aea51
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0041cac0
mov esi, eax
push 0
push 0
mov eax, esi
call fcn.0042059c
mov eax, dword [ebx + 0x128]
mov edx, dword [ebp - 0x14]
call fcn.0041cac0
mov edi, eax
cmp word [edi + 0x62], 0
je 0x5aea39
mov eax, dword [edi + 0x64]
call dword [edi + 0x60]
mov edx, esi
mov eax, edi
call fcn.005ae454
mov eax, esi
call fcn.00403e48
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x5aea04
mov eax, dword [ebp - 8]
call fcn.00403e48
jmp 0x5aeaea
mov dl, 1
mov eax, dword [0x41a628]
call fcn.00403e18
mov esi, eax
mov edx, esi
mov eax, ebx
call fcn.005ae6d4
cmp word [ebx + 0x5a], 0
je 0x5aea82
mov eax, dword [ebx + 0x5c]
call dword [ebx + 0x58]
mov al, 1
cmp dword [0x5dba64], 0
je 0x5aea9e
mov eax, ebx
call fcn.005af174
mov eax, dword [0x5dba64]
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
je 0x5aeaac
mov eax, ebx
call fcn.005aeb90
mov byte [ebp - 1], al
cmp word [ebx + 0x62], 0
je 0x5aeab9
mov eax, dword [ebx + 0x64]
call dword [ebx + 0x60]
mov al, byte [0x5dc12d]
mov byte [ebp - 9], al
lea eax, [ebp - 0x10]
mov edx, dword [0x5dc130]
call fcn.00404d0c
push 0
push 0
mov eax, esi
call fcn.0042059c
mov edx, esi
mov eax, ebx
call fcn.005ae454
mov eax, esi
call fcn.00403e48
mov byte [ebx + 0x11e], 0
mov al, byte [ebp - 1]
and al, byte [0x5dc1f3]
je 0x5aeb00
mov byte [ebp - 1], 0
cmp byte [ebp - 9], 0
je 0x5aeb3f
push 0x10
lea edx, [ebp - 0x1c]
mov eax, 0xd7a6
call fcn.0059477c
mov eax, dword [ebp - 0x1c]
call fcn.00405124
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405124
mov edx, eax
mov eax, dword [0x5d9640]
mov eax, dword [eax]
pop ecx
call fcn.00480340
mov eax, dword [ebx + 0x34]
call fcn.005aa8a4
jmp 0x5aeb50
cmp byte [0x5dc1f3], 0
je 0x5aeb50
mov eax, dword [ebx + 0x34]
call fcn.005aa8a4
mov byte [0x5dba95], 0
xor eax, eax
mov dword [0x5dba8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5aeb83
lea eax, [ebp - 0x1c]
call fcn.00404c74
lea eax, [ebp - 0x10]
call fcn.00404c74
ret