Function at 0x536f40
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x692410
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x20
mov byte [ecx + 0xc8], 0
mov ecx, dword [esp + 0x30]
push ebx
push ebp
push esi
mov esi, dword [eax]
add esi, 2
push edi
mov dword [eax], esi
mov edx, dword [ecx + 4]
mov eax, esi
cmp eax, edx
jle 0x5370dc
xor ebx, ebx
or ebp, 0xffffffff
mov ecx, dword [0x8189b8]
mov eax, dword [ecx + 0x1bc]
test eax, eax
je 0x5373a1
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x5373a1
mov dl, byte [esp + 0x44]
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], dl
call fcn.004031c0
mov edi, 0x6d524c
mov ecx, ebp
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x3c], 8
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call fcn.00403350
test al, al
je 0x537003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, ecx
mov esi, 0x6d524c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x537010
mov eax, 0x6a3560
movsx edx, bx
push edx
push eax
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.00675394
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call fcn.00403350
test al, al
je 0x537068
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [eax + ebp], 0
mov dl, byte [esp + 0x10]
sub esp, 0x10
mov ecx, esp
xor esi, esi
mov dword [esp + 0x54], esp
mov byte [ecx], dl
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], esi
mov eax, dword [0x6a3564]
lea edx, [esp + 0x20]
push eax
push esi
push edx
call fcn.00402fc0
mov eax, dword [0x8189b8]
mov byte [esp + 0x48], 8
mov ecx, dword [eax + 0x1bc]
mov ecx, dword [ecx + 0x14]
call fcn.0053bd70
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
cmp ecx, esi
je 0x5373a1
mov al, byte [ecx - 1]
test al, al
je 0x537397
cmp al, 0xff
je 0x537397
dec al
mov byte [ecx - 1], al
jmp 0x5373a1
mov ecx, dword [ecx + 8]
mov bx, word [ecx + eax - 2]
cmp bx, 1
jne 0x537194
mov edx, dword [0x8189b8]
mov eax, dword [edx + 0x1bc]
test eax, eax
je 0x5373a1
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x5373a1
mov al, byte [esp + 0x44]
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
call fcn.004031c0
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
push ecx
push 0x2c68
call fcn.00615080
mov dl, byte [esp + 0x18]
sub esp, 8
mov esi, esp
mov dword [esp + 0x54], esp
push 0
mov ecx, esi
mov byte [esi], dl
call fcn.004031c0
mov eax, dword [0x6a3564]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
mov ecx, esi
call fcn.00402fc0
mov edx, dword [0x8189b8]
mov byte [esp + 0x48], 0
mov eax, dword [edx + 0x1bc]
mov ecx, dword [eax + 0x14]
call fcn.0053bd70
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004031c0
jmp 0x5373a1
or ebp, 0xffffffff
cmp bx, bp
jne 0x537243
mov ecx, dword [0x8189b8]
mov eax, dword [ecx + 0x1bc]
test eax, eax
je 0x5373a1
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x5373a1
mov dl, byte [esp + 0x44]
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], dl
call fcn.004031c0
lea eax, [esp + 0x10]
mov dword [esp + 0x38], 2
push eax
push 0x2c64
call fcn.00615080
mov cl, byte [esp + 0x18]
sub esp, 8
mov esi, esp
mov dword [esp + 0x54], esp
push 0
mov byte [esi], cl
mov ecx, esi
call fcn.004031c0
mov edx, dword [0x6a3564]
lea eax, [esp + 0x20]
push edx
push 0
push eax
mov ecx, esi
call fcn.00402fc0
mov ecx, dword [0x8189b8]
mov byte [esp + 0x48], 2
mov edx, dword [ecx + 0x1bc]
mov ecx, dword [edx + 0x14]
call fcn.0053bd70
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], ebp
call fcn.004031c0
jmp 0x5373a1
cmp bx, 0xfffe
jne 0x5372ee
mov eax, dword [0x8189b8]
mov eax, dword [eax + 0x1bc]
test eax, eax
je 0x5373a1
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x5373a1
mov cl, byte [esp + 0x44]
push 0
mov byte [esp + 0x14], cl
lea ecx, [esp + 0x14]
call fcn.004031c0
lea edx, [esp + 0x10]
mov ebx, 4
push edx
push 0x2c78
mov dword [esp + 0x40], ebx
call fcn.00615080
mov al, byte [esp + 0x18]
sub esp, 8
mov esi, esp
mov dword [esp + 0x54], esp
push 0
mov ecx, esi
mov byte [esi], al
call fcn.004031c0
mov ecx, dword [0x6a3564]
lea edx, [esp + 0x20]
push ecx
push 0
push edx
mov ecx, esi
call fcn.00402fc0
mov eax, dword [0x8189b8]
mov byte [esp + 0x48], bl
mov ecx, dword [eax + 0x1bc]
mov ecx, dword [ecx + 0x14]
call fcn.0053bd70
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], ebp
call fcn.004031c0
jmp 0x5373a1
cmp bx, 0xfffd
jne 0x536f84
mov edx, dword [0x8189b8]
mov eax, dword [edx + 0x1bc]
test eax, eax
je 0x5373a1
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x5373a1
mov al, byte [esp + 0x44]
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
call fcn.004031c0
lea ecx, [esp + 0x10]
mov ebx, 6
push ecx
push 0x2c69
mov dword [esp + 0x40], ebx
call fcn.00615080
mov dl, byte [esp + 0x18]
sub esp, 8
mov esi, esp
mov dword [esp + 0x54], esp
push 0
mov ecx, esi
mov byte [esi], dl
call fcn.004031c0
mov eax, dword [0x6a3564]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
mov ecx, esi
call fcn.00402fc0
mov edx, dword [0x8189b8]
mov byte [esp + 0x48], bl
mov eax, dword [edx + 0x1bc]
mov ecx, dword [eax + 0x14]
call fcn.0053bd70
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], ebp
call fcn.004031c0
jmp 0x5373a1
dec ecx
push ecx
call fcn.006713a0
add esp, 4
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 8