Function at 0x180065830
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x458
mov qword [rsp + 0x170], 0xfffffffffffffffe
mov rax, qword [0x1800f8370]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov dword [rsp + 0x34], 0
lea rcx, [rsp + 0x1a0]
call fcn.1800197e0
nop
lea rax, [rsp + 0x178]
mov qword [rsp + 0x110], rax
lea rdx, [0x1800fbf38]
mov rcx, qword [rsp + 0x110]
call fcn.180006740
mov qword [rsp + 0x160], rax
mov r9d, 0xfa0
mov r8d, 8
movzx edx, word [0x1800f8070]
mov rcx, qword [rsp + 0x160]
call fcn.18004ae40
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x18006591f
mov byte [rsp + 0x1a0], 0
lea rdx, str.INVALID_SOCKET
lea rcx, [rsp + 0x1a8]
call fcn.18000e3f0
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0x460]
call fcn.180019730
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x1a0]
call fcn.180019c50
mov rax, qword [rsp + 0x460]
jmp 0x180066007
mov dword [rsp + 0x50], 0x7d0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov r8d, 0x1005
mov edx, 0xffff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov r8d, 0x1006
mov edx, 0xffff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_setsockopt]
lea rcx, [rsp + 0x70]
call fcn.18006a670
mov eax, dword [0x1800fc1ec]
mov dword [rsp + 0x76], eax
mov dword [rsp + 0x54], 0xa
xor r9d, r9d
mov r8d, 0xa
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x58], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x30], 0
mov ecx, 0x2000
call fcn.180077a18
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], 0
mov eax, 4
sub eax, dword [rsp + 0x30]
movsxd rcx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
add rdx, rcx
mov rcx, rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jle 0x180065a36
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 4
jne 0x180065a34
jmp 0x180065a36
jmp 0x1800659e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x30], 0
jne 0x180065ab7
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
call fcn.18007dc68
mov byte [rsp + 0x1a0], 0
lea rdx, [0x1800cfc90]
lea rcx, [rsp + 0x1a8]
call fcn.18000e3f0
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0x460]
call fcn.180019730
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x1a0]
call fcn.180019c50
mov rax, qword [rsp + 0x460]
jmp 0x180066007
cmp dword [rsp + 0x30], 4
jge 0x180065b81
mov byte [rsp + 0x1a0], 0
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x2e0]
call fcn.18001db00
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0xa8], rax
mov r8, qword [rsp + 0xa8]
lea rdx, [0x1800cfca0]
lea rcx, [rsp + 0x2c0]
call fcn.18000df20
mov qword [rsp + 0x128], rax
mov rdx, qword [rsp + 0x128]
lea rcx, [rsp + 0x1a8]
call fcn.18000e300
lea rcx, [rsp + 0x2c0]
call fcn.180007220
nop
lea rcx, [rsp + 0x2e0]
call fcn.180007220
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0x460]
call fcn.180019730
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x1a0]
call fcn.180019c50
mov rax, qword [rsp + 0x460]
jmp 0x180066007
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
add eax, 4
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
add rdx, rcx
mov rcx, rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jle 0x180065be8
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x30], eax
jne 0x180065be6
jmp 0x180065be8
jmp 0x180065b8f
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x30], eax
je 0x180065d8b
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0xb8]
call fcn.18007dc68
mov byte [rsp + 0x1a0], 0
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x220]
call fcn.18001db00
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0xf0], rax
mov edx, dword [rsp + 0x3c]
lea rcx, [rsp + 0x360]
call fcn.18001db00
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x148], rax
mov r8, qword [rsp + 0x148]
lea rdx, [0x1800cfcd0]
lea rcx, [rsp + 0x280]
call fcn.18000df20
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x158], rax
lea r8, str._receiveOverSize:
mov rdx, qword [rsp + 0x158]
lea rcx, [rsp + 0x300]
call fcn.180016910
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x130], rax
mov r8, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0x130]
lea rcx, [rsp + 0x320]
call fcn.1800167a0
mov qword [rsp + 0x100], rax
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x1a8]
call fcn.18000e300
lea rcx, [rsp + 0x320]
call fcn.180007220
nop
lea rcx, [rsp + 0x300]
call fcn.180007220
nop
lea rcx, [rsp + 0x280]
call fcn.180007220
nop
lea rcx, [rsp + 0x360]
call fcn.180007220
nop
lea rcx, [rsp + 0x220]
call fcn.180007220
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0x460]
call fcn.180019730
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x1a0]
call fcn.180019c50
mov rax, qword [rsp + 0x460]
jmp 0x180066007
mov ecx, 8
call fcn.180077a18
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x60], rax
xor r9d, r9d
mov r8d, 8
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 8
jl 0x180065ddc
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 4]
mov dword [reloc.WS2_32.dll_accept], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.18007dc68
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_closesocket]
movzx eax, byte [reloc.WS2_32.dll_accept]
test eax, eax
je 0x180065f64
mov edx, dword [0x1800fc1ec]
lea rcx, [rsp + 0x2a0]
call fcn.18001db00
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0xf8], rax
lea rcx, [rsp + 0x260]
call fcn.180062500
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0xe0], rax
lea r8, [0x1800cfd00]
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x240]
call fcn.180016910
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x88], rax
mov r8, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x340]
call fcn.1800167a0
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xa0], rax
lea r8, [0x1800cfccc]
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x200]
call fcn.180016910
nop
lea rcx, [rsp + 0x340]
call fcn.180007220
nop
lea rcx, [rsp + 0x240]
call fcn.180007220
nop
lea rcx, [rsp + 0x260]
call fcn.180007220
nop
lea rcx, [rsp + 0x2a0]
call fcn.180007220
lea rcx, [rsp + 0x200]
call fcn.18000ab90
mov byte [rsp + 0x20], 0
mov r9d, dword [rsp + 0x30]
mov r8, qword [rsp + 0x48]
mov rdx, rax
lea rcx, [rsp + 0x380]
call fcn.1800403c0
lea rcx, [rsp + 0x380]
call fcn.180019c50
nop
lea rcx, [rsp + 0x200]
call fcn.180007220
lea r8, [0x1800fc648]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x3e0]
call fcn.1800655e0
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x1a0]
call fcn.180019d50
nop
lea rcx, [rsp + 0x3e0]
call fcn.180019c50
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xd0]
call fcn.18007dc68
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0x460]
call fcn.180019730
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x1a0]
call fcn.180019c50
mov rax, qword [rsp + 0x460]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.18007e510
add rsp, 0x458
ret