Function at 0x57321c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x573800
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xd8]
test eax, eax
je 0x5737ea
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0xc]
dec eax
test eax, eax
jl 0x5737dc
inc eax
mov dword [ebp - 8], eax
xor esi, esi
mov dl, 1
mov eax, dword [0x5669b4]
call fcn.00566c38
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov dword [eax + 0x22c], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xd8]
mov edx, esi
call fcn.005641a4
mov edx, dword [0x5669b4]
call fcn.00403314
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
jne 0x57330b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x22c]
cmp dword [eax + 0x2c], 0
jle 0x57330b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x208], 0
je 0x57330b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xf0]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x22c]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax + 0xf0]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x20c]
call fcn.004149cc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x22c]
cmp byte [eax + 0x41], 2
jne 0x57332a
mov edx, dword [ebp + 8]
call fcn.0040318c
jmp 0x5737d2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ebx, dword [eax + 0x22c]
cmp word [ebx + 0x22], 0
jbe 0x57336a
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x3c], 0
jne 0x57336a
lea ecx, [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, esi
call fcn.0056de48
mov eax, dword [ebp - 0x10]
call fcn.00566420
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, ebx
call fcn.00567690
mov byte [ebp - 1], 1
mov byte [ebp - 3], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x238], 0
je 0x57340b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x22c]
cmp byte [eax + 0x42], 0
je 0x57340b
mov byte [ebp - 3], 1
mov byte [ebp - 2], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ebx, dword [eax + 0x22c]
mov byte [ebx + 0x42], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp word [eax + 0x1e2], 0
je 0x5733f2
lea eax, [ebp - 2]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x34]
mov eax, dword [ebp + 8]
mov edx, dword [ebx + 0x38]
lea eax, [ebp - 0x10]
call fcn.00404040
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ebx, dword [eax - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov eax, dword [ebx + 0x1e4]
call dword [ebx + 0x1e0]
cmp byte [ebp - 2], 0
jne 0x57370e
mov eax, dword [ebp + 8]
inc dword [eax - 4]
mov byte [ebp - 1], 0
jmp 0x57370e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x57370e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x57370e
inc eax
mov dword [ebp - 0xc], eax
xor ebx, ebx
push ebp
lea ecx, [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00573094
pop ecx
test al, al
je 0x573704
mov byte [ebp - 3], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x168], 0
jne 0x573501
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x169], 0
jne 0x573501
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x199], 1
je 0x573501
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x238], 0
jne 0x573501
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x199], 0
je 0x5734c9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x199], 2
jne 0x5736ee
lea ecx, [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00566178
fstp qword [ebp - 0x18]
wait
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, esi
call fcn.0056dd70
fcomp qword [ebp - 0x18]
fnstsw ax
sahf
jae 0x5736ee
mov byte [ebp - 2], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x238], 0
je 0x573560
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp word [eax + 0x1e2], 0
je 0x573560
lea eax, [ebp - 2]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edi, dword [eax + 0x22c]
mov ecx, dword [edi + 0x34]
mov eax, dword [ebp + 8]
mov edx, dword [edi + 0x38]
lea eax, [ebp - 0x10]
call fcn.00404040
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov eax, dword [ebp + 8]
mov edi, dword [eax - 8]
mov eax, dword [edi + 0x1e4]
call dword [edi + 0x1e0]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x238], 0
je 0x57357b
cmp byte [ebp - 2], 0
jne 0x57357b
mov eax, dword [ebp + 8]
inc dword [eax - 4]
cmp byte [ebp - 2], 0
jne 0x5736d8
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x238], 0
je 0x5735c7
lea ecx, [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00565ff4
test al, al
jne 0x5735c7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x238], 0
jne 0x57370e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x22c]
call fcn.0040318c
mov dl, 1
mov eax, dword [0x5669b4]
call fcn.00566c38
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [edx + 0x22c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp word [eax + 0x1f2], 0
je 0x57362e
push esi
mov eax, dword [ebp + 8]
mov edi, dword [eax - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
xor ecx, ecx
mov eax, dword [edi + 0x1f4]
call dword [edi + 0x1f0]
xor eax, eax
push ebp
push 0x573698
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00575414
test al, al
je 0x57366f
mov eax, dword [ebp + 8]
push eax
mov eax, ebx
call fcn.00572e18
pop ecx
jmp 0x57368e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x22c]
call fcn.0040318c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
xor edx, edx
mov dword [eax + 0x22c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5736c6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
jmp 0x57370e
mov byte [ebp - 1], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
jmp 0x57370e
mov byte [ebp - 1], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
jmp 0x57370e
inc ebx
dec dword [ebp - 0xc]
jne 0x57343e
cmp byte [ebp - 1], 0
je 0x5737b2
cmp byte [ebp - 3], 0
je 0x573749
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp word [eax + 0x1f2], 0
je 0x573749
push esi
mov eax, dword [ebp + 8]
mov ebx, dword [eax - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov cl, 1
mov eax, dword [ebx + 0x1f4]
call dword [ebx + 0x1f0]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, esi
call fcn.00575fcc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax + 0x22c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax + 0x22c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x224]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x228]
inc word [eax + 0xe]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x228]
inc word [eax + 0xc]
jmp 0x5737d2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x238], 0
je 0x5737d2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x22c]
call fcn.0040318c
inc esi
dec dword [ebp - 8]
jne 0x573261
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
xor edx, edx
mov dword [eax + 0x22c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x573807
lea eax, [ebp - 0x10]
call fcn.00403d78
ret