Function at 0x140129770
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 [0x1403a0088]
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 0x140129de1
cmp dword [rbp], 0xbab1e
jne 0x140129de1
cmp byte [rbp + 0x182], r13b
je 0x14012980a
lea eax, [r15 + 8]
jmp 0x140129aff
test esi, esi
jns 0x140129818
mov eax, 0xa
jmp 0x140129aff
mov qword [rsp + 0x178], rbx
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x1401298a1
nop dword [rax]
lea rdx, [rsp + 0x98]
mov rcx, rbx
call fcn.140128600
mov r10d, eax
lea r8, [rsp + 0x98]
mov eax, 1
mov r9d, r15d
or rdx, 0xffffffffffffffff
test r10d, eax
je 0x14012986a
mov rcx, qword [r8]
cmp rcx, rdx
jae 0x14012986a
inc r14d
mov rdx, rcx
mov ecx, eax
rol ecx, 0x10
test r10d, ecx
je 0x140129883
mov rcx, qword [r8]
cmp rcx, 0xffffffffffffffff
jae 0x140129883
inc r14d
mov rdx, rcx
cmp rdx, 0xffffffffffffffff
je 0x140129898
inc r9d
rol eax, 1
add r8, 8
cmp r9d, 5
jb 0x140129853
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140129830
lea rdx, [rsp + 0x34]
mov rcx, rbp
call fcn.140129680
mov eax, dword [rsp + 0x34]
test eax, eax
js 0x1401298bf
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 0x1401298f9
shl rcx, 4
call qword [fcn.14027bdf8]
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x1401298f4
mov eax, 3
jmp 0x140129af7
mov byte [rsp + 0x30], 1
mov dword [rsp + 0x34], r15d
mov ecx, reloc.WLDAP32.dll_Ordinal_41
test r14d, r14d
je 0x140129a23
mov r13, qword [rbp + 8]
test r13, r13
je 0x140129b22
nop dword [rax]
lea rdx, [rsp + 0x98]
mov rcx, r13
call fcn.140128600
mov r12d, eax
lea rsi, [rsp + 0x98]
xor eax, eax
mov edi, eax
nop
or rbx, 0xffffffffffffffff
mov ebp, eax
bt r12d, edi
jae 0x14012997d
mov rcx, qword [rsi]
cmp rcx, rbx
jae 0x14012997d
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 0x1401299cb
mov rax, qword [rsi]
cmp rax, 0xffffffffffffffff
jae 0x1401299cb
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 0x140129a02
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 0x140129ae0
inc edi
add rsi, 8
cmp edi, 5
jb 0x140129940
jmp 0x140129a07
mov rbp, qword [rsp + 0x58]
mov r13, qword [r13 + 8]
test r13, r13
jne 0x140129920
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 0x140129b36
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 0x140129a4f
or edi, 4
test al, 4
je 0x140129a68
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 0x140129b2a
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 0x140129aa9
mov eax, 0x300
mov word [rcx + 8], ax
test byte [rbx], 2
je 0x140129ab7
mov eax, 0x400
or word [rcx + 8], ax
test byte [rbx], 4
je 0x140129ac1
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 0x140129a40
jmp 0x140129b3b
cmp byte [rsp + 0x30], 0
je 0x140129af2
mov rcx, qword [rsp + 0x48]
call qword [fcn.14027b988]
mov eax, 4
mov rbx, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r13d, r15d
jmp 0x140129a23
cmp byte [rsp + 0x30], 0
je 0x140129af2
mov rcx, r12
jmp 0x140129aec
mov r12, qword [rsp + 0x48]
test r15d, r15d
jne 0x140129b54
movzx ebx, byte [rsp + 0x1f0]
test bl, bl
je 0x140129d73
mov ebx, edi
jmp 0x140129b68
xor r8d, r8d
mov edx, r15d
mov rcx, r12
call fcn.1401412c0
mov ebx, eax
test eax, eax
jg 0x140129b87
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 0x140129b8a
mov r13d, eax
xor edx, edx
movsxd r12, ebx
mov edi, edx
cmp dword [rsp + 0x3c], edx
jbe 0x140129c8a
mov r15, qword [rsp + 0x48]
jmp 0x140129ba4
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 0x140129c17
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 0x140129c17
test r12, r12
jg 0x140129c17
test r8d, r8d
je 0x140129c17
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 0x140129c73
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 0x140129ba2
mov r15d, dword [rsp + 0x34]
test r14d, r14d
je 0x140129d5e
mov rbp, qword [rbp + 8]
mov qword [rsp + 0x40], rbp
test rbp, rbp
je 0x140129d59
mov r15, qword [rsp + 0x60]
nop word [rax + rax]
lea rdx, [rsp + 0x98]
mov rcx, rbp
call fcn.140128600
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 0x140129d3d
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 0x140129d18
test r15, r15
je 0x140129d18
test r12, r12
jg 0x140129d18
cmp dword [rsp + 0x68], eax
je 0x140129d18
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 0x140129ce0
mov rbp, qword [rsp + 0x40]
mov rbp, qword [rbp + 8]
mov qword [rsp + 0x40], rbp
test rbp, rbp
jne 0x140129cb0
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 0x140129d85
mov rcx, qword [rsp + 0x48]
call qword [fcn.14027b988]
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140129d92
mov dword [rax], r13d
cmp byte [rsp + 0x1e8], 0
je 0x140129dda
test r15d, r15d
jne 0x140129dda
test bl, bl
jne 0x140129dda
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], r15d
mov rcx, rbp
call fcn.1401280a0
test eax, eax
jne 0x140129dda
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140129dda
mov ecx, dword [rsp + 0x50]
cmp eax, ecx
jg 0x140129dd2
test eax, eax
cmovs eax, ecx
mov ecx, eax
movsxd rcx, ecx
call fcn.140141740
xor eax, eax
jmp 0x140129af7
mov eax, 1
jmp 0x140129aff