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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xf8
mov r14, qword [rcx + 0x590]
mov rbp, qword [rcx]
lea r12, [rsp + 0x70]
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [sym.imp.msvcrt.dll__time64]
mov rcx, r12
call rdi
mov rdx, qword [r14 + 0x38]
mov rax, qword [rsp + 0x70]
cmp rdx, rax
jl 0x46d810
movsxd r8, dword [r14 + 0x24]
add r8, qword [r14 + 0x40]
cmp rax, r8
jg 0x46d7c5
sub edx, eax
mov byte [rsi], 0
test edx, edx
jle 0x46d822
mov rcx, qword [r14 + 0x18]
mov r8, 0xffffffffffffffff
xor r9d, r9d
mov rdx, r8
call fcn.0044c700
cmp eax, 0xffffffff
je 0x46d905
test eax, eax
je 0x46d7f8
mov rbp, qword [rbx + 0x590]
lea r8, [rsp + 0x6c]
xor r9d, r9d
mov r13, qword [rbx]
mov dword [rsp + 0x6c], pe_nt_image_headers64
mov eax, dword [rbp + 0x15c]
mov rdx, qword [rbp + 0x168]
mov rcx, qword [rbp + 0x18]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r12
lea r8d, [rax + 4]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov r9d, dword [rbp + 0x150]
mov dword [rbp + 0x154], eax
test r9d, r9d
je 0x46d94d
cmp eax, 3
jle 0x46d976
mov r8, qword [rbp + 0x168]
movzx ecx, byte [r8]
movzx edx, byte [r8 + 1]
shl ecx, 8
or edx, ecx
movzx ecx, dx
cmp dx, 4
mov dword [rbp + 0xc], ecx
je 0x46d8e0
jbe 0x46d873
cmp dx, 5
je 0x46d991
cmp dx, 6
jne 0x46d9be
mov rdx, qword [rbp + 0x10]
sub eax, 2
lea rdi, [r8 + 2]
movsxd r13, eax
lea rax, [rdi + r13]
mov rdx, qword [rdx]
mov dword [rbp + 0x15c], 0x200
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], rdx
jmp 0x46d683
xor edx, edx
mov r8d, 0xa
mov rcx, r12
call sub.msvcrt.dll_strtol
test eax, eax
mov r9d, eax
je 0x46da4e
cmp eax, 0xffb8
jg 0x46da2e
cmp eax, 7
jle 0x46da0e
mov eax, dword [rbp + 0x160]
cmp r9d, eax
jg 0x46d9f4
mov dword [rbp + 0x15c], r9d
mov rcx, qword [rsp + 0x58]
lea r8, str.blksize_parsed_from_OACK
mov dword [rsp + 0x28], eax
lea rax, str.requested
lea rdx, str._s___d___s___d__n
mov qword [rsp + 0x20], rax
call fcn.0044e9e0
mov rdi, r15
cmp qword [rsp + 0x48], rdi
jbe 0x46d8e0
mov r12, qword [rsp + 0x48]
xor edx, edx
mov rcx, rdi
sub r12, rdi
mov r8, r12
call sub.msvcrt.dll_memchr
mov r15, rax
sub r15, rdi
test rax, rax
cmove r15, r12
lea rcx, [r15 + 1]
cmp r12, rcx
jbe 0x46d9d9
lea r11, [rdi + rcx]
mov r13, r12
xor edx, edx
sub r13, rcx
mov r8, r13
mov rcx, r11
mov qword [rsp + 0x50], r11
call sub.msvcrt.dll_memchr
mov r11, qword [rsp + 0x50]
mov rdx, rax
mov r9, r13
sub rdx, r11
test rax, rax
cmovne r9, rdx
lea r15, [r15 + r9 + 2]
cmp r12, r15
jb 0x46d9d9
mov rcx, rdi
call sub.msvcrt.dll_strlen
add r15, rdi
lea r12, [rdi + rax + 1]
je 0x46d9d9
mov rcx, qword [rsp + 0x58]
lea rdx, str.got_option__s__value__s__n
mov r9, r12
mov r8, rdi
call fcn.0044e9e0
mov rcx, rdi
call sub.msvcrt.dll_strlen
lea rdx, str.blksize
mov r8, rax
mov rcx, rdi
call fcn.0045a980
test eax, eax
jne 0x46d613
mov rcx, rdi
call sub.msvcrt.dll_strlen
lea rdx, str.tsize
mov r8, rax
mov rcx, rdi
call fcn.0045a980
test eax, eax
je 0x46d680
xor edx, edx
mov r8d, 0xa
mov rcx, r12
call sub.msvcrt.dll_strtol
mov r13, qword [rsp + 0x58]
lea r8, str.tsize_parsed_from_OACK
lea rdx, str._s___ld__n
mov r9d, eax
mov edi, eax
mov rcx, r13
call fcn.0044e9e0
cmp byte [r13 + 0x441], 0
jne 0x46d680
test edi, edi
je 0x46da75
mov rcx, qword [rsp + 0x58]
movsxd rdx, edi
call fcn.0045c430
jmp 0x46d680
lea rcx, [r14 + 0x40]
call rdi
mov rax, qword [r14 + 0x38]
sub eax, dword [rsp + 0x70]
mov byte [rsi], 0
test eax, eax
jle 0x46d822
mov edx, 7
mov rcx, r14
call fcn.0046d0c0
test eax, eax
jne 0x46d7fa
cmp dword [r14], 3
sete al
test al, al
mov byte [rsi], al
jne 0x46d840
xor eax, eax
add rsp, 0xf8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [r14 + 8], 0xffffff9d
mov dword [r14], 3
mov byte [rsi], 0
lea rdx, str.TFTP_response_timeout
mov rcx, rbp
call fcn.0044ea90
mov eax, 0x1c
jmp 0x46d7fa
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xffffffff
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov r8, 0xffffffffffffffff
mov edx, 0xffffffff
mov rcx, rbx
call fcn.0047c6f0
jmp 0x46d7f8
cmp dx, 3
jne 0x46d9be
cmp eax, 4
je 0x46d8e0
movzx ecx, byte [r8 + 2]
movzx r9d, word [rbp + 0x48]
movzx edx, byte [r8 + 3]
shl ecx, 8
add r9d, 1
or edx, ecx
cmp dx, r9w
jne 0x46d8e0
lea r9d, [rax - 4]
add r8, 4
mov edx, 1
mov rcx, rbx
movsxd r9, r9d
call fcn.0044ecf0
test eax, eax
mov edi, eax
jne 0x46da61
mov eax, dword [rbp + 0x154]
mov rcx, r13
lea edx, [rax - 4]
movsxd rdx, edx
add rdx, qword [r13 + 0x50]
mov qword [r13 + 0x50], rdx
call fcn.0045c410
nop
mov rcx, rbx
call fcn.0045c470
test eax, eax
jne 0x46d936
mov edx, dword [r14 + 0xc]
mov rcx, r14
call fcn.0046d0c0
test eax, eax
je 0x46d7eb
jmp 0x46d7fa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
mov edx, eax
call fcn.0045d930
lea rdx, [0x00663f0e]
mov r8, rax
mov rcx, rbp
call fcn.0044ea90
mov dword [r14 + 0xc], 5
xor eax, eax
jmp 0x46d7fa
mov edx, 5
mov rcx, rbp
call fcn.0046d0c0
mov eax, 0x2a
jmp 0x46d7fa
movsxd r8, dword [rsp + 0x6c]
lea rcx, [rbp + 0xd0]
mov rdx, r12
call sub.msvcrt.dll_memcpy
mov eax, dword [rsp + 0x6c]
mov dword [rbp + 0x150], eax
mov eax, dword [rbp + 0x154]
jmp 0x46d5a0
lea rdx, str.Received_too_short_packet
mov rcx, r13
call fcn.0044ea90
mov dword [rbp + 0xc], 7
jmp 0x46d8ec
movzx edx, byte [r8 + 2]
movzx eax, byte [r8 + 3]
mov rcx, r13
add r8, 4
shl edx, 8
or eax, edx
lea rdx, [0x00663fc8]
movzx eax, ax
mov dword [rbp + 8], eax
call fcn.0044e9e0
jmp 0x46d8e0
lea r8, str.Internal_error:_Unexpected_packet
lea rdx, [0x00663f0e]
mov rcx, r13
call fcn.0044ea90
jmp 0x46d8e0
mov rcx, qword [rsp + 0x58]
lea rdx, str.Malformed_ACK_packet__rejecting
call fcn.0044ea90
mov eax, 0x47
jmp 0x46d7fa
mov rcx, qword [rsp + 0x58]
lea r8, str.server_requested_blksize_larger_than_allocated
lea rdx, str._s___ld_
call fcn.0044ea90
jmp 0x46d9ea
mov rcx, qword [rsp + 0x58]
lea r8, str.blksize_is_smaller_than_min_supported
lea rdx, str._s___d_
mov r9d, 8
call fcn.0044ea90
jmp 0x46d9ea
mov rcx, qword [rsp + 0x58]
lea r8, str.blksize_is_larger_than_max_supported
lea rdx, str._s___d_
mov r9d, 0xffb8
call fcn.0044ea90
jmp 0x46d9ea
mov rcx, qword [rsp + 0x58]
lea rdx, str.invalid_blocksize_value_in_OACK_packet
call fcn.0044ea90
jmp 0x46d9ea
mov edx, 5
mov rcx, rbp
call fcn.0046d0c0
mov eax, edi
jmp 0x46d7fa
mov rcx, qword [rsp + 0x58]
lea rdx, str.invalid_tsize__:_s:__value_in_OACK_packet
mov r8, r12
call fcn.0044ea90
jmp 0x46d9ea