Function at 0x100ba33
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 0x100bae9
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 0x100ba7a
mov dword [ebp - 4], 0xc000000d
jmp 0x100bbd7
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 0x100baaf
mov dword [ebp - 4], 0xc000009a
jmp 0x100bbd7
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 0x100baf5
push 0x14
mov dword [ebp - 0x10], 1
pop ecx
jmp 0x100bb28
mov dword [ebp - 4], 0xc000000d
jmp 0x100bc27
lea eax, [ebp - 8]
push eax
push ebx
call fcn.010104c7
mov dword [ebp - 4], eax
test eax, eax
jl 0x100bbd7
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 0x100bb16
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 0x100bb2d
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 0x100baa3
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 0x100bb7c
push dword [ebp + 8]
sub eax, ecx
sar eax, 1
inc eax
push eax
lea eax, [edi + 0x18]
push eax
call fcn.01012a9c
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebx], eax
cmp eax, 2
jne 0x100bbca
mov eax, dword [ebp - 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100bbab
push dword [ebp - 8]
sub eax, edx
sar eax, 1
inc eax
push eax
add ebx, 0x14
push ebx
call fcn.01012a9c
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 0x100bbf6
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 0x100bc0d
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 0x100bc26
cmp edi, ebx
je 0x100bc26
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