Function at 0x140013710
Capabilities:
Check for outputdebugstring error
Print debug messages
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14009f080]
xor rax, rsp
mov qword [rsp + 0x40], rax
call fcn.1400128e0
call fcn.14000e730
call fcn.140012bd0
call fcn.140012c70
call fcn.14000e6a0
call fcn.14000db50
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str.leksa
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140013a26
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140013a26
call fcn.14000d1a0
call fcn.14000e620
call fcn.14000e110
xor edi, edi
lea rdx, str.OllyDbg____CPU_
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
mov esi, edi
mov ebx, 1
test rax, rax
cmovne esi, ebx
lea rdx, str.Immunity_Debugger____CPU_
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0x140013a1d
test esi, esi
jne 0x140013a1d
call fcn.140012e60
call fcn.140013270
call fcn.140013320
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x20], dil
lea r8d, [rdi + 0x20]
lea rdx, str.C:WindowsSysWOW64WSTPage64.ax
lea rcx, [rsp + 0x20]
call fcn.14001a780
nop
call fcn.14000b610
call fcn.14000bb40
call fcn.14000b840
call fcn.14000ca30
call fcn.14000c670
call fcn.140003b80
call fcn.1400049f0
call fcn.1400128e0
call fcn.14000e730
call fcn.140012bd0
call fcn.140012c70
call fcn.14000e6a0
call fcn.14000db50
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str.leksa
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140013a07
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140013a07
call fcn.14000d1a0
call fcn.14000e620
call fcn.14000e110
lea rdx, str.OllyDbg____CPU_
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
mov esi, edi
test rax, rax
cmovne esi, ebx
lea rdx, str.Immunity_Debugger____CPU_
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0x1400139fe
test esi, esi
jne 0x1400139fe
call fcn.140012e60
call fcn.140013270
call fcn.14000d1a0
call fcn.140013320
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14000d1a0
call fcn.14000b610
call fcn.14000bb40
call fcn.14000b840
call fcn.14000ca30
call fcn.14000c670
call fcn.140003b80
call fcn.1400049f0
call fcn.1400128e0
call fcn.14000e730
call fcn.140012bd0
call fcn.140012c70
call fcn.14000e6a0
call fcn.14000db50
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str.leksa
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140013a07
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140013a07
call fcn.14000d1a0
call fcn.14000e620
call fcn.14000e110
lea rdx, str.OllyDbg____CPU_
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
cmovne edi, ebx
lea rdx, str.Immunity_Debugger____CPU_
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0x1400139fe
test edi, edi
jne 0x1400139fe
call fcn.140012e60
call fcn.140013270
call fcn.140013320
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1400139e1
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400139dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400139dc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007e7bc
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007e760
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.140002ad0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.140002ad0
mov ebx, 1
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3