Function at 0x14011c750
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
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x14025d030]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r15, qword [rcx + 0x10]
lea rax, str.netascii
xor edi, edi
movsxd rsi, edx
mov rbx, rcx
lea rcx, str.octet
cmp byte [r15 + 0x12de], dil
cmove rax, rcx
mov qword [rsp + 0x48], rax
cmp esi, 7
ja case.0x14011c7c4.1
lea rdx, [0x140000000]
mov ecx, dword [rdx + rsi*4 + 0x11ce4c]
add rcx, rdx
jmp rcx
inc dword [rbx + 0x20]
mov eax, dword [rbx + 0x20]
cmp eax, dword [rbx + 0x28]
jle 0x14011c7e5
mov dword [rbx + 8], 0xffffff9e
xor eax, eax
mov dword [rbx], 3
jmp 0x14011ce20
mov rax, qword [rbx + 0x158]
cmp byte [r15 + 0xaa6], dil
mov byte [rax], dil
mov rax, qword [rbx + 0x158]
je 0x14011c858
mov byte [rax + 1], 2
mov rcx, qword [rbx + 0x158]
mov rax, qword [rbx + 0x10]
add rcx, 4
mov qword [rax + 0x1a8], rcx
mov rcx, qword [r15 + 0x1158]
cmp rcx, 0xffffffffffffffff
je 0x14011c85c
mov eax, dword [r15 + 0xb14]
test rcx, rcx
js 0x14011c845
or eax, 0x20
mov qword [r15 + 0xaf0], rcx
mov dword [r15 + 0xb14], eax
jmp 0x14011c85c
and eax, 0xffffffdf
mov qword [r15 + 0xaf0], rdi
mov dword [r15 + 0xb14], eax
jmp 0x14011c85c
mov byte [rax + 1], 1
mov rax, qword [rbx + 0x10]
mov r13, 0xffffffffffffffff
mov rdi, r13
mov rsi, qword [rax + 0x11a8]
inc rsi
xor r12d, r12d
inc rdi
cmp byte [rsi + rdi], r12b
jne 0x14011c877
lea rcx, [rdi + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
jne 0x14011c89b
lea eax, [r14 + 0x1b]
jmp 0x14011ce20
test rdi, rdi
je 0x14011c92e
movzx ecx, byte [rsi]
cmp cl, 0x25
jne 0x14011c916
cmp rdi, 2
jbe 0x14011c91a
movzx edx, byte [rsi + 1]
lea eax, [rdx - 0x30]
cmp al, 9
jbe 0x14011c8cb
lea eax, [rdx - 0x61]
cmp al, 5
jbe 0x14011c8cb
lea eax, [rdx - 0x41]
cmp al, 5
ja 0x14011c91a
movzx r8d, byte [rsi + 2]
lea eax, [r8 - 0x30]
cmp al, 9
jbe 0x14011c8e8
lea eax, [r8 - 0x61]
cmp al, 5
jbe 0x14011c8e8
lea eax, [r8 - 0x41]
cmp al, 5
ja 0x14011c91a
mov byte [rsp + 0x58], dl
lea rcx, [rsp + 0x58]
mov byte [rsp + 0x59], r8b
lea rdx, [rsp + 0x50]
mov r8d, reloc.WS2_32.dll_recv
mov byte [rsp + 0x5a], 0
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
add rsi, 2
mov ecx, eax
sub rdi, 2
test cl, cl
je 0x14011c996
mov byte [r14 + r12], cl
inc rsi
inc r12
sub rdi, 1
jne 0x14011c8a4
mov rsi, qword [rsp + 0x48]
mov rax, r13
mov byte [r14 + r12], 0
xor r12d, r12d
movsxd rdx, dword [rbx + 0x144]
mov edi, r12d
nop dword [rax + rax]
inc rax
cmp byte [rsi + rax], dil
jne 0x14011c950
mov rcx, rdx
sub rcx, rax
mov rax, r13
sub rcx, 4
inc rax
cmp byte [r14 + rax], dil
jne 0x14011c966
cmp rax, rcx
jbe 0x14011c9a9
lea rdx, str.TFTP_file_name_too_long
mov rcx, r15
call fcn.1400f1540
mov rcx, r14
call qword [0x14025d0c8]
mov eax, Ordinal_73
jmp 0x14011ce20
mov rcx, r14
call qword [0x14025d0c8]
mov eax, 3
jmp 0x14011ce20
mov rcx, qword [rbx + 0x158]
lea r8, str._s_c_s_c
mov qword [rsp + 0x30], r12
add rcx, 2
mov qword [rsp + 0x28], rsi
mov r9, r14
mov qword [rsp + 0x20], r12
call sym.CheraxLoader.exe_curl_msnprintf
mov rcx, r13
inc rcx
cmp byte [rsi + rcx], dil
jne 0x14011c9d5
mov rax, r13
cmp byte [r14 + rax + 1], dil
lea rax, [rax + 1]
jne 0x14011c9e1
lea rsi, [rax + 4]
add rsi, rcx
cmp byte [r15 + 0xa8b], dil
jne 0x14011cce5
cmp byte [r15 + 0xaa6], dil
je 0x14011ca2d
mov r9, qword [r15 + 0x1158]
cmp r9, r13
je 0x14011ca2d
lea r8, str._I64d
mov edx, 0x40
lea rcx, [rsp + 0x60]
call sym.CheraxLoader.exe_curl_msnprintf
jmp 0x14011ca37
mov eax, 0x30
mov word [rsp + 0x60], ax
movsxd rax, dword [rbx + 0x144]
lea r8, [rsi + 6]
cmp r8, rax
jbe 0x14011ca4e
lea rcx, [rsp + 0x60]
jmp 0x14011caa3
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 0x14011ca60
lea rcx, [rsp + 0x60]
mov rax, r13
nop dword [rax]
cmp byte [rcx + rax + 1], dil
lea rax, [rax + 1]
jne 0x14011ca80
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x144]
add rcx, r8
cmp rcx, rax
lea rcx, [rsp + 0x60]
jbe 0x14011cae1
mov r9d, dword [rbx + 0x148]
lea r8, [0x1402303cc]
mov edx, 0x40
call sym.CheraxLoader.exe_curl_msnprintf
mov r9d, dword [rbx + 0x24]
lea r8, [0x1402303cc]
mov edx, 0x40
lea rcx, [rsp + 0x60]
call sym.CheraxLoader.exe_curl_msnprintf
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x14011c97b
mov rdx, qword [rbx + 0x158]
add rdx, r8
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14011caf0
lea rcx, [rsp + 0x60]
mov rax, r13
nop dword [rax]
cmp byte [rcx + rax + 1], dil
lea rax, [rax + 1]
jne 0x14011cb10
mov r9d, dword [rbx + 0x148]
lea rdi, [rax + 1]
add rdi, r8
lea rcx, [rsp + 0x60]
lea r8, [0x1402303cc]
mov edx, 0x40
call sym.CheraxLoader.exe_curl_msnprintf
movsxd rax, dword [rbx + 0x144]
lea r8, [rdi + 8]
cmp r8, rax
ja 0x14011cabb
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 0x14011cb70
lea rcx, [rsp + 0x60]
mov rax, r13
nop dword [rax]
cmp byte [rcx + rax + 1], r12b
lea rax, [rax + 1]
jne 0x14011cb90
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x144]
add rcx, r8
cmp rcx, rax
lea rcx, [rsp + 0x60]
jbe 0x14011cbd4
mov r9d, dword [rbx + 0x24]
lea r8, [0x1402303cc]
mov edx, 0x40
call sym.CheraxLoader.exe_curl_msnprintf
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x14011c97b
mov rdx, qword [rbx + 0x158]
add rdx, r8
nop
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14011cbe0
lea rcx, [rsp + 0x60]
mov rax, r13
nop dword [rax]
cmp byte [rcx + rax + 1], r12b
lea rax, [rax + 1]
jne 0x14011cc00
mov r9d, dword [rbx + 0x24]
lea rdi, [rax + 1]
add rdi, r8
lea rcx, [rsp + 0x60]
lea r8, [0x1402303cc]
mov edx, 0x40
call sym.CheraxLoader.exe_curl_msnprintf
movsxd rax, dword [rbx + 0x144]
lea r8, [rdi + 8]
cmp r8, rax
ja 0x14011cc8e
mov rdx, qword [rbx + 0x158]
lea rcx, str.timeout
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 0x14011cc50
lea rcx, [rsp + 0x60]
mov rax, r13
nop dword [rax]
cmp byte [rcx + rax + 1], r12b
lea rax, [rax + 1]
jne 0x14011cc70
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x144]
add rcx, r8
cmp rcx, rax
jbe 0x14011cc9a
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x14011c97b
mov rdx, qword [rbx + 0x158]
lea rcx, [rsp + 0x60]
add rdx, r8
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14011ccb0
lea rax, [rsp + 0x60]
nop word [rax + rax]
cmp byte [rax + r13 + 1], r12b
lea r13, [r13 + 1]
jne 0x14011ccd0
lea rsi, [r13 + 1]
mov edi, r12d
add rsi, r8
mov rax, qword [r15 + 0x18]
xor r9d, r9d
mov rcx, qword [rbx + 0x18]
mov r8d, esi
mov rax, qword [rax + 0x58]
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 0x14011cd3f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp - 0x60]
call fcn.140109ce0
mov r8, rax
lea rdx, [0x1402303c8]
mov rcx, r15
call fcn.1400f1540
mov rcx, r14
call qword [0x14025d0c8]
jmp 0x14011ce1e
lea rdx, [0x1402303c8]
mov rcx, r15
cmp byte [r15 + 0xaa6], dil
je 0x14011cd95
lea r8, str.Connected_for_transmit
call fcn.1400f1670
mov rcx, rbx
mov dword [rbx], 2
call fcn.14011c2d0
mov edi, eax
test eax, eax
jne 0x14011ce1e
mov edx, esi
mov rcx, rbx
call fcn.14011d1a0
mov edi, eax
jmp 0x14011ce1e
lea r8, str.Connected_for_receive
call fcn.1400f1670
mov rcx, rbx
mov dword [rbx], 1
call fcn.14011c2d0
mov edi, eax
test eax, eax
jne 0x14011ce1e
mov edx, esi
mov rcx, rbx
call fcn.14011ce70
mov edi, eax
jmp 0x14011ce1e
lea r8, str.Connected_for_transmit
mov rcx, r15
lea rdx, [0x1402303c8]
call fcn.1400f1670
mov rcx, rbx
mov dword [rbx], 2
call fcn.14011c2d0
mov edi, eax
test eax, eax
jne 0x14011ce1e
mov edx, esi
mov rcx, rbx
call fcn.14011d1a0
mov edi, eax
jmp 0x14011ce1e
lea rdx, [0x1402303c8]
mov rcx, r15
jmp 0x14011cd95
mov dword [rbx], 3
jmp 0x14011ce1e
lea rdx, str.tftp_send_first:_internal_error
mov rcx, r15
call fcn.1400f1540
mov eax, edi
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14013ea20
mov rbx, qword [rsp + 0x200]
add rsp, 0x1b0
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 0x14011d6d7
sub r8d, 1
je 0x14011d6ce
sub r8d, 1
je 0x14011d6c5
lea rdx, [0x1402303c8]
mov rcx, r9
cmp r8d, 1
je 0x14011d6b2
lea r8, str.Internal_state_machine_error
call fcn.1400f1540
mov eax, Ordinal_73
add rsp, 0x28
ret
lea r8, str.TFTP_finished
call fcn.1400f1670
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14011d1a0
add rsp, 0x28
jmp fcn.14011ce70
add rsp, 0x28
jmp 0x14011c750