Function at 0x14016b5f0
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x88], 0
je 0x14016b690
mov rax, qword [rsp + 0x88]
movzx eax, word [rax]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 2
je 0x14016b640
cmp dword [rsp + 0x48], 0x17
je 0x14016b669
jmp 0x14016b690
mov rax, qword [rsp + 0x40]
add rax, 0x280
mov r9d, reloc.WS2_32.dll_recv
mov r8, qword [rsp + 0x88]
mov edx, 0x1c
mov rcx, rax
call fcn.140168c00
nop
jmp 0x14016b690
mov rax, qword [rsp + 0x40]
add rax, 0x280
mov r9d, 0x1c
mov r8, qword [rsp + 0x88]
mov edx, 0x1c
mov rcx, rax
call fcn.140168c00
nop
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x2b8], 0
je 0x14016b6c5
mov edx, 1
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x2b8]
call fcn.1403ba8b0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x2b8], 0
cmp dword [rsp + 0x98], 0
jle 0x14016b7ca
cmp qword [rsp + 0x90], 0
je 0x14016b7ca
mov eax, dword [rsp + 0x98]
inc eax
cdqe
mov r9d, 0x1904
lea r8, [0x140568660]
mov edx, 1
mov rcx, rax
call fcn.1403ba980
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x2b8], rcx
cmp qword [rsp + 0x50], 0
jne 0x14016b76d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 0xfe
mov r8d, 0x1904
lea rdx, [0x1405686b0]
xor ecx, ecx
call fcn.14014da80
mov r8d, 0x1904
lea rdx, [0x140568700]
lea rcx, [0x140568748]
call fcn.140015e70
mov ecx, 0xfe
call fcn.14038e600
nop
movsxd rax, dword [rsp + 0x98]
mov ecx, dword [rsp + 0x98]
inc ecx
movsxd rcx, ecx
mov r9, rax
mov r8, qword [rsp + 0x90]
mov rdx, rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x2b8]
call fcn.140168c00
movsxd rax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x2b8]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x98]
mov dword [rax + 0x2c8], ecx
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x2c0], 0
je 0x14016b821
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x2cc]
mov r8, rax
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x2c0]
call fcn.140410c60
mov edx, 1
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x2c0]
call fcn.1403ba8b0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x2c0], 0
cmp dword [rsp + 0xa8], 0
jle 0x14016b926
cmp qword [rsp + 0xa0], 0
je 0x14016b926
mov eax, dword [rsp + 0xa8]
inc eax
cdqe
mov r9d, 0x1910
lea r8, [0x140568770]
mov edx, 1
mov rcx, rax
call fcn.1403ba980
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x2c0], rcx
cmp qword [rsp + 0x58], 0
jne 0x14016b8c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 0xfe
mov r8d, 0x1910
lea rdx, [0x1405687c0]
xor ecx, ecx
call fcn.14014da80
mov r8d, 0x1910
lea rdx, [0x140568810]
lea rcx, [0x140568858]
call fcn.140015e70
mov ecx, 0xfe
call fcn.14038e600
nop
movsxd rax, dword [rsp + 0xa8]
mov ecx, dword [rsp + 0xa8]
inc ecx
movsxd rcx, ecx
mov r9, rax
mov r8, qword [rsp + 0xa0]
mov rdx, rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x2c0]
call fcn.140168c00
movsxd rax, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x2c0]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0xa8]
mov dword [rax + 0x2cc], ecx
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14016b94b
cmp dword [rsp + 0x60], 1
je 0x14016b992
cmp dword [rsp + 0x60], 2
je 0x14016b9b2
jmp 0x14016b9d0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x2d4], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x2d0], 0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x278]
call fcn.14016e100
test eax, eax
jne 0x14016b990
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x278]
call fcn.140176000
nop
jmp 0x14016b9d0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x2d4], 1
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x2d0], 0
jmp 0x14016b9d0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x2d4], 1
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x2d0], 1
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x2d4], 0
je 0x14016ba5d
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x2b8], 0
je 0x14016ba5d
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x2c0], 0
je 0x14016ba5d
mov rax, qword [rsp + 0x40]
add rax, 0x280
mov qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x2cc]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x2c0]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x40]
mov r9d, dword [rcx + 0x2c8]
mov rcx, qword [rsp + 0x40]
mov r8, qword [rcx + 0x2b8]
mov rdx, rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x278]
call fcn.14016c9a0
nop
add rsp, 0x70
pop rdi
ret