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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x14047b0a0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x1e0]
xor r15d, r15d
mov r12, rcx
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x50], r9d
mov r13d, r15d
mov byte [rsp + 0x30], r13b
lea rcx, [rsp + 0xc0]
mov dword [rsp + 0x3c], r8d
mov esi, r9d
mov qword [rsp + 0x40], rdx
mov edi, r8d
mov qword [rsp + 0x60], rax
mov rbp, rdx
mov dword [rsp + 0x38], r15d
mov r14d, r15d
mov qword [rsp + 0x48], rcx
test r12, r12
je 0x1402a41a1
cmp dword [r12], 0xbab1e
jne 0x1402a41a1
cmp byte [r12 + 0x182], r13b
je 0x1402a3b8c
lea eax, [r15 + 8]
jmp 0x1402a3c7b
test esi, esi
jns 0x1402a3b9a
mov eax, 0xa
jmp 0x1402a3c7b
mov qword [rsp + 0x178], rbx
mov rbx, qword [r12 + 8]
test rbx, rbx
je 0x1402a3c24
nop dword [rax]
lea rdx, [rsp + 0x98]
mov rcx, rbx
call fcn.1402a29a0
mov r10d, eax
lea r8, [rsp + 0x98]
mov eax, 1
mov r9d, r15d
mov rdx, 0xffffffffffffffff
test r10d, eax
je 0x1402a3bed
mov rcx, qword [r8]
cmp rcx, rdx
jae 0x1402a3bed
inc r14d
mov rdx, rcx
mov ecx, eax
rol ecx, 0x10
test r10d, ecx
je 0x1402a3c06
mov rcx, qword [r8]
cmp rcx, 0xffffffffffffffff
jae 0x1402a3c06
inc r14d
mov rdx, rcx
cmp rdx, 0xffffffffffffffff
je 0x1402a3c1b
inc r9d
rol eax, 1
add r8, 8
cmp r9d, 5
jb 0x1402a3bd3
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1402a3bb0
lea rdx, [rsp + 0x34]
mov rcx, r12
call fcn.1402a3a00
mov eax, dword [rsp + 0x34]
test eax, eax
js 0x1402a3c42
cmp eax, esi
cmovl esi, eax
mov dword [rsp + 0x50], esi
cmp byte [rsp + 0x1f0], r13b
lea eax, [rdi + r14]
lea ecx, [rax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x1402a3ca3
shl rcx, 4
call qword [fcn.1402e51dc]
mov qword [rsp + 0x48], rax
mov rdi, rax
test rax, rax
jne 0x1402a3c9e
lea eax, [rdi + 3]
mov rbx, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1401aed20
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov byte [rsp + 0x30], 1
mov dword [rsp + 0x34], r15d
test r14d, r14d
je 0x1402a3dbe
mov r13, qword [r12 + 8]
test r13, r13
je 0x1402a3ec4
nop
lea rdx, [rsp + 0x98]
mov rcx, r13
call fcn.1402a29a0
mov r12d, eax
lea rsi, [rsp + 0x98]
xor eax, eax
mov edi, eax
nop
bt r12d, edi
mov rbx, 0xffffffffffffffff
mov ebp, eax
jae 0x1402a3d20
mov rcx, qword [rsi]
cmp rcx, rbx
jae 0x1402a3d20
mov rdx, qword [rsp + 0x48]
mov rbx, rcx
mov eax, r15d
mov ebp, reloc.WLDAP32.dll_Ordinal_41
add rax, rax
inc r15d
mov dword [rsp + 0x34], r15d
mov qword [rdx + rax*8], rcx
mov ecx, 0x300
mov word [rdx + rax*8 + 8], cx
lea ecx, [rdi + 0x10]
movzx eax, cl
bt r12d, eax
jae 0x1402a3d6d
mov rax, qword [rsi]
cmp rax, 0xffffffffffffffff
jae 0x1402a3d6d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov rbx, rax
or ebp, 0x32
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [rsp + 0x48]
mov edx, reloc.WS2_32.dll_recv
mov eax, r15d
add rax, rax
inc r15d
mov dword [rsp + 0x34], r15d
mov qword [rcx + rax*8], rbx
mov word [rcx + rax*8 + 8], dx
cmp rbx, 0xffffffffffffffff
je 0x1402a3da2
mov rax, qword [rsp + 0x58]
mov r8d, ebp
mov rcx, rbx
mov rdx, qword [rax + 0x178]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x1402a3ea8
inc edi
add rsi, 8
cmp edi, 5
jb 0x1402a3ce0
mov r13, qword [r13 + 8]
test r13, r13
jne 0x1402a3cc0
mov r13d, dword [rsp + 0x38]
mov r12, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x40]
mov ebx, dword [rsp + 0x3c]
xor r8d, r8d
mov esi, r8d
test ebx, ebx
je 0x1402a3ee6
lea rbx, [rbp + 8]
mov rbp, qword [rsp + 0x48]
nop dword [rax]
movzx edx, word [rbx]
movzx eax, dl
and al, 1
neg al
movzx eax, dl
sbb ecx, ecx
and ecx, 0x29
mov edi, ecx
or edi, 4
and al, 2
cmove edi, ecx
test dl, 4
je 0x1402a3e16
mov rcx, qword [rbx - 8]
or edi, 0x32
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_send]
mov rdx, qword [r12 + 0x178]
mov r8d, edi
mov rcx, qword [rbx - 8]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x1402a3ecc
mov rax, qword [rbx - 8]
xor r8d, r8d
mov edx, r15d
shl rdx, 4
add rdx, rbp
mov qword [rdx], rax
movzx eax, r8w
mov word [rdx + 8], r8w
movzx ecx, word [rbx]
test cl, 1
je 0x1402a3e69
mov r9d, 0x300
mov word [rdx + 8], r9w
mov eax, r9d
movzx ecx, word [rbx]
test cl, 2
je 0x1402a3e7d
mov ecx, 0x400
or ax, cx
mov word [rdx + 8], ax
movzx ecx, word [rbx]
test cl, 4
je 0x1402a3e8a
or ax, 0x10
mov word [rdx + 8], ax
inc r15d
inc esi
add rbx, 0x10
mov dword [rsp + 0x34], r15d
cmp esi, dword [rsp + 0x3c]
jb 0x1402a3de0
mov ebx, dword [rsp + 0x3c]
jmp 0x1402a3eeb
cmp byte [rsp + 0x30], 0
je 0x1402a3edc
mov rcx, qword [rsp + 0x48]
call qword [fcn.1402e51e4]
mov eax, 4
jmp 0x1402a3c73
mov r13d, r15d
jmp 0x1402a3dbe
cmp byte [rsp + 0x30], 0
je 0x1402a3edc
mov rcx, rbp
call qword [fcn.1402e51e4]
mov eax, 4
jmp 0x1402a3c73
mov rbp, qword [rsp + 0x48]
test r15d, r15d
jne 0x1402a3f06
movzx edi, byte [rsp + 0x1f0]
test dil, dil
je 0x1402a4133
mov ebp, r8d
jmp 0x1402a3f19
xor r8d, r8d
mov edx, r15d
mov rcx, rbp
call fcn.1402c8a70
mov ebp, eax
xor r8d, r8d
test ebp, ebp
jg 0x1402a3f3c
mov r9d, dword [rsp + 0x50]
lea rdx, [r12 + 0x178]
mov dword [rsp + 0x20], r8d
xor r8d, r8d
lea ecx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test ebp, ebp
mov edx, 0
mov r13d, ebp
mov edi, edx
cmovle r13d, edx
test ebx, ebx
je 0x1402a404a
mov r15, qword [rsp + 0x48]
jmp 0x1402a3f62
xor edx, edx
movzx ebx, dx
lea ecx, [r14 + rdi]
add rcx, rcx
lea r8, [rsp + 0x68]
movsx esi, word [r15 + rcx*8 + 0xa]
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x68], edx
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x1402a3fd4
mov r8d, dword [rsp + 0x68]
mov ecx, eax
test r8b, 0x29
mov eax, r8d
setne cl
movzx edx, cx
or dx, 4
and al, 0x32
mov eax, r8d
cmove dx, cx
movzx ecx, dx
or cx, 2
and al, 4
cmove cx, dx
cmp qword [rsp + 0x60], 0
movzx ebx, cx
je 0x1402a3fd4
test ebp, ebp
jg 0x1402a3fd4
test r8d, r8d
je 0x1402a3fd4
inc r13d
mov rax, qword [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [r12 + 0x178]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test ebp, ebp
jle 0x1402a4033
mov ecx, 0x300
mov eax, esi
and eax, ecx
movzx ecx, bx
or cx, 1
test eax, eax
mov eax, esi
cmove cx, bx
movzx edx, cx
or dx, 4
and al, 0x10
mov eax, 0x400
cmove dx, cx
mov rcx, qword [rsp + 0x40]
and esi, eax
movzx eax, dx
or ax, 2
test esi, esi
cmove ax, dx
mov word [rcx + 0xa], ax
add qword [rsp + 0x40], 0x10
inc edi
cmp edi, dword [rsp + 0x3c]
jb 0x1402a3f60
mov r15d, dword [rsp + 0x34]
test r14d, r14d
je 0x1402a411d
mov r14, qword [r12 + 8]
mov qword [rsp + 0x40], r14
test r14, r14
je 0x1402a411d
mov r15, qword [rsp + 0x60]
nop dword [rax + rax]
lea rdx, [rsp + 0x98]
mov rcx, r14
call fcn.1402a29a0
mov r14, qword [rsp + 0x58]
lea rsi, [rsp + 0x98]
mov r12d, eax
mov ebx, 1
xor eax, eax
mov edi, eax
nop dword [rax]
lea ecx, [rdi + 0x10]
mov edx, ebx
bts edx, ecx
test r12d, edx
je 0x1402a40fc
mov rcx, qword [rsi]
lea r8, [rsp + 0x68]
xor edx, edx
mov dword [rsp + 0x68], eax
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x1402a40d7
test r15, r15
je 0x1402a40d7
test ebp, ebp
jg 0x1402a40d7
cmp dword [rsp + 0x68], eax
je 0x1402a40d7
inc r13d
mov rdx, qword [r14 + 0x178]
xor r8d, r8d
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
inc edi
rol ebx, 1
add rsi, 8
mov eax, 0
cmp edi, 5
jb 0x1402a40a0
mov r14, qword [rsp + 0x40]
mov r14, qword [r14 + 8]
mov qword [rsp + 0x40], r14
test r14, r14
jne 0x1402a4070
mov r15d, dword [rsp + 0x34]
mov r12, qword [rsp + 0x58]
mov rcx, qword [r12 + 0x178]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
movzx edi, byte [rsp + 0x1f0]
cmp byte [rsp + 0x30], 0
je 0x1402a4145
mov rcx, qword [rsp + 0x48]
call qword [fcn.1402e51e4]
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1402a4152
mov dword [rax], r13d
cmp byte [rsp + 0x1e8], 0
je 0x1402a419a
test r15d, r15d
jne 0x1402a419a
test dil, dil
jne 0x1402a419a
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], r15d
mov rcx, r12
call fcn.1402a2440
test eax, eax
jne 0x1402a419a
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x1402a419a
mov ecx, dword [rsp + 0x50]
cmp eax, ecx
jg 0x1402a4190
test eax, eax
jns 0x1402a4192
mov eax, ecx
movsxd rcx, eax
call fcn.1402c8f10
xor eax, eax
jmp 0x1402a3c73
mov eax, 1
jmp 0x1402a3c7b