Function at 0x100b903
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp word [esi], 0x5b
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
jne 0x100b9b9
push ebx
lea eax, [esi + 2]
push 0x5d
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
jne 0x100b94a
mov dword [ebp - 4], 0xc000000d
jmp 0x100baa7
mov ecx, dword fs:[0x18]
sub eax, esi
sar eax, 1
dec eax
lea esi, [eax + eax]
lea eax, [esi + 2]
push eax
mov eax, dword [ecx + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0x100b97f
mov dword [ebp - 4], 0xc000009a
jmp 0x100baa7
push esi
push dword [ebp + 8]
push ebx
call sub.msvcrt.dll_memcpy
xor eax, eax
mov word [esi + ebx], ax
mov esi, dword [ebp - 0x10]
add esp, 0xc
push 0x10015e0
add esi, 2
push ebx
mov dword [ebp + 8], esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x100b9c5
push 0x14
mov dword [ebp - 0x10], 1
pop ecx
jmp 0x100b9f8
mov dword [ebp - 4], 0xc000000d
jmp 0x100baf7
lea eax, [ebp - 8]
push eax
push ebx
call fcn.01010398
mov dword [ebp - 4], eax
test eax, eax
jl 0x100baa7
mov eax, dword [ebp - 8]
push 2
pop edi
mov dword [ebp - 0x10], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
test cx, cx
jne 0x100b9e6
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 0x16]
mov eax, esi
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x100b9fd
sub eax, esi
sar eax, 1
lea esi, [eax + eax + 0x2e]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ebx, [esi + ecx]
push ebx
push 0
push dword [eax + 0x18]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
je 0x100b973
push ebx
push 0
push edi
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
lea ebx, [esi + edi]
mov dword [edi + 0x14], esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x100ba4c
push dword [ebp + 8]
sub eax, ecx
sar eax, 1
inc eax
push eax
lea eax, [edi + 0x18]
push eax
call fcn.0101296c
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebx], eax
cmp eax, 2
jne 0x100ba9a
mov eax, dword [ebp - 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100ba7b
push dword [ebp - 8]
sub eax, edx
sar eax, 1
inc eax
push eax
add ebx, 0x14
push ebx
call fcn.0101296c
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ebx, ebx
cmp dword [ebp - 8], ebx
je 0x100bac6
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
cmp dword [ebp - 0xc], ebx
je 0x100badd
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 0x100baf6
cmp edi, ebx
je 0x100baf6
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0xc