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

Disassembly:
mov r11, rsp
sub rsp, 0xb8
mov rax, qword [0x005ca070]
mov qword [rsp + 0x80], rax
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov qword [r11 - 8], rsi
mov rbx, rcx
mov qword [r11 - 0x18], r12
xor ebp, ebp
mov rax, qword [rbx + 0x10]
lea rcx, str.octet
lea rsi, str.netascii
mov r12, qword [rax]
mov qword [r11 - 0x20], r13
cmp byte [r12 + 0x38b], bpl
cmove rsi, rcx
cmp edx, 7
ja case.0x5404a0.1
movsxd rax, edx
lea rdx, [0x00400000]
mov ecx, dword [rdx + rax*4 + 0x14097c]
add rcx, rdx
jmp rcx
inc dword [rbx + 0x20]
mov eax, dword [rbx + 0x20]
cmp eax, dword [rbx + 0x28]
jle 0x5404c1
mov dword [rbx + 8], 0xffffff9e
mov dword [rbx], 3
xor eax, eax
jmp 0x54093e
cmp byte [r12 + 0x398], bpl
je 0x540511
mov rax, qword [rbx + 0x170]
mov byte [rax], bpl
mov rax, qword [rbx + 0x170]
mov byte [rax + 1], 2
mov rax, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x170]
mov rcx, qword [rax]
add rdx, 4
mov qword [rcx + 0x120], rdx
mov rdx, qword [r12 + 0x240]
cmp rdx, 0xffffffffffffffff
je 0x540526
mov rcx, r12
call fcn.00553200
jmp 0x540526
mov rax, qword [rbx + 0x170]
mov byte [rax], bpl
mov rax, qword [rbx + 0x170]
mov byte [rax + 1], 1
mov rax, qword [rbx + 0x10]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x87e0]
mov rcx, r12
inc rdx
call fcn.00554540
test rax, rax
mov r13, rax
jne 0x540556
lea eax, [r13 + 0x1b]
jmp 0x54093e
mov rcx, qword [rbx + 0x170]
movsxd rdx, dword [rbx + 0x15c]
mov qword [rsp + 0x30], rbp
lea r8, str._s_c_s_c
add rcx, 2
mov r9, rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0x20], rbp
call fcn.0052b590
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rsi
not rcx
lea rdx, [rcx - 1]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
cmp byte [r12 + 0x398], al
not rcx
lea rsi, [rdx + rcx + 3]
je 0x5405e5
mov r9, qword [r12 + 0x240]
cmp r9, 0xffffffffffffffff
je 0x5405e5
lea r8, str._lld
lea edx, [rax + 0x40]
lea rcx, [rsp + 0x40]
call fcn.0052b590
jmp 0x5405ec
mov word [rsp + 0x40], gethostbyname
movsxd rax, dword [rbx + 0x15c]
lea rcx, [rsi + 6]
cmp rcx, rax
jbe 0x540601
mov rax, rbp
jmp 0x540635
mov rax, qword [rbx + 0x170]
lea rcx, str.tsize
lea rdx, [rsi + rax]
nop
nop
nop
nop
movzx eax, byte [rcx]
inc rdx
inc rcx
test al, al
mov byte [rdx - 1], al
jne 0x540620
mov eax, 6
add rsi, rax
xor eax, eax
lea rdi, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movsxd rax, dword [rbx + 0x15c]
not rcx
lea rdx, [rcx + rsi]
cmp rdx, rax
jbe 0x540660
mov rcx, rbp
jmp 0x540693
mov rax, qword [rbx + 0x170]
lea rcx, [rsp + 0x40]
lea rdx, [rsi + rax]
movzx eax, byte [rcx]
inc rdx
inc rcx
test al, al
mov byte [rdx - 1], al
jne 0x540670
lea rdi, [rsp + 0x40]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
mov r9d, dword [rbx + 0x160]
add rsi, rcx
lea r8, [0x005629b4]
lea rcx, [rsp + 0x40]
mov edx, 0x40
call fcn.0052b590
movsxd rax, dword [rbx + 0x15c]
lea rdx, [rsi + 8]
cmp rdx, rax
jbe 0x5406c8
mov rax, rbp
jmp 0x5406f5
mov rax, qword [rbx + 0x170]
lea rcx, str.blksize
lea rdx, [rsi + rax]
nop
nop
movzx eax, byte [rcx]
inc rdx
inc rcx
test al, al
mov byte [rdx - 1], al
jne 0x5406e0
mov eax, 8
add rsi, rax
xor eax, eax
lea rdi, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movsxd rax, dword [rbx + 0x15c]
not rcx
lea rdx, [rcx + rsi]
cmp rdx, rax
jbe 0x540720
mov rcx, rbp
jmp 0x540753
mov rax, qword [rbx + 0x170]
lea rcx, [rsp + 0x40]
lea rdx, [rsi + rax]
movzx eax, byte [rcx]
inc rdx
inc rcx
test al, al
mov byte [rdx - 1], al
jne 0x540730
lea rdi, [rsp + 0x40]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
mov r9d, dword [rbx + 0x24]
add rsi, rcx
lea r8, [0x005629b4]
lea rcx, [rsp + 0x40]
mov edx, 0x40
imul r9d, dword [rbx + 0x28]
call fcn.0052b590
movsxd rax, dword [rbx + 0x15c]
lea rdx, [rsi + 9]
cmp rdx, rax
jbe 0x54078a
mov rax, rbp
jmp 0x5407b5
mov rax, qword [rbx + 0x170]
lea rcx, str.interval
lea rdx, [rsi + rax]
nop
movzx eax, byte [rcx]
inc rdx
inc rcx
test al, al
mov byte [rdx - 1], al
jne 0x5407a0
mov eax, 9
add rsi, rax
xor eax, eax
lea rdi, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movsxd rax, dword [rbx + 0x15c]
not rcx
lea rdx, [rcx + rsi]
cmp rdx, rax
jbe 0x5407e0
mov rcx, rbp
jmp 0x540813
mov rax, qword [rbx + 0x170]
lea rdx, [rsp + 0x40]
lea rcx, [rsi + rax]
movzx eax, byte [rdx]
inc rcx
inc rdx
test al, al
mov byte [rcx - 1], al
jne 0x5407f0
lea rdi, [rsp + 0x40]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
mov rax, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x170]
add rsi, rcx
mov rcx, qword [rax + 0x50]
xor r9d, r9d
mov r8d, esi
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rcx + 0x20]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov rdi, qword [rsp + 0xa8]
movsxd rdx, eax
cmp rdx, rsi
je 0x540878
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx + 0x10]
mov edx, eax
call fcn.0052a9d0
lea rdx, [0x005626ec]
mov rcx, r12
mov r8, rax
call fcn.005374d0
mov rcx, r13
call fcn.0052cac0
jmp 0x54093c
cmp byte [r12 + 0x398], bpl
je 0x5408a3
mov edx, 6
mov rcx, rbx
call fcn.00540370
mov ebp, eax
jmp 0x54093c
mov edx, 6
mov rcx, rbx
call fcn.005403d0
mov ebp, eax
jmp 0x54093c
lea r8, str.Connected_for_transmit
lea rdx, [0x00567710]
mov rcx, r12
call fcn.005373d0
mov rcx, rbx
mov dword [rbx], 2
call fcn.0053f1c0
test eax, eax
jne 0x54089c
lea edx, [rax + 4]
mov rcx, rbx
call fcn.0053fbd0
mov ebp, eax
jmp 0x54093c
lea r8, str.Connected_for_receive
lea rdx, [0x00567710]
mov rcx, r12
call fcn.005373d0
mov rcx, rbx
mov dword [rbx], 1
call fcn.0053f1c0
test eax, eax
jne 0x54089c
lea edx, [rax + 3]
mov rcx, rbx
call fcn.0053f890
mov ebp, eax
jmp 0x54093c
mov dword [rbx], 3
jmp 0x54093c
lea rdx, str.tftp_send_first:_internal_error
mov rcx, r12
call fcn.005374d0
mov eax, ebp
mov r13, qword [rsp + 0x98]
mov r12, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x80]
call fcn.0055e990
add rsp, 0xb8
ret