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

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
xor ebx, ebx
mov eax, dword [esi + 0xc]
mov edi, dword [eax]
lea eax, [ecx - 4]
cmp eax, 3
ja case.default.0x4172ae
jmp dword [eax*4 + 0x417504]
lea edx, [esi + 0x144]
push edx
call fcn.00416900
xor ecx, ecx
and eax, 0xffff
mov cx, word [esi + 0x28]
add esp, 4
cmp eax, ecx
je case.0x4172ae.6
push ecx
push eax
push str.Received_ACK_for_block__d__expecting__d_n
push edi
call fcn.00412fe0
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
add esp, 0x10
inc edx
mov eax, edx
mov dword [esi + 0x14], edx
cmp eax, ecx
jle 0x417317
xor eax, eax
mov ax, word [esi + 0x28]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
push edi
call fcn.00413050
add esp, 0xc
mov ebx, 0x37
mov eax, ebx
pop edi
pop esi
pop ebx
ret
mov ecx, dword [esi + 0x130]
mov eax, dword [esi + 0x138]
lea edx, [esi + 0xb0]
push ecx
push edx
mov edx, dword [esi + 0x10]
add eax, 4
push 0
lea ecx, [esi + 0x148]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x41736a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [esi + 0xc]
push eax
call fcn.00426750
push eax
push 0x42fae8
push edi
call fcn.00413050
add esp, 0x14
mov ebx, 0x37
pop edi
mov eax, ebx
pop esi
pop ebx
ret
inc word [esi + 0x28]
lea ebx, [esi + 0x148]
push 3
push ebx
mov dword [esi + 0x14], 0
call fcn.00416f60
mov cx, word [esi + 0x28]
push ecx
push ebx
call fcn.00417270
add esp, 0x10
cmp word [esi + 0x28], 1
jbe 0x4173ba
mov edx, dword [esi + 0x138]
mov eax, dword [esi + 0x13c]
cmp edx, eax
jae 0x4173ba
mov dword [esi], 3
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esi + 0x13c]
mov edx, dword [esi + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call fcn.0040f320
mov ecx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
mov dword [esi + 0x138], ecx
jne 0x417500
mov eax, dword [esi + 0x130]
lea edx, [esi + 0xb0]
push eax
mov eax, dword [ebx]
push edx
add ecx, 4
push 0
push ecx
mov ecx, dword [esi + 0x10]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x417431
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esi + 0xc]
push eax
push edx
call fcn.00426750
push eax
push 0x42fae8
push edi
call fcn.00413050
add esp, 0x14
mov eax, 0x37
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x138]
mov ecx, dword [edi + 0x40]
add ecx, eax
mov dword [edi + 0x40], ecx
mov eax, dword [edi + 0x44]
adc eax, 0
mov dword [edi + 0x44], eax
mov ecx, dword [edi + 0x44]
mov edx, dword [edi + 0x40]
push ecx
push edx
push edi
call fcn.00424200
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov edx, dword [esi + 0x14]
inc edx
mov eax, edx
mov dword [esi + 0x14], edx
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push edi
call fcn.00412fe0
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
add esp, 0xc
cmp eax, ecx
jle 0x417494
mov dword [esi + 8], 0xffffff9d
mov dword [esi], 3
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esi + 0x130]
mov eax, dword [esi + 0x138]
lea edx, [esi + 0xb0]
push ecx
mov ecx, dword [esi + 0x148]
push edx
mov edx, dword [esi + 0x10]
add eax, 4
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x417448
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [esi + 0xc]
push eax
call fcn.00426750
push eax
push 0x42fae8
push edi
call fcn.00413050
add esp, 0x14
mov eax, 0x37
pop edi
pop esi
pop ebx
ret
push str.tftp_tx:_internal_error
push 0x42fae8
push edi
call fcn.00413050
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret