Function at 0x14018a980
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov dword [rsp + 0x44], 0xfffffffd
cmp qword [rsp + 0x60], 0
je 0x14018a9c6
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0xe0], 0
jne 0x14018a9c6
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x160], 0
je 0x14018a9e7
cmp dword [rsp + 0x78], 0
jne 0x14018a9dd
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.1403ba8b0
nop
mov eax, 0xfffffffd
jmp 0x14018ac9f
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x100]
call fcn.140160f50
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14018aa26
cmp dword [rsp + 0x78], 0
jne 0x14018aa1c
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.1403ba8b0
nop
mov eax, 0xfffffffd
jmp 0x14018ac9f
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x50], 3
jne 0x14018aaa2
mov r8d, 3
lea rdx, [0x140569e48]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x48]
call fcn.1404104c0
test eax, eax
jne 0x14018aaa2
cmp dword [rsp + 0x70], 0
jle 0x14018aa85
movsxd rax, dword [rsp + 0x70]
mov ecx, dword [rsp + 0x80]
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x78]
mov r8, rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.14018a5d0
mov dword [rsp + 0x44], eax
jmp 0x14018aa9d
cmp dword [rsp + 0x80], 0
je 0x14018aa9d
mov rcx, qword [rsp + 0x60]
call fcn.14018ce50
mov dword [rsp + 0x44], eax
jmp 0x14018ac75
cmp dword [rsp + 0x70], 0
jle 0x14018abe9
mov r9d, 0x748
lea r8, [0x140569e50]
mov edx, 1
mov ecx, reloc.WS2_32.dll_recv
call fcn.1403ba980
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14018ab1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 0xfe
mov r8d, 0x748
lea rdx, [0x140569ea0]
xor ecx, ecx
call fcn.14014da80
mov r8d, 0x748
lea rdx, [0x140569ef0]
lea rcx, [0x140569f38]
call fcn.140015e70
mov ecx, 0xfe
call fcn.14038e600
nop
mov r9d, dword [rsp + 0x70]
lea r8, str._X_r_n
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x38]
call fcn.140015f80
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], 0xfffffffc
movsxd rax, dword [rsp + 0x40]
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.14018a5d0
cmp eax, 0xfffffffc
je 0x14018abca
movsxd rax, dword [rsp + 0x70]
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x78]
mov r8, rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.14018a5d0
cmp eax, 0xfffffffc
je 0x14018abc0
mov dword [rsp + 0x20], 0
mov r9d, 1
mov r8d, 2
lea rdx, [0x140569f64]
mov rcx, qword [rsp + 0x60]
call fcn.14018a5d0
mov dword [rsp + 0x44], eax
jmp 0x14018abc8
mov dword [rsp + 0x44], 0xfffffffc
jmp 0x14018abe9
mov dword [rsp + 0x44], 0xfffffffc
cmp dword [rsp + 0x78], 0
jne 0x14018abe9
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.1403ba8b0
nop
cmp dword [rsp + 0x80], 1
jne 0x14018ac56
cmp dword [rsp + 0x44], 0xfffffffc
je 0x14018ac56
cmp dword [rsp + 0x44], 0xfffffffe
je 0x14018ac56
mov rax, qword [rsp + 0x30]
cmp qword [rax + 8], 4
jne 0x14018ac2b
mov r8d, 4
lea rdx, str.HEAD
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call fcn.14038b300
test eax, eax
je 0x14018ac56
mov dword [rsp + 0x20], 1
mov r9d, 1
mov r8d, 5
lea rdx, str.0_r_n_r_n
mov rcx, qword [rsp + 0x60]
call fcn.14018a5d0
mov dword [rsp + 0x44], eax
jmp 0x14018ac75
cmp dword [rsp + 0x80], 1
jne 0x14018ac75
cmp dword [rsp + 0x44], 0
jl 0x14018ac75
mov rcx, qword [rsp + 0x60]
call fcn.14018ce50
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 1
je 0x14018ac9b
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x120], 0
je 0x14018ac9b
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x120], 0
mov eax, dword [rsp + 0x44]
add rsp, 0x50
pop rdi
ret