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

Disassembly:
mov eax, dword [esi + 0xc]
push ebx
push edi
mov edi, dword [eax]
mov eax, dword [esp + 0xc]
add eax, 0xfffffffc
xor ebx, ebx
cmp eax, 3
ja case.default.0x4146d9
jmp dword [eax*4 + 0x414900]
lea eax, [esi + 0x154]
call fcn.004141b0
movzx ecx, word [esi + 0x38]
movzx eax, ax
cmp eax, ecx
je case.0x4146d9.6
push ecx
push eax
push str.Received_ACK_for_block__d__expecting__d_n
push edi
call fcn.0040d790
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
cdq
add esp, 0x10
cmp edx, dword [esi + 0x24]
jl 0x41473a
jg 0x41471d
cmp eax, dword [esi + 0x20]
jbe 0x41473a
movzx ecx, word [esi + 0x38]
push ecx
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
push edi
call fcn.0040d820
add esp, 0xc
mov ebx, 0x37
pop edi
mov eax, ebx
pop ebx
ret
mov edx, dword [esi + 0x140]
mov ecx, dword [esi + 0x148]
push edx
lea eax, [esi + 0xc0]
push eax
mov eax, dword [esi + 0x10]
push 0
add ecx, 4
push ecx
lea edx, [esi + 0x158]
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x41478d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call fcn.00422d30
push eax
push 0x4c0204
push edi
call fcn.0040d820
add esp, 0x14
mov ebx, 0x37
pop edi
mov eax, ebx
pop ebx
ret
inc word [esi + 0x38]
mov dword [esi + 0x14], ebx
lea ebx, [esi + 0x158]
mov eax, 3
mov ecx, ebx
call fcn.00414160
mov ax, word [esi + 0x38]
mov ecx, ebx
call fcn.00414180
cmp word [esi + 0x38], 1
jbe 0x4147cf
mov edx, dword [esi + 0x148]
cmp edx, dword [esi + 0x14c]
jb case.0x4146d9.5
mov ecx, dword [esi + 0x14c]
mov edx, dword [esi + 0xc]
lea eax, [esp + 0xc]
push eax
push ecx
push edx
call fcn.00409490
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov dword [esi + 0x148], ecx
test eax, eax
jne 0x4148fd
mov eax, dword [esi + 0x140]
push eax
mov eax, dword [ebx]
lea edx, [esi + 0xc0]
push edx
push 0
add ecx, 4
push ecx
mov ecx, dword [esi + 0x10]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x414845
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esi + 0xc]
push eax
push edx
call fcn.00422d30
push eax
push 0x4c0204
push edi
call fcn.0040d820
add esp, 0x14
pop edi
mov eax, 0x37
pop ebx
ret
mov eax, dword [esi + 0x148]
add dword [edi + 0x40], eax
mov edx, dword [edi + 0x40]
adc dword [edi + 0x44], 0
mov ecx, dword [edi + 0x44]
push ecx
push edx
push edi
call fcn.00411a70
add esp, 0xc
pop edi
xor eax, eax
pop ebx
ret
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push edi
call fcn.0040d790
mov eax, dword [esi + 0x14]
cdq
add esp, 0xc
cmp edx, dword [esi + 0x24]
jl 0x41489f
jg 0x41488d
cmp eax, dword [esi + 0x20]
jbe 0x41489f
mov dword [esi + 8], 0xffffff9d
pop edi
mov dword [esi], 3
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 0x140]
mov edx, dword [esi + 0x148]
push eax
mov eax, dword [esi + 0x158]
lea ecx, [esi + 0xc0]
push ecx
mov ecx, dword [esi + 0x10]
push 0
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jl 0x41481e
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x40]
push eax
push ecx
push edi
call fcn.00411a70
add esp, 0xc
pop edi
xor eax, eax
pop ebx
ret
push str.tftp_tx:_internal_error
push 0x4c0204
push edi
call fcn.0040d820
add esp, 0xc
xor eax, eax
pop edi
pop ebx
ret