Function at 0x1800a7180
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x118
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x798]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
add rax, 0x100
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x48], 0x80
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x15c]
add eax, 4
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, eax
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax + 0x168]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x154], eax
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x150], 0
jne 0x1800a7271
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, 0xd0
mov r8, rax
lea rdx, [rsp + 0x80]
call fcn.180129f80
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 0x150], ecx
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x154], 4
jge 0x1800a72a1
lea rdx, str.Received_too_short_packet
mov rcx, qword [rsp + 0x50]
call fcn.180060120
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], 7
jmp 0x1800a74d9
mov rax, qword [rsp + 0x30]
add rax, 0x168
mov rcx, rax
call fcn.1800a63b0
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0xc], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 3
je 0x1800a72ff
cmp dword [rsp + 0x3c], 4
je 0x1800a7457
cmp dword [rsp + 0x3c], 5
je 0x1800a73da
cmp dword [rsp + 0x3c], 6
je 0x1800a7459
jmp 0x1800a749a
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x154], 4
jle 0x1800a73d5
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x48]
inc eax
and eax, 0xffff
mov dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0x30]
add rcx, 0x168
call fcn.1800a63f0
movzx eax, ax
mov ecx, dword [rsp + 0x58]
cmp ecx, eax
jne 0x1800a73d5
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x154]
sub eax, 4
cdqe
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x168]
add rcx, 4
mov r9, rax
mov r8, rcx
mov edx, 1
mov rcx, qword [rsp + 0x120]
call fcn.1800602b0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1800a73a0
mov edx, 5
mov rcx, qword [rsp + 0x30]
call fcn.1800a7090
mov eax, dword [rsp + 0x38]
jmp 0x1800a74dd
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x154]
sub eax, 4
cdqe
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 0x10]
mov rcx, qword [rsp + 0x60]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
call fcn.18008cf10
jmp 0x1800a74b2
mov rax, qword [rsp + 0x30]
add rax, 0x168
mov rcx, rax
call fcn.1800a63f0
mov word [rsp + 0x44], ax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x168]
add rax, 4
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x154]
sub eax, 4
cdqe
mov qword [rsp + 0x68], rax
movzx eax, word [rsp + 0x44]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 8], eax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.1800a6430
cmp rax, qword [rsp + 0x68]
jae 0x1800a7455
mov r8, qword [rsp + 0x70]
lea rdx, str.TFTP_error:__s_n
mov rcx, qword [rsp + 0x50]
call fcn.18005ffc0
jmp 0x1800a74b2
jmp 0x1800a74b2
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x154]
sub eax, 2
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x168]
add rcx, 2
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x30]
call fcn.1800a6580
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1800a7498
mov eax, dword [rsp + 0x38]
jmp 0x1800a74dd
jmp 0x1800a74b2
lea r8, str.Internal_error:_Unexpected_packet
lea rdx, [0x18015f8b4]
mov rcx, qword [rsp + 0x50]
call fcn.180060120
mov rcx, qword [rsp + 0x120]
call fcn.18008d0d0
test eax, eax
je 0x1800a74d9
mov edx, 5
mov rcx, qword [rsp + 0x30]
call fcn.1800a7090
mov eax, Ordinal_46
jmp 0x1800a74dd
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x118
ret