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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push esi
push edi
lea edi, [ebp - 0xb0]
mov ecx, 0x2c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4c83a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
add eax, 0x90
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0xb0]
sub edx, 4
mov dword [ebp - 0xb0], edx
cmp dword [ebp - 0xb0], 3
ja case.default.0x4676ef
mov eax, dword [ebp - 0xb0]
jmp dword [eax*4 + 0x467c38]
cmp dword [ebp + 0xc], 4
jne 0x46785f
mov ecx, dword [ebp + 8]
add ecx, 0x15c
push ecx
call fcn.004689c0
add esp, 4
movzx edx, ax
mov dword [ebp - 0xac], edx
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x40]
cmp dword [ebp - 0xac], ecx
je 0x46783c
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x40]
test eax, eax
jne 0x467749
cmp dword [ebp - 0xac], 0xffff
je 0x46783c
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x40]
push edx
mov eax, dword [ebp - 0xac]
push eax
push str.Received_ACK_for_block__d__expecting__d_n
mov ecx, dword [ebp - 8]
push ecx
call fcn.0042aa70
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 0x4677ab
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 - 8]
push ecx
call fcn.0042abc0
add esp, 0xc
mov dword [ebp - 0x10], 0x37
jmp 0x467834
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.00485c0f
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x467834
push 0x80
lea edx, [ebp - 0xa4]
push edx
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00485c0f
push eax
call fcn.00471b20
add esp, 0xc
push eax
push 0x4c3aac
mov eax, dword [ebp - 8]
push eax
call fcn.0042abc0
add esp, 0xc
mov dword [ebp - 0x10], 0x37
mov eax, dword [ebp - 0x10]
jmp 0x467bdd
mov ecx, dword [ebp + 8]
add ecx, 0x38
push ecx
call fcn.004671d0
add esp, 4
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x40]
add ax, 1
mov ecx, dword [ebp + 8]
mov word [ecx + 0x40], ax
jmp 0x46786b
mov edx, 1
mov eax, dword [ebp + 8]
mov word [eax + 0x40], dx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0
push 3
mov edx, dword [ebp + 8]
add edx, 0x160
push edx
call fcn.00468910
add esp, 8
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x40]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x160
push edx
call fcn.00468950
add esp, 8
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x40]
cmp ecx, 1
jle 0x4678d3
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x150]
cmp ecx, dword [eax + 0x154]
jge 0x4678d3
mov edx, dword [ebp + 8]
mov dword [edx], 3
xor eax, eax
jmp 0x467bdd
mov eax, dword [ebp + 8]
mov dword [eax + 0x150], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x160]
add edx, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov dword [eax + 0x150], edx
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x154]
sub ecx, dword [eax + 0x150]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.00432eb0
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x467931
mov eax, dword [ebp - 0x10]
jmp 0x467bdd
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x150]
add edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov dword [eax + 0x150], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 0x150]
add ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov edx, dword [eax]
mov dword [edx + 0x150], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x150]
cmp edx, dword [ecx + 0x154]
jge 0x467983
cmp dword [ebp - 0x1c], 0
jne 0x4678fa
mov esi, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x148]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xc8
push edx
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x150]
add ecx, 4
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x160]
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.00485c0f
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x467a0f
push 0x80
lea eax, [ebp - 0xa4]
push eax
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00485c0f
push eax
call fcn.00471b20
add esp, 0xc
push eax
push 0x4c3ab0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0042abc0
add esp, 0xc
mov eax, 0x37
jmp 0x467bdd
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x150]
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.0043f5e0
add esp, 0xc
jmp 0x467bda
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 - 8]
push ecx
call fcn.0042aa70
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [eax + 0x20]
jle 0x467aa4
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0xffffff9d
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x467b46
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.00485c0f
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x467b2f
push 0x80
lea ecx, [ebp - 0xa4]
push ecx
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00485c0f
push eax
call fcn.00471b20
add esp, 0xc
push eax
push 0x4c3ae8
mov edx, dword [ebp - 8]
push edx
call fcn.0042abc0
add esp, 0xc
mov eax, 0x37
jmp 0x467bdd
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.0043f5e0
add esp, 0xc
jmp 0x467bda
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
push 5
mov edx, dword [ebp + 8]
add edx, 0x160
push edx
call fcn.00468910
add esp, 8
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x40]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x160
push edx
call fcn.00468950
add esp, 8
mov esi, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x148]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xc8
push edx
push 0
push 4
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.00485c0f
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
jmp 0x467bda
mov edx, dword [ebp + 0xc]
push edx
push str.tftp_tx:_internal_error__event:__i
mov eax, dword [ebp - 8]
push eax
call fcn.0042abc0
add esp, 0xc
mov eax, dword [ebp - 0x10]
push edx
mov ecx, ebp
push eax
lea edx, [0x467c0c]
call fcn.00485bbb
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004854a8
add esp, 0xb0
cmp ebp, esp
call fcn.00485c0f
mov esp, ebp
pop ebp
ret