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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r12
push r13
push r14
sub rsp, 0x90
mov rax, qword [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
xor ebp, ebp
lea r14, str.netascii
mov rax, qword [rbx + 0x10]
lea rcx, str.octet
mov rsi, qword [rax]
cmp dword [rsi + 0x464], ebp
cmove r14, rcx
cmp edx, 7
ja case.0x18003f417.1
movsxd rax, edx
lea rdx, [0x180000000]
mov ecx, dword [rdx + rax*4 + 0x3f728]
add rcx, rdx
jmp rcx
inc dword [rbx + 0x20]
mov eax, dword [rbx + 0x20]
cmp eax, dword [rbx + 0x28]
jle 0x18003f438
mov dword [rbx + 8], 0xffffff9e
mov dword [rbx], 3
xor eax, eax
jmp 0x18003f700
cmp dword [rsi + 0x49c], ebp
je 0x18003f481
lea r12, [rbx + 0x170]
mov edx, 2
mov rcx, r12
call fcn.18003e440
mov rax, qword [rbx + 0x10]
mov rdx, qword [r12]
mov rcx, qword [rax]
add rdx, 4
mov qword [rcx + 0x190], rdx
mov rdx, qword [rsi + 0x89f8]
cmp rdx, 0xffffffffffffffff
je 0x18003f495
mov rcx, rsi
call fcn.18004fc50
jmp 0x18003f495
lea r12, [rbx + 0x170]
mov edx, 1
mov rcx, r12
call fcn.18003e440
mov rax, qword [rbx + 0x10]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x89c0]
mov rcx, rsi
inc rdx
call fcn.18004f420
mov r13, rax
test rax, rax
jne 0x18003f4c5
lea eax, [r13 + 0x1b]
jmp 0x18003f700
mov rcx, qword [r12]
movsxd rdx, dword [rbx + 0x15c]
mov qword [rsp + 0x30], rbp
lea r8, str._s_c_s_c
add rcx, 2
mov r9, rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0xd0], rdi
mov qword [rsp + 0x20], rbp
call fcn.180035470
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, r14
not rcx
lea rdx, [rcx - 1]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
lea rdi, [rdx + rcx + 3]
cmp dword [rsi + 0x49c], eax
je 0x18003f548
mov r9, qword [rsi + 0x89f8]
cmp r9, 0xffffffffffffffff
je 0x18003f548
lea r8, [0x18008c810]
lea edx, [rax + 0x40]
lea rcx, [rsp + 0x40]
call fcn.180035470
jmp 0x18003f552
mov eax, Ordinal_50
mov word [rsp + 0x40], ax
mov rax, qword [r12]
lea r9, str.tsize
mov rdx, rdi
lea r8, [rdi + rax]
mov rcx, rbx
call fcn.18003e7f0
lea r9, [rsp + 0x40]
mov rcx, rbx
add rdi, rax
mov rax, qword [r12]
lea r8, [rdi + rax]
mov rdx, rdi
call fcn.18003e7f0
mov r9d, dword [rbx + 0x160]
lea r8, [0x180089af4]
lea rcx, [rsp + 0x40]
mov edx, 0x40
add rdi, rax
call fcn.180035470
mov rdx, qword [r12]
lea r9, str.blksize
lea r8, [rdi + rdx]
mov rdx, rdi
mov rcx, rbx
call fcn.18003e7f0
lea r9, [rsp + 0x40]
mov rcx, rbx
add rdi, rax
mov rax, qword [r12]
lea r8, [rdi + rax]
mov rdx, rdi
call fcn.18003e7f0
mov r9d, dword [rbx + 0x24]
lea r8, [0x180089af4]
lea rcx, [rsp + 0x40]
mov edx, 0x40
add rdi, rax
call fcn.180035470
mov rdx, qword [r12]
lea r9, str.timeout
lea r8, [rdi + rdx]
mov rdx, rdi
mov rcx, rbx
call fcn.18003e7f0
lea r9, [rsp + 0x40]
mov rcx, rbx
add rdi, rax
mov rax, qword [r12]
lea r8, [rdi + rax]
mov rdx, rdi
call fcn.18003e7f0
mov rdx, qword [r12]
xor r9d, r9d
add rdi, rax
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 0x58]
mov r8d, edi
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rcx + 0x20]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
movsxd rdx, eax
cmp rdx, rdi
mov rdi, qword [rsp + 0xd0]
je 0x18003f690
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx + 0x10]
mov edx, eax
call fcn.180036800
lea rdx, [0x18008a7a8]
mov rcx, rsi
mov r8, rax
call fcn.1800309e0
mov rcx, r13
call qword [fcn.18005bf24]
jmp 0x18003f6fe
cmp dword [rsi + 0x49c], ebp
je 0x18003f6b4
mov edx, 6
mov rcx, rbx
call fcn.18003f310
mov ebp, eax
jmp 0x18003f6fe
mov edx, 6
mov rcx, rbx
call fcn.18003f360
mov ebp, eax
jmp 0x18003f6fe
mov edx, 4
mov rcx, rbx
call fcn.18003f310
mov ebp, eax
jmp 0x18003f6fe
mov edx, 3
mov rcx, rbx
call fcn.18003f360
mov ebp, eax
jmp 0x18003f6fe
mov dword [rbx], 3
jmp 0x18003f6fe
lea rdx, str.tftp_send_first:_internal_error
mov rcx, rsi
call fcn.1800309e0
mov eax, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18005c4c0
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret
sub rsp, 0x28
mov rax, qword [rcx + 0x10]
mov r8d, dword [rcx]
mov r9, qword [rax]
test r8d, r8d
je 0x18003f7c1
sub r8d, 1
je 0x18003f7b8
sub r8d, 1
je 0x18003f7af
mov rcx, r9
cmp r8d, 1
je 0x18003f795
lea r8, str.Internal_state_machine_error
lea rdx, [0x18008a7a8]
call fcn.1800309e0
mov eax, 0x47
add rsp, 0x28
ret
lea r8, str.TFTP_finished
lea rdx, [0x18008a9b0]
call fcn.180030930
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.18003eb70
add rsp, 0x28
jmp fcn.18003e860
add rsp, 0x28
jmp 0x18003f3b0