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

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x14007c040]
xor rax, rsp
mov qword [rbp + 0x60], rax
xor r13d, r13d
lea r14, [rbp - 0x40]
mov dword [rsp + 0x34], r13d
mov esi, r13d
mov byte [rsp + 0x30], sil
mov r15, rcx
mov qword [rsp + 0x40], r14
mov r12d, 0x3e8
test rcx, rcx
je 0x14003cc0b
cmp dword [rcx], 0xbab1e
jne 0x14003cc0b
cmp byte [rcx + 0x1a3], sil
je 0x14003c941
lea eax, [r13 + 8]
jmp 0x14003cb13
xorps xmm0, xmm0
mov qword [rsp + 0x1a8], rbx
mov rbx, qword [rcx + 8]
xor eax, eax
mov qword [rbp - 0x80], rax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
test rbx, rbx
je 0x14003c98e
nop word [rax + rax]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14003c520
add esi, dword [rsp + 0x78]
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14003c970
mov dword [rsp + 0x34], esi
lea rdx, [rsp + 0x48]
mov rcx, r15
call fcn.14003f980
cmp dword [rsp + 0x48], 0x3e7
lea eax, [rsi + 1]
cmovbe r12d, dword [rsp + 0x48]
mov dword [rsp + 0x38], r12d
cmp eax, 0xa
jbe 0x14003c9dd
mov ecx, eax
shl rcx, 4
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x40], rax
mov r14, rax
test rax, rax
jne 0x14003c9d8
lea eax, [r14 + 3]
jmp 0x14003cb0b
mov byte [rsp + 0x30], 1
xor ecx, ecx
mov qword [rsp + 0x1b0], rdi
mov r12d, ecx
test esi, esi
je 0x14003cb5c
mov r13, qword [r15 + 8]
test r13, r13
je 0x14003cb5c
nop
lea rdx, [rsp + 0x50]
mov rcx, r13
call fcn.14003c520
xor ecx, ecx
mov edi, ecx
cmp dword [rsp + 0x78], ecx
jbe 0x14003cadb
nop dword [rax + rax]
mov rax, qword [rsp + rdi*8 + 0x50]
mov esi, ecx
mov ebx, r12d
inc r12d
shl rbx, 4
add rbx, r14
mov qword [rbx], rax
mov word [rbx + 8], cx
test byte [rsp + rdi + 0x7c], 1
je 0x14003ca4d
mov esi, reloc.WLDAP32.dll_Ordinal_41
mov word [rbx + 8], 0x300
test byte [rsp + rdi + 0x7c], 2
je 0x14003caad
mov r14, qword [rsp + rdi*8 + 0x50]
lea rax, [rsp + 0x48]
mov rcx, r14
mov dword [rsp + 0x48], 4
lea r9, [rsp + 0x4c]
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 0x14003caa3
cmp dword [rsp + 0x4c], 1
jne 0x14003caa3
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 + 0x190]
mov r8d, esi
mov rcx, qword [rsp + rdi*8 + 0x50]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x14003cb38
mov eax, dword [rsp + 0x78]
inc rdi
mov ecx, 0
cmp rdi, rax
jb 0x14003ca20
mov r13, qword [r13 + 0x10]
test r13, r13
jne 0x14003ca00
test r12d, r12d
je 0x14003cb5c
xor r8d, r8d
mov edx, r12d
mov rcx, r14
call fcn.140047a60
test eax, eax
jns 0x14003cb4f
lea eax, [r13 + 0xc]
mov rdi, qword [rsp + 0x1b0]
mov rbx, qword [rsp + 0x1a8]
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140065250
mov rsi, qword [rsp + 0x1b8]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
cmp byte [rsp + 0x30], 0
je 0x14003cb48
mov rcx, r14
call qword [0x14007c4b8]
mov eax, 4
jmp 0x14003cb03
jle 0x14003cb5a
lea rsi, [r15 + 0x190]
jmp 0x14003cb87
xor ecx, ecx
mov r9d, dword [rsp + 0x38]
lea rdx, [r15 + 0x190]
xor r8d, r8d
mov dword [rsp + 0x20], ecx
lea ecx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp dword [rsp + 0x34], 0
lea rsi, [r15 + 0x190]
je 0x14003cbeb
mov rdi, qword [r15 + 8]
test rdi, rdi
je 0x14003cbeb
xor r13d, r13d
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14003c520
mov rbx, r13
cmp dword [rsp + 0x78], ebx
jbe 0x14003cbe2
nop dword [rax]
mov rcx, qword [rsp + rbx*8 + 0x50]
lea r8, [rbp - 0x78]
xor edx, edx
mov dword [rbp - 0x78], r13d
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov rdx, qword [rsi]
xor r8d, r8d
mov rcx, qword [rsp + rbx*8 + 0x50]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov eax, dword [rsp + 0x78]
inc rbx
cmp rbx, rax
jb 0x14003cbb0
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x14003cb93
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [rsp + 0x30], 0
je 0x14003cc04
mov rcx, r14
call qword [0x14007c4b8]
xor eax, eax
jmp 0x14003cb03
mov eax, 1
jmp 0x14003cb13