Function at 0x432000
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], 8
je 0x432098
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 0x432294
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 0x432140
test byte [rbx + 0x5a], 2
je 0x4321f0
mov qword [rsi + 0x60], 0
mov eax, dword [rbx + 0x7c]
add dword [rbx + 0x78], 1
add dword [rbx + 0x100], 1
lea edx, [rax + 1]
test eax, eax
mov dword [rbx + 0x7c], edx
jne 0x432110
mov eax, dword [rbx + 0x58]
test al, 4
jne 0x432110
mov edx, eax
or edx, 4
test al, 8
mov dword [rbx + 0x58], edx
je 0x432110
mov rax, qword [rbx + 8]
add dword [rax + 8], 1
nop
add dword [rbp + 0x20], 1
mov qword [rsi + 0x68], 0
mov rax, qword [rbp + 0x48]
test rax, rax
jne 0x4321ca
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 0x4321f0
mov qword [rsi + 0x60], 0
mov eax, dword [rbx + 0x7c]
add dword [rbx + 0x78], 1
add dword [rbx + 0x100], 1
lea edx, [rax + 1]
test eax, eax
mov dword [rbx + 0x7c], edx
jne 0x432190
mov eax, dword [rbx + 0x58]
test al, 4
jne 0x432190
mov edx, eax
or edx, 4
test al, 8
mov dword [rbx + 0x58], edx
je 0x432190
mov rax, qword [rbx + 8]
add dword [rax + 8], 1
nop dword [rax]
add dword [rbp + 0x20], 1
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbx
test eax, eax
jle 0x43228b
call rbx
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rsi + 0x40], rax
mov qword [rsi + 0x68], 0
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x432129
mov rax, qword [rax + 0x68]
mov qword [rsi + 0x68], rax
mov rax, qword [rbp + 0x48]
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
mov edx, r13d
mov rcx, r12
call fcn.00414170
mov qword [rsi + 0x60], rax
mov eax, dword [rbx + 0x7c]
add dword [rbx + 0x78], 1
add dword [rbx + 0x100], 1
lea edx, [rax + 1]
test eax, eax
mov dword [rbx + 0x7c], edx
jne 0x432232
mov eax, dword [rbx + 0x58]
test al, 4
jne 0x432232
mov edx, eax
or edx, 4
test al, 8
mov dword [rbx + 0x58], edx
je 0x432232
mov rax, qword [rbx + 8]
add dword [rax + 8], 1
add dword [rbp + 0x20], 1
mov rax, qword [rsi + 0x60]
add qword [rbx + 0x60], rax
test byte [rbx + 0x5a], 8
je 0x4321de
mov rdx, qword [rsi + 0xa0]
lea rcx, [rsi + 0xa8]
mov dword [rsp + 0x28], 0xc
mov dword [rsp + 0x20], 0xffffffff
mov r9, rsi
lea r8, [0x004305e0]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x4321de
mov rbx, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbx
test eax, eax
jg 0x4321a5
call rbx
cdqe
jmp 0x4321b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CreateEvent
mov ecx, eax
call fcn.00416440
nop
nop dword [rax]
sub rsp, 0x58
mov eax, dword [rcx + 0x100]
mov r9d, 0xfffff008
test eax, eax
jne 0x4322fa
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
mov r9d, dword [rsp + 0x4c]
je 0x432302
mov eax, r9d
add rsp, 0x58
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.00416500
mov r9d, eax
jmp 0x4322fa