Function at 0x415c10
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.0x415c29
jmp dword [eax*4 + 0x415e54]
lea eax, [esi + 0x154]
call fcn.00415700
movzx ecx, word [esi + 0x38]
movzx eax, ax
cmp eax, ecx
je case.0x415c29.6
push ecx
push eax
push str.Received_ACK_for_block__d__expecting__d_n
push edi
call fcn.004127c0
add dword [esi + 0x14], 1
mov eax, dword [esi + 0x14]
cdq
add esp, 0x10
cmp edx, dword [esi + 0x24]
jl 0x415c8b
jg 0x415c6e
cmp eax, dword [esi + 0x20]
jbe 0x415c8b
movzx ecx, word [esi + 0x38]
push ecx
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
push edi
call fcn.00412850
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 [0x428400]
test eax, eax
jge 0x415cde
call dword [0x4283d8]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call fcn.00425520
push eax
push 0x429474
push edi
call fcn.00412850
add esp, 0x14
mov ebx, 0x37
pop edi
mov eax, ebx
pop ebx
ret
add word [esi + 0x38], 1
mov dword [esi + 0x14], ebx
lea ebx, [esi + 0x158]
mov eax, 3
mov ecx, ebx
call fcn.004156d0
mov ax, word [esi + 0x38]
mov ecx, ebx
call fcn.004156e0
cmp word [esi + 0x38], 1
jbe 0x415d21
mov edx, dword [esi + 0x148]
cmp edx, dword [esi + 0x14c]
jb case.0x415c29.5
mov ecx, dword [esi + 0x14c]
mov edx, dword [esi + 0xc]
lea eax, [esp + 0xc]
push eax
push ecx
push edx
call fcn.0040e3d0
mov ecx, dword [esp + 0x18]
add esp, 0xc
test eax, eax
mov dword [esi + 0x148], ecx
jne 0x415e50
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 [0x428400]
test eax, eax
jge 0x415d97
call dword [0x4283d8]
mov edx, dword [esi + 0xc]
push eax
push edx
call fcn.00425520
push eax
push 0x429474
push edi
call fcn.00412850
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.00422980
add esp, 0xc
pop edi
xor eax, eax
pop ebx
ret
add dword [esi + 0x14], 1
mov eax, dword [esi + 0x14]
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push edi
call fcn.004127c0
mov eax, dword [esi + 0x14]
cdq
add esp, 0xc
cmp edx, dword [esi + 0x24]
jl 0x415df2
jg 0x415de0
cmp eax, dword [esi + 0x20]
jbe 0x415df2
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 [0x428400]
test eax, eax
jl 0x415d70
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x40]
push eax
push ecx
push edi
call fcn.00422980
add esp, 0xc
pop edi
xor eax, eax
pop ebx
ret
push str.tftp_tx:_internal_error
push 0x429474
push edi
call fcn.00412850
add esp, 0xc
xor eax, eax
pop edi
pop ebx
ret