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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push esi
push edi
lea edi, [ebp - 0x130]
mov ecx, 0x4c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x7a3104]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 8]
add edx, 0x88
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
sub ecx, 4
mov dword [ebp - 0x130], ecx
cmp dword [ebp - 0x130], 3
ja case.default.0x5e976e
mov edx, dword [ebp - 0x130]
jmp dword [edx*4 + 0x5e9cc8]
cmp dword [ebp + 0xc], 4
jne 0x5e98ee
mov eax, dword [ebp + 8]
add eax, 0x158
push eax
call fcn.005eaa20
add esp, 4
movzx ecx, ax
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x154]
cmp dword [ebp - 0x12c], eax
je 0x5e98c5
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x154]
test edx, edx
jne 0x5e97cd
cmp dword [ebp - 0x12c], 0xffff
je 0x5e98c5
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x154]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
push str.Received_ACK_for_block__d__expecting__d_n
mov eax, dword [ebp - 8]
push eax
call fcn.00514800
add esp, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
cmp eax, dword [edx + 0x20]
jle 0x5e9835
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x154]
push edx
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
mov eax, dword [ebp - 8]
push eax
call fcn.00518f9a
add esp, 0xc
mov dword [ebp - 0x10], 0x37
jmp 0x5e98bd
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
push edx
mov eax, dword [ebp + 8]
add eax, 0xc0
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x148]
add edx, 4
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x15c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp esi, esp
call fcn.00516fe7
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x5e98bd
push 0x100
lea ecx, [ebp - 0x124]
push ecx
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00516fe7
push eax
call fcn.00514f4e
add esp, 0xc
push eax
push 0x79fd88
mov edx, dword [ebp - 8]
push edx
call fcn.00518f9a
add esp, 0xc
mov dword [ebp - 0x10], 0x37
mov eax, dword [ebp - 0x10]
jmp 0x5e9c6e
mov eax, dword [ebp + 8]
add eax, 0x38
push eax
call fcn.005e9230
add esp, 4
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x154]
add dx, 1
mov eax, dword [ebp + 8]
mov word [eax + 0x154], dx
jmp 0x5e98fd
mov ecx, 1
mov edx, dword [ebp + 8]
mov word [edx + 0x154], cx
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0
push 3
mov ecx, dword [ebp + 8]
add ecx, 0x15c
push ecx
call fcn.005ea970
add esp, 8
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x154]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x15c
push ecx
call fcn.005ea9b0
add esp, 8
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x154]
cmp eax, 1
jle 0x5e996b
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x148]
cmp eax, dword [edx + 0x14c]
jge 0x5e996b
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
xor eax, eax
jmp 0x5e9c6e
mov edx, dword [ebp + 8]
mov dword [edx + 0x148], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x15c]
add ecx, 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [eax + 0x138], ecx
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x14c]
sub ecx, dword [eax + 0x148]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.005131b7
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5e99c4
mov eax, dword [ebp - 0x10]
jmp 0x5e9c6e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x148]
add ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov dword [edx + 0x148], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x138]
add edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ecx + 0x138], edx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x148]
cmp ecx, dword [eax + 0x14c]
jge 0x5e9a0e
cmp dword [ebp - 0x1c], 0
jne 0x5e9990
mov esi, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x140]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xc0
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x148]
add eax, 4
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x15c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
cmp esi, esp
call fcn.00516fe7
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x5e9a9a
push 0x100
lea edx, [ebp - 0x124]
push edx
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00516fe7
push eax
call fcn.00514f4e
add esp, 0xc
push eax
push 0x79fd8c
mov eax, dword [ebp - 8]
push eax
call fcn.00518f9a
add esp, 0xc
mov eax, 0x37
jmp 0x5e9c6e
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x148]
cdq
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx + 0x18]
adc edx, dword [ecx + 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [edx + 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00518851
add esp, 0xc
jmp 0x5e9c6b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x154]
add eax, 1
and eax, 0xffff
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
mov ecx, dword [ebp - 8]
push ecx
call fcn.00514800
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [eax + 0x20]
jle 0x5e9b32
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0xffffff9d
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x5e9bd4
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
push edx
mov eax, dword [ebp + 8]
add eax, 0xc0
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x148]
add edx, 4
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x15c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp esi, esp
call fcn.00516fe7
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x5e9bbd
push 0x100
lea ecx, [ebp - 0x124]
push ecx
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00516fe7
push eax
call fcn.00514f4e
add esp, 0xc
push eax
push 0x79fdc4
mov edx, dword [ebp - 8]
push edx
call fcn.00518f9a
add esp, 0xc
mov eax, 0x37
jmp 0x5e9c6e
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [eax + 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00518851
add esp, 0xc
jmp 0x5e9c6b
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
push 5
mov edx, dword [ebp + 8]
add edx, 0x15c
push edx
call fcn.005ea970
add esp, 8
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x154]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x15c
push edx
call fcn.005ea9b0
add esp, 8
mov esi, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x140]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xc0
push edx
push 0
push 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x15c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp esi, esp
call fcn.00516fe7
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
jmp 0x5e9c6b
mov edx, dword [ebp + 0xc]
push edx
push str.tftp_tx:_internal_error__event:__i
mov eax, dword [ebp - 8]
push eax
call fcn.00518f9a
add esp, 0xc
mov eax, dword [ebp - 0x10]
push edx
mov ecx, ebp
push eax
lea edx, [0x5e9c9c]
call fcn.005163b2
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005150f7
add esp, 0x130
cmp ebp, esp
call fcn.00516fe7
mov esp, ebp
pop ebp
ret