Function at 0x4b2450
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
mov esi, ecx
add edx, 0xfffffffd
push edi
mov eax, dword [esi + 0x10]
mov edi, dword [eax]
cmp edx, 4
ja case.0x4b2466.4
jmp dword [edx*4 + 0x4b26bc]
mov eax, dword [esi + 0x15c]
movzx ecx, word [esi + 0x40]
movzx ebx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ebx, 8
or ebx, eax
lea eax, [ecx + 1]
movzx eax, ax
cmp eax, ebx
jne 0x4b2497
mov dword [esi + 0x18], 0
jmp 0x4b24ae
cmp ecx, ebx
jne 0x4b2538
push ebx
push str.Received_last_DATA_packet_block__d_again._n
push edi
call fcn.00490900
add esp, 0xc
mov word [esi + 0x40], bx
mov eax, dword [esi + 0x160]
mov byte [eax], 0
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 4
movzx edx, word [esi + 0x40]
mov eax, dword [esi + 0x160]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x160]
mov byte [eax + 3], dl
lea eax, [esi + 0xc8]
push dword [esi + 0x148]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x4b261e
mov eax, dword [esi + 0x154]
xor ecx, ecx
add eax, 4
cmp dword [esi + 0x14c], eax
lea eax, [esi + 0x38]
push eax
setl cl
lea ecx, [ecx*2 + 1]
mov dword [esi], ecx
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push eax
push ebx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push edi
call fcn.00490900
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
ret
xor eax, eax
mov word [esi + 0x40], ax
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x160]
mov byte [eax], 0
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 4
movzx edx, word [esi + 0x40]
mov eax, dword [esi + 0x160]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x160]
mov byte [eax + 3], dl
lea eax, [esi + 0xc8]
push dword [esi + 0x148]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x4b261e
lea eax, [esi + 0x38]
mov dword [esi], 1
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
movzx eax, word [esi + 0x40]
inc dword [esi + 0x18]
inc eax
push dword [esi + 0x18]
movzx eax, ax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push edi
call fcn.00490900
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x4b25fa
mov dword [esi + 8], 0xffffff9d
xor eax, eax
mov dword [esi], 3
pop edi
pop esi
pop ebx
ret
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4b269a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 0x10]
mov edx, eax
call fcn.0048cc00
push eax
push 0x5931f0
push edi
call fcn.004909c0
mov eax, 0x37
add esp, 0xc
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x160]
mov byte [eax], 0
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 5
movzx edx, word [esi + 0x40]
mov eax, dword [esi + 0x160]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x160]
mov byte [eax + 3], dl
lea eax, [esi + 0xc8]
push dword [esi + 0x148]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esi], 3
xor eax, eax
pop edi
pop esi
pop ebx
ret
push str.tftp_rx:_internal_error
push 0x5931f0
push edi
call fcn.004909c0
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
ret