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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x2c
mov eax, dword [eax + 0x10]
cmp edx, 5
mov esi, dword [eax]
je 0x6b26c1c6
jle 0x6b26c150
cmp edx, 6
je 0x6b26c0b0
cmp edx, 7
jne 0x6b26c1a1
mov eax, dword [ebx + 0x18]
add eax, 1
mov dword [ebx + 0x18], eax
mov dword [esp + 0xc], eax
movzx eax, word [ebx + 0x40]
mov dword [esp + 4], str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
mov dword [esp], esi
add eax, 1
movzx eax, ax
mov dword [esp + 8], eax
call fcn.6b24c140
mov eax, dword [ebx + 0x20]
cmp dword [ebx + 0x18], eax
jle 0x6b26c241
mov dword [ebx + 8], 0xffffff9d
xor eax, eax
mov dword [ebx], 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x160]
xor ecx, ecx
mov word [ebx + 0x40], cx
mov dword [ebx + 0x18], 0
mov byte [eax], 0
mov eax, dword [ebx + 0x160]
mov byte [eax + 1], 4
movzx eax, word [ebx + 0x40]
mov edx, dword [ebx + 0x160]
mov ecx, eax
shr cx, 8
mov byte [edx + 2], cl
mov edx, dword [ebx + 0x160]
mov byte [edx + 3], al
mov eax, dword [ebx + 0x148]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 0x14], eax
lea eax, [ebx + 0xc8]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x160]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call sub.ws2_32.dll_sendto
sub esp, 0x18
test eax, eax
js 0x6b26c290
mov dword [ebx], 1
add ebx, 0x38
mov dword [esp], ebx
call sub.msvcrt.dll__time64
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
cmp edx, 3
jne 0x6b26c1a1
mov edx, dword [ebx + 0x15c]
movzx eax, byte [edx + 2]
movzx edi, byte [edx + 3]
movzx edx, word [ebx + 0x40]
shl eax, 8
or edi, eax
lea ecx, [edx + 1]
movzx eax, di
movzx ecx, cx
cmp ecx, eax
je 0x6b26c2c5
cmp eax, edx
je 0x6b26c371
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 4], str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
mov dword [esp], esi
call fcn.6b24c140
xor eax, eax
jmp 0x6b26c1be
mov dword [esp + 8], str.tftp_rx:_internal_error
mov dword [esp + 4], 0x6b28e0ea
mov dword [esp], esi
call fcn.6b24c1c0
mov eax, 0x47
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x160]
mov byte [eax], 0
mov eax, dword [ebx + 0x160]
mov byte [eax + 1], 5
movzx eax, word [ebx + 0x40]
mov edx, dword [ebx + 0x160]
mov ecx, eax
shr cx, 8
mov byte [edx + 2], cl
mov edx, dword [ebx + 0x160]
mov byte [edx + 3], al
mov eax, dword [ebx + 0x148]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 0x14], eax
lea eax, [ebx + 0xc8]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x160]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call sub.ws2_32.dll_sendto
xor eax, eax
mov dword [ebx], 3
sub esp, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x148]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 0x14], eax
lea eax, [ebx + 0xc8]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x160]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call sub.ws2_32.dll_sendto
mov edx, eax
sub esp, 0x18
xor eax, eax
test edx, edx
jns 0x6b26c1be
lea esi, [esi]
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.6b268f00
mov dword [esp], esi
mov dword [esp + 4], 0x6b28e0ea
mov dword [esp + 8], eax
call fcn.6b24c1c0
lea esp, [ebp - 0xc]
mov eax, 0x37
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx + 0x18], 0
mov eax, dword [ebx + 0x160]
mov word [ebx + 0x40], di
mov byte [eax], 0
mov eax, dword [ebx + 0x160]
mov byte [eax + 1], 4
movzx eax, word [ebx + 0x40]
mov edx, dword [ebx + 0x160]
mov ecx, eax
shr cx, 8
mov byte [edx + 2], cl
mov edx, dword [ebx + 0x160]
mov byte [edx + 3], al
mov eax, dword [ebx + 0x148]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 0x14], eax
lea eax, [ebx + 0xc8]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x160]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call sub.ws2_32.dll_sendto
sub esp, 0x18
test eax, eax
js 0x6b26c290
mov eax, dword [ebx + 0x154]
add eax, 3
cmp eax, dword [ebx + 0x14c]
setge al
add ebx, 0x38
movzx eax, al
lea eax, [eax + eax + 1]
mov dword [ebx - 0x38], eax
mov dword [esp], ebx
call sub.msvcrt.dll__time64
xor eax, eax
jmp 0x6b26c1be
mov dword [esp + 8], eax
mov dword [esp + 4], str.Received_last_DATA_packet_block__d_again._n
mov dword [esp], esi
call fcn.6b24c140
jmp 0x6b26c2cc