Function at 0x101cff4
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.0101e4b8
dec eax
je 0x101d029
dec eax
je 0x101d022
mov dword [ebp - 4], 0xc00000bb
jmp 0x101d1e0
call fcn.0101e760
jmp 0x101d02e
call fcn.0101e71e
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.0101cd56
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x101d178
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp dword [ebp + 8], ebx
je 0x101d0aa
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x101d058
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 0x101d091
mov dword [ebp - 4], 0xc000009a
jmp 0x101d175
push dword [ebp - 0xc]
push esi
push ebx
call fcn.01012a9c
push 0x1023a84
push esi
push ebx
call fcn.01012a1a
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 0x101d0cc
mov dword [ebp - 4], 0xc000000d
jmp 0x101d175
cmp dword [ebp + 0xc], 0
je 0x101d108
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 0x101d085
lea ecx, [esi - 1]
push ecx
push dword [ebp - 8]
push esi
push eax
call fcn.01012b10
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x101d151
add ebx, 2
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101d116
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 0x101d085
push ebx
push esi
push eax
call fcn.01012a9c
add esp, 0xc
mov eax, dword [ebp + 8]
test eax, eax
je 0x101d15d
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x101d169
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x101d175
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 0x101d195
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 0x101d1df
cmp dword [ebp - 0x10], ebx
je 0x101d1b1
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 0x101d1c8
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 0x101d1df
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