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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor r15d, r15d
mov rbx, rcx
lea r14, str.netascii
mov rax, qword [rbx + 0x10]
lea rcx, str.octet
mov r12d, r15d
mov rsi, qword [rax]
cmp dword [rsi + 0xefc], r15d
cmove r14, rcx
cmp edx, 7
ja case.0x18005fcb0.1
movsxd rax, edx
lea rdx, [0x180000000]
mov ecx, dword [rdx + rax*4 + 0x60038]
add rcx, rdx
jmp rcx
inc dword [rbx + 0x20]
mov eax, dword [rbx + 0x20]
cmp eax, dword [rbx + 0x28]
jle 0x18005fcd1
mov dword [rbx + 8], 0xffffff9e
mov dword [rbx], 3
xor eax, eax
jmp 0x18006000f
lea r13, [rbx + 0x170]
mov rcx, r13
cmp dword [rsi + 0xf44], r12d
je 0x18005fd1b
mov edx, 2
call fcn.18005ec30
mov rax, qword [rbx + 0x10]
mov rdx, qword [r13]
mov rcx, qword [rax]
add rdx, 4
mov qword [rcx + 0x1d8], rdx
mov rdx, qword [rsi + 0x15e0]
cmp rdx, 0xffffffffffffffff
je 0x18005fd25
mov rcx, rsi
call fcn.180072d20
jmp 0x18005fd25
mov edx, 1
call fcn.18005ec30
mov rax, qword [rbx + 0x10]
lea r9, [rbp - 0x71]
xor r8d, r8d
mov rcx, qword [rax]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov rdx, qword [rcx + 0x1648]
mov rcx, rsi
inc rdx
call fcn.1800710e0
mov r12d, eax
test eax, eax
jne 0x18006000f
movsxd r10, dword [rbx + 0x15c]
mov r9, qword [rbp - 0x71]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r14
mov rdx, r10
repne scasb al, byte [rdi]
mov rdi, r9
not rcx
dec rcx
sub rdx, rcx
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
sub rdx, 4
not rcx
dec rcx
cmp rcx, rdx
jbe 0x18005fdb7
lea rdx, str.TFTP_file_name_too_long_n
mov rcx, rsi
call fcn.180053b90
mov rcx, qword [rbp - 0x71]
call qword [fcn.1800337e4]
mov eax, 0x47
jmp 0x18006000f
mov rcx, qword [r13]
mov qword [rsp + 0x30], r15
lea r8, str._s_c_s_c
mov rdx, r10
add rcx, 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call fcn.1800703c0
mov rdi, qword [rbp - 0x71]
or rcx, 0xffffffffffffffff
xor eax, eax
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]
mov qword [rbp - 0x79], rdi
cmp dword [rsi + 0xedc], eax
jne 0x18005ff41
cmp dword [rsi + 0xf44], eax
je 0x18005fe3b
mov r9, qword [rsi + 0x15e0]
cmp r9, 0xffffffffffffffff
je 0x18005fe3b
lea r8, str._I64d
lea edx, [rax + 0x40]
lea rcx, [rbp - 0x69]
call fcn.1800703c0
jmp 0x18005fe44
mov eax, 0x30
mov word [rbp - 0x69], ax
mov rax, qword [r13]
lea r9, str.tsize
lea rdx, [rbp - 0x79]
lea r8, [rdi + rax]
mov rcx, rbx
call fcn.18005efe0
mov edi, eax
test eax, eax
jne 0x18005fe7f
mov r8, qword [rbp - 0x79]
lea r9, [rbp - 0x69]
lea rdx, [rbp - 0x79]
add r8, qword [r13]
mov rcx, rbx
call fcn.18005efe0
mov edi, eax
mov r9d, dword [rbx + 0x160]
lea r8, [0x18008fe20]
lea rcx, [rbp - 0x69]
mov edx, 0x40
call fcn.1800703c0
test edi, edi
jne 0x18005feda
mov r8, qword [rbp - 0x79]
lea r9, str.blksize
lea rdx, [rbp - 0x79]
add r8, qword [r13]
mov rcx, rbx
call fcn.18005efe0
mov edi, eax
test eax, eax
jne 0x18005feda
mov r8, qword [rbp - 0x79]
lea r9, [rbp - 0x69]
lea rdx, [rbp - 0x79]
add r8, qword [r13]
mov rcx, rbx
call fcn.18005efe0
mov edi, eax
mov r9d, dword [rbx + 0x24]
lea r8, [0x18008fe20]
lea rcx, [rbp - 0x69]
mov edx, 0x40
call fcn.1800703c0
test edi, edi
jne 0x18005ffaa
mov r8, qword [rbp - 0x79]
lea r9, str.timeout
lea rdx, [rbp - 0x79]
add r8, qword [r13]
mov rcx, rbx
call fcn.18005efe0
test eax, eax
jne 0x18005ffaa
mov r8, qword [rbp - 0x79]
lea r9, [rbp - 0x69]
lea rdx, [rbp - 0x79]
add r8, qword [r13]
mov rcx, rbx
call fcn.18005efe0
mov r12d, eax
test eax, eax
jne 0x18005ffaa
mov rdi, qword [rbp - 0x79]
mov rax, qword [rbx + 0x10]
mov rdx, qword [r13]
xor r9d, r9d
mov rcx, qword [rax + 0x70]
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 rcx, eax
cmp rcx, rdi
je 0x18005ff9e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rbp - 0x69]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.180079630
lea rdx, [0x180099668]
mov rcx, rsi
mov r8, rax
call fcn.180053b90
mov rcx, qword [rbp - 0x71]
call qword [fcn.1800337e4]
jmp 0x18006000c
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x18005fd9b
mov edx, 6
mov rcx, rbx
cmp dword [rsi + 0xf44], r12d
je 0x18005ffeb
call fcn.18005fba0
mov r12d, eax
jmp 0x18006000c
mov edx, 4
mov rcx, rbx
call fcn.18005fba0
mov r12d, eax
jmp 0x18006000c
mov edx, 3
mov rcx, rbx
call fcn.18005fbf0
mov r12d, eax
jmp 0x18006000c
mov dword [rbx], 3
jmp 0x18006000c
lea rdx, str.tftp_send_first:_internal_error
mov rcx, rsi
call fcn.180053b90
mov eax, r12d
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1800334b0
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
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 0x1800600ce
dec r8d
je 0x1800600c5
dec r8d
je 0x1800600bc
dec r8d
mov rcx, r9
je 0x1800600a2
lea r8, str.Internal_state_machine_error
lea rdx, [0x180099668]
call fcn.180053b90
mov eax, 0x47
add rsp, 0x28
ret
lea r8, str.TFTP_finished
lea rdx, [0x18009f844]
call fcn.180053a90
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.18005f340
add rsp, 0x28
jmp fcn.18005f050
add rsp, 0x28
jmp 0x18005fc40