Function at 0x1015a20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x1038008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x28], 0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x48], ebx
test eax, eax
jne 0x1015a5e
mov eax, 0xc0000001
jmp 0x1015daa
push 1
push dword [ebp + 0x1c]
push eax
call fcn.0101509c
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1015a54
mov cx, word [ebp + 0xc]
xor edx, edx
cmp word [esi], 0x20
push edi
mov edi, esi
je 0x1015a93
mov ax, cx
shr ax, 1
cmp dx, ax
jae 0x1015a93
inc edi
inc edi
inc edx
cmp word [edi], 0x20
jne 0x1015a85
shr cx, 1
movzx eax, dx
cmp dx, cx
jae 0x1015aac
cmp word [edi], 0x20
jne 0x1015aac
inc edi
inc edi
inc eax
cmp ax, cx
jb 0x1015a9e
sub ecx, eax
movzx eax, cx
mov dword [ebp - 0x38], eax
lea eax, [edx + edx]
push eax
push esi
push dword [ebp - 0x24]
mov dword [ebp - 0x30], edi
call fcn.0101515e
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
jne 0x1015ad7
mov eax, 0xc0000001
jmp 0x1015da9
mov eax, dword fs:[0x18]
mov ecx, dword [ebp - 0x34]
movzx ecx, word [ecx]
mov eax, dword [eax + 0x30]
push ecx
push dword [0x1038030]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x1015b07
mov eax, 0xc0000017
jmp 0x1015da9
and dword [ebp - 0x1c], 0
xor edi, edi
inc edi
mov dword [ebx], edi
mov dx, word [esi + 0xa]
mov eax, dword [esi + 0x10]
shr dx, 1
mov ecx, edi
mov dword [ebp - 0x24], eax
cmp cx, dx
jae 0x1015b6d
mov ebx, edi
cmp word [eax], 0x24
jne 0x1015b65
lea esi, [eax + 2]
movzx ecx, word [esi]
cmp cx, 0x31
jb 0x1015b52
cmp cx, 0x39
ja 0x1015b52
add ecx, 0xffffffd0
movzx eax, cx
cmp ax, word [ebp - 0x1c]
jbe 0x1015b62
movzx eax, ax
mov dword [ebp - 0x1c], eax
jmp 0x1015b62
cmp cx, 0x2a
jne 0x1015b65
cmp word [ebp - 0x1c], 0
jne 0x1015b62
mov dword [ebp - 0x1c], edi
inc ebx
mov eax, esi
inc eax
inc eax
inc ebx
cmp bx, dx
jb 0x1015b26
mov ecx, dword [ebp - 0x30]
xor esi, esi
mov dword [ebp - 0x20], esi
xor eax, eax
jmp 0x1015bbf
mov edi, dword [ebp - 0x38]
cmp si, di
jae 0x1015bc5
movzx eax, word [ebp - 0x20]
mov dword [ebp + eax*4 - 0x70], ecx
lea eax, [ebp + eax*2 - 0x18]
xor ebx, ebx
mov word [eax], bx
mov bx, word [ecx]
inc esi
inc ecx
inc ecx
cmp bx, 0x20
je 0x1015bb3
add word [eax], 2
cmp si, di
jb 0x1015b92
inc esi
jmp 0x1015bb3
cmp word [ecx], 0x20
jne 0x1015bb8
inc esi
inc ecx
inc ecx
cmp si, di
jb 0x1015baa
inc dword [ebp - 0x20]
mov ax, word [ebp - 0x20]
cmp ax, word [ebp - 0x1c]
jb 0x1015b79
and dword [ebp - 0x2c], 0
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x24]
xor eax, eax
push 4
pop edi
cmp ax, dx
jae 0x1015d69
mov dword [ebp - 0x1c], 1
mov ebx, dword [ebp - 0x34]
movzx eax, word [ebx]
mov dword [ebp - 0x30], eax
cmp di, ax
jae 0x1015d5f
movzx eax, word [ecx]
cmp ax, 0x24
jne 0x1015d3b
cmp word [ebp - 0x1c], dx
jae 0x1015d3b
push 2
pop edx
add ecx, edx
movzx eax, word [ecx]
inc dword [ebp - 0x2c]
inc dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
cmp ax, 0x31
jb 0x1015c7b
cmp ax, 0x39
ja 0x1015c7b
add eax, 0xffffffcf
movzx eax, ax
cmp ax, word [ebp - 0x20]
jae 0x1015d37
movzx eax, ax
movzx edx, word [ebp + eax*2 - 0x18]
movzx ebx, dx
movzx ecx, di
mov dword [ebp - 0x4c], edx
movzx edx, word [ebp - 0x30]
add ecx, ebx
cmp ecx, edx
jg 0x1015d62
push ebx
push dword [ebp + eax*4 - 0x70]
push esi
call dword [sym.imp.msvcrt.dll_memmove]
shr ebx, 1
add esp, 0xc
add edi, dword [ebp - 0x4c]
lea esi, [esi + ebx*2]
mov ecx, dword [ebp - 0x24]
push 2
pop edx
jmp 0x1015d37
cmp ax, 0x2a
jne 0x1015cb6
cmp word [ebp - 0x20], 0
je 0x1015d37
mov eax, dword [ebp - 0x38]
lea ebx, [edi + eax*2]
cmp bx, word [ebp - 0x30]
ja 0x1015d62
movzx edi, ax
add edi, edi
push edi
push dword [ebp - 0x70]
push esi
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
add esi, edi
movzx edi, bx
jmp 0x1015c70
cmp ax, 0x6c
je 0x1015d2d
cmp ax, 0x4c
je 0x1015d2d
cmp ax, 0x67
je 0x1015d29
cmp ax, 0x47
je 0x1015d29
cmp ax, 0x62
je 0x1015d25
cmp ax, 0x42
je 0x1015d25
cmp ax, 0x74
je 0x1015cfb
cmp ax, 0x54
je 0x1015cfb
push 0x24
pop eax
mov word [esi], ax
mov ax, word [ecx]
add esi, edx
mov word [esi], ax
add esi, edx
add edi, 4
jmp 0x1015d37
add edi, 4
cmp di, word [ebp - 0x30]
jbe 0x1015d0b
mov dword [ebp - 0x28], 0xc0000023
mov eax, dword [ebp - 0x48]
inc dword [eax]
push 0xd
pop eax
mov word [esi], ax
push 0xa
add esi, edx
pop eax
mov word [esi], ax
add esi, edx
movzx edi, di
jmp 0x1015d37
push 0x7c
jmp 0x1015d2f
push 0x3e
jmp 0x1015d2f
push 0x3c
pop eax
mov word [esi], ax
add esi, edx
add edi, edx
add ecx, edx
jmp 0x1015d44
mov word [esi], ax
inc esi
inc esi
inc ecx
inc ecx
inc edi
inc edi
mov eax, dword [ebp - 0x40]
mov dx, word [eax + 0xa]
inc dword [ebp - 0x2c]
inc dword [ebp - 0x1c]
shr dx, 1
cmp word [ebp - 0x2c], dx
jae 0x1015d69
jmp 0x1015be4
mov word [ebx], di
mov dword [ebp - 0x28], 0xc0000023
push 0xd
pop eax
push 0xa
mov word [esi], ax
pop eax
mov word [esi + 2], ax
movzx eax, di
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x44]
call dword [sym.imp.msvcrt.dll_memmove]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
add esp, 0xc
push dword [ebp - 0x3c]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0x34]
mov word [eax], di
mov eax, dword [ebp - 0x28]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100158a
leave
ret 0x1c