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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x190
mov rax, qword [0x1402d9040]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r15, qword [rcx + 0x10]
lea rax, str.octet
xor edi, edi
movsxd rsi, edx
lea r12, str.netascii
mov rbx, rcx
cmp byte [r15 + 0x130a], dil
cmove r12, rax
cmp esi, 7
ja case.0x1401457f9.1
lea r13, [0x140000000]
mov eax, dword [r13 + rsi*4 + 0x145e50]
add rax, r13
jmp rax
inc dword [rcx + 0x20]
mov eax, dword [rcx + 0x20]
cmp eax, dword [rcx + 0x28]
jle 0x14014581a
mov dword [rcx + 8], 0xffffff9e
xor eax, eax
mov dword [rcx], 3
jmp 0x140145e24
mov rax, qword [rcx + 0x158]
cmp byte [r15 + 0x130f], dil
mov byte [rax], dil
mov rax, qword [rcx + 0x158]
je 0x140145877
mov byte [rax + 1], 2
mov rcx, qword [r15 + 0x1138]
cmp rcx, 0xffffffffffffffff
je 0x14014587b
mov eax, dword [r15 + 0xb24]
test rcx, rcx
js 0x140145864
or eax, 0x20
mov qword [r15 + 0xb00], rcx
mov dword [r15 + 0xb24], eax
jmp 0x14014587b
and eax, 0xffffffdf
mov qword [r15 + 0xb00], rdi
mov dword [r15 + 0xb24], eax
jmp 0x14014587b
mov byte [rax + 1], 1
mov rax, qword [rbx + 0x10]
mov r14, 0xffffffffffffffff
mov rdi, r14
mov rsi, qword [rax + 0x1188]
inc rsi
inc rdi
cmp byte [rsi + rdi], 0
jne 0x140145893
lea rcx, [rdi + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rax
test rax, rax
jne 0x1401458b7
lea eax, [r9 + 0x1b]
jmp 0x140145e24
mov rbp, rax
test rdi, rdi
je 0x14014593b
movzx ecx, byte [rsi]
cmp cl, 0x25
jne 0x140145926
cmp rdi, 2
jbe 0x140145926
movsx r8, byte [rsi + 1]
lea eax, [r8 - 0x30]
cmp al, 9
jbe 0x1401458ee
lea eax, [r8 - 0x61]
cmp al, 5
jbe 0x1401458ee
lea eax, [r8 - 0x41]
cmp al, 5
ja 0x140145926
movsx rdx, byte [rsi + 2]
lea eax, [rdx - 0x30]
cmp al, 9
jbe 0x140145908
lea eax, [rdx - 0x61]
cmp al, 5
jbe 0x140145908
lea eax, [rdx - 0x41]
cmp al, 5
ja 0x140145926
movzx ecx, byte [r8 + r13 + 0x26b910]
add rsi, 3
shl cl, 4
or cl, byte [rdx + r13 + 0x26b910]
sub rdi, 3
jmp 0x14014592c
inc rsi
dec rdi
test cl, cl
je 0x140145996
mov byte [r9], cl
inc r9
test rdi, rdi
jne 0x1401458c3
xor r13d, r13d
mov byte [r9], 0
movsxd rdx, dword [rbx + 0x144]
mov edi, r13d
mov rax, r14
nop
inc rax
cmp byte [r12 + rax], dil
jne 0x140145950
mov rcx, rdx
sub rcx, rax
mov rax, r14
sub rcx, 4
inc rax
cmp byte [rax + rbp], dil
jne 0x140145966
cmp rax, rcx
jbe 0x1401459a9
lea rdx, str.TFTP_file_name_too_long
mov rcx, r15
call fcn.140115830
mov rcx, rbp
call qword [fcn.14016c458]
mov eax, Ordinal_73
jmp 0x140145e24
mov rcx, rbp
call qword [fcn.14016c458]
mov eax, 3
jmp 0x140145e24
mov rcx, qword [rbx + 0x158]
lea r8, str._s_c_s_c
mov qword [rsp + 0x30], r13
add rcx, 2
mov qword [rsp + 0x28], r12
mov r9, rbp
mov qword [rsp + 0x20], r13
call sym.CheraxLoader.exe_curl_msnprintf
mov rcx, r14
inc rcx
cmp byte [r12 + rcx], dil
jne 0x1401459d5
mov rax, r14
cmp byte [rax + rbp + 1], dil
lea rax, [rax + 1]
jne 0x1401459e1
lea rsi, [rax + 4]
add rsi, rcx
cmp byte [r15 + 0xa9c], dil
jne 0x140145ce5
cmp byte [r15 + 0x130f], dil
je 0x140145a2d
mov r9, qword [r15 + 0x1138]
cmp r9, r14
je 0x140145a2d
lea r8, str._lld
mov edx, 0x40
lea rcx, [rsp + 0x40]
call sym.CheraxLoader.exe_curl_msnprintf
jmp 0x140145a37
mov eax, 0x30
mov word [rsp + 0x40], ax
movsxd rax, dword [rbx + 0x144]
lea rcx, [rsi + 6]
cmp rcx, rax
jbe 0x140145a4e
lea rcx, [rsp + 0x40]
jmp 0x140145aa3
mov rdx, qword [rbx + 0x158]
lea rcx, str.tsize
add rdx, rsi
nop
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140145a60
add rsi, 6
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
cmp byte [rcx + rax + 1], dil
lea rax, [rax + 1]
jne 0x140145a80
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x144]
add rcx, rsi
cmp rcx, rax
lea rcx, [rsp + 0x40]
jbe 0x140145ae1
mov r9d, dword [rbx + 0x148]
lea r8, [0x1402a6314]
mov edx, 0x40
call sym.CheraxLoader.exe_curl_msnprintf
mov r9d, dword [rbx + 0x24]
lea r8, [0x1402a6314]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call sym.CheraxLoader.exe_curl_msnprintf
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x14014597b
mov rdx, qword [rbx + 0x158]
add rdx, rsi
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140145af0
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
cmp byte [rcx + rax + 1], dil
lea rax, [rax + 1]
jne 0x140145b10
mov r9d, dword [rbx + 0x148]
lea rdi, [rax + 1]
lea r8, [0x1402a6314]
mov edx, 0x40
lea rcx, [rsp + 0x40]
add rdi, rsi
call sym.CheraxLoader.exe_curl_msnprintf
movsxd rcx, dword [rbx + 0x144]
lea rax, [rdi + 8]
cmp rax, rcx
ja 0x140145abb
mov rdx, qword [rbx + 0x158]
lea rcx, str.blksize
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 0x140145b70
add rdi, 8
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
cmp byte [rcx + rax + 1], r13b
lea rax, [rax + 1]
jne 0x140145b90
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x144]
add rcx, rdi
cmp rcx, rax
lea rcx, [rsp + 0x40]
jbe 0x140145bd4
mov r9d, dword [rbx + 0x24]
lea r8, [0x1402a6314]
mov edx, 0x40
call sym.CheraxLoader.exe_curl_msnprintf
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x14014597b
mov rdx, qword [rbx + 0x158]
add rdx, rdi
nop
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140145be0
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
inc rax
cmp byte [rcx + rax], r13b
jne 0x140145c00
mov r9d, dword [rbx + 0x24]
lea r8, [0x1402a6314]
inc rax
lea rcx, [rsp + 0x40]
mov edx, 0x40
add rdi, rax
call sym.CheraxLoader.exe_curl_msnprintf
movsxd rcx, dword [rbx + 0x144]
lea rax, [rdi + 8]
cmp rax, rcx
ja 0x140145c8e
mov rdx, qword [rbx + 0x158]
lea rcx, str.timeout
add rdx, rdi
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140145c50
add rdi, 8
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
cmp byte [rcx + rax + 1], r13b
lea rax, [rax + 1]
jne 0x140145c70
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x144]
add rcx, rdi
cmp rcx, rax
jbe 0x140145c9a
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x14014597b
mov rdx, qword [rbx + 0x158]
lea rcx, [rsp + 0x40]
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 0x140145cb0
lea rax, [rsp + 0x40]
nop word [rax + rax]
cmp byte [rax + r14 + 1], r13b
lea r14, [r14 + 1]
jne 0x140145cd0
lea rsi, [r14 + 1]
add rsi, rdi
mov edi, r13d
mov rax, qword [r15 + 0x20]
xor r9d, r9d
mov rcx, qword [rbx + 0x18]
mov r8d, esi
mov rax, qword [rax + 0x38]
lea rdx, [rax + 0x10]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov rdx, qword [rbx + 0x158]
call qword [sym.imp.WS2_32.dll_sendto]
movsxd rcx, eax
cmp rcx, rsi
je 0x140145d43
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rsp + 0x80]
call fcn.1400f5c00
mov r8, rax
lea rdx, [0x1402a6310]
mov rcx, r15
call fcn.140115830
mov rcx, rbp
call qword [fcn.14016c458]
jmp 0x140145e22
lea rdx, [0x1402a6310]
mov rcx, r15
cmp byte [r15 + 0x130f], dil
je 0x140145d99
lea r8, str.Connected_for_transmit
call fcn.140115960
mov rcx, rbx
mov dword [rbx], 2
call fcn.140145310
mov edi, eax
test eax, eax
jne 0x140145e22
mov edx, esi
mov rcx, rbx
call fcn.1401461a0
mov edi, eax
jmp 0x140145e22
lea r8, str.Connected_for_receive
call fcn.140115960
mov rcx, rbx
mov dword [rbx], 1
call fcn.140145310
mov edi, eax
test eax, eax
jne 0x140145e22
mov edx, esi
mov rcx, rbx
call fcn.140145e70
mov edi, eax
jmp 0x140145e22
lea r8, str.Connected_for_transmit
mov rcx, r15
lea rdx, [0x1402a6310]
call fcn.140115960
mov rcx, rbx
mov dword [rbx], 2
call fcn.140145310
mov edi, eax
test eax, eax
jne 0x140145e22
mov edx, esi
mov rcx, rbx
call fcn.1401461a0
mov edi, eax
jmp 0x140145e22
lea rdx, [0x1402a6310]
mov rcx, r15
jmp 0x140145d99
mov dword [rcx], 3
jmp 0x140145e22
lea rdx, str.tftp_send_first:_internal_error
mov rcx, r15
call fcn.140115830
mov eax, edi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14016b380
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
sub rsp, 0x28
mov r8d, dword [rcx]
mov r9, qword [rcx + 0x10]
test r8d, r8d
je 0x140146717
sub r8d, 1
je 0x14014670e
sub r8d, 1
je 0x140146705
lea rdx, [0x1402a6310]
mov rcx, r9
cmp r8d, 1
je 0x1401466f2
lea r8, str.Internal_state_machine_error
call fcn.140115830
mov eax, Ordinal_73
add rsp, 0x28
ret
lea r8, str.TFTP_finished
call fcn.140115960
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1401461a0
add rsp, 0x28
jmp fcn.140145e70
add rsp, 0x28
jmp 0x140145790