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

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x10]
mov ebx, dword [eax]
lea eax, [ecx - 3]
cmp eax, 4
ja case.0x428f4c.4
jmp dword [eax*4 + 0x4291ac]
lea edx, [esi + 0x14c]
push edx
call fcn.004291e0
mov di, ax
xor eax, eax
mov ax, word [esi + 0x30]
and edi, 0xffff
add esp, 4
lea ecx, [eax + 1]
and ecx, 0xffff
cmp ecx, edi
jne 0x428f87
mov dword [esi + 0x18], 0
jmp 0x428f9e
cmp eax, edi
jne 0x429016
push edi
push str.Received_last_DATA_packet_block__d_again._n
push ebx
call fcn.0041a570
add esp, 0xc
mov word [esi + 0x30], di
lea edi, [esi + 0x150]
push 4
push edi
call fcn.00428e30
mov ax, word [esi + 0x30]
push eax
push edi
call fcn.004291c0
mov ecx, dword [esi + 0x138]
mov eax, dword [edi]
add esp, 0x10
lea edx, [esi + 0xb8]
push ecx
mov ecx, dword [esi + 0x14]
push edx
push 0
push 4
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jl 0x429121
mov eax, dword [esi + 0x144]
mov edx, dword [esi + 0x13c]
add eax, 4
xor ecx, ecx
cmp edx, eax
setge cl
dec ecx
add esi, 0x2c
and ecx, 2
push esi
inc ecx
mov dword [esi - 0x2c], ecx
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push ecx
push edi
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push ebx
call fcn.0041a570
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
ret
lea edi, [esi + 0x150]
push 4
push edi
mov word [esi + 0x30], 0
mov dword [esi + 0x18], 0
call fcn.00428e30
mov dx, word [esi + 0x30]
push edx
push edi
call fcn.004291c0
mov eax, dword [esi + 0x138]
mov edx, dword [edi]
add esp, 0x10
lea ecx, [esi + 0xb8]
push eax
mov eax, dword [esi + 0x14]
push ecx
push 0
push 4
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x4290a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 0x10]
push eax
push ecx
call fcn.0041fce0
push eax
push 0x44b2ac
push ebx
call fcn.0041a5e0
add esp, 0x14
mov eax, 0x37
pop edi
pop esi
pop ebx
ret
mov dword [esi], 1
add esi, 0x2c
push esi
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov edx, dword [esi + 0x18]
inc edx
mov dword [esi + 0x18], edx
mov eax, edx
mov dx, word [esi + 0x30]
push eax
inc edx
and edx, 0xffff
push edx
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.0041a570
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
add esp, 0x10
cmp eax, ecx
jle 0x4290fa
mov dword [esi + 8], 0xffffff9d
mov dword [esi], 3
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esi + 0x138]
mov eax, dword [esi + 0x150]
lea edx, [esi + 0xb8]
push ecx
mov ecx, dword [esi + 0x14]
push edx
push 0
push 4
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x42918a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esi + 0x10]
push eax
push edx
call fcn.0041fce0
push eax
push 0x44b2ac
push ebx
call fcn.0041a5e0
add esp, 0x14
mov eax, 0x37
pop edi
pop esi
pop ebx
ret
lea edi, [esi + 0x150]
push 5
push edi
call fcn.00428e30
mov ax, word [esi + 0x30]
push eax
push edi
call fcn.004291c0
mov ecx, dword [esi + 0x138]
mov eax, dword [edi]
add esp, 0x10
lea edx, [esi + 0xb8]
push ecx
mov ecx, dword [esi + 0x14]
push edx
push 0
push 4
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esi], 3
pop edi
pop esi
xor eax, eax
pop ebx
ret
push str.tftp_rx:_internal_error
push 0x44b2ac
push ebx
call fcn.0041a5e0
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
ret