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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x6b8dd8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x108], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x114]
sub eax, 3
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 4
ja case.0x4b167a.1
mov ecx, dword [ebp - 0x114]
jmp dword [ecx*4 + 0x4b1a70]
mov edx, dword [ebp + 8]
add edx, 0x148
push edx
call fcn.004b0d40
add esp, 4
movzx eax, ax
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x144]
add edx, 1
and edx, 0xffff
cmp edx, dword [ebp - 0x110]
jne 0x4b16c3
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0
jmp 0x4b1725
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x144]
cmp edx, dword [ebp - 0x110]
jne 0x4b16f2
mov eax, dword [ebp - 0x110]
push eax
push str.Received_last_DATA_packet_block__d_again.
mov ecx, dword [ebp - 0x108]
push ecx
call fcn.00487990
add esp, 0xc
jmp 0x4b1725
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x144]
add eax, 1
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x110]
push ecx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d
mov edx, dword [ebp - 0x108]
push edx
call fcn.00487990
add esp, 0x10
jmp 0x4b1a5e
mov eax, dword [ebp + 8]
mov cx, word [ebp - 0x110]
mov word [eax + 0x144], cx
push 4
mov edx, dword [ebp + 8]
add edx, 0x14c
push edx
call fcn.004b0de0
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.004b0da0
add esp, 8
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]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jge 0x4b17df
push 0x100
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004a2180
add esp, 0xc
push eax
push 0x62cd70
mov edx, dword [ebp - 0x108]
push edx
call fcn.00487870
add esp, 0xc
mov eax, 0x37
jmp 0x4b1a60
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
add ecx, 4
mov edx, dword [ebp + 8]
cmp dword [edx + 0x134], ecx
jge 0x4b1801
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x4b180a
mov ecx, dword [ebp + 8]
mov dword [ecx], 1
mov edx, dword [ebp + 8]
add edx, 0x28
push edx
call fcn.00600892
add esp, 4
jmp 0x4b1a5e
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.004b0de0
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.004b0da0
add esp, 8
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]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jge 0x4b18da
push 0x100
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004a2180
add esp, 0xc
push eax
push 0x62cd70
mov eax, dword [ebp - 0x108]
push eax
call fcn.00487870
add esp, 0xc
mov eax, 0x37
jmp 0x4b1a60
mov ecx, dword [ebp + 8]
mov dword [ecx], 1
mov edx, dword [ebp + 8]
add edx, 0x28
push edx
call fcn.00600892
add esp, 4
jmp 0x4b1a5e
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 - 0x108]
push ecx
call fcn.00487990
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [eax + 0x20]
jle 0x4b1957
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0xffffff9d
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x4b19ce
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]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jge 0x4b19ce
push 0x100
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004a2180
add esp, 0xc
push eax
push 0x62cd70
mov eax, dword [ebp - 0x108]
push eax
call fcn.00487870
add esp, 0xc
mov eax, 0x37
jmp 0x4b1a60
jmp 0x4b1a5e
push 5
mov ecx, dword [ebp + 8]
add ecx, 0x14c
push ecx
call fcn.004b0de0
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.004b0da0
add esp, 8
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]
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x4b1a5e
push str.tftp_rx:_internal_error
push 0x62cd70
mov ecx, dword [ebp - 0x108]
push ecx
call fcn.00487870
add esp, 0xc
mov eax, 0x47
jmp 0x4b1a60
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret