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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
add eax, 0x70
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
sub edx, 4
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 3
ja case.default.0x471b4e
mov eax, dword [ebp - 0x24]
jmp dword [eax*4 + 0x472054]
cmp dword [ebp + 0xc], 4
jne 0x471cad
mov ecx, dword [ebp + 8]
add ecx, 0x15c
push ecx
call fcn.00472d00
add esp, 4
movzx edx, ax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x40]
cmp dword [ebp - 0xc], ecx
je 0x471c8a
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x40]
test eax, eax
jne 0x471b9f
cmp dword [ebp - 0xc], 0xffff
je 0x471c8a
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x40]
push edx
mov eax, dword [ebp - 0xc]
push eax
push str.Received_ACK_for_block__d__expecting__d_n
mov ecx, dword [ebp - 4]
push ecx
call fcn.0043e010
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [eax + 0x20]
jle 0x471bfe
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x40]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
mov ecx, dword [ebp - 4]
push ecx
call fcn.0043e100
add esp, 0xc
mov dword [ebp - 0x10], 0x37
jmp 0x471c82
mov esi, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x148]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xc8
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x150]
add eax, 4
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x160]
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.004a9923
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x471c82
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004a9923
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.0041d3e0
add esp, 8
push eax
push 0x4cc66c
mov ecx, dword [ebp - 4]
push ecx
call fcn.0043e100
add esp, 0xc
mov dword [ebp - 0x10], 0x37
mov eax, dword [ebp - 0x10]
jmp 0x47201b
mov edx, dword [ebp + 8]
add edx, 0x38
push edx
call fcn.00471690
add esp, 4
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x40]
add cx, 1
mov edx, dword [ebp + 8]
mov word [edx + 0x40], cx
jmp 0x471cb9
mov eax, 1
mov ecx, dword [ebp + 8]
mov word [ecx + 0x40], ax
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0
push 3
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.00472c50
add esp, 8
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x40]
push edx
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.00472c90
add esp, 8
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x40]
cmp edx, 1
jle 0x471d1f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x150]
cmp edx, dword [ecx + 0x154]
jge 0x471d1f
mov eax, dword [ebp + 8]
mov dword [eax], 3
xor eax, eax
jmp 0x47201b
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x150], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x160]
add eax, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov ecx, dword [edx]
mov dword [ecx + 0x148], eax
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x154]
sub edx, dword [ecx + 0x150]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00448300
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x471d7d
mov eax, dword [ebp - 0x10]
jmp 0x47201b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x150]
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x150], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x148]
add edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov dword [eax + 0x148], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x150]
cmp eax, dword [edx + 0x154]
jge 0x471dcf
cmp dword [ebp - 0x1c], 0
jne 0x471d46
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x148]
push edx
mov eax, dword [ebp + 8]
add eax, 0xc8
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x150]
add edx, 4
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x160]
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.004a9923
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x471e55
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004a9923
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
call fcn.0041d3e0
add esp, 8
push eax
push 0x4cc670
mov eax, dword [ebp - 4]
push eax
call fcn.0043e100
add esp, 0xc
mov eax, 0x37
jmp 0x47201b
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x150]
cdq
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx + 0x28]
adc edx, dword [ecx + 0x2c]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], edx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [edx + 0x28]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004540d0
add esp, 0xc
jmp 0x472018
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 + 0x40]
add eax, 1
and eax, 0xffff
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
mov ecx, dword [ebp - 4]
push ecx
call fcn.0043e010
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [eax + 0x20]
jle 0x471eea
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0xffffff9d
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x471f87
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x148]
push edx
mov eax, dword [ebp + 8]
add eax, 0xc8
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x150]
add edx, 4
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x160]
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.004a9923
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x471f70
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004a9923
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
call fcn.0041d3e0
add esp, 8
push eax
push 0x4cc6a8
mov eax, dword [ebp - 4]
push eax
call fcn.0043e100
add esp, 0xc
mov eax, 0x37
jmp 0x47201b
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ecx + 0x28]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004540d0
add esp, 0xc
jmp 0x472018
mov edx, dword [ebp + 8]
mov dword [edx], 3
push 5
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.00472c50
add esp, 8
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x40]
push edx
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.00472c90
add esp, 8
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x148]
push edx
mov eax, dword [ebp + 8]
add eax, 0xc8
push eax
push 0
push 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x160]
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.004a9923
mov edx, dword [ebp + 8]
mov dword [edx], 3
jmp 0x472018
mov eax, dword [ebp + 0xc]
push eax
push str.tftp_tx:_internal_error__event:__i
mov ecx, dword [ebp - 4]
push ecx
call fcn.0043e100
add esp, 0xc
mov eax, dword [ebp - 0x10]
push edx
mov ecx, ebp
push eax
lea edx, [0x47203c]
call fcn.004a98cf
pop eax
pop edx
pop esi
add esp, 0x24
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret