Function at 0x10728c2
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.01072666
dec eax
je 0x10728f7
dec eax
je 0x10728f0
mov dword [ebp - 4], 0xc00000bb
jmp 0x1072aae
call fcn.010774c8
jmp 0x10728fc
call fcn.01077486
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.010725dc
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x1072a46
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp dword [ebp + 8], ebx
je 0x1072978
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1072926
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 0x107295f
mov dword [ebp - 4], 0xc000009a
jmp 0x1072a43
push dword [ebp - 0xc]
push esi
push ebx
call sub.msvcrt.dll_wcscpy_s
push 0x1105672
push esi
push ebx
call sub.msvcrt.dll_wcscat_s
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 0x107299a
mov dword [ebp - 4], 0xc000000d
jmp 0x1072a43
cmp dword [ebp + 0xc], 0
je 0x10729d6
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 0x1072953
lea ecx, [esi - 1]
push ecx
push dword [ebp - 8]
push esi
push eax
call sub.msvcrt.dll_wcsncpy_s
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x1072a1f
add ebx, 2
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10729e4
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 0x1072953
push ebx
push esi
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
mov eax, dword [ebp + 8]
test eax, eax
je 0x1072a2b
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1072a37
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1072a43
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 0x1072a63
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 0x1072aad
cmp dword [ebp - 0x10], ebx
je 0x1072a7f
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 0x1072a96
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 0x1072aad
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