Function at 0x14005a1d0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x940
mov rax, qword [0x140128218]
xor rax, rsp
mov qword [rsp + 0x930], rax
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x21]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x20]
movzx r8d, byte [rsp + 0x21]
movzx edx, byte [rsp + 0x38]
lea rcx, [rsp + 0x1f0]
call fcn.14005aef0
mov rcx, rax
call fcn.140064e20
mov rdx, rax
lea rcx, [rsp + 0x460]
call fcn.14006ac80
nop
lea rcx, [rsp + 0x460]
call fcn.140069180
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x460]
call fcn.1400596c0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x950]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14005a2bc
mov byte [rsp + 0x22], 0
lea rcx, [rsp + 0x460]
call fcn.14006ab00
movzx eax, byte [rsp + 0x22]
jmp 0x14005aecd
mov dword [rsp + 0x58], 0x400
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rsp + 0x530]
mov rax, qword [rsp + 0x950]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14005a348
mov r8d, 6
lea rdx, [rsp + 0x530]
lea rcx, [rsp + 0x220]
call fcn.14005af20
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rdx, str.error_
mov rcx, qword [rsp + 0x80]
call fcn.140078250
movzx eax, al
test eax, eax
jne 0x14005a348
mov dword [rsp + 0x40], 0
jmp 0x14005a350
mov dword [rsp + 0x40], 1
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x23], al
mov eax, dword [rsp + 0x30]
and eax, 1
test eax, eax
je 0x14005a376
and dword [rsp + 0x30], 0xfffffffe
lea rcx, [rsp + 0x220]
call fcn.14006ab00
movzx eax, byte [rsp + 0x23]
test eax, eax
je 0x14005a39b
mov byte [rsp + 0x24], 0
lea rcx, [rsp + 0x460]
call fcn.14006ab00
movzx eax, byte [rsp + 0x24]
jmp 0x14005aecd
mov dword [rsp + 0x34], 0
xor eax, eax
cmp eax, 1
je 0x14005a3f8
movsxd rax, dword [rsp + 0x34]
movsx eax, byte [rsp + rax + 0x530]
cmp eax, 0x5d
jne 0x14005a3be
jmp 0x14005a3f8
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x48], 0x400
jne 0x14005a3f6
mov byte [rsp + 0x25], 0
lea rcx, [rsp + 0x460]
call fcn.14006ab00
movzx eax, byte [rsp + 0x25]
jmp 0x14005aecd
jmp 0x14005a3a3
movsxd rax, dword [rsp + 0x34]
mov r8, rax
lea rdx, [rsp + 0x530]
lea rcx, [rsp + 0x4c0]
call fcn.14005af20
nop
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x240]
call fcn.140052bf0
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x950]
add rax, 0x28
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call fcn.14006ab30
nop
lea rcx, [rsp + 0x240]
call fcn.14006ab00
lea rcx, [rsp + 0x260]
call fcn.140052d40
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x950]
add rax, 0x48
mov rdx, qword [rsp + 0xa0]
mov rcx, rax
call fcn.14006ab30
nop
lea rcx, [rsp + 0x260]
call fcn.14006ab00
mov rax, qword [rsp + 0x950]
add rax, 0x28
lea r8, [0x14010c030]
mov rdx, rax
lea rcx, [rsp + 0x280]
call fcn.140076ee0
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x950]
add rax, 0x48
mov r8, rax
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x480]
call fcn.1400770d0
nop
lea rcx, [rsp + 0x280]
call fcn.14006ab00
lea r8, [rsp + 0x4c0]
lea rdx, [rsp + 0x480]
lea rcx, [rsp + 0x200]
call fcn.140051f00
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x2c0]
call fcn.140051c80
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
lea r8, [0x14010c1fc]
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x2a0]
call fcn.140076fb0
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x480]
call fcn.14006ab30
nop
lea rcx, [rsp + 0x2a0]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x2c0]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x200]
call fcn.14006ab00
lea rcx, [rsp + 0x480]
call fcn.140069180
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x480]
call fcn.1400596c0
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x950]
mov rax, qword [rax]
mov qword [rsp + 0xf0], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x4c]
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14005a68f
mov byte [rsp + 0x26], 0
lea rcx, [rsp + 0x480]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x4c0]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x460]
call fcn.14006ab00
movzx eax, byte [rsp + 0x26]
jmp 0x14005aecd
xor r9d, r9d
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x520]
mov rax, qword [rsp + 0x950]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x14005a6ee
mov byte [rsp + 0x27], 0
lea rcx, [rsp + 0x480]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x4c0]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x460]
call fcn.14006ab00
movzx eax, byte [rsp + 0x27]
jmp 0x14005aecd
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x520]
lea rcx, [rsp + 0x300]
call fcn.14005af20
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x950]
add rax, 0x48
mov rcx, qword [rsp + 0x950]
add rcx, 0x28
mov r9, rax
mov r8, rcx
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x2e0]
call fcn.140052960
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x110], rax
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x110]
call fcn.14004bdb0
mov dword [rsp + 0x3c], eax
lea rcx, [rsp + 0x2e0]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x300]
call fcn.14006ab00
mov edx, 8
lea rcx, [rsp + 0x440]
call fcn.140005a40
movsxd rax, dword [rsp + 0x3c]
mov rdx, rax
lea rcx, [rsp + 0x440]
call fcn.140077d30
nop
lea rcx, [rsp + 0x440]
call fcn.140021450
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x950]
mov rax, qword [rax]
mov qword [rsp + 0x120], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x14005a859
mov byte [rsp + 0x28], 0
lea rcx, [rsp + 0x440]
call fcn.140066500
nop
lea rcx, [rsp + 0x480]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x4c0]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x460]
call fcn.14006ab00
movzx eax, byte [rsp + 0x28]
jmp 0x14005aecd
movsxd rax, dword [rsp + 0x3c]
mov qword [rsp + 0x128], rax
lea rcx, [rsp + 0x440]
call fcn.140021450
mov rcx, qword [rsp + 0x128]
mov r8, rcx
mov rdx, rax
lea rcx, [rsp + 0x500]
call fcn.14005af20
nop
mov edx, 0x18
lea rcx, [rsp + 0x448]
call fcn.140005a40
mov rax, qword [rsp + 0x950]
add rax, 0x48
mov rcx, qword [rsp + 0x950]
add rcx, 0x28
mov r9, rax
mov r8, rcx
lea rdx, [rsp + 0x500]
lea rcx, [rsp + 0x320]
call fcn.140052960
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x138], rax
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0x448]
call fcn.140056760
nop
lea rcx, [rsp + 0x320]
call fcn.14006ab00
lea rcx, [rsp + 0x448]
call fcn.140066720
cmp rax, 3
jne 0x14005a962
mov edx, 1
lea rcx, [rsp + 0x448]
call fcn.14005e120
mov rcx, rax
call fcn.140069180
cmp rax, 0x10
jb 0x14005a962
mov edx, 1
lea rcx, [rsp + 0x448]
call fcn.14005e120
mov rcx, rax
call fcn.140069180
cmp rax, 0x20
jbe 0x14005a9c4
mov byte [rsp + 0x29], 0
lea rcx, [rsp + 0x448]
call fcn.140066780
nop
lea rcx, [rsp + 0x500]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x440]
call fcn.140066500
nop
lea rcx, [rsp + 0x480]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x4c0]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x460]
call fcn.14006ab00
movzx eax, byte [rsp + 0x29]
jmp 0x14005aecd
mov edx, 1
lea rcx, [rsp + 0x448]
call fcn.14005e120
mov rcx, qword [rsp + 0x950]
add rcx, 8
mov rdx, rax
call fcn.14006aa60
mov edx, 0x20
mov ecx, reloc.WS2_32.dll_recv
call fcn.140054b50
cdqe
mov rdx, rax
lea rcx, [rsp + 0x3e0]
call fcn.140054bb0
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x1a0], rax
mov edx, 0x20
mov ecx, reloc.WS2_32.dll_recv
call fcn.140054b50
cdqe
mov rdx, rax
lea rcx, [rsp + 0x3c0]
call fcn.140054bb0
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x158], rax
lea r8, [0x14010c030]
mov rdx, qword [rsp + 0x158]
lea rcx, [rsp + 0x3a0]
call fcn.140076fb0
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x168], rax
lea r8, str.handshake_success_
mov rdx, qword [rsp + 0x168]
lea rcx, [rsp + 0x380]
call fcn.140076fb0
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x950]
add rax, 8
mov r8, rax
mov rdx, qword [rsp + 0x178]
lea rcx, [rsp + 0x360]
call fcn.1400770d0
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x188], rax
lea r8, [0x14010c030]
mov rdx, qword [rsp + 0x188]
lea rcx, [rsp + 0x340]
call fcn.140076fb0
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x1a8], rax
mov r8, qword [rsp + 0x1a0]
mov rdx, qword [rsp + 0x1a8]
lea rcx, [rsp + 0x4a0]
call fcn.140077120
nop
lea rcx, [rsp + 0x340]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x360]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x380]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x3a0]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x3c0]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x3e0]
call fcn.14006ab00
mov rax, qword [rsp + 0x950]
add rax, 0x48
mov rcx, qword [rsp + 0x950]
add rcx, 0x28
mov r9, rax
mov r8, rcx
lea rdx, [rsp + 0x4a0]
lea rcx, [rsp + 0x400]
call fcn.140052570
mov qword [rsp + 0x1b0], rax
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0x1b8], rax
mov rdx, qword [rsp + 0x1b8]
lea rcx, [rsp + 0x4a0]
call fcn.14006ab30
nop
lea rcx, [rsp + 0x400]
call fcn.14006ab00
lea rcx, [rsp + 0x4a0]
call fcn.140069180
mov rdx, rax
lea rcx, [rsp + 0x420]
call fcn.14004bec0
mov qword [rsp + 0x1c0], rax
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x1c8], rax
mov rax, qword [rsp + 0x950]
add rax, 0x48
mov rcx, qword [rsp + 0x950]
add rcx, 0x28
mov r9, rax
mov r8, rcx
mov rdx, qword [rsp + 0x1c8]
lea rcx, [rsp + 0x4e0]
call fcn.140052570
nop
lea rcx, [rsp + 0x420]
call fcn.14006ab00
lea rcx, [rsp + 0x4e0]
call fcn.140069180
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x4e0]
call fcn.1400596c0
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x950]
mov rax, qword [rax]
mov qword [rsp + 0x1d8], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1d8]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14005ad83
mov byte [rsp + 0x2a], 0
lea rcx, [rsp + 0x4e0]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x4a0]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x448]
call fcn.140066780
nop
lea rcx, [rsp + 0x500]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x440]
call fcn.140066500
nop
lea rcx, [rsp + 0x480]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x4c0]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x460]
call fcn.14006ab00
movzx eax, byte [rsp + 0x2a]
jmp 0x14005aecd
lea rcx, [rsp + 0x4a0]
call fcn.140069180
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x4a0]
call fcn.1400596c0
mov qword [rsp + 0x1e0], rax
mov rax, qword [rsp + 0x950]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14005ae54
mov byte [rsp + 0x2b], 0
lea rcx, [rsp + 0x4e0]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x4a0]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x448]
call fcn.140066780
nop
lea rcx, [rsp + 0x500]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x440]
call fcn.140066500
nop
lea rcx, [rsp + 0x480]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x4c0]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x460]
call fcn.14006ab00
movzx eax, byte [rsp + 0x2b]
jmp 0x14005aecd
mov byte [rsp + 0x2c], 1
lea rcx, [rsp + 0x4e0]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x4a0]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x448]
call fcn.140066780
nop
lea rcx, [rsp + 0x500]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x440]
call fcn.140066500
nop
lea rcx, [rsp + 0x480]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x4c0]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x460]
call fcn.14006ab00
movzx eax, byte [rsp + 0x2c]
mov rcx, qword [rsp + 0x930]
xor rcx, rsp
call fcn.1400afe40
add rsp, 0x940
pop rdi
ret