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

Disassembly:
sub esp, 0x10c
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 3
pop ebp
mov edi, dword [esi + 0x10]
sub edx, ebp
je 0x4a404c
dec edx
sub edx, 1
je 0x4a3ff4
sub edx, 1
je 0x4a3f84
sub edx, 1
je 0x4a3f21
push str.tftp_rx:_internal_error
push 0x585398
push edi
call fcn.0048c1c7
add esp, 0xc
push 0x47
jmp 0x4a410d
mov eax, dword [esi + 0x18]
inc eax
push eax
mov dword [esi + 0x18], eax
movzx eax, word [esi + 0x144]
inc eax
movzx eax, ax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d
push edi
call fcn.0048c275
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x4a3f57
mov dword [esi + 8], 0xffffff9d
jmp 0x4a4045
push dword [esi + 0x130]
lea eax, [esi + 0xb0]
push eax
push 0
push 4
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4a4143
jmp 0x4a40e9
xor eax, eax
xor ebx, ebx
mov word [esi + 0x144], ax
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x14c]
mov byte [eax], bl
mov eax, dword [esi + 0x14c]
mov byte [eax + 1], 4
movzx edx, word [esi + 0x144]
mov eax, dword [esi + 0x14c]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x14c]
mov byte [eax + 3], dl
lea eax, [esi + 0xb0]
push dword [esi + 0x130]
push eax
push ebx
push 4
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x4a40e9
mov dword [esi], 1
jmp 0x4a4127
mov eax, dword [esi + 0x14c]
mov byte [eax], 0
mov eax, dword [esi + 0x14c]
mov byte [eax + 1], 5
movzx edx, word [esi + 0x144]
mov eax, dword [esi + 0x14c]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x14c]
mov byte [eax + 3], dl
lea eax, [esi + 0xb0]
push dword [esi + 0x130]
push eax
push 0
push 4
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esi], ebp
jmp 0x4a4143
mov eax, dword [esi + 0x148]
movzx ecx, word [esi + 0x144]
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 0x4a4076
and dword [esi + 0x18], 0
jmp 0x4a408d
cmp ecx, ebx
jne 0x4a4133
push ebx
push str.Received_last_DATA_packet_block__d_again.
push edi
call fcn.0048c275
add esp, 0xc
mov word [esi + 0x144], bx
mov eax, dword [esi + 0x14c]
mov byte [eax], 0
mov eax, dword [esi + 0x14c]
mov byte [eax + 1], 4
movzx edx, word [esi + 0x144]
mov eax, dword [esi + 0x14c]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x14c]
mov byte [eax + 3], dl
lea eax, [esi + 0xb0]
push dword [esi + 0x130]
push eax
push 0
push 4
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4a4110
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [esp + 0x14]
mov ecx, eax
call fcn.00477b48
pop ecx
push eax
push 0x585398
push edi
call fcn.0048c1c7
add esp, 0xc
push 0x37
pop eax
jmp 0x4a4145
mov eax, dword [esi + 0x13c]
xor ecx, ecx
add eax, 4
inc ecx
cmp dword [esi + 0x134], eax
cmovge ebp, ecx
mov dword [esi], ebp
lea eax, [esi + 0x28]
push eax
call fcn.00530c3c
pop ecx
jmp 0x4a4143
push eax
push ebx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d
push edi
call fcn.0048c275
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x10c
ret