Function at 0x75de08f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x75e50140]
xor eax, esp
mov dword [esp + reloc.ntdll.dll_NtClose], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x3c], ebx
push esi
push edi
test ebx, ebx
je 0x75de0d80
cmp dword [ebx], reloc.ntdll.dll_NtClose
jne 0x75de0d80
mov ecx, dword [0x75e50a04]
test ecx, ecx
jne 0x75de0d36
cmp dword [0x75e50a00], ecx
jne 0x75de0993
mov eax, dword fs:[0x30]
push 0x18
push ecx
push dword [eax + 0x18]
call dword [0x75e221e0]
mov esi, eax
test esi, esi
jne 0x75de0962
mov esi, 0xc000009a
jmp 0x75de0d26
push esi
call dword [0x75e2199c]
mov ecx, esi
mov edx, 0x75e50a00
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x75de0993
push esi
call dword [0x75e219a0]
mov eax, dword fs:[0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [0x75e221d0]
push dword [0x75e50a00]
call dword [0x75e219a4]
cmp dword [0x75e50a04], 0
jne 0x75de0d14
call fcn.75db5ebd
mov esi, eax
test esi, esi
js 0x75de0d16
cmp dword [0x75e50a04], 0
jne 0x75de09ce
mov esi, 0xc0000001
jmp 0x75de0d16
mov eax, dword fs:[0x30]
mov ecx, dword [eax + reloc.ntdll.dll_NtClose]
test ecx, ecx
je 0x75de09fe
mov eax, dword [0x75e50a04]
mov eax, dword [eax + 4]
mov dword [ecx + reloc.ntdll.dll_NtClose], eax
mov eax, dword [0x75e50a04]
cdq
mov dword [ecx + reloc.ntdll.dll_NtClose], eax
mov dword [ecx + reloc.ntdll.dll_NtClose], edx
push 0x75e509f8
xor esi, esi
push esi
push esi
push 0x75e23fc0
call dword [0x75e21cd4]
mov ebx, 0x75e23fb0
test eax, eax
js 0x75de0a33
push ebx
push dword [0x75e509fc]
push dword [0x75e509f8]
call dword [0x75e21cd0]
movzx eax, al
jmp 0x75de0a41
mov dword [0x75e509f8], esi
mov eax, esi
mov dword [0x75e509fc], esi
mov dword [0x75e5099c], eax
lea edi, [esp + 0x14]
mov eax, dword [0x75e50a04]
mov dword [esp + 0x40], eax
xor eax, eax
push 6
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword fs:[0x30]
cmp byte [eax + 2], 0
jne 0x75de0a88
push ebx
push dword [0x75e509fc]
push dword [0x75e509f8]
call dword [0x75e21cd0]
test al, al
jne 0x75de0a88
mov dword [0x75e50998], esi
jmp 0x75de0cf5
lea eax, [esp + 0x48]
mov dword [0x75e50998], 1
push eax
lea eax, [esp + 0x34]
mov edi, 0x104
push eax
mov dword [esp + 0x38], edi
call dword [0x75e20d9c]
test eax, eax
js 0x75de0ab6
cmp word [esp + 0x48], si
jne 0x75de0acf
push edi
lea eax, [esp + 0x4c]
mov dword [esp + 0x34], edi
push eax
push esi
call dword [0x75e213cc]
test eax, eax
je 0x75de0cf5
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
push eax
push esi
push esi
push 8
lea eax, [esp + 0x58]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsQuirks
push 0x80000001
call dword [0x75e21914]
test eax, eax
jne 0x75de0cf5
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x75de0cf5
mov eax, dword fs:[0x30]
mov edi, dword [eax + 0x18]
test edi, edi
jne 0x75de0b22
call dword [0x75e212e4]
mov ecx, dword [esp + 0xc]
mov edi, eax
mov dword [esp + 0x14], edi
mov ebx, esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], esi
test ecx, ecx
je 0x75de0baa
lea eax, [esp + 0x2c]
mov edx, 0x3ff
push eax
call fcn.75db9942
test eax, eax
jns 0x75de0b4e
mov ebx, 0x8000000b
jmp 0x75de0b8b
mov eax, dword [esp + 0x2c]
and eax, 0xfffffc00
push eax
push 0
push edi
mov dword [esp + 0x38], eax
call dword [0x75e21314]
mov dword [esp + 0xc], eax
test eax, eax
je 0x75de0b86
push dword [esp + 0x2c]
push 0
push eax
call fcn.75dc7439
mov esi, dword [esp + 0x18]
add esp, 0xc
mov dword [esp + 0x28], esi
jmp 0x75de0baa
mov ebx, 0x8007000e
push 6
xor eax, eax
lea edi, [esp + 0x18]
pop ecx
rep stosd dword es:[edi], eax
test ebx, ebx
js 0x75de0cf5
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 8
lea eax, [esp + 0x58]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsQuirks
push 0x80000001
call dword [0x75e21914]
test eax, eax
jne 0x75de0cfd
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x10], eax
jne 0x75de0cfd
cmp ebx, eax
ja 0x75de0cfd
lea eax, [esp + 0x34]
mov ecx, ebx
push eax
push 4
pop edx
call fcn.75db9942
test eax, eax
js 0x75de0cfd
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x34], eax
ja 0x75de0cfd
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
push 4
pop edx
call fcn.75db9942
test eax, eax
js 0x75de0cf5
cmp dword [ebx + esi], reloc.ntdll.dll_NtClose
jne 0x75de0cf5
jmp 0x75de0ce5
lea eax, [esp + 0x38]
mov ecx, esi
push eax
push 4
pop edx
call fcn.75db9942
test eax, eax
js 0x75de0cf5
cmp dword [esp + 0x38], edi
ja 0x75de0cf5
mov eax, dword [esp + 0x28]
mov ecx, esi
mov ebx, dword [esi + eax]
lea eax, [esp + 0x24]
push eax
push 4
pop edx
call fcn.75db9942
test eax, eax
js 0x75de0cf5
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
cmp esi, edi
ja 0x75de0cf5
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
push 4
pop edx
call fcn.75db9942
test eax, eax
js 0x75de0cf5
cmp dword [esp + 0x3c], edi
ja 0x75de0cf5
mov eax, dword [esp + 0x28]
mov ecx, esi
mov edi, dword [esi + eax]
lea eax, [esp + 0x24]
push eax
push 4
pop edx
call fcn.75db9942
test eax, eax
js 0x75de0cf5
mov ecx, dword [esp + 0x40]
mov edx, ebx
call fcn.75de1bd5
test eax, eax
je 0x75de0cf5
mov ecx, dword [eax + reloc.ntdll.dll_NtClose]
and ecx, 0xfffffffc
test edi, edi
je 0x75de0cdc
or ecx, 1
jmp 0x75de0cdf
or ecx, 2
mov dword [eax + reloc.ntdll.dll_NtClose], ecx
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
cmp esi, edi
jb 0x75de0c41
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
test esi, esi
je 0x75de0d0b
push esi
push 0
push edi
call dword [0x75e212e0]
call fcn.75db5f22
mov ebx, dword [esp + 0x44]
xor esi, esi
push dword [0x75e50a00]
call dword [0x75e219a8]
test esi, esi
jns 0x75de0d30
or esi, 0x10000000
mov eax, esi
jmp 0x75de0d85
mov ecx, dword [0x75e50a04]
mov edi, dword [ebp + 8]
mov edx, edi
call fcn.75de1bd5
mov esi, eax
test esi, esi
jne 0x75de0d4d
mov eax, 0x80070490
jmp 0x75de0d85
mov dword [ebx + 4], edi
lea ecx, [ebx + 8]
mov edi, 0x80
push esi
mov edx, edi
call fcn.75dcf1ae
test eax, eax
js 0x75de0d85
lea eax, reloc.ntdll.dll_NtClose
mov edx, edi
push eax
lea ecx, reloc.ntdll.dll_NtClose
call fcn.75dcf1ae
test eax, eax
js 0x75de0d85
xor eax, eax
jmp 0x75de0d85
mov eax, 0x80070057
mov ecx, dword [esp + reloc.ntdll.dll_NtClose]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.75dbdd75
mov esp, ebp
pop ebp
ret 8