Function at 0x100bc35
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x100bc59
mov eax, dword [eax]
mov dword [ebp + 8], eax
jmp 0x100bc91
cmp dword [ebp + 8], 0x11000001
jne 0x100bc6b
mov dword [ebp + 8], 0x12000002
jmp 0x100bc91
cmp dword [ebp + 8], 0x21000001
jne 0x100bc7d
mov dword [ebp + 8], 0x22000002
jmp 0x100bc91
cmp dword [ebp + 8], 0x11000043
jne 0x100be8c
mov dword [ebp + 8], 0x12000044
mov edi, dword [ebp + 0xc]
cmp word [edi], 0x5b
jne 0x100bd2b
lea eax, [edi + 2]
push 0x5d
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
mov dword [ebp + 0x10], eax
cmp eax, esi
je 0x100be8c
mov ecx, dword fs:[0x18]
sub eax, edi
sar eax, 1
dec eax
lea edi, [eax + eax]
lea eax, [edi + 2]
push eax
mov eax, dword [ecx + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0x100bcef
mov dword [ebp - 4], 0xc000009a
jmp 0x100be93
push edi
push dword [ebp + 0xc]
push ebx
call sub.msvcrt.dll_memcpy
xor eax, eax
mov word [edi + ebx], ax
mov eax, dword [ebp + 0x10]
mov edi, dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 0xc
add eax, 2
push 0x10015e0
push ebx
mov dword [ebp + 0xc], eax
call edi
pop ecx
pop ecx
test eax, eax
jne 0x100bd37
push 0x14
mov dword [ebp + 0x10], 1
pop ecx
jmp 0x100bd99
mov dword [ebp - 4], 0xc000000d
jmp 0x100bee2
push 0x10015ec
push ebx
call edi
pop ecx
pop ecx
test eax, eax
jne 0x100bd66
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x10], 8
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100bd52
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 0x22]
jmp 0x100bd99
lea eax, [ebp - 8]
push eax
push ebx
call fcn.010104c7
mov dword [ebp - 4], eax
test eax, eax
jl 0x100be93
mov eax, dword [ebp - 8]
push 2
pop esi
mov dword [ebp + 0x10], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, esi
test cx, cx
jne 0x100bd87
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 0x16]
mov eax, dword [ebp + 0xc]
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x100bd9f
sub eax, esi
sar eax, 1
lea edi, [eax + eax + 0x2e]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ebx, [edi + ecx + 0x22]
push ebx
push 0
push dword [eax + 0x18]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x100bce3
push ebx
push 0
push esi
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov dword [esi + 0x1c], eax
add esp, 0xc
and dword [esi + 0x14], 0
mov dword [esi], 8
mov dword [esi + 0x18], 0x22
lea ebx, [esi + edi + 0x22]
mov dword [esi + 0x36], edi
mov edi, dword [ebp + 0xc]
mov eax, edi
mov dword [esi + 0x22], 3
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x100be10
sub eax, ecx
sar eax, 1
inc eax
push edi
push eax
lea eax, [esi + 0x3a]
push eax
call fcn.01012a9c
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebx], eax
cmp eax, 2
jne 0x100be4f
mov eax, dword [ebp - 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100be3d
push dword [ebp - 8]
add ebx, 0x14
jmp 0x100be6e
cmp eax, 8
jne 0x100be7d
mov eax, edi
mov dword [ebx + 0x14], 1
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100be60
push edi
add ebx, 0x20
sub eax, edx
sar eax, 1
inc eax
push eax
push ebx
call fcn.01012a9c
add esp, 0xc
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
jmp 0x100be93
mov dword [ebp - 4], 0xc000000d
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ebx, ebx
cmp dword [ebp - 8], ebx
je 0x100beb2
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call edi
cmp dword [ebp - 0xc], ebx
je 0x100bec9
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call edi
cmp dword [ebp - 4], ebx
jge 0x100bee2
cmp esi, ebx
je 0x100bee2
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14