Function at 0x472d89
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 [0x4b965c]
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.0x47291e
mov edx, dword [ebp - 0x130]
jmp dword [edx*4 + 0x472e78]
cmp dword [ebp + 0xc], 4
jne 0x472a9e
mov eax, dword [ebp + 8]
add eax, 0x148
push eax
call fcn.00473b00
add esp, 4
movzx ecx, ax
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x144]
cmp dword [ebp - 0x12c], eax
je 0x472a75
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x144]
test edx, edx
jne 0x47297d
cmp dword [ebp - 0x12c], 0xffff
je 0x472a75
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x144]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
push str.Received_ACK_for_block__d__expecting__d
mov eax, dword [ebp - 8]
push eax
call fcn.0042e8d0
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 0x4729e5
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x144]
push edx
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
mov eax, dword [ebp - 8]
push eax
call fcn.0042e770
add esp, 0xc
mov dword [ebp - 0x10], 0x37
jmp 0x472a6d
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x130]
push edx
mov eax, dword [ebp + 8]
add eax, 0xb0
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x138]
add edx, 4
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14c]
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.004a09b1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x472a6d
push 0x100
lea ecx, [ebp - 0x124]
push ecx
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004a09b1
push eax
call fcn.00409790
add esp, 0xc
push eax
push 0x4b5118
mov edx, dword [ebp - 8]
push edx
call fcn.0042e770
add esp, 0xc
mov dword [ebp - 0x10], 0x37
mov eax, dword [ebp - 0x10]
jmp 0x472e1e
mov eax, dword [ebp + 8]
add eax, 0x28
push eax
call fcn.004723d0
add esp, 4
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x144]
add dx, 1
mov eax, dword [ebp + 8]
mov word [eax + 0x144], dx
jmp 0x472aad
mov ecx, 1
mov edx, dword [ebp + 8]
mov word [edx + 0x144], cx
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0
push 3
mov ecx, dword [ebp + 8]
add ecx, 0x14c
push ecx
call fcn.00473a50
add esp, 8
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x144]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x14c
push ecx
call fcn.00473a90
add esp, 8
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x144]
cmp eax, 1
jle 0x472b1b
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x138]
cmp eax, dword [edx + 0x13c]
jge 0x472b1b
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
xor eax, eax
jmp 0x472e1e
mov edx, dword [ebp + 8]
mov dword [edx + 0x138], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14c]
add ecx, 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [eax + 0x118], ecx
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x13c]
sub ecx, dword [eax + 0x138]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0043b090
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x472b74
mov eax, dword [ebp - 0x10]
jmp 0x472e1e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x138]
add ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov dword [edx + 0x138], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x118]
add edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ecx + 0x118], edx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x138]
cmp ecx, dword [eax + 0x13c]
jge 0x472bbe
cmp dword [ebp - 0x1c], 0
jne 0x472b40
mov esi, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x130]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xb0
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
add eax, 4
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14c]
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.004a09b1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x472c4a
push 0x100
lea edx, [ebp - 0x124]
push edx
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004a09b1
push eax
call fcn.00409790
add esp, 0xc
push eax
push 0x4b511c
mov eax, dword [ebp - 8]
push eax
call fcn.0042e770
add esp, 0xc
mov eax, 0x37
jmp 0x472e1e
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x138]
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.0044ba60
add esp, 0xc
jmp 0x472e1b
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 + 0x144]
add eax, 1
and eax, 0xffff
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d
mov ecx, dword [ebp - 8]
push ecx
call fcn.0042e8d0
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [eax + 0x20]
jle 0x472ce2
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0xffffff9d
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x472d84
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x130]
push edx
mov eax, dword [ebp + 8]
add eax, 0xb0
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x138]
add edx, 4
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14c]
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.004a09b1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x472d6d
push 0x100
lea ecx, [ebp - 0x124]
push ecx
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004a09b1
push eax
call fcn.00409790
add esp, 0xc
push eax
push 0x4b5150
mov edx, dword [ebp - 8]
push edx
call fcn.0042e770
add esp, 0xc
mov eax, 0x37
jmp 0x472e1e
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.0044ba60
add esp, 0xc
jmp 0x472e1b
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
push 5
mov edx, dword [ebp + 8]
add edx, 0x14c
push edx
call fcn.00473a50
add esp, 8
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x144]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x14c
push edx
call fcn.00473a90
add esp, 8
mov esi, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x130]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xb0
push edx
push 0
push 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14c]
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.004a09b1
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
jmp 0x472e1b
mov edx, dword [ebp + 0xc]
push edx
push str.tftp_tx:_internal_error__event:__i
mov eax, dword [ebp - 8]
push eax
call fcn.0042e770
add esp, 0xc
mov eax, dword [ebp - 0x10]
push edx
mov ecx, ebp
push eax
lea edx, [0x472e4c]
call fcn.004a095d
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a039d
add esp, 0x130
cmp ebp, esp
call fcn.004a09b1
mov esp, ebp
pop ebp
ret