Function at 0x417a1c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x28], edx
mov edi, ecx
mov dword [ebp - 0x18], eax
mov ebx, eax
mov dword [ebp - 4], eax
mov esi, eax
mov dword [ebp - 0x10], eax
cmp word [edi], 0x5b
jne 0x417c93
lea eax, [edi + 2]
push 0x5d
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.msvcrt.dll_wcschr]
mov dword [ebp - 0x1c], eax
pop ecx
pop ecx
test eax, eax
je 0x417c93
sub eax, edi
sar eax, 1
dec eax
add eax, eax
mov dword [ebp - 0x14], eax
add eax, 2
push eax
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x417a94
mov esi, 0xc000009a
jmp 0x417c98
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push edi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 0x4053cc
push edi
mov word [eax + edi], cx
mov eax, dword [ebp - 0x1c]
add eax, 2
mov dword [ebp - 0x14], eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 0x14
test eax, eax
jne 0x417ad0
xor edi, edi
inc edi
push 0x14
mov dword [ebp - 0xc], edi
pop edx
jmp 0x417b40
push 4
push 0x405524
push edi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x417b0c
push 9
pop eax
mov dword [ebp - 0xc], eax
lea ecx, [edi + 8]
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x10]
call fcn.0041805c
mov esi, eax
test esi, esi
js 0x417ba3
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
jmp 0x417b43
lea edx, [ebp - 4]
mov ecx, edi
call fcn.0041cce7
mov esi, eax
test esi, esi
js 0x417b86
mov ecx, dword [ebp - 4]
xor ebx, ebx
push 2
pop edi
mov dword [ebp - 0xc], edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x417b2a
sub ecx, edx
sar ecx, 1
lea edx, [ecx*2 + 0x16]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 0x14]
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x18]
jne 0x417b49
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 0x2e]
mov dword [ebp - 0x1c], eax
add eax, edx
push eax
mov dword [ebp - 0x20], eax
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
jne 0x417bf4
mov esi, 0xc000009a
mov edi, dword [ebp - 4]
test edi, edi
je 0x417ba0
push edi
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edi, dword [ebp - 0x24]
mov eax, dword fs:[0x30]
push edi
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x10], edi
je 0x417bce
push dword [ebp - 0x10]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test esi, esi
jns 0x417c98
test ebx, ebx
je 0x417c98
mov eax, dword fs:[0x30]
push ebx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x417c98
push dword [ebp - 0x20]
xor eax, eax
push eax
push ebx
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebx + 0x14], ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x18]
jne 0x417c0f
push dword [ebp - 0x14]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
mov edx, dword [ebp - 0x1c]
add esp, 0xc
add edx, ebx
cmp edi, 9
mov dword [edx], edi
mov edi, dword [ebp - 4]
jne 0x417c50
push dword [ebp - 8]
push dword [ebp - 0x10]
push edx
call sub.msvcrt.dll_memcpy
jmp 0x417c7e
cmp dword [ebp - 0xc], 2
jne 0x417c81
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x18]
jne 0x417c5e
sub ecx, dword [ebp - 0x1c]
sar ecx, 1
push edi
lea eax, [ecx + 1]
push eax
lea eax, [edx + 0x14]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ebx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x417b89
mov esi, 0xc000000d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4