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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x98]
sub rsp, 0x198
mov rax, qword [0x14009c688]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0xf0]
xor r14d, r14d
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov r13d, r14d
mov dword [rsp + 0x48], r9d
mov edi, r9d
mov dword [rsp + 0x38], r8d
mov esi, r8d
mov qword [rsp + 0x58], rdx
mov r12, rcx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x3c], r14d
mov byte [rsp + 0x30], r13b
test rcx, rcx
je 0x140029828
cmp dword [rcx], 0xbab1e
jne 0x140029828
cmp byte [rcx + 0x1b3], r13b
je 0x1400290c0
lea eax, [r14 + 8]
jmp 0x140029446
test edi, edi
jns 0x1400290ce
mov eax, 0xa
jmp 0x140029446
mov qword [rsp + 0x190], rbx
mov rbx, qword [rcx + 8]
test rbx, rbx
je 0x140029151
nop
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.140027ca0
mov r10d, eax
lea r8, [rbp - 0x60]
mov eax, 1
mov r9d, r14d
nop dword [rax + rax]
mov rdx, 0xffffffffffffffff
test r10d, eax
je 0x14002911a
mov rcx, qword [r8]
cmp rcx, rdx
jae 0x14002911a
inc r13d
mov rdx, rcx
mov ecx, eax
rol ecx, 0x10
test r10d, ecx
je 0x140029133
mov rcx, qword [r8]
cmp rcx, 0xffffffffffffffff
jae 0x140029133
inc r13d
mov rdx, rcx
cmp rdx, 0xffffffffffffffff
je 0x140029148
inc r9d
rol eax, 1
add r8, 8
cmp r9d, 5
jb 0x140029100
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400290e0
lea rdx, [rsp + 0x34]
mov rcx, r12
call fcn.140028f20
mov eax, dword [rsp + 0x34]
test eax, eax
js 0x14002916f
cmp eax, edi
cmovl edi, eax
mov dword [rsp + 0x48], edi
cmp byte [rbp + 0x100], r14b
lea eax, [rsi + r13]
lea ecx, [rax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x1400291a8
shl rcx, 4
call qword [section..data]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400291a3
mov eax, 3
jmp 0x14002943e
mov byte [rsp + 0x30], 1
mov qword [rsp + 0x188], r15
mov r15d, r14d
mov dword [rsp + 0x34], r14d
test r13d, r13d
je 0x14002930e
mov rax, qword [r12 + 8]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14002930e
lea rdx, [rbp - 0x60]
mov rcx, rax
call fcn.140027ca0
mov r12d, eax
lea rsi, [rbp - 0x60]
mov edi, r14d
nop word [rax + rax]
bt r12d, edi
mov rbx, 0xffffffffffffffff
jae 0x14002922f
mov rcx, qword [rsi]
cmp rcx, rbx
jae 0x14002922f
mov rdx, qword [rsp + 0x40]
mov rbx, rcx
mov eax, r15d
mov r14d, 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 0x1400292b3
mov rax, qword [rsi]
cmp rax, 0xffffffffffffffff
jae 0x1400292b3
mov rbx, rax
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov rcx, rbx
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1008
or r14d, 0x32
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140029292
cmp dword [rsp + 0x4c], 1
jne 0x140029292
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [rsp + 0x40]
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 0x1400292eb
mov rax, qword [rsp + 0x50]
mov r8d, r14d
mov rcx, rbx
mov rdx, qword [rax + 0x1a8]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x14002941f
inc edi
add rsi, 8
mov r14d, eax
cmp edi, 5
jb 0x1400291f0
mov rax, qword [rsp + 0x60]
xor r14d, r14d
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x1400291d4
mov r12, qword [rsp + 0x50]
mov esi, dword [rsp + 0x38]
test esi, esi
je 0x140029463
mov rbx, qword [rsp + 0x58]
add rbx, 8
nop
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 0x140029393
mov rsi, qword [rbx - 8]
lea rax, [rsp + 0x4c]
mov rcx, rsi
mov dword [rsp + 0x4c], 4
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1008
or edi, 0x32
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14002938f
cmp dword [rsp + 0x60], 1
jne 0x14002938f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov esi, dword [rsp + 0x38]
mov rdx, qword [r12 + 0x1a8]
mov r8d, edi
mov rcx, qword [rbx - 8]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x14002941f
mov rax, qword [rbx - 8]
xor edi, edi
mov rcx, qword [rsp + 0x40]
mov edx, r15d
shl rdx, 4
add rdx, rcx
mov qword [rdx], rax
movzx eax, di
mov word [rdx + 8], di
movzx ecx, word [rbx]
test cl, 1
je 0x1400293e4
mov r8d, 0x300
mov word [rdx + 8], r8w
mov eax, r8d
movzx ecx, word [rbx]
test cl, 2
je 0x1400293f8
mov ecx, 0x400
or ax, cx
mov word [rdx + 8], ax
movzx ecx, word [rbx]
test cl, 4
je 0x140029405
or ax, 0x10
mov word [rdx + 8], ax
inc r15d
inc r14d
add rbx, 0x10
mov dword [rsp + 0x34], r15d
cmp r14d, esi
jb 0x140029320
jmp 0x140029465
cmp byte [rsp + 0x30], 0
je 0x140029431
mov rcx, qword [rsp + 0x40]
call qword [fcn.14007d615]
mov eax, 4
mov r15, qword [rsp + 0x188]
mov rbx, qword [rsp + 0x190]
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14007c450
add rsp, 0x198
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor edi, edi
test r15d, r15d
jne 0x14002960d
movzx ebx, byte [rbp + 0x100]
test bl, bl
je 0x1400297a1
mov rbx, qword [rsp + 0x40]
mov r12d, edi
mov rdx, qword [rsp + 0x50]
xor r8d, r8d
mov r9d, dword [rsp + 0x48]
add rdx, 0x1a8
mov dword [rsp + 0x20], edi
lea ecx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
xor r10d, r10d
mov esi, r10d
cmp dword [rsp + 0x38], r10d
jbe 0x1400295ba
mov edi, r10d
nop dword [rax + rax]
mov rax, qword [rsp + 0x58]
lea ecx, [rsi + r13]
add rcx, rcx
lea r8, [rsp + 0x70]
xor edx, edx
mov r14, qword [rdi + rax]
movsx r15d, word [rbx + rcx*8 + 0xa]
mov rcx, r14
movzx ebx, r10w
mov dword [rsp + 0x70], r10d
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x14002953e
mov r9d, dword [rsp + 0x70]
mov ecx, eax
test r9b, 0x29
mov eax, r9d
setne cl
movzx edx, cx
or dx, 4
and al, 0x32
mov eax, r9d
cmove dx, cx
movzx r8d, dx
or r8w, 2
and al, 4
cmove r8w, dx
cmp qword [rsp + 0x68], 0
movzx ebx, r8w
je 0x14002953e
test r12d, r12d
jne 0x14002953e
test r9d, r9d
je 0x14002953e
inc dword [rsp + 0x3c]
mov rax, qword [rsp + 0x50]
xor r8d, r8d
mov rcx, r14
mov rdx, qword [rax + 0x1a8]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test r12d, r12d
je 0x140029595
mov eax, r15d
mov ecx, 0x300
and eax, ecx
movzx ecx, bx
or cx, 1
test eax, eax
mov eax, r15d
cmove cx, bx
movzx edx, cx
or dx, 4
and al, 0x10
mov eax, 0x400
cmove dx, cx
movzx ebx, dx
or bx, 2
and r15d, eax
cmove bx, dx
mov rax, qword [rsp + 0x58]
inc esi
mov r10d, 0
mov word [rax + rdi + 0xa], bx
add rdi, 0x10
mov rbx, qword [rsp + 0x40]
cmp esi, dword [rsp + 0x38]
jb 0x1400294c0
test r13d, r13d
mov r13, qword [rsp + 0x50]
je 0x140029786
mov r15, qword [r13 + 8]
mov qword [rsp + 0x58], r15
test r15, r15
je 0x140029786
lea r8, [0x140000000]
mov rdx, qword [r15 + 0x20]
test rdx, rdx
je case.default.0x14002960b
mov eax, dword [r15 + 0x58]
add eax, 0xfffffffd
cmp eax, 9
ja case.default.0x14002960b
cdqe
mov ecx, dword [r8 + rax*4 + 0x29834]
add rcx, r8
jmp rcx
mov rbx, qword [rsp + 0x40]
xor r8d, r8d
mov rcx, rbx
mov edx, r15d
call fcn.140048750
mov r12d, eax
test eax, eax
jns 0x140029631
mov eax, recv
jmp 0x140029436
jle 0x140029485
mov dword [rsp + 0x3c], eax
jmp 0x1400294a7
lea rdx, [rbp - 0x60]
mov rcx, r15
call fcn.140040c90
mov r14d, eax
xor r10d, r10d
jmp 0x1400296e4
mov rax, qword [rdx + 0x2e8]
lea r8, [rbp - 0x60]
mov rcx, r15
mov r9, qword [rax + 0x40]
test r9, r9
je 0x140029679
call r9
mov r14d, eax
xor r10d, r10d
jmp 0x1400296e4
xor edx, edx
call fcn.140038290
mov r14d, eax
xor r10d, r10d
jmp 0x1400296e4
mov rax, qword [rdx + 0x2e8]
mov r9, qword [rax + 0x48]
test r9, r9
je case.default.0x14002960b
lea r8, [rbp - 0x60]
mov rcx, r15
call r9
mov r14d, eax
xor r10d, r10d
jmp 0x1400296e4
lea r8, [rbp - 0x60]
xor edx, edx
mov rcx, r15
call fcn.140038290
mov r14d, eax
xor r10d, r10d
jmp 0x1400296e4
mov rax, qword [rdx + 0x2e8]
mov r9, qword [rax + 0x50]
jmp 0x140029693
lea r8, [rbp - 0x60]
mov rcx, r15
call fcn.14003e860
mov r14d, eax
xor r10d, r10d
jmp 0x1400296e4
mov r14d, r10d
mov r15d, dword [rsp + 0x3c]
lea rsi, [rbp - 0x60]
mov edi, r10d
mov ebx, 1
nop word [rax + rax]
lea eax, [rdi + 0x10]
mov ecx, ebx
bts ecx, eax
test r14d, ecx
je 0x140029763
mov rcx, qword [rsi]
lea r8, [rsp + 0x70]
xor edx, edx
mov dword [rsp + 0x70], r10d
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x14002973d
cmp qword [rsp + 0x68], 0
je 0x14002973d
test r12d, r12d
jne 0x14002973d
cmp dword [rsp + 0x70], r12d
je 0x14002973d
inc r15d
mov rdx, qword [r13 + 0x1a8]
xor r8d, r8d
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
inc edi
rol ebx, 1
add rsi, 8
mov r10d, 0
cmp edi, 5
jb 0x140029700
mov dword [rsp + 0x3c], r15d
lea r8, [0x140000000]
mov r15, qword [rsp + 0x58]
mov r15, qword [r15 + 0x10]
mov qword [rsp + 0x58], r15
test r15, r15
jne 0x1400295e1
mov rcx, qword [r13 + 0x1a8]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
mov r15d, dword [rsp + 0x34]
movzx ebx, byte [rbp + 0x100]
jmp 0x1400297a6
mov r13, qword [rsp + 0x50]
cmp byte [rsp + 0x30], 0
je 0x1400297b8
mov rcx, qword [rsp + 0x40]
call qword [fcn.14007d615]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400297c8
mov eax, dword [rsp + 0x3c]
mov dword [rcx], eax
cmp byte [rbp + 0xf8], 0
je 0x140029821
test r15d, r15d
jne 0x140029821
test bl, bl
jne 0x140029821
cmp dword [r13], 0xbab1e
mov dword [rsp + 0x34], r15d
jne 0x140029821
cmp byte [r13 + 0x1b3], bl
jne 0x140029821
lea rdx, [rsp + 0x34]
mov rcx, r13
call fcn.140028f20
test eax, eax
jne 0x140029821
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x140029821
mov ecx, dword [rsp + 0x48]
cmp eax, ecx
jg 0x140029817
test eax, eax
jns 0x140029819
mov eax, ecx
movsxd rcx, eax
call fcn.140048cd0
xor eax, eax
jmp 0x140029436
mov eax, 1
jmp 0x140029446