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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x1401e7890]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x180]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x38]
add rax, 0xe8
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x188]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 4
je 0x14010fabf
cmp dword [rsp + 0x40], 5
je 0x140110045
cmp dword [rsp + 0x40], 6
je 0x14010fabf
cmp dword [rsp + 0x40], 7
je 0x14010ff03
jmp 0x1401100f1
cmp dword [rsp + 0x188], 4
jne 0x14010fc8c
mov rax, qword [rsp + 0x180]
add rax, 0x150
mov rcx, rax
call fcn.140110e10
movzx eax, ax
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x180]
movzx eax, word [rax + 0x14c]
cmp dword [rsp + 0x44], eax
je 0x14010fc55
mov rax, qword [rsp + 0x180]
movzx eax, word [rax + 0x14c]
test eax, eax
jne 0x14010fb24
cmp dword [rsp + 0x44], 0xffff
je 0x14010fc55
mov rax, qword [rsp + 0x180]
movzx eax, word [rax + 0x14c]
mov r9d, eax
mov r8d, dword [rsp + 0x44]
lea rdx, str.Received_ACK_for_block__d__expecting__d
mov rcx, qword [rsp + 0x38]
call fcn.1400e21d0
mov rax, qword [rsp + 0x180]
mov eax, dword [rax + 0x20]
inc eax
mov rcx, qword [rsp + 0x180]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x180]
mov ecx, dword [rcx + 0x28]
cmp dword [rax + 0x20], ecx
jle 0x14010fbac
mov rax, qword [rsp + 0x180]
movzx eax, word [rax + 0x14c]
mov r8d, eax
lea rdx, str.tftp_tx:_giving_up_waiting_for_block__d_ack
mov rcx, qword [rsp + 0x38]
call fcn.1400e22e0
mov dword [rsp + 0x30], gethostname
jmp 0x14010fc4c
mov rax, qword [rsp + 0x180]
add rax, 0xb8
mov rcx, qword [rsp + 0x180]
mov ecx, dword [rcx + 0x140]
add ecx, 4
mov rdx, qword [rsp + 0x180]
mov edx, dword [rdx + 0x138]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, ecx
mov rax, qword [rsp + 0x180]
mov rdx, qword [rax + 0x158]
mov rax, qword [rsp + 0x180]
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 0x14010fc4c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400c0c10
mov r8, rax
lea rdx, [0x1401e0fdc]
mov rcx, qword [rsp + 0x38]
call fcn.1400e22e0
mov dword [rsp + 0x30], gethostname
mov eax, dword [rsp + 0x30]
jmp 0x14011010e
mov rax, qword [rsp + 0x180]
add rax, 0x30
mov rcx, rax
call fcn.14010f4a0
mov rax, qword [rsp + 0x180]
movzx eax, word [rax + 0x14c]
inc ax
mov rcx, qword [rsp + 0x180]
mov word [rcx + 0x14c], ax
jmp 0x14010fca0
mov eax, 1
mov rcx, qword [rsp + 0x180]
mov word [rcx + 0x14c], ax
mov rax, qword [rsp + 0x180]
mov dword [rax + 0x20], 0
mov rax, qword [rsp + 0x180]
add rax, 0x158
mov dx, 3
mov rcx, rax
call fcn.140110d30
mov rax, qword [rsp + 0x180]
add rax, 0x158
mov rcx, qword [rsp + 0x180]
movzx edx, word [rcx + 0x14c]
mov rcx, rax
call fcn.140110d80
mov rax, qword [rsp + 0x180]
movzx eax, word [rax + 0x14c]
cmp eax, 1
jle 0x14010fd35
mov rax, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x180]
mov ecx, dword [rcx + 0x144]
cmp dword [rax + 0x140], ecx
jge 0x14010fd35
mov rax, qword [rsp + 0x180]
mov dword [rax], 3
xor eax, eax
jmp 0x14011010e
mov rax, qword [rsp + 0x180]
mov dword [rax + 0x140], 0
mov rax, qword [rsp + 0x180]
mov rax, qword [rax + 0x158]
add rax, 4
mov rcx, qword [rsp + 0x180]
mov rcx, qword [rcx + 0x10]
mov qword [rcx + 0x198], rax
mov rax, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x180]
mov ecx, dword [rcx + 0x140]
mov eax, dword [rax + 0x144]
sub eax, ecx
cdqe
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call fcn.1400ee5e0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14010fdb3
mov eax, dword [rsp + 0x30]
jmp 0x14011010e
mov rax, qword [rsp + 0x180]
mov eax, dword [rax + 0x140]
add eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x180]
mov dword [rcx + 0x140], eax
mov rax, qword [rsp + 0x180]
mov rax, qword [rax + 0x10]
mov rax, qword [rax + 0x198]
add rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x180]
mov rcx, qword [rcx + 0x10]
mov qword [rcx + 0x198], rax
mov rax, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x180]
mov ecx, dword [rcx + 0x144]
cmp dword [rax + 0x140], ecx
jge 0x14010fe28
cmp qword [rsp + 0x58], 0
jne 0x14010fd6d
mov rax, qword [rsp + 0x180]
add rax, 0xb8
mov rcx, qword [rsp + 0x180]
mov ecx, dword [rcx + 0x140]
add ecx, 4
mov rdx, qword [rsp + 0x180]
mov edx, dword [rdx + 0x138]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, ecx
mov rax, qword [rsp + 0x180]
mov rdx, qword [rax + 0x158]
mov rax, qword [rsp + 0x180]
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 0x14010feca
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400c0c10
mov r8, rax
lea rdx, [0x1401e102c]
mov rcx, qword [rsp + 0x38]
call fcn.1400e22e0
mov eax, gethostname
jmp 0x14011010e
mov rax, qword [rsp + 0x180]
movsxd rax, dword [rax + 0x140]
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.140100530
jmp 0x14011010a
mov rax, qword [rsp + 0x180]
mov eax, dword [rax + 0x20]
inc eax
mov rcx, qword [rsp + 0x180]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x180]
movzx eax, word [rax + 0x14c]
inc eax
and eax, 0xffff
mov rcx, qword [rsp + 0x180]
mov r9d, dword [rcx + 0x20]
mov r8d, eax
lea rdx, str.Timeout_waiting_for_block__d_ACK.__Retries___d
mov rcx, qword [rsp + 0x38]
call fcn.1400e21d0
mov rax, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x180]
mov ecx, dword [rcx + 0x28]
cmp dword [rax + 0x20], ecx
jle 0x14010ff8b
mov rax, qword [rsp + 0x180]
mov dword [rax + 8], 0xffffff9d
mov rax, qword [rsp + 0x180]
mov dword [rax], 3
jmp 0x140110040
mov rax, qword [rsp + 0x180]
add rax, 0xb8
mov rcx, qword [rsp + 0x180]
mov ecx, dword [rcx + 0x140]
add ecx, 4
mov rdx, qword [rsp + 0x180]
mov edx, dword [rdx + 0x138]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, ecx
mov rax, qword [rsp + 0x180]
mov rdx, qword [rax + 0x158]
mov rax, qword [rsp + 0x180]
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 0x14011002d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400c0c10
mov r8, rax
lea rdx, [0x1401e110c]
mov rcx, qword [rsp + 0x38]
call fcn.1400e22e0
mov eax, gethostname
jmp 0x14011010e
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rsp + 0x38]
call fcn.140100530
jmp 0x14011010a
mov rax, qword [rsp + 0x180]
mov dword [rax], 3
mov rax, qword [rsp + 0x180]
add rax, 0x158
mov dx, 5
mov rcx, rax
call fcn.140110d30
mov rax, qword [rsp + 0x180]
add rax, 0x158
mov rcx, qword [rsp + 0x180]
movzx edx, word [rcx + 0x14c]
mov rcx, rax
call fcn.140110d80
mov rax, qword [rsp + 0x180]
add rax, 0xb8
mov rcx, qword [rsp + 0x180]
mov ecx, dword [rcx + 0x138]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 4
mov rax, qword [rsp + 0x180]
mov rdx, qword [rax + 0x158]
mov rax, qword [rsp + 0x180]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
mov rax, qword [rsp + 0x180]
mov dword [rax], 3
jmp 0x14011010a
mov r8d, dword [rsp + 0x188]
lea rdx, str.tftp_tx:_internal_error__event:__i
mov rcx, qword [rsp + 0x38]
call fcn.1400e22e0
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140156eb0
add rsp, 0x178
ret