Function at 0x567a10
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59315b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x61b660]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x90], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x90]
mov dword [eax + 0x1f0], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp + 8]
sar ecx, 2
mov edx, dword [ebp - 0x90]
mov dword [edx + 0x190], ecx
mov dword [ebp - 0x10], 0
jmp 0x567a86
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x90]
add ecx, 0x15c
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
mov ecx, dword [edx + 4]
sub ecx, dword [eax]
sar ecx, 2
cmp dword [ebp - 0x10], ecx
jae 0x567b17
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x15c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x567af2
mov ecx, dword [ebp - 0x34]
call fcn.00567f10
mov ecx, 1
and ecx, 1
je 0x567ae7
mov edx, dword [ebp - 0x34]
push edx
call fcn.0042a4c9
add esp, 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x94], eax
jmp 0x567afc
mov dword [ebp - 0x94], 0
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x15c]
mov eax, dword [ebp - 0x10]
mov dword [edx + eax*4], 0
jmp 0x567a7d
mov ecx, dword [ebp - 0x90]
add ecx, 0x15c
call fcn.00564220
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x567b41
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
sar edx, 2
cmp dword [ebp - 0x10], edx
jae 0x567c88
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x18], edx
push 0x58
call fcn.0042a49a
add esp, 4
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x40], 0
je 0x567b86
mov ecx, dword [ebp - 0x40]
call fcn.00567e50
mov dword [ebp - 0x98], eax
jmp 0x567b90
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
add edx, 0x1c
mov dword [ebp - 0x6c], edx
mov eax, dword [0x5a6ffc]
push eax
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x14
push ecx
mov ecx, dword [ebp - 0x6c]
call fcn.00405c70
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov cl, byte [eax + 0x10]
mov byte [edx + 0x18], cl
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
mov dword [edx + 0x10], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [ecx + 0x54], eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x14
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
cmp dword [edx + 0x14], 0x10
jb 0x567c0b
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
mov dword [ebp - 0x9c], ecx
jmp 0x567c14
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x9c], edx
push 0x1c
mov eax, dword [ebp - 0x1c]
add eax, 0x38
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
mov ecx, dword [ebp - 0x90]
sub ecx, 0xec
call fcn.00567fa0
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x208]
mov dword [edx + 8], ecx
mov edx, dword [ebp - 0x14]
add edx, 0x20
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x14]
add ecx, 0x20
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x90]
add ecx, 0x15c
call fcn.00425bb0
jmp 0x567b38
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x158], ecx
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x158]
add eax, 0x50
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x208]
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x90]
sub ecx, 0xec
mov eax, dword [ebp - 0x90]
mov edx, dword [eax - 0xec]
mov eax, dword [edx + 0x3c]
call eax
mov ecx, dword [ebp - 0x90]
add ecx, 0x15c
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x80]
mov ecx, dword [edx + 4]
sub ecx, dword [eax]
sar ecx, 2
test ecx, ecx
je 0x567d8e
mov edx, dword [ebp - 0x90]
mov dword [edx + 0x54], 1
xor eax, eax
shl eax, 2
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x15c]
mov eax, dword [eax + edx]
mov ecx, dword [ebp - 0x90]
add ecx, 0x34
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x38]
add edx, 0x23
mov eax, dword [ebp - 0x90]
mov dword [eax + 0x38], edx
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x40]
add edx, 0x23
mov eax, dword [ebp - 0x90]
mov dword [eax + 0x40], edx
mov ecx, dword [ebp - 0x90]
mov dword [ecx + 0x194], 1
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x30]
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x158]
lea eax, [eax + edx + 2]
mov ecx, dword [ebp - 0x90]
mov dword [ecx + 0x48], eax
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x48]
add eax, 0x28
mov ecx, dword [ebp - 0x90]
mov dword [ecx + 0x50], eax
mov edx, dword [ebp - 0x90]
mov dword [edx + 0x44], 0
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x44]
mov edx, dword [ebp - 0x90]
add ecx, dword [edx + 0x208]
mov eax, dword [ebp - 0x90]
mov dword [eax + 0x4c], ecx
mov ecx, dword [ebp - 0x90]
sub ecx, 0xec
mov edx, dword [ebp - 0x90]
mov eax, dword [edx - 0xec]
mov edx, dword [eax + 0xd4]
call edx
mov dword [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.0040f3a0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0052927b
mov esp, ebp
pop ebp
ret 0x14