Function at 0x101cec4
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.0101e388
dec eax
je 0x101cef9
dec eax
je 0x101cef2
mov dword [ebp - 4], 0xc00000bb
jmp 0x101d0b0
call fcn.0101e630
jmp 0x101cefe
call fcn.0101e5ee
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.0101cc26
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x101d048
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp dword [ebp + 8], ebx
je 0x101cf7a
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x101cf28
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 0x101cf61
mov dword [ebp - 4], 0xc000009a
jmp 0x101d045
push dword [ebp - 0xc]
push esi
push ebx
call fcn.0101296c
push 0x1023930
push esi
push ebx
call fcn.010128ea
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 0x101cf9c
mov dword [ebp - 4], 0xc000000d
jmp 0x101d045
cmp dword [ebp + 0xc], 0
je 0x101cfd8
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 0x101cf55
lea ecx, [esi - 1]
push ecx
push dword [ebp - 8]
push esi
push eax
call fcn.010129e0
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x101d021
add ebx, 2
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101cfe6
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 0x101cf55
push ebx
push esi
push eax
call fcn.0101296c
add esp, 0xc
mov eax, dword [ebp + 8]
test eax, eax
je 0x101d02d
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x101d039
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x101d045
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 0x101d065
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 0x101d0af
cmp dword [ebp - 0x10], ebx
je 0x101d081
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 0x101d098
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 0x101d0af
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