Function at 0x4f3c10
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x594408
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
xor edx, edx
cmp eax, edx
je 0x4f3c6b
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
mov ecx, dword [esi + 0x30]
mov ecx, dword [ecx]
lea ecx, [eax + ecx*2]
cmp eax, ecx
jae 0x4f3c6b
mov eax, dword [esi + 0x30]
dec dword [eax]
mov esi, dword [esi + 0x20]
mov eax, dword [esi]
lea edx, [eax + 2]
mov dword [esi], edx
mov ax, word [eax]
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x54], edx
jne 0x4f3c84
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x10]
push edi
lea edi, [esi + 0x48]
cmp dword [ecx], edi
jne 0x4f3ca5
mov eax, dword [esi + 0x40]
mov edi, dword [esi + 0x3c]
mov dword [ecx], edi
mov ecx, dword [esi + 0x20]
mov dword [ecx], eax
mov ecx, dword [esi + 0x30]
sub eax, eax
sar eax, 1
mov dword [ecx], eax
cmp dword [esi + 0x44], edx
jne 0x4f3cd9
mov esi, dword [esi + 0x54]
push esi
call fcn.0055ba0f
movzx eax, ax
mov edx, 0xffff
add esp, 4
cmp ax, dx
jne 0x4f3dc4
pop edi
mov eax, edx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push ebx
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], edx
mov byte [ebp - 0x34], dl
mov dword [ebp - 4], edx
mov eax, dword [esi + 0x54]
push eax
call fcn.0055c015
add esp, 4
cmp eax, 0xffffffff
je 0x4f3daf
nop
push eax
push 1
lea ecx, [ebp - 0x34]
call fcn.0047bb70
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov edx, eax
cmp ecx, 0x10
jae 0x4f3d1d
lea edx, [ebp - 0x34]
mov eax, edx
add edx, dword [ebp - 0x24]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x18]
push ebx
lea ebx, [ebp - 0xe]
push ebx
lea ebx, [ebp - 0x10]
push ebx
lea ebx, [ebp - 0x14]
push ebx
push edx
mov edx, dword [edi + 0x10]
push eax
lea eax, [esi + 0x4c]
push eax
call edx
test eax, eax
js 0x4f3daf
cmp eax, 1
jle 0x4f3d76
cmp eax, 3
jne 0x4f3daf
cmp dword [ebp - 0x24], 2
jb 0x4f3d9a
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x4f3d60
lea eax, [ebp - 0x34]
push 2
push eax
lea eax, [ebp - 0x10]
push 2
push eax
call fcn.00554d08
add esp, 0x10
jmp 0x4f3e0a
lea eax, [ebp - 0x10]
cmp dword [ebp - 0x18], eax
jne 0x4f3dd4
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x4f3d8a
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
sub ecx, eax
push ecx
push 0
lea ecx, [ebp - 0x34]
call fcn.00403cf0
mov edx, dword [esi + 0x54]
push edx
call fcn.0055c015
add esp, 4
cmp eax, 0xffffffff
jne 0x4f3d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00405be0
mov eax, 0xffff
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x20], 0x10
mov edi, dword [ebp - 0x34]
jae 0x4f3de0
lea edi, [ebp - 0x34]
sub edi, dword [ebp - 0x14]
add edi, dword [ebp - 0x24]
test edi, edi
jle 0x4f3e0a
lea ebx, [ebx]
mov edx, dword [ebp - 0x14]
mov ecx, dword [esi + 0x54]
movsx eax, byte [edi + edx - 1]
dec edi
push ecx
push eax
call fcn.0055bfac
add esp, 8
test edi, edi
jg 0x4f3df0
movzx esi, word [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00405be0
mov ecx, dword [ebp - 0xc]
pop ebx
pop edi
mov ax, si
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret