Function at 0x14007d890
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
mov eax, 0xb0
call fcn.1401ef830
sub rsp, rax
mov rax, qword [0x140310170]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rax, qword [rcx + 0x10]
lea r13, str.netascii
xor ebp, ebp
mov rdi, rcx
mov r15d, ebp
mov r14, qword [rax]
lea rax, str.octet
mov qword [rsp + 0x50], r14
cmp byte [r14 + 0x563], bpl
cmove r13, rax
cmp edx, 7
ja case.0x14007d909.1
movsxd rax, edx
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x7de74]
add rcx, rdx
jmp rcx
inc dword [rdi + 0x20]
mov eax, dword [rdi + 0x20]
cmp eax, dword [rdi + 0x28]
jle 0x14007d92a
mov dword [rdi + 8], 0xffffff9e
xor eax, eax
mov dword [rdi], 3
jmp 0x14007de49
cmp byte [r14 + 0x571], bpl
je 0x14007d995
mov rax, qword [rdi + 0x170]
mov byte [rax], bpl
mov rax, qword [rdi + 0x170]
mov byte [rax + 1], 2
mov rax, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x170]
add rdx, 4
mov rcx, qword [rax]
mov qword [rcx + 0x1e8], rdx
mov rax, qword [r14 + 0x8b28]
cmp rax, 0xffffffffffffffff
je 0x14007d9b6
test rax, rax
js 0x14007d984
or dword [r14 + 0x860], 0x20
mov qword [r14 + 0x838], rax
jmp 0x14007d9b6
and dword [r14 + 0x860], 0xffffffdf
mov qword [r14 + 0x838], rbp
jmp 0x14007d9b6
mov ecx, ebp
mov rdx, rbp
nop word [rax + rax]
mov rax, qword [rdi + 0x170]
lea rdx, [rdx + 1]
mov byte [rdx + rax - 1], cl
inc ecx
cmp ecx, 2
jl 0x14007d9a0
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x8af8]
inc rsi
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rsi + rbx], bpl
jne 0x14007d9d0
inc rbx
mov rcx, rbx
call qword [fcn.14021a348]
mov qword [rsp + 0x48], rax
mov r12, rax
test rax, rax
je 0x14007dde9
sub rbx, 1
je 0x14007da79
movzx r14d, byte [rsi]
cmp r14b, 0x25
jne 0x14007da64
cmp rbx, 2
jbe 0x14007da64
movzx ecx, byte [rsi + 1]
call fcn.14021b410
test eax, eax
je 0x14007da64
movzx ecx, byte [rsi + 2]
call fcn.14021b410
test eax, eax
je 0x14007da5f
movzx eax, byte [rsi + 1]
lea rdx, [rsp + 0x58]
mov byte [rsp + 0x40], al
lea rcx, [rsp + 0x40]
movzx eax, byte [rsi + 2]
mov r8d, reloc.WS2_32.dll_recv
mov byte [rsp + 0x41], al
mov byte [rsp + 0x42], bpl
call fcn.1402194ac
add rsi, 2
mov r14d, eax
sub rbx, 2
mov r12, qword [rsp + 0x48]
mov byte [r15 + r12], r14b
inc rsi
inc r15
sub rbx, 1
jne 0x14007da00
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
lea r8, str._s_c_s_c
mov qword [rsp + 0x30], rbp
mov r9, rsi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbp
mov byte [r15 + rsi], bpl
mov r15d, ebp
mov rcx, qword [rdi + 0x170]
movsxd rdx, dword [rdi + 0x15c]
add rcx, 2
call fcn.14006ab70
or rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp byte [rcx + r13], bpl
jne 0x14007dac0
or rax, 0xffffffffffffffff
nop dword [rax]
cmp byte [rsi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x14007dad0
lea rbx, [rax + 4]
add rbx, rcx
cmp byte [r14 + 0x33c], bpl
jne 0x14007dd84
cmp byte [r14 + 0x571], bpl
je 0x14007db1d
mov r9, qword [r14 + 0x8b28]
cmp r9, 0xffffffffffffffff
je 0x14007db1d
lea r8, str._I64d
mov edx, 0x40
lea rcx, [rsp + 0x60]
call fcn.14006ab70
jmp 0x14007db27
mov eax, Ordinal_50
mov word [rsp + 0x60], ax
movsxd rax, dword [rdi + 0x15c]
lea rcx, [rbx + 6]
cmp rcx, rax
jbe 0x14007db3c
mov rax, rbp
jmp 0x14007db66
mov rdx, qword [rdi + 0x170]
lea rcx, str.tsize
add rdx, rbx
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14007db50
mov eax, 6
add rbx, rax
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
cmp byte [rcx + rax + 1], bpl
lea rax, [rax + 1]
jne 0x14007db72
lea rcx, [rax + 1]
movsxd rax, dword [rdi + 0x15c]
add rcx, rbx
cmp rcx, rax
jbe 0x14007db95
mov rax, rbp
jmp 0x14007dbdc
mov rdx, qword [rdi + 0x170]
lea rcx, [rsp + 0x60]
add rdx, rbx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14007dbb0
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], bpl
jne 0x14007dbd0
inc rax
mov r9d, dword [rdi + 0x160]
lea r8, [0x1402d06b8]
mov edx, 0x40
lea rcx, [rsp + 0x60]
add rbx, rax
call fcn.14006ab70
movsxd rax, dword [rdi + 0x15c]
lea rcx, [rbx + 8]
mov esi, 8
cmp rcx, rax
jbe 0x14007dc16
mov rax, rbp
jmp 0x14007dc44
mov rdx, qword [rdi + 0x170]
lea rcx, str.blksize
add rdx, rbx
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14007dc30
mov rax, rsi
add rbx, rax
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
cmp byte [rcx + rax + 1], bpl
lea rax, [rax + 1]
jne 0x14007dc50
lea rcx, [rax + 1]
movsxd rax, dword [rdi + 0x15c]
add rcx, rbx
cmp rcx, rax
jbe 0x14007dc73
mov rax, rbp
jmp 0x14007dcbc
mov rdx, qword [rdi + 0x170]
lea rcx, [rsp + 0x60]
add rdx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14007dc90
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], bpl
jne 0x14007dcb0
inc rax
mov r9d, dword [rdi + 0x24]
lea r8, [0x1402d06b8]
mov edx, 0x40
lea rcx, [rsp + 0x60]
add rbx, rax
call fcn.14006ab70
movsxd rax, dword [rdi + 0x15c]
lea rcx, [rbx + 8]
cmp rcx, rax
jbe 0x14007dcee
mov rsi, rbp
jmp 0x14007dd11
mov rdx, qword [rdi + 0x170]
lea rcx, str.timeout
add rdx, rbx
nop
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14007dd00
add rbx, rsi
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], bpl
jne 0x14007dd20
lea rcx, [rbx + 1]
add rcx, rax
movsxd rax, dword [rdi + 0x15c]
cmp rcx, rax
ja 0x14007dd7c
mov rdx, qword [rdi + 0x170]
lea rcx, [rsp + 0x60]
add rdx, rbx
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14007dd50
lea rax, [rsp + 0x60]
or rbp, 0xffffffffffffffff
nop word [rax + rax]
inc rbp
cmp byte [rax + rbp], r15b
jne 0x14007dd70
inc rbp
mov rsi, qword [rsp + 0x48]
add rbx, rbp
mov rax, qword [rdi + 0x10]
xor r9d, r9d
mov rdx, qword [rdi + 0x170]
mov r8d, ebx
mov rcx, qword [rax + 0x58]
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rcx + 0x20]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
movsxd rdx, eax
cmp rdx, rbx
je 0x14007ddde
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rdi + 0x10]
mov edx, eax
call fcn.1400755c0
mov r8, rax
lea rdx, [0x1402cf58c]
mov rcx, r14
call fcn.140059810
mov rcx, rsi
call qword [fcn.1402196e8]
jmp 0x14007de46
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14007de49
mov edx, 6
mov rcx, rdi
cmp byte [r14 + 0x571], bpl
je 0x14007de25
call fcn.14007d7d0
mov r15d, eax
jmp 0x14007de46
mov edx, 4
mov rcx, rdi
call fcn.14007d7d0
mov r15d, eax
jmp 0x14007de46
mov edx, 3
mov rcx, rdi
call fcn.14007d830
mov r15d, eax
jmp 0x14007de46
mov dword [rdi], 3
jmp 0x14007de46
lea rdx, str.tftp_send_first:_internal_error
mov rcx, r14
call fcn.140059810
mov eax, r15d
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401ef4e0
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, Ordinal_41
call fcn.1401ef830
sub rsp, rax
mov rax, qword [rcx + 0x10]
mov r8d, dword [rcx]
mov r9, qword [rax]
test r8d, r8d
je 0x14007e74a
sub r8d, 1
je 0x14007e741
sub r8d, 1
je 0x14007e738
mov rcx, r9
cmp r8d, 1
je 0x14007e71e
lea r8, str.Internal_state_machine_error
lea rdx, [0x1402cf58c]
call fcn.140059810
mov eax, 0x47
add rsp, 0x28
ret
lea r8, str.TFTP_finished
lea rdx, [0x1402d068c]
call fcn.140059720
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14007e1f0
add rsp, 0x28
jmp fcn.14007dea0
add rsp, 0x28
jmp 0x14007d890