Function at 0x1400542d0
Capabilities:
Check for debugger via api
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov dword [rsp + 0x34], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x34]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [rsp + 0x34], 0
jne 0x1400545c1
mov dword [rsp + 0x70], Ordinal_33
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0x38]
mov edx, Ordinal_33
mov rcx, rax
call qword [rsp + 0x80]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140054388
cmp dword [rsp + 0x38], 0
jne 0x140054388
mov dword [rsp + 0x3c], 1
jmp 0x140054390
mov dword [rsp + 0x3c], 0
cmp dword [rsp + 0x3c], 0
jne 0x1400545c1
mov dword [rsp + 0x74], reloc.WLDAP32.dll_Ordinal_30
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x60], 0
mov qword [rsp + 0xc0], 8
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x60]
mov edx, reloc.WLDAP32.dll_Ordinal_30
mov rcx, rax
call qword [rsp + 0x90]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x140054433
cmp qword [rsp + 0x60], 0
je 0x140054433
mov dword [rsp + 0x40], 1
jmp 0x14005443b
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x40], 0
jne 0x1400545c1
mov rax, qword gs:[0x60]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x58], reloc.WS2_32.dll_WSASetLastError
mov dword [rsp + 0x5c], reloc.WS2_32.dll_WSACleanup
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax]
and eax, 0xfffffffd
test eax, eax
jne 0x1400544ce
mov rax, qword [rsp + 0xa8]
cmp dword [rax], 0
jne 0x1400544ce
mov dword [rsp + 0x44], 0
jmp 0x1400544d6
mov dword [rsp + 0x44], 1
movzx eax, byte [rsp + 0x44]
test eax, eax
jne 0x1400545c1
lea rax, [rsp + 0xc8]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_41
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea rdx, [rsp + 0xc8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapWalk]
test eax, eax
jne 0x140054519
mov byte [rsp + 0x30], 0
jmp 0x14005456e
movzx eax, word [rsp + 0xd6]
cmp eax, 4
jne 0x1400544f7
mov eax, dword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
cmp dword [rax], 0xabababab
jne 0x14005455d
mov dword [rsp + 0x48], 1
jmp 0x140054565
mov dword [rsp + 0x48], 0
movzx eax, byte [rsp + 0x48]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x1400545c1
mov rax, qword gs:[0x60]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
cmp byte [rax + 2], 0
je 0x14005459d
mov byte [rsp + 0x31], 1
jmp 0x1400545a2
mov byte [rsp + 0x31], 0
movzx eax, byte [rsp + 0x31]
test eax, eax
jne 0x1400545c1
call fcn.140053e40
movzx eax, al
test eax, eax
jne 0x1400545c1
mov dword [rsp + 0x4c], 0
jmp 0x1400545c9
mov dword [rsp + 0x4c], 1
movzx eax, byte [rsp + 0x4c]
add rsp, 0xf0
pop rdi
ret