Function at 0x101a9c8
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.0101809a
dec eax
je 0x101a9fd
dec eax
je 0x101a9f6
mov dword [ebp - 4], 0xc00000bb
jmp 0x101abb4
call fcn.0101bb5a
jmp 0x101aa02
call fcn.0101bb18
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.0101a72a
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x101ab4c
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp dword [ebp + 8], ebx
je 0x101aa7e
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x101aa2c
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 0x101aa65
mov dword [ebp - 4], 0xc000009a
jmp 0x101ab49
push dword [ebp - 0xc]
push esi
push ebx
call fcn.0100952e
push 0x101fa02
push esi
push ebx
call fcn.010094ac
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 0x101aaa0
mov dword [ebp - 4], 0xc000000d
jmp 0x101ab49
cmp dword [ebp + 0xc], 0
je 0x101aadc
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 0x101aa59
lea ecx, [esi - 1]
push ecx
push dword [ebp - 8]
push esi
push eax
call fcn.010095a2
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x101ab25
add ebx, 2
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101aaea
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 0x101aa59
push ebx
push esi
push eax
call fcn.0100952e
add esp, 0xc
mov eax, dword [ebp + 8]
test eax, eax
je 0x101ab31
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x101ab3d
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x101ab49
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 0x101ab69
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 0x101abb3
cmp dword [ebp - 0x10], ebx
je 0x101ab85
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 0x101ab9c
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 0x101abb3
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