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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x250
lea rdi, [rsp + 0x40]
mov ecx, 0x84
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x260]
mov rax, qword [0x1400dad40]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rax, str.octet
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x260]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x90], 0
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax + 0xf0b]
test eax, eax
je 0x140072f89
lea rax, str.netascii
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x268]
mov dword [rsp + 0x220], eax
cmp dword [rsp + 0x220], 7
ja case.0x140072fbe.1
movsxd rax, dword [rsp + 0x220]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x73630]
add rax, rcx
jmp rax
mov rax, qword [rsp + 0x260]
mov eax, dword [rax + 0x20]
inc eax
mov rcx, qword [rsp + 0x260]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x260]
mov ecx, dword [rcx + 0x28]
cmp dword [rax + 0x20], ecx
jle 0x140073019
mov rax, qword [rsp + 0x260]
mov dword [rax + 8], 0xffffff9e
mov rax, qword [rsp + 0x260]
mov dword [rax], 3
mov eax, dword [rsp + 0x90]
jmp 0x1400735ff
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax + 0xf1d]
test eax, eax
je 0x14007309f
mov rax, qword [rsp + 0x260]
add rax, 0x170
mov dx, 2
mov rcx, rax
call fcn.1400727d0
mov rax, qword [rsp + 0x260]
mov rax, qword [rax + 0x170]
add rax, 4
mov rcx, qword [rsp + 0x260]
mov rcx, qword [rcx + 0x10]
mov rcx, qword [rcx]
mov qword [rcx + 0x1d8], rax
mov rax, qword [rsp + 0x88]
cmp qword [rax + 0x1508], 0xffffffffffffffff
je 0x14007309d
mov rax, qword [rsp + 0x88]
mov rdx, qword [rax + 0x1508]
mov rcx, qword [rsp + 0x88]
call fcn.14005dbc0
jmp 0x1400730b9
mov rax, qword [rsp + 0x260]
add rax, 0x170
mov dx, 1
mov rcx, rax
call fcn.1400727d0
mov rax, qword [rsp + 0x260]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov ecx, 1
imul rcx, rcx, 1
add rcx, qword [rax + 0x1570]
mov rax, rcx
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.14006bac0
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0
je 0x14007311e
mov eax, dword [rsp + 0x90]
jmp 0x1400735ff
mov rcx, qword [rsp + 0x78]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0x228], rax
mov rcx, qword [rsp + 0x260]
movsxd rcx, dword [rcx + 0x15c]
mov qword [rsp + 0x230], rcx
mov rcx, qword [rsp + 0x60]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, qword [rsp + 0x230]
sub rcx, rax
mov rax, rcx
sub rax, 4
mov rcx, qword [rsp + 0x228]
cmp rcx, rax
jbe 0x140073199
lea rdx, str.TFTP_file_name_too_long_n
mov rcx, qword [rsp + 0x88]
call fcn.140042340
mov rcx, qword [rsp + 0x78]
call qword [0x1400ce008]
mov eax, 0x47
jmp 0x1400735ff
mov rax, qword [rsp + 0x260]
movsxd rax, dword [rax + 0x15c]
mov rcx, qword [rsp + 0x260]
mov rcx, qword [rcx + 0x170]
add rcx, 2
mov qword [rsp + 0x30], 0
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x78]
lea r8, str._s_c_s_c
mov rdx, rax
call fcn.140047a20
mov rcx, qword [rsp + 0x78]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0x238], rax
mov rcx, qword [rsp + 0x60]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, qword [rsp + 0x238]
lea rax, [rcx + rax + 4]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax + 0xf03]
test eax, eax
jne 0x140073492
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax + 0xf1d]
test eax, eax
je 0x14007327f
mov rax, qword [rsp + 0x88]
cmp qword [rax + 0x1508], 0xffffffffffffffff
je 0x14007327f
mov rax, qword [rsp + 0x88]
mov r9, qword [rax + 0x1508]
lea r8, [0x1400d616c]
mov edx, 0x40
lea rcx, [rsp + 0xb0]
call fcn.140047a20
jmp 0x140073293
lea rdx, [0x1400d6044]
lea rcx, [rsp + 0xb0]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rax, qword [rsp + 0x260]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x48]
lea r9, str.tsize
mov r8, rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x260]
call fcn.140072d70
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0
jne 0x14007330c
mov rax, qword [rsp + 0x260]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x48]
lea r9, [rsp + 0xb0]
mov r8, rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x260]
call fcn.140072d70
mov dword [rsp + 0x90], eax
mov rax, qword [rsp + 0x260]
mov r9d, dword [rax + 0x160]
lea r8, [0x1400d611c]
mov edx, 0x40
lea rcx, [rsp + 0xb0]
call fcn.140047a20
cmp dword [rsp + 0x90], 0
jne 0x140073375
mov rax, qword [rsp + 0x260]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x48]
lea r9, str.blksize
mov r8, rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x260]
call fcn.140072d70
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0
jne 0x1400733b7
mov rax, qword [rsp + 0x260]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x48]
lea r9, [rsp + 0xb0]
mov r8, rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x260]
call fcn.140072d70
mov dword [rsp + 0x90], eax
mov rax, qword [rsp + 0x260]
mov r9d, dword [rax + 0x24]
lea r8, [0x1400d612c]
mov edx, 0x40
lea rcx, [rsp + 0xb0]
call fcn.140047a20
cmp dword [rsp + 0x90], 0
jne 0x14007341d
mov rax, qword [rsp + 0x260]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x48]
lea r9, str.timeout
mov r8, rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x260]
call fcn.140072d70
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0
jne 0x14007345f
mov rax, qword [rsp + 0x260]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x48]
lea r9, [rsp + 0xb0]
mov r8, rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x260]
call fcn.140072d70
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0
je 0x140073492
lea rdx, str.TFTP_buffer_too_small_for_options
mov rcx, qword [rsp + 0x88]
call fcn.140042340
mov rcx, qword [rsp + 0x78]
call qword [0x1400ce008]
mov eax, 0x47
jmp 0x1400735ff
mov rax, qword [rsp + 0x260]
mov rax, qword [rax + 0x10]
mov rax, qword [rax + 0x2e0]
mov rcx, qword [rsp + 0x260]
mov rcx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x2e0]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x48]
mov rax, qword [rsp + 0x260]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x260]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x58], rax
je 0x140073536
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x110]
mov ecx, eax
call fcn.14001c5c0
mov r8, rax
lea rdx, [0x1400d6154]
mov rcx, qword [rsp + 0x88]
call fcn.140042340
mov rcx, qword [rsp + 0x78]
call qword [0x1400ce008]
jmp 0x1400735f8
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax + 0xf1d]
test eax, eax
je 0x140073576
mov edx, dword [rsp + 0x268]
mov rcx, qword [rsp + 0x260]
call fcn.140072e00
mov dword [rsp + 0x90], eax
jmp 0x140073591
mov edx, dword [rsp + 0x268]
mov rcx, qword [rsp + 0x260]
call fcn.140072e80
mov dword [rsp + 0x90], eax
jmp 0x1400735f8
mov edx, dword [rsp + 0x268]
mov rcx, qword [rsp + 0x260]
call fcn.140072e00
mov dword [rsp + 0x90], eax
jmp 0x1400735f8
mov edx, dword [rsp + 0x268]
mov rcx, qword [rsp + 0x260]
call fcn.140072e80
mov dword [rsp + 0x90], eax
jmp 0x1400735f8
mov rax, qword [rsp + 0x260]
mov dword [rax], 3
jmp 0x1400735f8
mov rax, qword [rsp + 0x260]
mov rax, qword [rax + 0x10]
lea rdx, str.tftp_send_first:_internal_error
mov rcx, qword [rax]
call fcn.140042340
mov eax, dword [rsp + 0x90]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_connect
call fcn.1400abe64
mov rax, rdi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400ab680
add rsp, 0x250
pop rdi
ret