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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x5bf23c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 3
pop ebx
mov eax, dword [esi + 0x10]
mov edi, dword [eax]
mov eax, dword [ebp + 0xc]
sub eax, ebx
je 0x4a3ac5
dec eax
sub eax, 1
je 0x4a3a70
sub eax, 1
je 0x4a3a06
sub eax, 1
je 0x4a39a8
push str.tftp_rx:_internal_error
push 0x5a8bc8
push edi
call fcn.0048bd13
add esp, 0xc
push 0x47
jmp 0x4a3b82
inc dword [esi + 0x18]
movzx eax, word [esi + 0x40]
push dword [esi + 0x18]
inc eax
movzx eax, ax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push edi
call fcn.0048bde9
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x4a39d9
mov dword [esi + 8], 0xffffff9d
jmp 0x4a3abe
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 0x4a3bbb
jmp 0x4a3b59
xor eax, eax
xor ebx, ebx
mov word [esi + 0x40], ax
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x160]
mov byte [eax], bl
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 ebx
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x4a3b59
mov dword [esi], 1
jmp 0x4a3b9f
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], ebx
jmp 0x4a3bbb
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 0x4a3aec
and dword [esi + 0x18], 0
jmp 0x4a3b03
cmp ecx, ebx
jne 0x4a3bab
push ebx
push str.Received_last_DATA_packet_block__d_again._n
push edi
call fcn.0048bde9
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
jns 0x4a3b85
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004b0ea4
push eax
push 0x5a8bc8
push edi
call fcn.0048bd13
add esp, 0x18
push 0x37
pop eax
jmp 0x4a3bbd
mov eax, dword [esi + 0x154]
xor ecx, ecx
add eax, 4
inc ecx
cmp dword [esi + 0x14c], eax
push 3
pop eax
cmovl ecx, eax
mov dword [esi], ecx
lea eax, [esi + 0x38]
push eax
call fcn.0050a0b3
pop ecx
jmp 0x4a3bbb
push eax
push ebx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push edi
call fcn.0048bde9
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fc837
mov esp, ebp
pop ebp
ret