Function at 0x1301c670
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x1310e368
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [ecx + 0x20]
mov eax, dword [eax]
xor edx, edx
cmp eax, edx
push esi
mov dword [esp + 0xc], ecx
je 0x1301c6cc
mov eax, dword [ecx + 0x20]
mov esi, dword [ecx + 0x30]
mov eax, dword [eax]
mov esi, dword [esi]
lea esi, [eax + esi*2]
cmp eax, esi
jae 0x1301c6cc
mov eax, dword [ecx + 0x30]
add dword [eax], 0xffffffff
mov eax, dword [ecx + 0x20]
mov ecx, dword [eax]
lea edx, [ecx + 2]
mov dword [eax], edx
mov ax, word [ecx]
pop esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
mov eax, dword [ecx + 0x4c]
cmp eax, edx
jne 0x1301c6e7
or ax, 0xffff
pop esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
cmp dword [ecx + 0x3c], edx
jne 0x1301c71a
push eax
call fcn.13032a75
movzx eax, ax
add esp, 4
cmp ax, 0xffff
movzx eax, ax
jne 0x1301c98e
mov eax, 0xffff
pop esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
push ebx
push ebp
push edi
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], edx
mov byte [esp + 0x34], dl
mov dword [esp + 0x54], edx
mov eax, dword [ecx + 0x4c]
push eax
call fcn.130331ee
add esp, 4
cmp eax, 0xffffffff
je 0x1301c976
push eax
push 1
lea ecx, [esp + 0x38]
call fcn.130061e0
mov edi, dword [esp + 0x48]
cmp edi, 0x10
mov eax, dword [esp + 0x34]
jb 0x1301c8c6
test eax, eax
mov ebx, eax
je 0x1301c78d
cmp edi, 0x10
mov ecx, eax
jae 0x1301c774
lea ecx, [esp + 0x34]
cmp ecx, ebx
ja 0x1301c78d
cmp edi, 0x10
mov ecx, eax
jae 0x1301c783
lea ecx, [esp + 0x34]
mov edx, dword [esp + 0x44]
add ecx, edx
cmp ebx, ecx
jbe 0x1301c79e
call fcn.130311e1
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x30]
cmp ecx, 0xfffffffe
je 0x1301c7c9
cmp edi, 0x10
mov ecx, eax
jae 0x1301c7b2
lea ecx, [esp + 0x34]
add ecx, edx
cmp ebx, ecx
jb 0x1301c7c9
call fcn.130311e1
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
cmp edi, 0x10
mov ebp, edx
jb 0x1301c8cf
test eax, eax
mov esi, eax
je 0x1301c7fa
cmp edi, 0x10
mov ecx, eax
jae 0x1301c7e5
lea ecx, [esp + 0x34]
cmp ecx, esi
ja 0x1301c7fa
cmp edi, 0x10
mov ecx, eax
jae 0x1301c7f4
lea ecx, [esp + 0x34]
add ecx, edx
cmp esi, ecx
jbe 0x1301c80b
call fcn.130311e1
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x30]
cmp ecx, 0xfffffffe
je 0x1301c828
cmp edi, 0x10
jae 0x1301c81d
lea eax, [esp + 0x34]
add eax, edx
cmp esi, eax
jb 0x1301c828
call fcn.130311e1
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x16]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
add ebx, ebp
push ebx
push esi
lea eax, [edi + 0x44]
push eax
call edx
test eax, eax
jl 0x1301c976
cmp eax, 1
jle 0x1301c8d8
cmp eax, 3
jne 0x1301c976
cmp dword [esp + 0x44], 2
jb 0x1301c961
push 2
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x38]
call fcn.1301a220
mov ecx, eax
call fcn.1301c1a0
push eax
lea eax, [esp + 0x18]
push 2
push eax
call fcn.13030fe1
movzx esi, word [esp + 0x20]
add esp, 0x10
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.13004580
pop edi
pop ebp
pop ebx
mov ax, si
pop esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
lea ebx, [esp + 0x34]
jmp 0x1301c769
lea esi, [esp + 0x34]
jmp 0x1301c7da
lea eax, [esp + 0x10]
cmp dword [esp + 0x1c], eax
jne 0x1301c9a7
mov edx, dword [esp + 0x48]
cmp edx, 0x10
mov eax, dword [esp + 0x34]
jb 0x1301c99e
test eax, eax
mov esi, eax
je 0x1301c921
cmp edx, 0x10
mov ecx, eax
jae 0x1301c908
lea ecx, [esp + 0x34]
cmp ecx, esi
ja 0x1301c921
cmp edx, 0x10
mov ecx, eax
jae 0x1301c917
lea ecx, [esp + 0x34]
mov ebx, dword [esp + 0x44]
add ecx, ebx
cmp esi, ecx
jbe 0x1301c92e
call fcn.130311e1
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x30]
cmp ecx, 0xfffffffe
je 0x1301c94f
cmp edx, 0x10
jae 0x1301c940
lea eax, [esp + 0x34]
mov edx, dword [esp + 0x44]
add eax, edx
cmp esi, eax
jb 0x1301c94f
call fcn.130311e1
mov eax, dword [esp + 0x14]
sub eax, esi
push eax
push 0
lea ecx, [esp + 0x38]
call fcn.13004130
mov ecx, dword [edi + 0x4c]
push ecx
call fcn.130331ee
add esp, 4
cmp eax, 0xffffffff
jne 0x1301c746
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.13004580
pop edi
pop ebp
or ax, 0xffff
pop ebx
pop esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
lea esi, [esp + 0x34]
jmp 0x1301c8fd
mov edi, dword [esp + 0x44]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x34]
call fcn.1301a220
mov ecx, eax
call fcn.1301c1a0
sub edi, dword [esp + 0x14]
mov esi, eax
add esi, edi
test esi, esi
jle 0x1301c9f1
lea esp, [esp]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x4c]
mov ecx, dword [esp + 0x14]
movsx edx, byte [esi + ecx - 1]
sub esi, 1
push eax
push edx
call fcn.1303317c
add esp, 8
test esi, esi
jg 0x1301c9d0
movzx esi, word [esp + 0x10]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.13004580
mov ecx, dword [esp + 0x4c]
pop edi
pop ebp
pop ebx
mov ax, si
pop esi
mov dword fs:[0], ecx
add esp, 0x48
ret