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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov rax, qword [0x1401990d8]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x38]
add rax, 0x100
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 4
je 0x140116782
cmp dword [rsp + 0x40], 5
je 0x140116cfa
cmp dword [rsp + 0x40], 6
je 0x140116782
cmp dword [rsp + 0x40], 7
je 0x140116bbb
jmp 0x140116da3
cmp dword [rsp + 0x108], 4
jne 0x14011693d
mov rax, qword [rsp + 0x100]
add rax, 0x168
mov rcx, rax
call fcn.140117fa0
movzx eax, ax
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x100]
movzx eax, word [rax + 0x48]
cmp dword [rsp + 0x44], eax
je 0x14011690c
mov rax, qword [rsp + 0x100]
movzx eax, word [rax + 0x48]
test eax, eax
jne 0x1401167e1
cmp dword [rsp + 0x44], 0xffff
je 0x14011690c
mov rax, qword [rsp + 0x100]
movzx eax, word [rax + 0x48]
mov r9d, eax
mov r8d, dword [rsp + 0x44]
lea rdx, str.Received_ACK_for_block__d__expecting__d_n
mov rcx, qword [rsp + 0x38]
call fcn.1400d2f70
mov rax, qword [rsp + 0x100]
mov eax, dword [rax + 0x20]
inc eax
mov rcx, qword [rsp + 0x100]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x100]
mov ecx, dword [rcx + 0x28]
cmp dword [rax + 0x20], ecx
jle 0x140116863
mov rax, qword [rsp + 0x100]
movzx eax, word [rax + 0x48]
mov r8d, eax
lea rdx, str.tftp_tx:_giving_up_waiting_for_block__d_ack
mov rcx, qword [rsp + 0x38]
call fcn.1400d3540
mov dword [rsp + 0x30], gethostname
jmp 0x140116903
mov rax, qword [rsp + 0x100]
add rax, 0xd0
mov rcx, qword [rsp + 0x100]
mov ecx, dword [rcx + 0x158]
add ecx, 4
mov rdx, qword [rsp + 0x100]
mov edx, dword [rdx + 0x150]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, ecx
mov rax, qword [rsp + 0x100]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jge 0x140116903
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, reloc.OLEAUT32.dll_VarMonthName
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1401031b0
mov r8, rax
lea rdx, [0x14019cfe4]
mov rcx, qword [rsp + 0x38]
call fcn.1400d3540
mov dword [rsp + 0x30], gethostname
mov eax, dword [rsp + 0x30]
jmp 0x140116dc0
mov rax, qword [rsp + 0x100]
add rax, 0x40
mov rcx, rax
call fcn.140118340
mov rax, qword [rsp + 0x100]
movzx eax, word [rax + 0x48]
inc ax
mov rcx, qword [rsp + 0x100]
mov word [rcx + 0x48], ax
jmp 0x14011694e
mov eax, 1
mov rcx, qword [rsp + 0x100]
mov word [rcx + 0x48], ax
mov rax, qword [rsp + 0x100]
mov dword [rax + 0x20], 0
mov rax, qword [rsp + 0x100]
add rax, 0x170
mov dx, 3
mov rcx, rax
call fcn.140118070
mov rax, qword [rsp + 0x100]
add rax, 0x170
mov rcx, qword [rsp + 0x100]
movzx edx, word [rcx + 0x48]
mov rcx, rax
call fcn.140118020
mov rax, qword [rsp + 0x100]
movzx eax, word [rax + 0x48]
cmp eax, 1
jle 0x1401169dd
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x100]
mov ecx, dword [rcx + 0x15c]
cmp dword [rax + 0x158], ecx
jge 0x1401169dd
mov rax, qword [rsp + 0x100]
mov dword [rax], 3
xor eax, eax
jmp 0x140116dc0
mov rax, qword [rsp + 0x100]
mov dword [rax + 0x158], 0
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x170]
add rax, 4
mov rcx, qword [rsp + 0x100]
mov rcx, qword [rcx + 0x10]
mov rcx, qword [rcx]
mov qword [rcx + 0x1f0], rax
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x100]
mov ecx, dword [rcx + 0x158]
mov eax, dword [rax + 0x15c]
sub eax, ecx
cdqe
lea r8, [rsp + 0x58]
mov rdx, rax
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x10]
call fcn.1400f01c0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140116a65
mov eax, dword [rsp + 0x30]
jmp 0x140116dc0
mov rax, qword [rsp + 0x100]
mov eax, dword [rax + 0x158]
add eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x100]
mov dword [rcx + 0x158], eax
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov rax, qword [rax + 0x1f0]
add rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x100]
mov rcx, qword [rcx + 0x10]
mov rcx, qword [rcx]
mov qword [rcx + 0x1f0], rax
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x100]
mov ecx, dword [rcx + 0x15c]
cmp dword [rax + 0x158], ecx
jge 0x140116ae0
cmp qword [rsp + 0x58], 0
jne 0x140116a18
mov rax, qword [rsp + 0x100]
add rax, 0xd0
mov rcx, qword [rsp + 0x100]
mov ecx, dword [rcx + 0x158]
add ecx, 4
mov rdx, qword [rsp + 0x100]
mov edx, dword [rdx + 0x150]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, ecx
mov rax, qword [rsp + 0x100]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jge 0x140116b82
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, reloc.OLEAUT32.dll_VarMonthName
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1401031b0
mov r8, rax
lea rdx, [0x14019cf9c]
mov rcx, qword [rsp + 0x38]
call fcn.1400d3540
mov eax, gethostname
jmp 0x140116dc0
mov rax, qword [rsp + 0x100]
movsxd rax, dword [rax + 0x158]
mov rcx, qword [rsp + 0x50]
add rax, qword [rcx + 0x18]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x18], rax
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rsp + 0x38]
call fcn.1400f6bc0
jmp 0x140116dbc
mov rax, qword [rsp + 0x100]
mov eax, dword [rax + 0x20]
inc eax
mov rcx, qword [rsp + 0x100]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x100]
movzx eax, word [rax + 0x48]
inc eax
and eax, 0xffff
mov rcx, qword [rsp + 0x100]
mov r9d, dword [rcx + 0x20]
mov r8d, eax
lea rdx, [0x1401a1aa8]
mov rcx, qword [rsp + 0x38]
call fcn.1400d2f70
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x100]
mov ecx, dword [rcx + 0x28]
cmp dword [rax + 0x20], ecx
jle 0x140116c40
mov rax, qword [rsp + 0x100]
mov dword [rax + 8], 0xffffff9d
mov rax, qword [rsp + 0x100]
mov dword [rax], 3
jmp 0x140116cf5
mov rax, qword [rsp + 0x100]
add rax, 0xd0
mov rcx, qword [rsp + 0x100]
mov ecx, dword [rcx + 0x158]
add ecx, 4
mov rdx, qword [rsp + 0x100]
mov edx, dword [rdx + 0x150]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, ecx
mov rax, qword [rsp + 0x100]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jge 0x140116ce2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, reloc.OLEAUT32.dll_VarMonthName
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1401031b0
mov r8, rax
lea rdx, [0x14019cf24]
mov rcx, qword [rsp + 0x38]
call fcn.1400d3540
mov eax, gethostname
jmp 0x140116dc0
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rsp + 0x38]
call fcn.1400f6bc0
jmp 0x140116dbc
mov rax, qword [rsp + 0x100]
mov dword [rax], 3
mov rax, qword [rsp + 0x100]
add rax, 0x170
mov dx, 5
mov rcx, rax
call fcn.140118070
mov rax, qword [rsp + 0x100]
add rax, 0x170
mov rcx, qword [rsp + 0x100]
movzx edx, word [rcx + 0x48]
mov rcx, rax
call fcn.140118020
mov rax, qword [rsp + 0x100]
add rax, 0xd0
mov rcx, qword [rsp + 0x100]
mov ecx, dword [rcx + 0x150]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 4
mov rax, qword [rsp + 0x100]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
mov rax, qword [rsp + 0x100]
mov dword [rax], 3
jmp 0x140116dbc
mov r8d, dword [rsp + 0x108]
lea rdx, str.tftp_tx:_internal_error__event:__i
mov rcx, qword [rsp + 0x38]
call fcn.1400d3540
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140051d60
add rsp, 0xf8
ret