Function at 0x5193e0
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 0x5196f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebx + 0xf8]
mov eax, ebx
call fcn.0051ac60
mov byte [0x5669e0], 1
call fcn.0040b574
fstp qword [0x5670f0]
wait
call fcn.0040b5a0
fstp qword [0x5670f8]
wait
mov eax, dword [ebx + 0x30]
call fcn.005143b0
xor eax, eax
mov dword [0x5669dc], eax
xor eax, eax
mov dword [0x5669d8], eax
mov dword [0x5669d0], ebx
mov dword [0x5669cc], ebx
cmp word [ebx + 0x11c], 1
sbb eax, eax
inc eax
mov byte [ebx + 0xec], al
mov eax, dword [0x5669b4]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], fcn.00517ba4
mov eax, dword [0x5669b4]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x518140
mov byte [ebp - 1], 0
mov eax, ebx
mov edx, dword [0x501474]
call fcn.00403cac
test al, al
je 0x5195d2
mov dl, 1
mov eax, dword [0x416964]
call fcn.00403af0
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x128]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x519505
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dl, 1
mov eax, dword [0x4172b8]
call fcn.00403af0
mov esi, eax
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00419174
mov eax, dword [ebx + 0x128]
mov edx, dword [ebp - 0x14]
call fcn.004192d0
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00518d54
cmp word [edi + 0x5a], 0
je 0x5194fd
mov eax, dword [edi + 0x5c]
call dword [edi + 0x58]
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x5194bf
cmp word [ebx + 0x5a], 0
je 0x519512
mov eax, dword [ebx + 0x5c]
call dword [ebx + 0x58]
mov al, 1
cmp dword [0x5669b0], 0
je 0x51952e
mov eax, ebx
call fcn.00519ce8
mov eax, dword [0x5669b0]
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
je 0x51953c
mov eax, ebx
call fcn.00519704
mov byte [ebp - 1], al
cmp word [ebx + 0x62], 0
je 0x519549
mov eax, dword [ebx + 0x64]
call dword [ebx + 0x60]
mov al, byte [0x56707d]
mov byte [ebp - 9], al
lea eax, [ebp - 0x10]
mov edx, dword [0x567080]
call fcn.00404940
mov eax, dword [ebx + 0x128]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x5195c5
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004192d0
mov esi, eax
push 0
push 0
mov eax, esi
call fcn.0041bbd4
mov eax, dword [ebx + 0x128]
mov edx, dword [ebp - 0x14]
call fcn.004192d0
mov edi, eax
cmp word [edi + 0x62], 0
je 0x5195ad
mov eax, dword [edi + 0x64]
call dword [edi + 0x60]
mov edx, esi
mov eax, edi
call fcn.00518ad4
mov eax, esi
call fcn.00403b20
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x519578
mov eax, dword [ebp - 8]
call fcn.00403b20
jmp 0x51965e
mov dl, 1
mov eax, dword [0x4172b8]
call fcn.00403af0
mov esi, eax
mov edx, esi
mov eax, ebx
call fcn.00518d54
cmp word [ebx + 0x5a], 0
je 0x5195f6
mov eax, dword [ebx + 0x5c]
call dword [ebx + 0x58]
mov al, 1
cmp dword [0x5669b0], 0
je 0x519612
mov eax, ebx
call fcn.00519ce8
mov eax, dword [0x5669b0]
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
je 0x519620
mov eax, ebx
call fcn.00519704
mov byte [ebp - 1], al
cmp word [ebx + 0x62], 0
je 0x51962d
mov eax, dword [ebx + 0x64]
call dword [ebx + 0x60]
mov al, byte [0x56707d]
mov byte [ebp - 9], al
lea eax, [ebp - 0x10]
mov edx, dword [0x567080]
call fcn.00404940
push 0
push 0
mov eax, esi
call fcn.0041bbd4
mov edx, esi
mov eax, ebx
call fcn.00518ad4
mov eax, esi
call fcn.00403b20
mov byte [ebx + 0x11e], 0
mov al, byte [ebp - 1]
and al, byte [0x56714b]
je 0x519674
mov byte [ebp - 1], 0
cmp byte [ebp - 9], 0
je 0x5196b3
push 0x10
lea edx, [ebp - 0x1c]
mov eax, 0xd7a6
call fcn.004f9af8
mov eax, dword [ebp - 0x1c]
call fcn.00404d58
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404d58
mov edx, eax
mov eax, dword [0x564850]
mov eax, dword [eax]
pop ecx
call fcn.0046bd80
mov eax, dword [ebx + 0x34]
call fcn.005144ec
jmp 0x5196c4
cmp byte [0x56714b], 0
je 0x5196c4
mov eax, dword [ebx + 0x34]
call fcn.005144ec
mov byte [0x5669e1], 0
xor eax, eax
mov dword [0x5669d8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5196f7
lea eax, [ebp - 0x1c]
call fcn.004048a8
lea eax, [ebp - 0x10]
call fcn.004048a8
ret