Function at 0x101bf84
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.0101c17e
dec eax
je 0x101bfb9
dec eax
je 0x101bfb2
mov dword [ebp - 4], 0xc00000bb
jmp 0x101c170
call fcn.0101c404
jmp 0x101bfbe
call fcn.0101c3c2
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.0101bce6
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x101c108
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp dword [ebp + 8], ebx
je 0x101c03a
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x101bfe8
sub eax, edx
sar eax, 1
lea esi, [eax + 2]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ecx, [esi + esi]
push ecx
push ebx
push dword [eax + 0x18]
call edi
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x101c021
mov dword [ebp - 4], 0xc000009a
jmp 0x101c105
push dword [ebp - 0xc]
push esi
push ebx
call sub.msvcrt.dll_wcscpy_s
push 0x1020290
push esi
push ebx
call sub.msvcrt.dll_wcscat_s
add esp, 0x18
add dword [ebp - 8], 2
push 0x5c
push dword [ebp - 8]
call sub.msvcrt.dll_wcsrchr
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x101c05c
mov dword [ebp - 4], 0xc000000d
jmp 0x101c105
cmp dword [ebp + 0xc], 0
je 0x101c098
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, ebx
sub esi, dword [ebp - 8]
sar esi, 1
inc esi
lea ecx, [esi + esi]
push ecx
push 0
push dword [eax + 0x18]
call edi
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
je 0x101c015
lea ecx, [esi - 1]
push ecx
push dword [ebp - 8]
push esi
push eax
call sub.msvcrt.dll_wcsncpy_s
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x101c0e1
add ebx, 2
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101c0a6
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ecx, [esi + esi]
push ecx
push 0
push dword [eax + 0x18]
call edi
mov dword [ebp - 0x18], eax
test eax, eax
je 0x101c015
push ebx
push esi
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
mov eax, dword [ebp + 8]
test eax, eax
je 0x101c0ed
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x101c0f9
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x101c105
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
xor ebx, ebx
pop edi
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0xc], ebx
je 0x101c125
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
cmp dword [ebp - 4], ebx
jge 0x101c16f
cmp dword [ebp - 0x10], ebx
je 0x101c141
push dword [ebp - 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
cmp dword [ebp - 0x14], ebx
je 0x101c158
push dword [ebp - 0x14]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
cmp dword [ebp - 0x18], ebx
je 0x101c16f
push dword [ebp - 0x18]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0xc