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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x1a0
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov r14, qword [rcx + 0x10]
lea rax, str.octet
xor ebp, ebp
lea rdi, str.netascii
mov rbx, rcx
cmp byte [r14 + 0x1337], bpl
cmove rdi, rax
cmp edx, 7
ja case.0x1801eaaa6.1
movsxd rax, edx
lea rdx, [0x180000000]
mov ecx, dword [rdx + rax*4 + 0x1eafd0]
add rcx, rdx
jmp rcx
inc dword [rbx + 0x20]
mov eax, dword [rbx + 0x20]
cmp eax, dword [rbx + 0x28]
jle 0x1801eaac7
mov dword [rbx + 8], 0xffffff9e
xor eax, eax
mov dword [rbx], 3
jmp 0x1801eafa6
cmp byte [r14 + 0xace], bpl
je 0x1801eab12
mov rax, qword [rbx + 0x158]
mov byte [rax], bpl
mov rax, qword [rbx + 0x158]
mov byte [rax + 1], 2
mov rcx, qword [rbx + 0x158]
mov rax, qword [rbx + 0x10]
add rcx, 4
mov qword [rax + 0x1a8], rcx
mov rdx, qword [r14 + 0x11a8]
cmp rdx, 0xffffffffffffffff
je 0x1801eab36
mov rcx, r14
call fcn.1801dee70
jmp 0x1801eab36
xor ecx, ecx
xor edx, edx
nop word [rax + rax]
mov rax, qword [rbx + 0x158]
lea rdx, [rdx + 1]
mov byte [rdx + rax - 1], cl
inc ecx
cmp ecx, 2
jl 0x1801eab20
mov rax, qword [rbx + 0x10]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x20], 4
xor edx, edx
mov rcx, qword [rax + 0x11f8]
inc rcx
call fcn.1801fd750
mov ebp, eax
test eax, eax
jne 0x1801eafa6
movsxd rdx, dword [rbx + 0x144]
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rdi + rax], 0
jne 0x1801eab73
mov r9, qword [rsp + 0x40]
mov rcx, rdx
sub rcx, rax
mov rax, rsi
sub rcx, 4
nop
inc rax
cmp byte [r9 + rax], 0
jne 0x1801eab90
cmp rax, rcx
jbe 0x1801eabc3
lea rdx, str.TFTP_file_name_too_long
mov rcx, r14
call fcn.1801cd9c0
mov rcx, qword [rsp + 0x40]
call qword [fcn.18020f070]
mov eax, 0x47
jmp 0x1801eafa6
mov rcx, qword [rbx + 0x158]
lea r8, str._s_c_s_c
mov qword [rsp + 0x30], 0
add rcx, 2
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
call sym.gcm64.dll_curl_msnprintf
mov rcx, rsi
inc rcx
cmp byte [rdi + rcx], 0
jne 0x1801eabf4
mov rdx, qword [rsp + 0x40]
mov rax, rsi
cmp byte [rdx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1801eac05
lea rdi, [rax + 4]
add rdi, rcx
cmp byte [r14 + 0xab3], 0
jne 0x1801eaed4
cmp byte [r14 + 0xace], 0
je 0x1801eac54
mov r9, qword [r14 + 0x11a8]
cmp r9, 0xffffffffffffffff
je 0x1801eac54
lea r8, str._I64d
mov edx, 0x40
lea rcx, [rsp + 0x50]
call sym.gcm64.dll_curl_msnprintf
jmp 0x1801eac5e
mov eax, Ordinal_50
mov word [rsp + 0x50], ax
movsxd rax, dword [rbx + 0x144]
lea r8, [rdi + 6]
cmp r8, rax
jbe 0x1801eac78
mov ebp, 0x47
jmp 0x1801ead21
mov rdx, qword [rbx + 0x158]
lea rcx, str.tsize
add rdx, rdi
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1801eac90
mov rdi, r8
lea rcx, [rsp + 0x50]
mov rax, rsi
nop dword [rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1801eacb0
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x144]
add rcx, rdi
cmp rcx, rax
jbe 0x1801eacd5
mov ebp, 0x47
jmp 0x1801ead21
mov rdx, qword [rbx + 0x158]
lea rcx, [rsp + 0x50]
add rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1801eacf0
lea rcx, [rsp + 0x50]
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1801ead10
inc rdi
add rdi, rax
xor ebp, ebp
mov r9d, dword [rbx + 0x148]
lea r8, [0x18046c1ec]
mov edx, 0x40
lea rcx, [rsp + 0x50]
call sym.gcm64.dll_curl_msnprintf
test ebp, ebp
jne 0x1801eae01
movsxd rax, dword [rbx + 0x144]
lea r8, [rdi + 8]
cmp r8, rax
jbe 0x1801ead60
mov ebp, 0x47
jmp 0x1801eae01
mov rdx, qword [rbx + 0x158]
lea rcx, str.blksize
add rdx, rdi
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1801ead71
mov rdi, r8
lea rcx, [rsp + 0x50]
mov rax, rsi
nop dword [rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1801ead90
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x144]
add rcx, rdi
cmp rcx, rax
jbe 0x1801eadb5
mov ebp, 0x47
jmp 0x1801eae01
mov rdx, qword [rbx + 0x158]
lea rcx, [rsp + 0x50]
add rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1801eadd0
lea rcx, [rsp + 0x50]
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1801eadf0
inc rdi
add rdi, rax
xor ebp, ebp
mov r9d, dword [rbx + 0x24]
lea r8, [0x18046c1ec]
mov edx, 0x40
lea rcx, [rsp + 0x50]
call sym.gcm64.dll_curl_msnprintf
test ebp, ebp
jne 0x1801eaf45
movsxd rax, dword [rbx + 0x144]
lea r8, [rdi + 8]
cmp r8, rax
ja 0x1801eaf45
mov rdx, qword [rbx + 0x158]
lea rcx, str.timeout
add rdx, rdi
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1801eae50
lea rcx, [rsp + 0x50]
mov rax, rsi
nop dword [rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1801eae70
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x144]
add rcx, r8
cmp rcx, rax
ja 0x1801eaf45
mov rdx, qword [rbx + 0x158]
lea rcx, [rsp + 0x50]
add rdx, r8
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1801eaea1
lea rax, [rsp + 0x50]
nop word [rax + rax]
cmp byte [rax + rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x1801eaec0
lea rdi, [rsi + 1]
add rdi, r8
xor ebp, ebp
mov rax, qword [r14 + 0x18]
xor r9d, r9d
mov rcx, qword [rbx + 0x18]
mov r8d, edi
mov rdx, qword [rax + 0x58]
mov eax, dword [rdx + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rdx + 0x20]
mov rdx, qword [rbx + 0x158]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
movsxd rcx, eax
cmp rcx, rdi
je 0x1801eaf38
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x90]
mov ecx, eax
call fcn.1801b6a30
mov r8, rax
lea rdx, [0x18046c200]
mov rcx, r14
call fcn.1801cd9c0
mov rcx, qword [rsp + 0x40]
call qword [fcn.18020f070]
jmp 0x1801eafa4
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x1801eaba6
mov edx, 6
mov rcx, rbx
cmp byte [r14 + 0xace], bpl
je 0x1801eaf84
call fcn.1801ea0a0
mov ebp, eax
jmp 0x1801eafa4
mov edx, 4
mov rcx, rbx
call fcn.1801ea0a0
mov ebp, eax
jmp 0x1801eafa4
mov edx, 3
mov rcx, rbx
call fcn.1801ea050
mov ebp, eax
jmp 0x1801eafa4
mov dword [rbx], 3
jmp 0x1801eafa4
lea rdx, str.tftp_send_first:_internal_error
mov rcx, r14
call fcn.1801cd9c0
mov eax, ebp
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1800b7d20
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret