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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
je 0x470e63
cmp dword [ebp - 0x10], 5
je 0x471117
cmp dword [ebp - 0x10], 6
je 0x470fad
cmp dword [ebp - 0x10], 7
je 0x471063
jmp 0x471177
mov eax, dword [ebp + 8]
add eax, 0x15c
push eax
call fcn.004719d7
pop ecx
movzx eax, ax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x40]
inc eax
and eax, 0xffff
cmp eax, dword [ebp - 8]
jne 0x470e93
mov eax, dword [ebp + 8]
and dword [eax + 0x18], 0
jmp 0x470eda
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x40]
cmp eax, dword [ebp - 8]
jne 0x470eb4
push dword [ebp - 8]
push str.Received_last_DATA_packet_block__d_again._n
push dword [ebp - 4]
call fcn.004460bd
add esp, 0xc
jmp 0x470eda
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x40]
inc eax
and eax, 0xffff
push eax
push dword [ebp - 8]
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push dword [ebp - 4]
call fcn.004460bd
add esp, 0x10
jmp 0x471191
mov eax, dword [ebp + 8]
mov cx, word [ebp - 8]
mov word [eax + 0x40], cx
push 4
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.00471a56
pop ecx
pop ecx
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x40]
push eax
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.00471a26
pop ecx
pop ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x148]
mov eax, dword [ebp + 8]
add eax, 0xc8
push eax
push 0
push 4
mov eax, dword [ebp + 8]
push dword [eax + 0x160]
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x470f70
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
call fcn.004680bc
pop ecx
pop ecx
push eax
push 0x4c667c
push dword [ebp - 4]
call fcn.004465bf
add esp, 0xc
push 0x37
pop eax
jmp 0x471193
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x154]
add eax, 4
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14c], eax
jge 0x470f92
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x470f9b
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov eax, dword [ebp + 8]
add eax, 0x38
push eax
call fcn.0041aef4
pop ecx
jmp 0x471191
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx + 0x40], ax
mov eax, dword [ebp + 8]
and dword [eax + 0x18], 0
push 4
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.00471a56
pop ecx
pop ecx
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x40]
push eax
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.00471a26
pop ecx
pop ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x148]
mov eax, dword [ebp + 8]
add eax, 0xc8
push eax
push 0
push 4
mov eax, dword [ebp + 8]
push dword [eax + 0x160]
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x471048
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
call fcn.004680bc
pop ecx
pop ecx
push eax
push 0x4c6680
push dword [ebp - 4]
call fcn.004465bf
add esp, 0xc
push 0x37
pop eax
jmp 0x471193
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov eax, dword [ebp + 8]
add eax, 0x38
push eax
call fcn.0041aef4
pop ecx
jmp 0x471191
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
inc eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 8]
push dword [eax + 0x18]
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x40]
inc eax
and eax, 0xffff
push eax
push 0x4c6684
push dword [ebp - 4]
call fcn.004460bd
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x18]
cmp eax, dword [ecx + 0x20]
jle 0x4710b7
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0xffffff9d
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x471115
mov eax, dword [ebp + 8]
push dword [eax + 0x148]
mov eax, dword [ebp + 8]
add eax, 0xc8
push eax
push 0
push 4
mov eax, dword [ebp + 8]
push dword [eax + 0x160]
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x471115
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
call fcn.004680bc
pop ecx
pop ecx
push eax
push 0x4c66b8
push dword [ebp - 4]
call fcn.004465bf
add esp, 0xc
push 0x37
pop eax
jmp 0x471193
jmp 0x471191
push 5
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.00471a56
pop ecx
pop ecx
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x40]
push eax
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.00471a26
pop ecx
pop ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x148]
mov eax, dword [ebp + 8]
add eax, 0xc8
push eax
push 0
push 4
mov eax, dword [ebp + 8]
push dword [eax + 0x160]
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x471191
push str.tftp_rx:_internal_error
push 0x4c66d4
push dword [ebp - 4]
call fcn.004465bf
add esp, 0xc
push 0x47
pop eax
jmp 0x471193
xor eax, eax
mov esp, ebp
pop ebp
ret