Function at 0x180098fe0
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
xor eax, eax
mov esi, r9d
mov dword [rsp + 0x48], eax
mov r13d, eax
mov dword [rsp + 0x38], eax
mov r14d, eax
mov byte [rsp + 0x30], r13b
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov edi, r8d
mov r12, rdx
mov r15, rcx
test rcx, rcx
je 0x18009965c
cmp dword [rcx], 0xbab1e
jne 0x18009965c
cmp byte [rcx + 0x1cb], r13b
je 0x18009905d
mov eax, 8
jmp 0x180099109
test esi, esi
jns 0x18009906b
mov eax, 0xa
jmp 0x180099109
xorps xmm0, xmm0
mov qword [rsp + 0x178], rbx
mov rbx, qword [rcx + 8]
xor eax, eax
mov qword [rbp - 0x70], rax
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
test rbx, rbx
je 0x1800990b2
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180097bc0
add r14d, dword [rbp - 0x78]
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x180099093
mov dword [rsp + 0x48], r14d
lea rdx, [rsp + 0x34]
mov rcx, r15
call fcn.180098ef0
mov eax, dword [rsp + 0x34]
test eax, eax
js 0x1800990d2
cmp eax, esi
cmovl esi, eax
mov dword [rbp + 0xd8], esi
cmp byte [rbp + 0xf0], r13b
lea eax, [r14 + rdi]
lea ecx, [rax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x180099121
shl rcx, 4
call qword [fcn.1800ec4d0]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x18009911c
mov eax, 3
mov rbx, qword [rsp + 0x178]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov byte [rsp + 0x30], 1
xor edx, edx
mov dword [rsp + 0x34], edx
mov esi, edx
test r14d, r14d
je 0x18009923d
mov r12, qword [r15 + 8]
test r12, r12
je 0x180099236
nop
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.180097bc0
xor edx, edx
mov edi, edx
cmp dword [rbp - 0x78], edx
jbe 0x180099222
mov r14, qword [rsp + 0x40]
nop
mov rax, qword [rsp + rdi*8 + 0x60]
mov ebx, esi
inc esi
shl rbx, 4
add rbx, r14
mov dword [rsp + 0x34], esi
mov esi, edx
mov qword [rbx], rax
mov word [rbx + 8], dx
test byte [rbp + rdi - 0x74], 1
je 0x18009918f
mov esi, 0x29
mov word [rbx + 8], 0x300
test byte [rbp + rdi - 0x74], 2
je 0x1800991ef
mov r14, qword [rsp + rdi*8 + 0x60]
lea rax, [rsp + 0x4c]
mov rcx, r14
mov dword [rsp + 0x4c], 4
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1008
or esi, 0x32
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1800991e5
cmp dword [rsp + 0x50], 1
jne 0x1800991e5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
or word [rbx + 8], 0x10
mov r14, qword [rsp + 0x40]
mov rdx, qword [r15 + 0x1b8]
mov r8d, esi
mov rcx, qword [rsp + rdi*8 + 0x60]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x180099349
mov eax, dword [rbp - 0x78]
inc rdi
mov esi, dword [rsp + 0x34]
mov rdx, r13
cmp rdi, rax
jb 0x180099160
mov r12, qword [r12 + 0x10]
test r12, r12
jne 0x180099140
mov edi, dword [rbp + 0xd0]
mov r12, qword [rbp + 0xc8]
mov esi, edi
mov r14, rdx
mov qword [rsp + 0x58], rsi
test edi, edi
je 0x18009937f
lea rbx, [r12 + 8]
movzx edx, word [rbx]
movzx eax, dl
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x29
mov edi, ecx
or edi, 4
test dl, 2
cmove edi, ecx
test dl, 4
je 0x1800992c6
mov rsi, qword [rbx - 8]
lea rax, [rsp + 0x50]
mov rcx, rsi
mov dword [rsp + 0x50], 4
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1008
or edi, 0x32
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1800992c1
cmp dword [rsp + 0x4c], 1
jne 0x1800992c1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x58]
mov rdx, qword [r15 + 0x1b8]
mov r8d, edi
mov rcx, qword [rbx - 8]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x180099363
mov rax, qword [rbx - 8]
xor edx, edx
mov edi, dword [rsp + 0x34]
mov r9, qword [rsp + 0x40]
mov ecx, edi
shl rcx, 4
add rcx, r9
mov qword [rcx], rax
movzx eax, dx
mov word [rcx + 8], dx
test byte [rbx], 1
je 0x180099317
mov r8d, 0x300
mov word [rcx + 8], r8w
mov eax, r8d
test byte [rbx], 2
je 0x180099324
or ax, 0x400
mov word [rcx + 8], ax
test byte [rbx], 4
je 0x180099331
or ax, 0x10
mov word [rcx + 8], ax
inc edi
inc r14
add rbx, 0x10
mov dword [rsp + 0x34], edi
cmp r14, rsi
jb 0x180099254
jmp 0x180099388
cmp byte [rsp + 0x30], r13b
je 0x180099375
mov rcx, r14
call qword [fcn.1800ec4c0]
mov eax, 4
jmp 0x180099101
cmp byte [rsp + 0x30], r13b
je 0x180099375
mov rcx, qword [rsp + 0x40]
call qword [fcn.1800ec4c0]
mov eax, 4
jmp 0x180099101
mov edi, dword [rsp + 0x34]
mov r9, qword [rsp + 0x40]
mov r12, qword [rbp + 0xe0]
test edi, edi
jne 0x1800993a6
movzx ebx, byte [rbp + 0xf0]
test bl, bl
je 0x1800995dc
mov edi, edx
jmp 0x1800993d7
xor r8d, r8d
mov edx, edi
mov rcx, r9
call fcn.1800be6c0
mov edi, eax
test eax, eax
jns 0x1800993c3
mov eax, ntohs
jmp 0x180099101
jle 0x1800993d5
mov r13d, eax
mov dword [rsp + 0x38], eax
lea r14, [r15 + 0x1b8]
jmp 0x1800993fa
xor edx, edx
mov r9d, dword [rbp + 0xd8]
lea r14, [r15 + 0x1b8]
mov dword [rsp + 0x20], edx
xor r8d, r8d
mov rdx, r14
mov ecx, 1
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test rsi, rsi
je 0x180099514
mov rcx, qword [rbp + 0xc8]
mov eax, dword [rsp + 0x48]
shl rax, 4
sub rax, rcx
add rax, qword [rsp + 0x40]
lea rsi, [rcx + 0xa]
mov qword [rsp + 0x50], rax
nop dword [rax]
nop word [rax + rax]
movsx r13d, word [rsi + rax]
lea r8, [rbp - 0x68]
mov r15, qword [rsi - 0xa]
xor eax, eax
mov rcx, r15
mov dword [rbp - 0x68], eax
xor edx, edx
movzx ebx, ax
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x1800994a5
mov r8d, dword [rbp - 0x68]
mov ecx, eax
test r8b, 0x29
setne cl
movzx edx, cx
or dx, 4
test r8b, 0x32
cmove dx, cx
movzx ecx, dx
or cx, 2
test r8b, 4
cmove cx, dx
movzx ebx, cx
test r12, r12
je 0x1800994a5
test edi, edi
jne 0x1800994a5
test r8d, r8d
je 0x1800994a5
inc dword [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
jmp 0x1800994e9
mov rdx, qword [r14]
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test edi, edi
je 0x1800994e9
movzx ecx, bx
or cx, 1
test r13d, 0x300
cmove cx, bx
movzx edx, cx
or dx, 4
test r13b, 0x10
cmove dx, cx
movzx ebx, dx
or bx, 2
bt r13d, 0xa
cmovae bx, dx
mov word [rsi], bx
add rsi, 0x10
sub qword [rsp + 0x58], 1
mov rax, qword [rsp + 0x50]
jne 0x180099430
mov r15, qword [rbp + 0xc0]
mov r13d, dword [rsp + 0x38]
lea r14, [r15 + 0x1b8]
cmp dword [rsp + 0x48], 0
je 0x1800995c8
mov rsi, qword [r15 + 8]
mov qword [rbp + 0xc0], rsi
test rsi, rsi
je 0x1800995c8
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.180097bc0
xor eax, eax
mov ebx, eax
cmp dword [rbp - 0x78], eax
jbe 0x1800995a8
mov esi, dword [rsp + 0x38]
nop dword [rax]
mov rcx, qword [rsp + rbx*8 + 0x60]
lea r8, [rbp - 0x68]
xor edx, edx
mov dword [rbp - 0x68], eax
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x180099578
test r12, r12
je 0x180099578
test edi, edi
jne 0x180099578
cmp dword [rbp - 0x68], edi
je 0x180099578
inc esi
mov rdx, qword [r15 + 0x1b8]
xor r8d, r8d
mov rcx, qword [rsp + rbx*8 + 0x60]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov eax, dword [rbp - 0x78]
inc rbx
cmp rbx, rax
mov eax, 0
jb 0x180099550
mov dword [rsp + 0x38], esi
mov rsi, qword [rbp + 0xc0]
mov rsi, qword [rsi + 0x10]
mov qword [rbp + 0xc0], rsi
test rsi, rsi
jne 0x180099533
mov r13d, dword [rsp + 0x38]
lea r14, [r15 + 0x1b8]
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
mov edi, dword [rsp + 0x34]
movzx ebx, byte [rbp + 0xf0]
cmp byte [rsp + 0x30], 0
je 0x1800995ee
mov rcx, qword [rsp + 0x40]
call qword [fcn.1800ec4c0]
test r12, r12
je 0x1800995f7
mov dword [r12], r13d
cmp byte [rbp + 0xe8], 0
je 0x180099655
test edi, edi
jne 0x180099655
test bl, bl
jne 0x180099655
cmp dword [r15], 0xbab1e
mov dword [rbp + 0xc0], edi
jne 0x180099655
cmp byte [r15 + 0x1cb], bl
jne 0x180099655
lea rdx, [rbp + 0xc0]
mov rcx, r15
call fcn.180098ef0
test eax, eax
jne 0x180099655
mov eax, dword [rbp + 0xc0]
test eax, eax
je 0x180099655
mov ecx, dword [rbp + 0xd8]
cmp eax, ecx
jg 0x18009964b
test eax, eax
jns 0x18009964d
mov eax, ecx
movsxd rcx, eax
call fcn.1800bebb0
xor eax, eax
jmp 0x180099101
mov eax, 1
jmp 0x180099109