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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov rax, qword [0x1401990d8]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, str.octet
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xe70]
shr eax, 0xb
and eax, 1
test eax, eax
je 0x1401173ab
lea rax, str.netascii
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x178]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 7
ja case.0x1401173d7.1
movsxd rax, dword [rsp + 0x58]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x1179cc]
add rax, rcx
jmp rax
mov rax, qword [rsp + 0x170]
mov eax, dword [rax + 0x20]
inc eax
mov rcx, qword [rsp + 0x170]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x170]
mov ecx, dword [rcx + 0x28]
cmp dword [rax + 0x20], ecx
jle 0x14011742f
mov rax, qword [rsp + 0x170]
mov dword [rax + 8], 0xffffff9e
mov rax, qword [rsp + 0x170]
mov dword [rax], 3
mov eax, dword [rsp + 0x48]
jmp 0x1401179b2
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xe70]
shr eax, 0x19
and eax, 1
test eax, eax
je 0x1401174ae
mov rax, qword [rsp + 0x170]
add rax, 0x170
mov dx, 2
mov rcx, rax
call fcn.140118070
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x170]
add rax, 4
mov rcx, qword [rsp + 0x170]
mov rcx, qword [rcx + 0x10]
mov rcx, qword [rcx]
mov qword [rcx + 0x1f0], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x13e0], 0xffffffffffffffff
je 0x1401174ac
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x13e0]
mov rcx, qword [rsp + 0x50]
call fcn.1400f65c0
jmp 0x1401174c8
mov rax, qword [rsp + 0x170]
add rax, 0x170
mov dx, 1
mov rcx, rax
call fcn.140118070
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov ecx, 1
imul rcx, rcx, 1
add rcx, qword [rax + 0x1448]
mov rax, rcx
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.14010b2a0
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x140117521
mov eax, dword [rsp + 0x48]
jmp 0x1401179b2
mov rcx, qword [rsp + 0x60]
call fcn.140080560
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x170]
movsxd rcx, dword [rcx + 0x15c]
mov qword [rsp + 0x70], rcx
mov rcx, qword [rsp + 0x68]
call fcn.140080560
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
sub rax, 4
mov rcx, qword [rsp + 0x78]
cmp rcx, rax
jbe 0x14011758d
lea rdx, str.TFTP_file_name_too_long_n
mov rcx, qword [rsp + 0x50]
call fcn.1400d3540
mov rcx, qword [rsp + 0x60]
call qword [fcn.14007b234]
mov eax, 0x47
jmp 0x1401179b2
mov rax, qword [rsp + 0x170]
movsxd rax, dword [rax + 0x15c]
mov rcx, qword [rsp + 0x170]
mov rcx, qword [rcx + 0x170]
add rcx, 2
mov qword [rsp + 0x30], 0
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x60]
lea r8, str._s_c_s_c
mov rdx, rax
call fcn.1400ee0d0
mov rcx, qword [rsp + 0x60]
call fcn.140080560
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x68]
call fcn.140080560
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + rax + 4]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xe70]
shr eax, 3
and eax, 1
test eax, eax
jne 0x140117855
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xe70]
shr eax, 0x19
and eax, 1
test eax, eax
je 0x140117671
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x13e0], 0xffffffffffffffff
je 0x140117671
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x13e0]
lea r8, str._I64d
mov edx, reloc.SHELL32.dll_DriveType
lea rcx, [rsp + 0x90]
call fcn.1400ee0d0
jmp 0x140117685
lea rdx, [0x14019d254]
lea rcx, [rsp + 0x90]
call fcn.1400806c0
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x40]
lea r9, [0x1401a1c30]
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x170]
call fcn.140117b00
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x40]
lea r9, [rsp + 0x90]
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x170]
call fcn.140117b00
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x170]
mov r9d, dword [rax + 0x160]
lea r8, [0x14019d204]
mov edx, reloc.SHELL32.dll_DriveType
lea rcx, [rsp + 0x90]
call fcn.1400ee0d0
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x40]
lea r9, [0x1401a1c28]
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x170]
call fcn.140117b00
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x40]
lea r9, [rsp + 0x90]
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x170]
call fcn.140117b00
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x170]
mov r9d, dword [rax + 0x24]
lea r8, [0x14019d124]
mov edx, reloc.SHELL32.dll_DriveType
lea rcx, [rsp + 0x90]
call fcn.1400ee0d0
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x40]
lea r9, str.timeout
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x170]
call fcn.140117b00
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x40]
lea r9, [rsp + 0x90]
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x170]
call fcn.140117b00
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x10]
mov rax, qword [rax + 0x70]
mov rcx, qword [rsp + 0x170]
mov rcx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x70]
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 + 0x40]
mov rax, qword [rsp + 0x170]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x170]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x88], rax
je 0x1401178f6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, reloc.OLEAUT32.dll_VarMonthName
lea rdx, [rsp + 0xd0]
mov ecx, eax
call fcn.1401031b0
mov r8, rax
lea rdx, [0x14019d0a4]
mov rcx, qword [rsp + 0x50]
call fcn.1400d3540
mov rcx, qword [rsp + 0x60]
call qword [fcn.14007b234]
jmp 0x1401179ae
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xe70]
shr eax, 0x19
and eax, 1
test eax, eax
je 0x140117935
mov edx, dword [rsp + 0x178]
mov rcx, qword [rsp + 0x170]
call fcn.140117a80
mov dword [rsp + 0x48], eax
jmp 0x14011794d
mov edx, dword [rsp + 0x178]
mov rcx, qword [rsp + 0x170]
call fcn.140117a00
mov dword [rsp + 0x48], eax
jmp 0x1401179ae
mov edx, dword [rsp + 0x178]
mov rcx, qword [rsp + 0x170]
call fcn.140117a80
mov dword [rsp + 0x48], eax
jmp 0x1401179ae
mov edx, dword [rsp + 0x178]
mov rcx, qword [rsp + 0x170]
call fcn.140117a00
mov dword [rsp + 0x48], eax
jmp 0x1401179ae
mov rax, qword [rsp + 0x170]
mov dword [rax], 3
jmp 0x1401179ae
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x10]
lea rdx, str.tftp_send_first:_internal_error
mov rcx, qword [rax]
call fcn.1400d3540
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140051d60
add rsp, 0x168
ret