Function at 0x75dfb99b
Capabilities:
Check for peb beingdebugged flag
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0xc], ecx
or dword [eax], reloc.ntdll.dll_NtClose
mov edx, dword [0x75e50898]
push edi
mov eax, dword [esi + 0x20]
or eax, dword [esi + 0x24]
mov byte [ebp - 5], 0
jne 0x75dfb9c7
xor ecx, ecx
jmp 0x75dfb9d2
mov ecx, dword [esi + 0x20]
sub ecx, dword [edx + reloc.ntdll.dll_NtClose]
add ecx, edx
mov ebx, dword [esi + 0x18]
test ecx, ecx
je 0x75dfbcec
movzx eax, word [ecx + 8]
mov esi, eax
mov word [ebp - 0x2c], ax
mov ax, word [ecx + 0xa]
mov word [ebp - 0x2a], ax
mov eax, dword [ecx + 0x10]
or eax, dword [ecx + 0x14]
jne 0x75dfb9fc
and dword [ebp - 0x28], eax
jmp 0x75dfba08
sub edx, dword [edx + reloc.ntdll.dll_NtClose]
add edx, dword [ecx + 0x10]
mov dword [ebp - 0x28], edx
test si, si
je 0x75dfbcec
push 0
lea eax, [ebp - 0x24]
push eax
call dword [0x75e21ed4]
test ebx, ebx
jns 0x75dfbaae
call dword [0x75e20cf0]
cmp byte [eax + 4], 1
jne 0x75dfba3b
mov eax, 0xc0000022
jmp 0x75dfbcee
lea eax, [ebp - 0x24]
push eax
call dword [0x75e21dd4]
test eax, eax
js 0x75dfbaa3
lea eax, [ebp - 0x24]
mov dword [ebp - 0x64], 0x18
mov dword [ebp - 0x5c], eax
xor ecx, ecx
lea eax, [ebp - 0x64]
mov dword [ebp - 0x60], ecx
push eax
push 0x80000000
lea eax, [ebp - 0x10]
mov dword [ebp - 0x58], 0x40
push eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
call dword [0x75e21df4]
test eax, eax
js 0x75dfba8d
push dword [ebp - 0x10]
call dword [0x75e21e74]
lea esi, [ebp - 0x24]
jmp 0x75dfbaa8
lea eax, [ebp - 0x24]
push eax
call dword [0x75e21e9c]
push 0
lea eax, [ebp - 0x24]
push eax
call dword [0x75e21ed4]
mov esi, 0x75e20c34
test esi, esi
je 0x75dfbac5
jmp 0x75dfbabb
test ebx, 0x40000000
je 0x75dfbac3
mov esi, 0x75e20c3c
movzx eax, word [esi]
add eax, 4
jmp 0x75dfbac8
xor esi, esi
push 2
pop eax
movzx edi, word [ebp - 0x2c]
add edi, eax
mov eax, ebx
and eax, 0x10000000
mov dword [ebp - 0x10], eax
je 0x75dfbae6
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x10]
add eax, 2
add edi, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x75dfbb01
test ebx, 0x20000000
je 0x75dfbb01
movzx eax, word [eax]
mov bl, 1
add eax, 2
add edi, eax
jmp 0x75dfbb03
xor bl, bl
mov eax, dword fs:[0x30]
add edi, 2
push edi
push 0
push dword [eax + 0x18]
call dword [0x75e221e0]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x75dfbb37
lea eax, [ebp - 0x24]
cmp esi, eax
jne 0x75dfbb2d
push eax
call dword [0x75e21e9c]
mov eax, 0xc0000017
jmp 0x75dfbcee
xor eax, eax
mov word [ebp - 0x1a], di
mov word [ebp - 0x1c], ax
mov edi, 0x75e2a638
test esi, esi
je 0x75dfbb6e
push esi
lea eax, [ebp - 0x1c]
push eax
call dword [0x75e21e0c]
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [0x75e21df8]
lea eax, [ebp - 0x24]
cmp esi, eax
jne 0x75dfbb6e
push eax
call dword [0x75e21e9c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [0x75e21e0c]
cmp dword [ebp - 0x10], 0
je 0x75dfbb9e
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [0x75e21df8]
mov eax, dword [ebp - 0xc]
add eax, 0x10
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [0x75e21e0c]
test bl, bl
je 0x75dfbbba
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [0x75e21df8]
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call dword [0x75e21e0c]
xor ecx, ecx
mov dword [ebp - 0x4c], 0x18
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x40], 0xc0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
cmp byte [ebp + 0xc], cl
je 0x75dfbcc0
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x4c]
mov edi, 0x2000f
push eax
push edi
push ebx
call dword [0x75e21fc4]
mov esi, eax
cmp esi, 0xc0000034
jne 0x75dfbcd4
push 0x5c
pop ecx
cmp byte [ebp - 5], 0
jne 0x75dfbcd4
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
movzx eax, ax
shr eax, 1
mov dword [ebp - 0x30], edx
cmp word [edx + eax*2], cx
je 0x75dfbc52
mov cx, word [ebp - 0x34]
push 0x5c
pop edi
mov eax, 0xfffe
add cx, ax
movzx eax, cx
shr eax, 1
mov word [ebp - 0x34], cx
cmp word [edx + eax*2], di
jne 0x75dfbc36
mov edi, 0x2000f
xor ecx, ecx
mov dword [ebp - 0x64], 0x18
lea eax, [ebp - 0x34]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0xc]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x64]
mov dword [ebp - 0x58], 0xc0
push eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], ecx
push eax
mov dword [ebp - 0x50], ecx
call dword [0x75e21fc4]
test eax, eax
js 0x75dfbcd4
push dword [ebp - 0x10]
call dword [0x75e21e74]
lea eax, [ebp - 0x14]
mov byte [ebp - 5], 1
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x4c]
push eax
push edi
push ebx
call dword [0x75e21fc4]
mov esi, eax
push 0x5c
pop ecx
cmp esi, 0xc0000034
je 0x75dfbc0e
jmp 0x75dfbcd4
lea eax, [ebp - 0x4c]
push eax
push 0x80000000
push dword [ebp + 0x10]
call dword [0x75e21df4]
mov esi, eax
push dword [ebp - 0x18]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [0x75e221d0]
mov eax, esi
jmp 0x75dfbcee
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc