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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x230
lea rdi, [rsp + 0x30]
mov ecx, 0x80
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x240]
mov rax, qword [0x140234cc0]
xor rax, rsp
mov qword [rsp + 0x228], rax
mov dword [rsp + 0x7c], 0
mov dword [rsp + 0xa4], 0
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 0
lea rax, [rsp + rax + 0xc0]
mov qword [rsp + 0x168], rax
mov byte [rsp + 0x170], 0
xor eax, eax
test eax, eax
jne 0x1400626fb
cmp qword [rsp + 0x240], 0
je 0x14006271c
mov rax, qword [rsp + 0x240]
cmp dword [rax], 0xbab1e
je 0x140062726
mov eax, 1
jmp 0x14006324c
mov rax, qword [rsp + 0x240]
movzx eax, byte [rax + 0x182]
test eax, eax
je 0x140062743
mov eax, 8
jmp 0x14006324c
cmp dword [rsp + 0x258], 0
jge 0x140062757
mov eax, 0xa
jmp 0x14006324c
mov rax, qword [rsp + 0x240]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140062878
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call fcn.140062550
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x78], 0
jmp 0x14006279b
mov eax, dword [rsp + 0x78]
inc eax
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 5
jae 0x140062865
mov qword [rsp + 0x1c8], 0xffffffffffffffff
mov eax, dword [rsp + 0x78]
mov ecx, 1
mov dword [rsp + 0x210], ecx
movzx ecx, al
mov eax, dword [rsp + 0x210]
shl eax, cl
mov ecx, dword [rsp + 0x74]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x140062801
mov eax, dword [rsp + 0x78]
cmp qword [rsp + rax*8 + 0x48], 0xffffffffffffffff
jae 0x140062801
mov eax, dword [rsp + 0x7c]
inc eax
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x78]
mov rax, qword [rsp + rax*8 + 0x48]
mov qword [rsp + 0x1c8], rax
mov eax, dword [rsp + 0x78]
add eax, 0x10
mov ecx, 1
mov dword [rsp + 0x214], ecx
movzx ecx, al
mov eax, dword [rsp + 0x214]
shl eax, cl
mov ecx, dword [rsp + 0x74]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x140062853
mov eax, dword [rsp + 0x78]
cmp qword [rsp + rax*8 + 0x48], 0xffffffffffffffff
jae 0x140062853
mov eax, dword [rsp + 0x7c]
inc eax
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x78]
mov rax, qword [rsp + rax*8 + 0x48]
mov qword [rsp + 0x1c8], rax
cmp qword [rsp + 0x1c8], 0xffffffffffffffff
jne 0x140062860
jmp 0x140062865
jmp 0x140062791
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
jmp 0x140062768
lea rdx, [rsp + 0x94]
mov rcx, qword [rsp + 0x240]
call fcn.140061410
cmp dword [rsp + 0x94], 0
jl 0x1400628b5
mov eax, dword [rsp + 0x258]
cmp dword [rsp + 0x94], eax
jge 0x1400628b5
mov eax, dword [rsp + 0x94]
mov dword [rsp + 0x258], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x250]
mov ecx, dword [rsp + 0x7c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x7c], eax
movzx eax, byte [rsp + 0x270]
test eax, eax
je 0x1400628e9
mov eax, dword [rsp + 0x7c]
inc eax
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0xa
jbe 0x140062926
mov eax, dword [rsp + 0x7c]
imul rax, rax, 0x10
mov rcx, rax
call qword [section..data]
mov qword [rsp + 0x168], rax
cmp qword [rsp + 0x168], 0
jne 0x14006291e
mov eax, 3
jmp 0x14006324c
mov byte [rsp + 0x170], 1
mov dword [rsp + 0x7c], 0
cmp dword [rsp + 0x80], 0
je 0x140062b5d
mov rax, qword [rsp + 0x240]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140062b5d
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call fcn.140062550
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x78], 0
jmp 0x140062980
mov eax, dword [rsp + 0x78]
inc eax
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 5
jae 0x140062b4a
mov qword [rsp + 0x1d0], 0xffffffffffffffff
mov dword [rsp + 0x1d8], 0
mov eax, dword [rsp + 0x78]
mov ecx, 1
mov dword [rsp + 0x218], ecx
movzx ecx, al
mov eax, dword [rsp + 0x218]
shl eax, cl
mov ecx, dword [rsp + 0x74]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x140062a38
mov eax, dword [rsp + 0x78]
cmp qword [rsp + rax*8 + 0x48], 0xffffffffffffffff
jae 0x140062a38
mov eax, dword [rsp + 0x78]
mov rax, qword [rsp + rax*8 + 0x48]
mov qword [rsp + 0x1d0], rax
mov eax, dword [rsp + 0x1d8]
or eax, 0x29
mov dword [rsp + 0x1d8], eax
mov eax, dword [rsp + 0x7c]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x168]
mov rdx, qword [rsp + 0x1d0]
mov qword [rcx + rax], rdx
mov eax, dword [rsp + 0x7c]
imul rax, rax, 0x10
mov ecx, 0x300
mov rdx, qword [rsp + 0x168]
mov word [rdx + rax + 8], cx
mov eax, dword [rsp + 0x7c]
inc eax
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x78]
add eax, 0x10
mov ecx, 1
mov dword [rsp + 0x21c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x21c]
shl eax, cl
mov ecx, dword [rsp + 0x74]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x140062aeb
mov eax, dword [rsp + 0x78]
cmp qword [rsp + rax*8 + 0x48], 0xffffffffffffffff
jae 0x140062aeb
mov eax, dword [rsp + 0x78]
mov rax, qword [rsp + rax*8 + 0x48]
mov qword [rsp + 0x1d0], rax
mov eax, dword [rsp + 0x1d8]
or eax, 0x32
mov dword [rsp + 0x1d8], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x1d0]
call qword [sym.imp.WS2_32.dll_send]
mov eax, dword [rsp + 0x7c]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x168]
mov rdx, qword [rsp + 0x1d0]
mov qword [rcx + rax], rdx
mov eax, dword [rsp + 0x7c]
imul rax, rax, 0x10
mov ecx, reloc.WS2_32.dll_recv
mov rdx, qword [rsp + 0x168]
mov word [rdx + rax + 8], cx
mov eax, dword [rsp + 0x7c]
inc eax
mov dword [rsp + 0x7c], eax
cmp qword [rsp + 0x1d0], 0xffffffffffffffff
jne 0x140062af8
jmp 0x140062b4a
mov r8d, dword [rsp + 0x1d8]
mov rax, qword [rsp + 0x240]
mov rdx, qword [rax + 0x178]
mov rcx, qword [rsp + 0x1d0]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x140062b45
movzx eax, byte [rsp + 0x170]
test eax, eax
je 0x140062b3b
mov rcx, qword [rsp + 0x168]
call qword [fcn.14010055c]
mov eax, 4
jmp 0x14006324c
jmp 0x140062976
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
jmp 0x14006294d
mov dword [rsp + 0x78], 0
jmp 0x140062b71
mov eax, dword [rsp + 0x78]
inc eax
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x250]
cmp dword [rsp + 0x78], eax
jae 0x140062dbb
mov dword [rsp + 0x1dc], 0
mov eax, dword [rsp + 0x78]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x248]
movsx eax, word [rcx + rax + 8]
and eax, 1
test eax, eax
je 0x140062bba
mov eax, dword [rsp + 0x1dc]
or eax, 0x29
mov dword [rsp + 0x1dc], eax
mov eax, dword [rsp + 0x78]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x248]
movsx eax, word [rcx + rax + 8]
and eax, 2
test eax, eax
je 0x140062be7
mov eax, dword [rsp + 0x1dc]
or eax, 4
mov dword [rsp + 0x1dc], eax
mov eax, dword [rsp + 0x78]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x248]
movsx eax, word [rcx + rax + 8]
and eax, 4
test eax, eax
je 0x140062c36
mov eax, dword [rsp + 0x1dc]
or eax, 0x32
mov dword [rsp + 0x1dc], eax
mov eax, dword [rsp + 0x78]
imul rax, rax, 0x10
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x248]
mov rcx, qword [rcx + rax]
call qword [sym.imp.WS2_32.dll_send]
mov eax, dword [rsp + 0x78]
imul rax, rax, 0x10
mov r8d, dword [rsp + 0x1dc]
mov rcx, qword [rsp + 0x240]
mov rdx, qword [rcx + 0x178]
mov rcx, qword [rsp + 0x248]
mov rcx, qword [rcx + rax]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x140062c8f
movzx eax, byte [rsp + 0x170]
test eax, eax
je 0x140062c85
mov rcx, qword [rsp + 0x168]
call qword [fcn.14010055c]
mov eax, 4
jmp 0x14006324c
mov eax, dword [rsp + 0x78]
imul rax, rax, 0x10
mov ecx, dword [rsp + 0x7c]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x168]
mov r8, qword [rsp + 0x248]
mov rax, qword [r8 + rax]
mov qword [rdx + rcx], rax
mov eax, dword [rsp + 0x7c]
imul rax, rax, 0x10
xor ecx, ecx
mov rdx, qword [rsp + 0x168]
mov word [rdx + rax + 8], cx
mov eax, dword [rsp + 0x78]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x248]
movsx eax, word [rcx + rax + 8]
and eax, 1
test eax, eax
je 0x140062d19
mov eax, dword [rsp + 0x7c]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x168]
movsx eax, word [rcx + rax + 8]
or eax, 0x300
mov ecx, dword [rsp + 0x7c]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x168]
mov word [rdx + rcx + 8], ax
mov eax, dword [rsp + 0x78]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x248]
movsx eax, word [rcx + rax + 8]
and eax, 2
test eax, eax
je 0x140062d63
mov eax, dword [rsp + 0x7c]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x168]
movsx eax, word [rcx + rax + 8]
bts eax, 0xa
mov ecx, dword [rsp + 0x7c]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x168]
mov word [rdx + rcx + 8], ax
mov eax, dword [rsp + 0x78]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x248]
movsx eax, word [rcx + rax + 8]
and eax, 4
test eax, eax
je 0x140062dac
mov eax, dword [rsp + 0x7c]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x168]
movsx eax, word [rcx + rax + 8]
or eax, 0x10
mov ecx, dword [rsp + 0x7c]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x168]
mov word [rdx + rcx + 8], ax
mov eax, dword [rsp + 0x7c]
inc eax
mov dword [rsp + 0x7c], eax
jmp 0x140062b67
cmp dword [rsp + 0x7c], 0
jne 0x140062dd2
movzx eax, byte [rsp + 0x270]
test eax, eax
je 0x140063177
cmp dword [rsp + 0x7c], 0
je 0x140062df6
xor r8d, r8d
mov edx, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0x168]
call fcn.14009b040
mov dword [rsp + 0x1e0], eax
jmp 0x140062e01
mov dword [rsp + 0x1e0], 0
cmp dword [rsp + 0x1e0], 0
jg 0x140062e3a
mov rax, qword [rsp + 0x240]
add rax, 0x178
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x258]
xor r8d, r8d
mov rdx, rax
mov ecx, 1
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp dword [rsp + 0x1e0], 0
jle 0x140062e52
mov eax, dword [rsp + 0x1e0]
mov dword [rsp + 0xa4], eax
mov dword [rsp + 0x78], 0
jmp 0x140062e66
mov eax, dword [rsp + 0x78]
inc eax
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x250]
cmp dword [rsp + 0x78], eax
jae 0x140063037
mov eax, dword [rsp + 0x78]
mov ecx, dword [rsp + 0x80]
add ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x168]
movsx eax, word [rcx + rax + 0xa]
mov dword [rsp + 0x1e4], eax
xor eax, eax
mov word [rsp + 0x1e8], ax
mov dword [rsp + 0x188], 0
mov eax, dword [rsp + 0x78]
imul rax, rax, 0x10
lea r8, [rsp + 0x188]
xor edx, edx
mov rcx, qword [rsp + 0x248]
mov rcx, qword [rcx + rax]
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x140062f73
mov eax, dword [rsp + 0x188]
and eax, 0x29
test eax, eax
je 0x140062f02
movzx eax, word [rsp + 0x1e8]
or eax, 1
mov word [rsp + 0x1e8], ax
mov eax, dword [rsp + 0x188]
and eax, 0x32
test eax, eax
je 0x140062f23
movzx eax, word [rsp + 0x1e8]
or eax, 4
mov word [rsp + 0x1e8], ax
mov eax, dword [rsp + 0x188]
and eax, 4
test eax, eax
je 0x140062f44
movzx eax, word [rsp + 0x1e8]
or eax, 2
mov word [rsp + 0x1e8], ax
cmp qword [rsp + 0x260], 0
je 0x140062f73
cmp dword [rsp + 0x1e0], 0
jg 0x140062f73
cmp dword [rsp + 0x188], 0
je 0x140062f73
mov eax, dword [rsp + 0xa4]
inc eax
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0x78]
imul rax, rax, 0x10
xor r8d, r8d
mov rcx, qword [rsp + 0x240]
mov rdx, qword [rcx + 0x178]
mov rcx, qword [rsp + 0x248]
mov rcx, qword [rcx + rax]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp dword [rsp + 0x1e0], 0
jg 0x140062fae
jmp 0x140062e5c
mov eax, dword [rsp + 0x1e4]
and eax, 0x300
test eax, eax
je 0x140062fd1
movzx eax, word [rsp + 0x1e8]
or eax, 1
mov word [rsp + 0x1e8], ax
mov eax, dword [rsp + 0x1e4]
and eax, 0x10
test eax, eax
je 0x140062ff2
movzx eax, word [rsp + 0x1e8]
or eax, 4
mov word [rsp + 0x1e8], ax
mov eax, dword [rsp + 0x1e4]
and eax, 0x400
test eax, eax
je 0x140063015
movzx eax, word [rsp + 0x1e8]
or eax, 2
mov word [rsp + 0x1e8], ax
mov eax, dword [rsp + 0x78]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x248]
movzx edx, word [rsp + 0x1e8]
mov word [rcx + rax + 0xa], dx
jmp 0x140062e5c
cmp dword [rsp + 0x80], 0
je 0x140063162
mov rax, qword [rsp + 0x240]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140063162
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call fcn.140062550
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x78], 0
jmp 0x140063089
mov eax, dword [rsp + 0x78]
inc eax
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 5
jae 0x14006314f
mov eax, dword [rsp + 0x78]
mov ecx, 1
mov dword [rsp + 0x220], ecx
movzx ecx, al
mov eax, dword [rsp + 0x220]
shl eax, cl
mov ecx, dword [rsp + 0x78]
add ecx, 0x10
mov edx, 1
shl edx, cl
mov ecx, edx
or eax, ecx
mov ecx, dword [rsp + 0x74]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x140063148
mov dword [rsp + 0x188], 0
mov eax, dword [rsp + 0x78]
lea r8, [rsp + 0x188]
xor edx, edx
mov rcx, qword [rsp + rax*8 + 0x48]
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x140063125
cmp qword [rsp + 0x260], 0
je 0x140063125
cmp dword [rsp + 0x1e0], 0
jg 0x140063125
cmp dword [rsp + 0x188], 0
je 0x140063125
mov eax, dword [rsp + 0xa4]
inc eax
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0x78]
xor r8d, r8d
mov rcx, qword [rsp + 0x240]
mov rdx, qword [rcx + 0x178]
mov rcx, qword [rsp + rax*8 + 0x48]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
jmp 0x14006314a
jmp 0x14006314f
jmp 0x14006307f
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
jmp 0x140063056
mov rax, qword [rsp + 0x240]
mov rcx, qword [rax + 0x178]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
movzx eax, byte [rsp + 0x170]
test eax, eax
je 0x140063191
mov rcx, qword [rsp + 0x168]
call qword [fcn.14010055c]
cmp qword [rsp + 0x260], 0
je 0x1400631ad
mov rax, qword [rsp + 0x260]
mov ecx, dword [rsp + 0xa4]
mov dword [rax], ecx
movzx eax, byte [rsp + 0x268]
test eax, eax
je 0x14006324a
cmp dword [rsp + 0x7c], 0
jne 0x14006324a
movzx eax, byte [rsp + 0x270]
test eax, eax
jne 0x14006324a
mov dword [rsp + 0x1f4], 0
lea rdx, [rsp + 0x1f4]
mov rcx, qword [rsp + 0x240]
call fcn.14005f820
test eax, eax
jne 0x14006324a
cmp dword [rsp + 0x1f4], 0
je 0x14006324a
mov eax, dword [rsp + 0x258]
cmp dword [rsp + 0x1f4], eax
jle 0x140063222
mov eax, dword [rsp + 0x258]
mov dword [rsp + 0x1f4], eax
jmp 0x14006323a
cmp dword [rsp + 0x1f4], 0
jge 0x14006323a
mov eax, dword [rsp + 0x258]
mov dword [rsp + 0x1f4], eax
movsxd rax, dword [rsp + 0x1f4]
mov rcx, rax
call fcn.14009b850
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_getpeername
call fcn.1400f2a80
mov rax, rdi
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.1400f1ec0
add rsp, 0x230
pop rdi
ret