Function at 0x7dd75436
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0x28
push 0x7dd75548
call fcn.7dd715c0
xor edi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
call sym.KERNEL32.dll_RegKrnGetGlobalState
mov eax, dword [eax + 0x84]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
cmp eax, 0x80000004
je 0x7ddae12d
cmp eax, 0x80000050
je 0x7dd99fef
cmp eax, 0x80000060
je 0x7dd99fef
cmp dword [ebp + 0x10], edi
jne 0x7ddae09e
mov esi, eax
call sym.KERNEL32.dll_RegKrnGetGlobalState
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp + 8]
push ecx
push esi
call dword [eax + 0xb0]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x7dd7551c
mov ebx, dword [ebp + 0x1c]
mov eax, ebx
shr eax, 1
test bl, 1
jne 0x7dd754da
cmp dword [ebp + 0x14], 1
jne 0x7dd7597d
mov ecx, dword [ebp + 0x18]
cmp ecx, edi
je 0x7dd754da
cmp eax, edi
jbe 0x7dd754da
lea esi, [eax + eax]
lea eax, [ecx + esi]
cmp word [eax - 2], di
jne 0x7dd99f65
cmp dword [ebp + 0xc], edi
jne 0x7dd75953
push dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeStringEx]
cmp eax, edi
jl 0x7ddae0ba
add word [ebp - 0x38], 2
mov eax, dword [ebp + 8]
test al, 1
jne 0x7dd99fe1
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.7dd75327
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
jne 0x7dd99fc6
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
call sym.KERNEL32.dll_RegKrnGetGlobalState
push esi
push edi
call dword [eax + 0xa8]
mov eax, dword [ebp - 0x1c]
call fcn.7dd71605
ret 0x18
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x7dd75959
sub eax, edx
sar eax, 1
add eax, eax
mov word [ebp - 0x38], ax
movzx ecx, ax
cmp eax, ecx
je 0x7dd754e3
jmp 0x7ddae0ae
cmp dword [ebp + 0x14], 2
je 0x7dd754bf
cmp dword [ebp + 0x14], 7
jne 0x7dd754da
jmp 0x7dd754bf
lea ecx, [eax - 2]
xor ecx, eax
test ecx, 0xfffff000
jne 0x7dd754da
cmp word [eax], di
jne 0x7dd754da
mov eax, dword fs:[0x18]
lea edi, [ebx + 2]
push edi
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x7ddae0a5
push esi
push dword [ebp + 0x18]
push ebx
call sub.ntdll.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
mov ebx, edi
mov eax, dword [ebp - 0x20]
mov dword [ebp + 0x18], eax
xor edi, edi
jmp 0x7dd754da
push dword [ebp - 0x20]
push edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x7dd75525
cmp dword [ebp - 0x24], edi
jne 0x7ddae0c6
jmp 0x7dd7551c
call sym.KERNEL32.dll_RegKrnGetGlobalState
jmp 0x7ddae10d
push 0x57
jmp 0x7ddae12f
mov dword [ebp - 0x1c], 8
jmp 0x7ddae106
mov dword [ebp - 0x1c], 0x57
jmp 0x7dd7551c
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x7dd75519
mov dword [ebp - 4], edi
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
lea ecx, [ebp - 0x38]
push ecx
push 0xfffffffffffffffe
pop esi
and eax, esi
push eax
call dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], esi
jmp 0x7dd7551c
xor edi, edi
jmp 0x7dd7551c
mov eax, dword [eax + 0x28]
cmp eax, edi
je 0x7ddae12d
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x7dd7553b
push 6
pop eax
jmp 0x7dd7553b