Function at 0x4542f0
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 rdi, [rdx + 0x40]
mov rsi, rdx
mov dword [rdx + 8], 3
mov qword [rsi + 0x80], r8
mov qword [rdx + 0x40], 0
mov rbp, rcx
mov qword [rdx + 0x70], rax
mov qword [rdi + 8], 0
mov rbx, r8
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0
mov r12, r9
test byte [r8 + 0x5a], 0x10
je 0x454388
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [rsi + 0xa0], rax
je 0x4546d8
or rax, 1
mov qword [rsi + 0xa8], 0xffffffffffffffff
mov qword [rsi + 0x58], rax
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r8d, r13d
mov rdx, r12
call qword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x454432
mov eax, dword [rbx + 0x58]
test eax, 0x40000
je 0x4545b0
mov qword [rsi + 0x60], 0
mov edx, dword [rbx + 0x7c]
add dword [rbx + 0x78], 1
add dword [rbx + 0x100], 1
mov r8d, edx
lea ecx, [rdx + 1]
test r8d, r8d
mov edx, ecx
mov dword [rbx + 0x7c], ecx
jne 0x454580
test al, 1
jne 0x454543
test al, 0x40
je 0x45456a
mov rax, qword [rbp + 0x48]
add dword [rbp + 0x20], 1
mov qword [rsi + 0x68], 0
test rax, rax
jne 0x4544ba
xor eax, eax
mov qword [rsi + 0x68], rsi
mov qword [rbp + 0x48], rsi
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 0x4545b0
mov qword [rsi + 0x60], 0
mov edx, dword [rbx + 0x7c]
add dword [rbx + 0x78], 1
add dword [rbx + 0x100], 1
mov ecx, edx
lea eax, [rdx + 1]
test ecx, ecx
mov edx, eax
mov dword [rbx + 0x7c], eax
jne 0x45451d
mov eax, dword [rbx + 0x58]
test al, 1
jne 0x4544e0
test al, 0x40
je 0x454507
nop word [rax + rax]
add dword [rbp + 0x20], 1
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbx
test eax, eax
jle 0x45466f
call rbx
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rsi + 0x40], rax
mov rax, qword [rbp + 0x48]
mov qword [rsi + 0x68], 0
test rax, rax
je 0x45441b
mov rdx, qword [rax + 0x68]
mov qword [rsi + 0x68], rdx
mov qword [rax + 0x68], rsi
mov qword [rbp + 0x48], rsi
xor eax, eax
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, [0x0051c828]
mov r8d, 0x392
call fcn.00472160
mov eax, dword [rbx + 0x58]
test al, 0x40
jne 0x4546f0
mov edx, dword [rbx + 0x7c]
mov ecx, eax
or ecx, 0x40
test al, 0x20
mov dword [rbx + 0x58], ecx
je 0x45451b
mov rax, qword [rbx + 8]
add dword [rax + 8], 1
mov eax, edx
test eax, eax
jg 0x454480
lea rdx, str.src_win_tcp.c
lea rcx, [0x0051c858]
mov r8d, 0x392
call fcn.00472160
jmp 0x454480
lea rdx, str.src_win_tcp.c
lea rcx, [0x0051c828]
mov r8d, 0x37d
call fcn.00472160
mov eax, dword [rbx + 0x58]
test al, 0x40
jne 0x454700
mov edx, dword [rbx + 0x7c]
mov ecx, eax
or ecx, 0x40
test al, 0x20
mov dword [rbx + 0x58], ecx
je 0x45457e
mov rax, qword [rbx + 8]
add dword [rax + 8], 1
mov ecx, edx
test ecx, ecx
jg 0x454402
lea rdx, str.src_win_tcp.c
lea rcx, [0x0051c858]
mov r8d, 0x37d
call fcn.00472160
jmp 0x454402
mov edx, r13d
mov rcx, r12
call fcn.0043eab0
mov qword [rsi + 0x60], rax
mov edx, dword [rbx + 0x7c]
add dword [rbx + 0x78], 1
add dword [rbx + 0x100], 1
mov r8d, edx
lea ecx, [rdx + 1]
test r8d, r8d
mov edx, ecx
mov dword [rbx + 0x7c], ecx
jne 0x454605
mov ecx, dword [rbx + 0x58]
test cl, 1
jne 0x454680
test cl, 0x40
jne 0x454614
mov eax, ecx
or eax, 0x40
and ecx, 0x20
mov dword [rbx + 0x58], eax
je 0x454603
mov rax, qword [rbx + 8]
add dword [rax + 8], 1
mov ecx, edx
test ecx, ecx
jle 0x4546b0
mov rax, qword [rsi + 0x60]
mov ecx, dword [rbx + 0x58]
add dword [rbp + 0x20], 1
add qword [rbx + 0x60], rax
and ecx, 0x100000
je 0x4544ca
mov rdx, qword [rsi + 0xa0]
lea rcx, [rsi + 0xa8]
mov r9, rsi
lea r8, [0x004535f0]
mov dword [rsp + 0x28], 0xc
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x4544ca
mov rbx, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbx
test eax, eax
jg 0x454495
call rbx
cdqe
jmp 0x4544a1
lea rcx, [0x0051c828]
lea rdx, str.src_win_tcp.c
mov r8d, 0x384
call fcn.00472160
mov ecx, dword [rbx + 0x58]
test cl, 0x40
je 0x4546d0
mov ecx, dword [rbx + 0x7c]
jmp 0x454605
lea rdx, str.src_win_tcp.c
lea rcx, [0x0051c858]
mov r8d, 0x384
call fcn.00472160
jmp 0x45460d
mov edx, dword [rbx + 0x7c]
jmp 0x4545ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x0051c7e9]
mov ecx, eax
call fcn.00440240
nop dword [rax]
mov eax, dword [rbx + 0x7c]
jmp 0x45451d
mov ecx, dword [rbx + 0x7c]
jmp 0x454580