Function at 0x433e50
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 r15, qword [rcx + 0x490]
mov rbp, qword [rcx]
lea rdi, [rsp + 0x70]
mov rbx, rcx
mov rsi, rdx
mov r12, qword [sym.imp.msvcrt.dll__time64]
mov rcx, rdi
call r12
mov rax, qword [r15 + 0x38]
mov r8, qword [rsp + 0x70]
cmp rax, r8
jl 0x4341b0
movsxd rdx, dword [r15 + 0x24]
add rdx, qword [r15 + 0x40]
cmp r8, rdx
jle 0x433f00
lea rcx, [r15 + 0x40]
call r12
mov rax, qword [r15 + 0x38]
sub eax, dword [rsp + 0x70]
mov byte [rsi], 0
test eax, eax
jle 0x4341c2
mov edx, 7
mov rcx, r15
call fcn.00433a40
test eax, eax
jne 0x433ee2
cmp dword [r15], 3
sete al
test al, al
mov byte [rsi], al
jne 0x4341e0
xor eax, eax
add rsp, 0xf8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
sub eax, r8d
mov byte [rsi], 0
test eax, eax
jle 0x4341c2
mov rcx, qword [r15 + 0x18]
mov r8, 0xffffffffffffffff
xor r9d, r9d
mov rdx, r8
call fcn.00421010
cmp eax, 0xffffffff
je 0x434220
test eax, eax
je 0x433ee0
mov rbp, qword [rbx + 0x490]
lea r8, [rsp + 0x6c]
xor r9d, r9d
mov r12, 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], rdi
lea r8d, [rax + 4]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov edx, dword [rbp + 0x150]
mov dword [rbp + 0x154], eax
test edx, edx
je 0x434280
cmp eax, 3
jle 0x434251
mov r8, qword [rbp + 0x168]
movzx edx, byte [r8]
movzx ecx, byte [r8 + 1]
shl edx, 8
or edx, ecx
movzx ecx, dx
cmp dx, 4
mov dword [rbp + 0xc], ecx
je 0x434321
jbe 0x4342b0
cmp dx, 5
je 0x434348
cmp dx, 6
jne 0x434372
mov rdx, qword [rbp + 0x10]
lea r13d, [rax - 2]
lea rdi, [r8 + 2]
movsxd r13, r13d
mov rcx, qword [rdx]
lea rax, [rdi + r13]
mov dword [rbp + 0x15c], 0x200
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], rcx
jmp 0x434070
xor edx, edx
mov r8d, 0xa
mov rcx, r14
call sub.msvcrt.dll_strtol
test eax, eax
mov r9d, eax
je 0x434405
cmp eax, 0xffb8
jg 0x4343e5
cmp eax, 7
jle 0x4343c5
mov eax, dword [rbp + 0x160]
cmp r9d, eax
jg 0x4343ab
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.00416ed0
mov rdi, r12
cmp rdi, qword [rsp + 0x48]
jae 0x434321
mov r14, qword [rsp + 0x48]
xor edx, edx
mov rcx, rdi
sub r14, rdi
mov r8, r14
call sub.msvcrt.dll_memchr
mov r12, rax
sub r12, rdi
test rax, rax
cmove r12, r14
lea rcx, [r12 + 1]
cmp r14, rcx
jbe 0x434390
lea r11, [rdi + rcx]
mov r13, r14
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
sub rdx, r11
test rax, rax
cmovne r13, rdx
lea r12, [r12 + r13 + 2]
cmp r14, r12
jb 0x434390
mov rcx, rdi
call sub.msvcrt.dll_strlen
add r12, rdi
lea r14, [rdi + rax + 1]
je 0x434390
mov rcx, qword [rsp + 0x58]
lea rdx, str.got_option__s__value__s__n
mov r9, r14
mov r8, rdi
call fcn.00416ed0
mov rcx, rdi
call sub.msvcrt.dll_strlen
lea rdx, str.blksize
mov r8, rax
mov rcx, rdi
call fcn.0043c970
test eax, eax
jne 0x434000
mov rcx, rdi
call sub.msvcrt.dll_strlen
lea rdx, str.tsize
mov r8, rax
mov rcx, rdi
call fcn.0043c970
test eax, eax
je 0x43406d
xor edx, edx
mov r8d, 0xa
mov rcx, r14
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.00416ed0
cmp byte [r13 + 0x491], 0
jne 0x43406d
test edi, edi
je 0x43442c
mov rcx, qword [rsp + 0x58]
movsxd rdx, edi
call fcn.00424fe0
jmp 0x43406d
mov dword [r15 + 8], 0xffffff9d
mov dword [r15], 3
mov byte [rsi], 0
lea rdx, str.TFTP_response_timeout
mov rcx, rbp
call fcn.00416f80
mov eax, 0x1c
jmp 0x433ee2
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.00441d30
jmp 0x433ee0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
mov edx, eax
call fcn.00423f60
lea rdx, [0x0046cfae]
mov r8, rax
mov rcx, rbp
call fcn.00416f80
mov dword [r15 + 0xc], 5
xor eax, eax
jmp 0x433ee2
lea rdx, str.Received_too_short_packet
mov rcx, r12
call fcn.00416f80
mov dword [rbp + 0xc], 7
mov edx, dword [r15 + 0xc]
mov rcx, r15
call fcn.00433a40
test eax, eax
je 0x433ecf
jmp 0x433ee2
movsxd r8, dword [rsp + 0x6c]
lea rcx, [rbp + 0xd0]
mov rdx, rdi
mov r13, r8
call sub.msvcrt.dll_memcpy
mov dword [rbp + 0x150], r13d
mov eax, dword [rbp + 0x154]
jmp 0x433f84
cmp dx, 3
jne 0x434372
cmp eax, 4
je 0x434321
movzx edx, byte [r8 + 2]
movzx ecx, word [rbp + 0x48]
movzx r9d, byte [r8 + 3]
shl edx, 8
add ecx, 1
or edx, r9d
cmp dx, cx
jne 0x434321
lea r9d, [rax - 4]
add r8, 4
mov edx, 1
mov rcx, rbx
movsxd r9, r9d
call fcn.004171c0
test eax, eax
mov edi, eax
jne 0x434418
mov eax, dword [rbp + 0x154]
mov rcx, r12
lea edx, [rax - 4]
movsxd rdx, edx
add rdx, qword [r12 + 0xb0]
mov qword [r12 + 0xb0], rdx
call fcn.00424fc0
mov rcx, rbx
call fcn.00425020
test eax, eax
je 0x434267
mov edx, 5
mov rcx, rbp
call fcn.00433a40
mov eax, 0x2a
jmp 0x433ee2
movzx eax, byte [r8 + 2]
movzx edx, byte [r8 + 3]
mov rcx, r12
add r8, 4
shl eax, 8
or eax, edx
lea rdx, [0x0046d068]
movzx eax, ax
mov dword [rbp + 8], eax
call fcn.00416ed0
jmp 0x434321
lea r8, str.Internal_error:_Unexpected_packet
lea rdx, [0x0046cfae]
mov rcx, r12
call fcn.00416f80
jmp 0x434321
mov rcx, qword [rsp + 0x58]
lea rdx, str.Malformed_ACK_packet__rejecting
call fcn.00416f80
mov eax, 0x47
jmp 0x433ee2
mov rcx, qword [rsp + 0x58]
lea r8, str.server_requested_blksize_larger_than_allocated
lea rdx, str._s___ld_
call fcn.00416f80
jmp 0x4343a1
mov rcx, qword [rsp + 0x58]
lea r8, str.blksize_is_smaller_than_min_supported
lea rdx, str._s___d_
mov r9d, 8
call fcn.00416f80
jmp 0x4343a1
mov rcx, qword [rsp + 0x58]
lea r8, str.blksize_is_larger_than_max_supported
lea rdx, str._s___d_
mov r9d, 0xffb8
call fcn.00416f80
jmp 0x4343a1
mov rcx, qword [rsp + 0x58]
lea rdx, str.invalid_blocksize_value_in_OACK_packet
call fcn.00416f80
jmp 0x4343a1
mov edx, 5
mov rcx, rbp
call fcn.00433a40
mov eax, edi
jmp 0x433ee2
mov rcx, qword [rsp + 0x58]
lea rdx, str.invalid_tsize__:_s:__value_in_OACK_packet
mov r8, r14
call fcn.00416f80
jmp 0x4343a1