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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1b8
movaps xmmword [rsp + 0x1a0], xmm6
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0x198], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x190], rax
movaps xmm6, xmmword [0x14047fb40]
movaps xmmword [rsp + 0x180], xmm6
movaps xmmword [rsp + 0x170], xmm6
mov r12d, 1
test rcx, rcx
je 0x14010cb3c
mov r14, rcx
cmp dword [rcx], 0xbab1e
jne 0x14010cb3c
mov r12d, 8
cmp byte [r14 + 0x1b3], 0
je 0x14010cb92
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1402ddd70
mov eax, r12d
movaps xmm6, xmmword [rsp + 0x1a0]
add rsp, 0x1b8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12d, 4
cmp dword [rsp + 0x44], 0xb
jb 0x14010cb3c
mov rax, qword [fcn.140225eb0]
mov rcx, rdi
call qword [case.0x14012d181.0]
jmp 0x14010cb3c
mov r12d, 0xa
jmp 0x14010cb3c
mov ebp, r9d
test r9d, r9d
js 0x14010cb8a
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], rdx
lea rcx, [rsp + 0xd0]
mov r8d, 0xa0
mov r13, rcx
mov dl, 0xaa
call fcn.1402e0d10
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movups xmmword [rsp + 0xbc], xmm6
mov rbx, qword [r14 + 8]
xor edi, edi
mov esi, 0
test rbx, rbx
je 0x14010cc93
xor r15d, r15d
lea r12, [rsp + 0x170]
jmp 0x14010cc2e
mov r12d, 3
jmp 0x14010cb3c
test eax, 0x100010
sete al
cmp qword [rsp + 0x190], 0xffffffffffffffff
sete cl
or cl, al
movzx eax, cl
xor eax, 5
add r15d, eax
mov esi, r15d
mov rbx, qword [rbx + 0x10]
mov r15d, esi
test rbx, rbx
je 0x14010cc93
mov rcx, rbx
mov rdx, r12
call fcn.14010ca40
test eax, 0x10001
je 0x14010cc1f
cmp qword [rsp + 0x170], 0xffffffffffffffff
je 0x14010cc1f
lea esi, [r15 + 1]
test eax, 0x20002
je 0x14010cc22
cmp qword [rsp + 0x178], 0xffffffffffffffff
je 0x14010cc22
lea esi, [r15 + 2]
test eax, 0x40004
je 0x14010cc22
cmp qword [rsp + 0x180], 0xffffffffffffffff
je 0x14010cc22
lea esi, [r15 + 3]
test eax, 0x80008
je 0x14010cc22
cmp qword [rsp + 0x188], 0xffffffffffffffff
jne 0x14010cc00
jmp 0x14010cc22
cmp byte [r14 + 0x1b4], 0
je 0x14010cd39
cmp edi, ebp
mov eax, ebp
cmovl eax, edi
test edi, edi
cmovs eax, ebp
mov dword [rsp + 0x6c], eax
movzx ebx, byte [rsp + 0x230]
mov rax, qword [rsp + 0x50]
add eax, esi
add ebx, eax
cmp ebx, 0xb
mov rdi, r13
jb 0x14010cce9
mov rax, qword [fcn.140225e50]
mov ecx, ebx
shl rcx, 4
call qword [case.0x14012d181.0]
mov rdi, rax
test rax, rax
je 0x14010cbf5
mov dword [rsp + 0x44], ebx
xor ebp, ebp
test esi, esi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x60], rdi
je 0x14010cd0e
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x14010cd0e
xor r15d, r15d
jmp 0x14010d0d1
mov rax, qword [rsp + 0x50]
test eax, eax
je 0x14010cf1c
mov r15d, eax
shl r15, 4
xor r13d, r13d
mov rbx, qword [rsp + 0x58]
jmp 0x14010ce74
mov edi, 0xffffffff
jmp 0x14010cca1
cmp qword [r14 + 0xd0], 0
je 0x14010cd2f
lea rdi, [rsp + 0x90]
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.14011bd90
mov rdx, qword [r14 + 0xd0]
xorps xmm0, xmm0
lea rcx, [rsp + 0x80]
movaps xmmword [rcx], xmm0
call fcn.14011a300
mov qword [r14 + 0xd0], rax
lea rcx, [rax + 0x20]
mov rdx, qword [rdi]
xor edi, edi
cmp qword [rax + 0x20], rdx
jl 0x14010cca1
jg 0x14010cd9c
mov eax, dword [rax + 0x28]
cmp eax, dword [rsp + 0x98]
jle 0x14010cca1
movups xmm0, xmmword [rcx]
lea rcx, [rsp + 0x80]
movaps xmmword [rcx], xmm0
movaps xmm0, xmmword [rsp + 0x90]
lea rdx, [rsp + 0x70]
movaps xmmword [rdx], xmm0
call fcn.14011be30
cmp rax, 2
mov edi, 1
cmovge rdi, rax
jmp 0x14010cca1
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
or r12d, 0x32
mov rdi, qword [rsp + 0x60]
mov rdx, qword [r14 + 0x1a8]
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rbx + r13]
mov r8d, r12d
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x14010cb6b
mov rcx, qword [rbx + r13]
mov eax, ebp
shl rax, 4
add rax, rdi
add rax, 8
mov qword [rax - 8], rcx
mov word [rax], 0
movzx ecx, word [rbx + r13 + 8]
and ecx, 1
neg ecx
and ecx, 0x300
mov word [rax], cx
movzx edx, word [rbx + r13 + 8]
test dl, 2
je 0x14010ce57
movzx ecx, cx
or ecx, 0x400
mov word [rax], cx
movzx edx, word [rbx + r13 + 8]
test dl, 4
je 0x14010ce65
movzx ecx, cx
or ecx, 0x10
mov word [rax], cx
inc ebp
add r13, 0x10
cmp r15, r13
je 0x14010cf21
movzx eax, word [rbx + r13 + 8]
mov ecx, eax
and ecx, 1
mov edx, 0x29
cmovne ecx, edx
mov edx, eax
and edx, 2
lea r12d, [rcx + rdx*2]
test al, 4
je 0x14010cdeb
mov rdi, qword [rbx + r13]
mov dword [rsp + 0x90], 0xaaaaaaaa
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0x1008
lea r9, [rsp + 0x90]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14010cde2
cmp dword [rsp + 0x90], 1
je 0x14010cdd1
jmp 0x14010cde2
mov r12, qword [rsp + 0x220]
mov r14, qword [rsp + 0x38]
mov rcx, qword [r14 + 0x1a8]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
mov rdi, qword [rsp + 0x60]
mov r15d, dword [rsp + 0x30]
jmp 0x14010cf43
mov rbx, qword [rsp + 0x58]
mov r12, qword [rsp + 0x220]
test ebp, ebp
mov al, byte [rsp + 0x230]
jne 0x14010d021
xor r15d, r15d
test al, al
jne 0x14010d021
cmp dword [rsp + 0x44], 0xb
jb 0x14010cf5a
mov rax, qword [fcn.140225eb0]
mov rcx, rdi
call qword [case.0x14012d181.0]
test r12, r12
je 0x14010cf63
mov dword [r12], r15d
xor r12d, r12d
test ebp, ebp
jne 0x14010cb3c
cmp byte [rsp + 0x228], 0
je 0x14010cb3c
cmp byte [rsp + 0x230], 0
jne 0x14010cb3c
cmp dword [r14], 0xbab1e
jne 0x14010cb3c
cmp byte [r14 + 0x1b3], 0
jne 0x14010cb3c
cmp byte [r14 + 0x1b4], 0
jne 0x14010cb3c
cmp qword [r14 + 0xd0], 0
je 0x14010d534
lea rdi, [rsp + 0x90]
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.14011bd90
mov rdx, qword [r14 + 0xd0]
xorps xmm0, xmm0
lea rcx, [rsp + 0x80]
movaps xmmword [rcx], xmm0
call fcn.14011a300
mov qword [r14 + 0xd0], rax
lea rcx, [rax + 0x20]
mov rdx, qword [rdi]
cmp qword [rax + 0x20], rdx
jl 0x14010cb3c
jg 0x14010d4fb
mov eax, dword [rax + 0x28]
cmp eax, dword [rsp + 0x98]
jle 0x14010cb3c
jmp 0x14010d4fb
test ebp, ebp
mov r15, qword [rsp + 0x50]
je 0x14010d055
mov rcx, rdi
mov edx, ebp
xor r8d, r8d
call fcn.1401128c0
test eax, eax
js 0x14010d04a
je 0x14010d055
mov r13d, eax
mov dword [rsp + 0x48], 0
jmp 0x14010d080
mov r12d, SafeArrayDestroy
jmp 0x14010cb3c
lea rdx, [r14 + 0x1a8]
mov dword [rsp + 0x20], 0
xor r13d, r13d
mov ecx, 1
xor r8d, r8d
mov r9d, dword [rsp + 0x6c]
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov al, 1
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x30], r13d
test r15d, r15d
je 0x14010d2e5
test r12, r12
setne al
and al, byte [rsp + 0x48]
mov byte [rsp + 0x2f], al
mov eax, r15d
shl rax, 4
mov qword [rsp + 0x50], rax
xor r15d, r15d
mov r12d, esi
jmp 0x14010d2a7
mov rax, qword [rsp + 0x30]
add eax, ebx
mov ebp, eax
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x10]
mov r15d, ebp
test rcx, rcx
je 0x14010cd0e
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x170]
call fcn.14010ca40
mov r13d, eax
mov r12d, r15d
xor ebx, ebx
mov qword [rsp + 0x30], r15
mov ebp, r15d
jmp 0x14010d14e
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov rdi, qword [rsp + 0x60]
lea rax, [rdi + r14]
add rax, 8
or r15d, 0x32
or byte [rax], 0x10
mov r14, qword [rsp + 0x38]
mov rdx, qword [r14 + 0x1a8]
mov rcx, qword [rsp + rbx*8 + 0x170]
mov r8d, r15d
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x14010cb6b
inc rbx
inc ebp
cmp rbx, 5
je 0x14010d0b3
mov r15d, 1
mov ecx, ebx
shl r15d, cl
mov eax, 0x10000
shl eax, cl
mov edx, r13d
shr edx, cl
test edx, 0x10001
je 0x14010d0bc
mov rcx, qword [rsp + rbx*8 + 0x170]
cmp rcx, 0xffffffffffffffff
je 0x14010d0b3
lea rdx, [r12 + rbx]
mov r14d, edx
shl r14, 4
mov qword [rdi + r14], rcx
and r15d, r13d
mov ecx, 0x300
cmove ecx, r15d
mov edx, 0x29
cmovne r15d, edx
mov word [rdi + r14 + 8], cx
test eax, r13d
je 0x14010d11a
mov rdi, qword [rsp + rbx*8 + 0x170]
mov dword [rsp + 0x90], 0xaaaaaaaa
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0x1008
lea r9, [rsp + 0x90]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14010d106
cmp dword [rsp + 0x90], 1
je 0x14010d0f5
jmp 0x14010d106
mov eax, dword [rsp + 0xa0]
xor ecx, ecx
test al, 0x29
setne cl
lea edx, [rcx + 4]
test al, 0x32
cmove edx, ecx
mov r13d, eax
shr r13d, 1
and r13d, 2
or r13d, edx
test eax, eax
setne al
and al, byte [rsp + 0x2f]
movzx eax, al
add dword [rsp + 0x30], eax
mov rdx, qword [r14 + 0x1a8]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp byte [rsp + 0x48], 0
jne 0x14010d289
xor eax, eax
test edi, 0x300
setne al
mov ecx, edi
shr ecx, 2
and ecx, 4
shr edi, 9
and edi, 2
or edi, ecx
or edi, eax
movzx r13d, r13w
or r13d, edi
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov word [rbx + r15 + 0xa], r13w
add r15, 0x10
inc r12d
cmp qword [rsp + 0x50], r15
je 0x14010d2e5
mov eax, r12d
shl rax, 4
movzx edi, word [rdi + rax + 0xa]
mov rbx, qword [rbx + r15]
mov dword [rsp + 0xa0], 0
xor r13d, r13d
mov rcx, rbx
xor edx, edx
lea r8, [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x14010d24b
jmp 0x14010d218
test esi, esi
je 0x14010cef6
mov r14, qword [r14 + 8]
test r14, r14
mov r12, qword [rsp + 0x220]
je 0x14010cefe
test r12, r12
setne bl
and bl, byte [rsp + 0x48]
lea r13, [rsp + 0xa0]
mov rsi, qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov rdi, qword [sym.imp.WS2_32.dll_WSAEventSelect]
jmp 0x14010d35e
cmp dword [rsp + 0xa0], 0
setne al
and al, bl
movzx eax, al
add dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax + 0x1a8]
mov rcx, qword [rsp + 0x190]
xor r8d, r8d
call rdi
mov r14, qword [r14 + 0x10]
test r14, r14
je 0x14010cefe
mov rcx, r14
lea rdx, [rsp + 0x170]
call fcn.14010ca40
test eax, 0x10001
je 0x14010d351
mov r15d, eax
mov dword [rsp + 0xa0], 0
mov rcx, qword [rsp + 0x170]
xor edx, edx
mov r8, r13
call rsi
test eax, eax
jne 0x14010d3aa
cmp dword [rsp + 0xa0], 0
setne al
and al, bl
movzx eax, al
add dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax + 0x1a8]
mov rcx, qword [rsp + 0x170]
xor r8d, r8d
call rdi
test r15d, 0x20002
je 0x14010d351
mov dword [rsp + 0xa0], 0
mov rcx, qword [rsp + 0x178]
xor edx, edx
mov r8, r13
call rsi
test eax, eax
jne 0x14010d3fe
cmp dword [rsp + 0xa0], 0
setne al
and al, bl
movzx eax, al
add dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax + 0x1a8]
mov rcx, qword [rsp + 0x178]
xor r8d, r8d
call rdi
test r15d, 0x40004
je 0x14010d351
mov dword [rsp + 0xa0], 0
mov rcx, qword [rsp + 0x180]
xor edx, edx
mov r8, r13
call rsi
test eax, eax
jne 0x14010d456
cmp dword [rsp + 0xa0], 0
setne al
and al, bl
movzx eax, al
add dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax + 0x1a8]
mov rcx, qword [rsp + 0x180]
xor r8d, r8d
call rdi
test r15d, 0x80008
je 0x14010d351
mov dword [rsp + 0xa0], 0
mov rcx, qword [rsp + 0x188]
xor edx, edx
mov r8, r13
call rsi
test eax, eax
jne 0x14010d4ae
cmp dword [rsp + 0xa0], 0
setne al
and al, bl
movzx eax, al
add dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax + 0x1a8]
mov rcx, qword [rsp + 0x188]
xor r8d, r8d
call rdi
test r15d, 0x100010
je 0x14010d351
mov dword [rsp + 0xa0], 0
mov rcx, qword [rsp + 0x190]
xor edx, edx
mov r8, r13
call rsi
test eax, eax
jne 0x14010d338
jmp 0x14010d324
movups xmm0, xmmword [rcx]
lea rcx, [rsp + 0x80]
movaps xmmword [rcx], xmm0
movaps xmm0, xmmword [rsp + 0x90]
lea rdx, [rsp + 0x70]
movaps xmmword [rdx], xmm0
call fcn.14011be30
cmp rax, 2
mov ecx, 1
cmovge rcx, rax
test ecx, ecx
jne 0x14010d539
jmp 0x14010cb3c
mov ecx, 0xffffffff
test ecx, ecx
mov eax, ecx
mov edx, dword [rsp + 0x6c]
cmovs eax, edx
cmp ecx, edx
cmovg eax, edx
movsxd rcx, eax
call fcn.1401126f0
jmp 0x14010cb3c