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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push esi
push edi
lea edi, [ebp - 0x11c]
mov ecx, 0x47
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 - 0x10], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
sub eax, 3
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 4
ja case.0x47245b.1
mov ecx, dword [ebp - 0x11c]
jmp dword [ecx*4 + 0x472894]
mov edx, dword [ebp + 8]
add edx, 0x148
push edx
call fcn.00473b00
add esp, 4
movzx eax, ax
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x144]
add edx, 1
and edx, 0xffff
cmp edx, dword [ebp - 0xc]
jne 0x47249e
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0
jmp 0x4724f1
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x144]
cmp edx, dword [ebp - 0xc]
jne 0x4724c4
mov eax, dword [ebp - 0xc]
push eax
push str.Received_last_DATA_packet_block__d_again.
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0042e8d0
add esp, 0xc
jmp 0x4724f1
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x144]
add eax, 1
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d
mov edx, dword [ebp - 0x10]
push edx
call fcn.0042e8d0
add esp, 0x10
jmp 0x472848
mov eax, dword [ebp + 8]
mov cx, word [ebp - 0xc]
mov word [eax + 0x144], cx
push 4
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 dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x4725b1
push 0x100
lea ecx, [ebp - 0x114]
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 0x4b506c
mov edx, dword [ebp - 0x10]
push edx
call fcn.0042e770
add esp, 0xc
mov eax, 0x37
jmp 0x47284a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
add ecx, 4
mov edx, dword [ebp + 8]
cmp dword [edx + 0x134], ecx
jge 0x4725d3
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x4725dc
mov ecx, dword [ebp + 8]
mov dword [ecx], 1
mov edx, dword [ebp + 8]
add edx, 0x28
push edx
call fcn.004723d0
add esp, 4
jmp 0x472848
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx + 0x144], ax
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0
push 4
mov eax, dword [ebp + 8]
add eax, 0x14c
push eax
call fcn.00473a50
add esp, 8
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x144]
push edx
mov eax, dword [ebp + 8]
add eax, 0x14c
push eax
call fcn.00473a90
add esp, 8
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
push 4
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 - 8], eax
cmp dword [ebp - 8], 0
jge 0x4726b5
push 0x100
lea edx, [ebp - 0x114]
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 0x4b5070
mov eax, dword [ebp - 0x10]
push eax
call fcn.0042e770
add esp, 0xc
mov eax, 0x37
jmp 0x47284a
mov ecx, dword [ebp + 8]
mov dword [ecx], 1
mov edx, dword [ebp + 8]
add edx, 0x28
push edx
call fcn.004723d0
add esp, 4
jmp 0x472848
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 0x4b5074
mov ecx, dword [ebp - 0x10]
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 0x472732
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0xffffff9d
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x4727b2
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
push 4
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 - 8], eax
cmp dword [ebp - 8], 0
jge 0x4727b2
push 0x100
lea edx, [ebp - 0x114]
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 0x4b50a4
mov eax, dword [ebp - 0x10]
push eax
call fcn.0042e770
add esp, 0xc
mov eax, 0x37
jmp 0x47284a
jmp 0x472848
push 5
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 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
push 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp esi, esp
call fcn.004a09b1
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x472848
push str.tftp_rx:_internal_error
push 0x4b50c0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0042e770
add esp, 0xc
mov eax, 0x47
jmp 0x47284a
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x472878]
call fcn.004a095d
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a039d
add esp, 0x11c
cmp ebp, esp
call fcn.004a09b1
mov esp, ebp
pop ebp
ret