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

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rax, qword [rsp + 0xb8]
mov r13d, dword [rsp + 0xb0]
lea rbp, [rdx + 0x40]
mov rbx, rdx
mov dword [rdx + 8], 3
mov qword [rbx + 0x80], r8
mov qword [rdx + 0x40], 0
mov rdi, rcx
mov qword [rdx + 0x48], 0
mov qword [rdx + 0x70], rax
mov rsi, r8
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
mov r12, r9
test byte [r8 + 0x5a], 0x10
je 0x461008
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [rbx + 0xa0], rax
je 0x4613a8
or rax, 1
mov qword [rbx + 0xa8], 0xffffffffffffffff
mov qword [rbx + 0x58], rax
mov rcx, qword [rsi + 0x110]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0
mov r8d, r13d
mov rdx, r12
call qword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x4610e0
mov edx, dword [rsi + 0x58]
test edx, 0x40000
je 0x461270
mov eax, dword [rsi + 0x7c]
mov qword [rbx + 0x60], 0
add dword [rsi + 0x78], 1
add dword [rsi + 0x100], 1
mov r8d, eax
lea ecx, [rax + 1]
test r8d, r8d
mov eax, ecx
mov dword [rsi + 0x7c], ecx
jne 0x4611df
test dl, 1
jne 0x4611a0
test dl, 0x40
je 0x4611c8
nop dword [rax]
lea rax, [rdi + 0x20]
mov qword [rbx + 0x10], rax
mov rdx, qword [rdi + 0x28]
lea rax, [rbx + 0x10]
mov qword [rbx + 0x18], rdx
mov qword [rdx], rax
mov qword [rdi + 0x28], rax
mov rax, qword [rdi + 0x48]
mov qword [rbx + 0x68], 0
test rax, rax
je 0x461181
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0x68], rdx
mov qword [rax + 0x68], rbx
mov qword [rdi + 0x48], rbx
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x461270
mov eax, dword [rsi + 0x7c]
mov qword [rbx + 0x60], 0
add dword [rsi + 0x78], 1
add dword [rsi + 0x100], 1
mov ecx, eax
lea edx, [rax + 1]
test ecx, ecx
mov eax, edx
mov dword [rsi + 0x7c], edx
jne 0x461244
mov edx, dword [rsi + 0x58]
test dl, 1
jne 0x461205
test dl, 0x40
je 0x46122d
nop
lea rax, [rdi + 0x20]
mov rsi, qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rbx + 0x10], rax
mov rdx, qword [rdi + 0x28]
lea rax, [rbx + 0x10]
mov qword [rbx + 0x18], rdx
mov qword [rdx], rax
mov qword [rdi + 0x28], rax
call rsi
test eax, eax
jle 0x461344
call rsi
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov rax, qword [rdi + 0x48]
mov qword [rbx + 0x68], 0
test rax, rax
jne 0x4610c0
xor eax, eax
mov qword [rbx + 0x68], rbx
mov qword [rdi + 0x48], rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, str.src_win_tcp.c
lea rcx, [0x004cb008]
mov r8d, 0x37f
call fcn.0048c6c0
mov edx, dword [rsi + 0x58]
test dl, 0x40
jne 0x4613c0
mov eax, dword [rsi + 0x7c]
mov ecx, edx
or ecx, 0x40
and edx, 0x20
mov dword [rsi + 0x58], ecx
je 0x4611dd
mov rdx, qword [rsi + 8]
add dword [rdx + 8], 1
mov ecx, eax
test ecx, ecx
jg 0x461090
lea rdx, str.src_win_tcp.c
lea rcx, [0x004cb038]
mov r8d, 0x37f
call fcn.0048c6c0
jmp 0x461090
lea rdx, str.src_win_tcp.c
lea rcx, [0x004cb008]
mov r8d, 0x394
call fcn.0048c6c0
mov edx, dword [rsi + 0x58]
test dl, 0x40
jne 0x4613d0
mov eax, dword [rsi + 0x7c]
mov ecx, edx
or ecx, 0x40
and edx, 0x20
mov dword [rsi + 0x58], ecx
je 0x461242
mov rdx, qword [rsi + 8]
add dword [rdx + 8], 1
mov edx, eax
test edx, edx
jg 0x461130
lea rdx, str.src_win_tcp.c
lea rcx, [0x004cb038]
mov r8d, 0x394
call fcn.0048c6c0
jmp 0x461130
mov edx, r13d
mov rcx, r12
call fcn.0044ad30
mov qword [rbx + 0x60], rax
mov eax, dword [rsi + 0x7c]
add dword [rsi + 0x78], 1
add dword [rsi + 0x100], 1
mov ecx, eax
lea edx, [rax + 1]
test ecx, ecx
mov eax, edx
mov dword [rsi + 0x7c], edx
jne 0x4612c3
mov edx, dword [rsi + 0x58]
test dl, 1
jne 0x461350
test dl, 0x40
jne 0x4612ce
mov ecx, edx
or ecx, 0x40
and edx, 0x20
mov dword [rsi + 0x58], ecx
je 0x4612c1
mov rdx, qword [rsi + 8]
add dword [rdx + 8], 1
mov edx, eax
test edx, edx
jle 0x461380
mov edx, dword [rsi + 0x58]
lea rax, [rdi + 0x20]
mov qword [rbx + 0x10], rax
mov rcx, qword [rdi + 0x28]
lea rax, [rbx + 0x10]
mov qword [rbx + 0x18], rcx
mov qword [rcx], rax
mov qword [rdi + 0x28], rax
mov rax, qword [rbx + 0x60]
add qword [rsi + 0x60], rax
and edx, 0x100000
je 0x4610d0
mov rdx, qword [rbx + 0xa0]
lea rcx, [rbx + 0xa8]
mov dword [rsp + 0x28], 0xc
mov dword [rsp + 0x20], 0xffffffff
mov r9, rbx
lea r8, [0x004601d0]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x4610d0
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
test eax, eax
jg 0x46115c
call rsi
cdqe
jmp 0x461168
lea rdx, str.src_win_tcp.c
lea rcx, [0x004cb008]
mov r8d, 0x386
call fcn.0048c6c0
mov edx, dword [rsi + 0x58]
test dl, 0x40
je 0x4613a0
mov edx, dword [rsi + 0x7c]
jmp 0x4612c3
lea rdx, str.src_win_tcp.c
lea rcx, [0x004cb038]
mov r8d, 0x386
call fcn.0048c6c0
jmp 0x4612cb
mov eax, dword [rsi + 0x7c]
jmp 0x4612ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x004cafc9]
mov ecx, eax
call fcn.0044c530
nop dword [rax]
mov ecx, dword [rsi + 0x7c]
jmp 0x4611df
mov edx, dword [rsi + 0x7c]
jmp 0x461244