Function at 0x14012dfe0
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 [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x1e0]
xor r15d, r15d
mov rbp, 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 r12, rdx
mov dword [rsp + 0x38], r15d
mov r14d, r15d
mov qword [rsp + 0x48], rcx
test rbp, rbp
je 0x14012e651
cmp dword [rbp], 0xbab1e
jne 0x14012e651
cmp byte [rbp + 0x182], r13b
je 0x14012e07a
lea eax, [r15 + 8]
jmp 0x14012e36f
test esi, esi
jns 0x14012e088
mov eax, 0xa
jmp 0x14012e36f
mov qword [rsp + 0x178], rbx
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x14012e111
nop dword [rax]
lea rdx, [rsp + 0x98]
mov rcx, rbx
call fcn.14012ce70
mov r10d, eax
lea r8, [rsp + 0x98]
mov eax, 1
mov r9d, r15d
or rdx, 0xffffffffffffffff
test r10d, eax
je 0x14012e0da
mov rcx, qword [r8]
cmp rcx, rdx
jae 0x14012e0da
inc r14d
mov rdx, rcx
mov ecx, eax
rol ecx, 0x10
test r10d, ecx
je 0x14012e0f3
mov rcx, qword [r8]
cmp rcx, 0xffffffffffffffff
jae 0x14012e0f3
inc r14d
mov rdx, rcx
cmp rdx, 0xffffffffffffffff
je 0x14012e108
inc r9d
rol eax, 1
add r8, 8
cmp r9d, 5
jb 0x14012e0c3
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14012e0a0
lea rdx, [rsp + 0x34]
mov rcx, rbp
call fcn.14012def0
mov eax, dword [rsp + 0x34]
test eax, eax
js 0x14012e12f
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 0x14012e169
shl rcx, 4
call qword [fcn.140280918]
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x14012e164
mov eax, 3
jmp 0x14012e367
mov byte [rsp + 0x30], 1
mov dword [rsp + 0x34], r15d
mov ecx, reloc.WLDAP32.dll_Ordinal_41
test r14d, r14d
je 0x14012e293
mov r13, qword [rbp + 8]
test r13, r13
je 0x14012e392
nop dword [rax]
lea rdx, [rsp + 0x98]
mov rcx, r13
call fcn.14012ce70
mov r12d, eax
lea rsi, [rsp + 0x98]
xor eax, eax
mov edi, eax
nop
or rbx, 0xffffffffffffffff
mov ebp, eax
bt r12d, edi
jae 0x14012e1ed
mov rcx, qword [rsi]
cmp rcx, rbx
jae 0x14012e1ed
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 0x14012e23b
mov rax, qword [rsi]
cmp rax, 0xffffffffffffffff
jae 0x14012e23b
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
shl rax, 4
inc r15d
mov dword [rsp + 0x34], r15d
mov qword [rax + rcx], rbx
mov word [rax + rcx + 8], dx
cmp rbx, 0xffffffffffffffff
je 0x14012e272
mov r8d, ebp
mov rcx, rbx
mov rbp, qword [rsp + 0x58]
mov rdx, qword [rbp + 0x178]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x14012e350
inc edi
add rsi, 8
cmp edi, 5
jb 0x14012e1b0
jmp 0x14012e277
mov rbp, qword [rsp + 0x58]
mov r13, qword [r13 + 8]
test r13, r13
jne 0x14012e190
mov r13d, dword [rsp + 0x38]
mov ecx, reloc.WLDAP32.dll_Ordinal_41
mov r12, qword [rsp + 0x40]
xor edi, edi
mov esi, edi
cmp dword [rsp + 0x3c], edi
jbe 0x14012e3a6
lea rbx, [r12 + 8]
mov r12, qword [rsp + 0x48]
nop dword [rax + rax]
movzx eax, word [rbx]
test al, 1
cmovne edi, ecx
test al, 2
je 0x14012e2bf
or edi, 4
test al, 4
je 0x14012e2d8
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 [rbp + 0x178]
mov r8d, edi
mov rcx, qword [rbx - 8]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x14012e39a
mov rax, qword [rbx - 8]
xor edi, edi
mov ecx, r15d
shl rcx, 4
add rcx, r12
mov qword [rcx], rax
mov word [rcx + 8], di
test byte [rbx], 1
je 0x14012e319
mov eax, 0x300
mov word [rcx + 8], ax
test byte [rbx], 2
je 0x14012e327
mov eax, 0x400
or word [rcx + 8], ax
test byte [rbx], 4
je 0x14012e331
or word [rcx + 8], 0x10
inc r15d
inc esi
add rbx, 0x10
mov dword [rsp + 0x34], r15d
mov ecx, reloc.WLDAP32.dll_Ordinal_41
cmp esi, dword [rsp + 0x3c]
jb 0x14012e2b0
jmp 0x14012e3ab
cmp byte [rsp + 0x30], 0
je 0x14012e362
mov rcx, qword [rsp + 0x48]
call qword [fcn.1402804a8]
mov eax, 4
mov rbx, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r13d, r15d
jmp 0x14012e293
cmp byte [rsp + 0x30], 0
je 0x14012e362
mov rcx, r12
jmp 0x14012e35c
mov r12, qword [rsp + 0x48]
test r15d, r15d
jne 0x14012e3c4
movzx ebx, byte [rsp + 0x1f0]
test bl, bl
je 0x14012e5e3
mov ebx, edi
jmp 0x14012e3d8
xor r8d, r8d
mov edx, r15d
mov rcx, r12
call fcn.140145af0
mov ebx, eax
test eax, eax
jg 0x14012e3f7
mov r9d, dword [rsp + 0x50]
lea rdx, [rbp + 0x178]
xor r8d, r8d
mov dword [rsp + 0x20], edi
lea ecx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
jmp 0x14012e3fa
mov r13d, eax
xor edx, edx
movsxd r12, ebx
mov edi, edx
cmp dword [rsp + 0x3c], edx
jbe 0x14012e4fa
mov r15, qword [rsp + 0x48]
jmp 0x14012e414
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 0x14012e487
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 0x14012e487
test r12, r12
jg 0x14012e487
test r8d, r8d
je 0x14012e487
inc r13d
mov rax, qword [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rbp + 0x178]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test r12, r12
jle 0x14012e4e3
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
cmove dx, cx
mov rcx, qword [rsp + 0x40]
movzx eax, dx
or ax, 2
and esi, 0x400
cmove ax, dx
mov word [rcx + 0xa], ax
add qword [rsp + 0x40], 0x10
inc edi
cmp edi, dword [rsp + 0x3c]
jb 0x14012e412
mov r15d, dword [rsp + 0x34]
test r14d, r14d
je 0x14012e5ce
mov rbp, qword [rbp + 8]
mov qword [rsp + 0x40], rbp
test rbp, rbp
je 0x14012e5c9
mov r15, qword [rsp + 0x60]
nop word [rax + rax]
lea rdx, [rsp + 0x98]
mov rcx, rbp
call fcn.14012ce70
mov rbp, qword [rsp + 0x58]
lea rsi, [rsp + 0x98]
mov r14d, eax
mov ebx, 1
xor eax, eax
mov edi, eax
nop dword [rax]
lea ecx, [rdi + 0x10]
mov edx, ebx
bts edx, ecx
test r14d, edx
je 0x14012e5ad
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 0x14012e588
test r15, r15
je 0x14012e588
test r12, r12
jg 0x14012e588
cmp dword [rsp + 0x68], eax
je 0x14012e588
inc r13d
mov rdx, qword [rbp + 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 0x14012e550
mov rbp, qword [rsp + 0x40]
mov rbp, qword [rbp + 8]
mov qword [rsp + 0x40], rbp
test rbp, rbp
jne 0x14012e520
mov r15d, dword [rsp + 0x34]
mov rbp, qword [rsp + 0x58]
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
movzx ebx, byte [rsp + 0x1f0]
cmp byte [rsp + 0x30], 0
je 0x14012e5f5
mov rcx, qword [rsp + 0x48]
call qword [fcn.1402804a8]
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x14012e602
mov dword [rax], r13d
cmp byte [rsp + 0x1e8], 0
je 0x14012e64a
test r15d, r15d
jne 0x14012e64a
test bl, bl
jne 0x14012e64a
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], r15d
mov rcx, rbp
call fcn.14012c900
test eax, eax
jne 0x14012e64a
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14012e64a
mov ecx, dword [rsp + 0x50]
cmp eax, ecx
jg 0x14012e642
test eax, eax
cmovs eax, ecx
mov ecx, eax
movsxd rcx, ecx
call fcn.140145f70
xor eax, eax
jmp 0x14012e367
mov eax, 1
jmp 0x14012e36f