Function at 0x14008a3a0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0xd0
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x6e8]
mov rdi, qword [rcx]
mov dword [rsp + 0x30], 0x80
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rbp, rcx
mov rcx, qword [rbx + 0x18]
lea rax, [rsp + 0x40]
add r8d, 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14008a43d
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.140042d30
mov r11d, dword [rsp + 0x30]
mov dword [rbx + 0x150], r11d
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xe8], rsi
cmp r8d, 4
jge 0x14008a497
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140075620
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140041910
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rcx, qword [rbx + 0x168]
movzx eax, byte [rcx]
shl ax, 8
movzx edx, ax
movzx eax, byte [rcx + 1]
or edx, eax
mov dword [rbx + 0xc], edx
sub edx, 3
je 0x14008a543
sub edx, 1
je 0x14008a5c2
sub edx, 1
je 0x14008a50c
cmp edx, 1
je 0x14008a4e8
lea r8, str.Internal_error:_Unexpected_packet
lea rdx, [0x1401cd58c]
mov rcx, rdi
call fcn.140075620
jmp 0x14008a5c2
mov rdx, qword [rbx + 0x168]
add r8d, 0xfffffffe
mov rcx, rbx
add rdx, 2
call fcn.140088f90
test eax, eax
je 0x14008a5c2
jmp 0x14008a46a
mov rdx, qword [rbx + 0x168]
mov r8, qword [rbx + 0x168]
movzx eax, byte [rdx + 2]
add r8, 4
shl ax, 8
movzx ecx, ax
movzx eax, byte [rdx + 3]
lea rdx, [0x140196d50]
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rdi
call fcn.140075570
jmp 0x14008a5c2
cmp r8d, 4
jle 0x14008a5c2
mov rcx, qword [rbx + 0x168]
movzx eax, byte [rcx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [rcx + 3]
or edx, eax
mov ax, word [rbx + 0x48]
add eax, 1
movzx eax, ax
cmp eax, edx
jne 0x14008a5c2
lea eax, [r8 - 4]
lea r8, [rcx + 4]
mov edx, 1
movsxd r9, eax
mov rcx, rbp
call fcn.140075b80
test eax, eax
mov esi, eax
je 0x14008a5a1
mov edx, 5
mov rcx, rbx
call fcn.14008a320
mov eax, esi
jmp 0x14008a46a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xb0], rax
mov rdx, qword [rdi + 0xb0]
call fcn.1400813f0
mov rcx, rbp
call fcn.140081470
test eax, eax
je 0x14008a468
mov rax, qword [rbx + 0x10]
mov r8d, dword [rbx]
test r8d, r8d
mov rcx, qword [rax]
je 0x14008a71f
sub r8d, 1
je 0x14008a6ad
sub r8d, 1
je 0x14008a635
cmp r8d, 1
je 0x14008a618
lea r8, str.Internal_state_machine_error
lea rdx, [0x1401cd58c]
call fcn.140075620
mov eax, Ordinal_46
jmp 0x14008a46a
lea r8, str.TFTP_finished
lea rdx, [0x140196d50]
call fcn.140075570
mov eax, Ordinal_46
jmp 0x14008a46a
mov dword [rbx], 3
mov rax, qword [rbx + 0x170]
xor r9d, r9d
mov byte [rax], 0
mov rax, qword [rbx + 0x170]
lea r8d, [r9 + 4]
mov byte [rax + 1], 5
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x170]
movzx ecx, dx
shr cx, 8
mov byte [rax + 2], cl
mov rax, qword [rbx + 0x170]
lea rcx, [rbx + 0xd0]
mov byte [rax + 3], dl
mov eax, dword [rbx + 0x150]
mov rdx, qword [rbx + 0x170]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
mov dword [rbx], 3
mov eax, Ordinal_46
jmp 0x14008a46a
mov rax, qword [rbx + 0x170]
xor r9d, r9d
mov byte [rax], 0
mov rax, qword [rbx + 0x170]
lea r8d, [r9 + 4]
mov byte [rax + 1], 5
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x170]
movzx ecx, dx
shr cx, 8
mov byte [rax + 2], cl
mov rax, qword [rbx + 0x170]
lea rcx, [rbx + 0xd0]
mov byte [rax + 3], dl
mov eax, dword [rbx + 0x150]
mov rdx, qword [rbx + 0x170]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
mov dword [rbx], 3
mov eax, Ordinal_46
jmp 0x14008a46a
mov edx, 5
mov rcx, rbx
call fcn.140089e40
mov eax, Ordinal_46
jmp 0x14008a46a