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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x2c
mov eax, dword [eax + 0x10]
cmp edx, 5
mov ebx, dword [eax]
je 0x6b26c6d0
jle 0x6b26c6a0
cmp edx, 6
je 0x6b26c753
cmp edx, 7
jne 0x6b26c6a9
mov eax, dword [esi + 0x18]
add eax, 1
mov dword [esi + 0x18], eax
mov dword [esp + 0xc], eax
movzx eax, word [esi + 0x40]
mov dword [esp + 4], str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
mov dword [esp], ebx
add eax, 1
movzx eax, ax
mov dword [esp + 8], eax
call fcn.6b24c140
mov eax, dword [esi + 0x20]
cmp dword [esi + 0x18], eax
jle 0x6b26c8d1
mov dword [esi + 8], 0xffffff9d
xor edx, edx
mov dword [esi], 3
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp edx, 4
je 0x6b26c850
mov dword [esp + 8], edx
mov dword [esp + 4], str.tftp_tx:_internal_error__event:__i
mov dword [esp], ebx
call fcn.6b24c1c0
xor edx, edx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x160]
mov dword [esi], 3
mov byte [eax], 0
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 5
movzx eax, word [esi + 0x40]
mov edx, dword [esi + 0x160]
mov ecx, eax
shr cx, 8
mov byte [edx + 2], cl
mov edx, dword [esi + 0x160]
mov byte [edx + 3], al
mov eax, dword [esi + 0x148]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 0x14], eax
lea eax, [esi + 0xc8]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x160]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call sub.ws2_32.dll_sendto
sub esp, 0x18
mov dword [esi], 3
xor edx, edx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, 1
mov word [esi + 0x40], di
mov eax, dword [esi + 0x160]
mov dword [esi + 0x18], 0
mov byte [eax], 0
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 3
movzx eax, word [esi + 0x40]
mov edx, dword [esi + 0x160]
mov ecx, eax
shr cx, 8
mov byte [edx + 2], cl
mov edx, dword [esi + 0x160]
mov byte [edx + 3], al
mov eax, dword [esi + 0x154]
cmp word [esi + 0x40], 1
jbe 0x6b26c7a7
cmp dword [esi + 0x150], eax
jl 0x6b26c741
lea edx, [esi + 0x150]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call fcn.6b25d150
test eax, eax
mov edx, eax
jne 0x6b26c6bf
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x148]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [esi + 0xc8]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x150]
add eax, 4
mov dword [esp + 8], eax
mov eax, dword [esi + 0x160]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call sub.ws2_32.dll_sendto
mov edx, dword [ebp - 0x1c]
sub esp, 0x18
test eax, eax
js 0x6b26c980
mov esi, dword [esi + 0x150]
mov dword [ebp - 0x1c], edx
mov edi, esi
sar edi, 0x1f
add esi, dword [ebx + 0x78]
adc edi, dword [ebx + 0x7c]
mov dword [ebx + 0x78], esi
mov dword [ebx + 0x7c], edi
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp], ebx
call fcn.6b243230
mov edx, dword [ebp - 0x1c]
jmp 0x6b26c6bf
mov eax, dword [esi + 0x15c]
movzx edx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl edx, 8
or eax, edx
movzx edx, word [esi + 0x40]
movzx eax, ax
movzx ecx, dx
cmp ecx, eax
je 0x6b26c9b2
test dx, dx
jne 0x6b26c885
cmp eax, 0xffff
je 0x6b26c9b2
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 4], str.Received_ACK_for_block__d__expecting__d_n
mov dword [esp], ebx
call fcn.6b24c140
mov eax, dword [esi + 0x18]
add eax, 1
cmp eax, dword [esi + 0x20]
mov dword [esi + 0x18], eax
jle 0x6b26c933
movzx eax, word [esi + 0x40]
mov dword [esp + 4], str.tftp_tx:_giving_up_waiting_for_block__d_ack
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.6b24c1c0
mov edx, 0x37
jmp 0x6b26c6bf
mov eax, dword [esi + 0x148]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [esi + 0xc8]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x150]
add eax, 4
mov dword [esp + 8], eax
mov eax, dword [esi + 0x160]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call sub.ws2_32.dll_sendto
sub esp, 0x18
test eax, eax
js 0x6b26c980
mov edx, dword [ebx + 0x7c]
mov eax, dword [ebx + 0x78]
mov dword [esp], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call fcn.6b243230
xor edx, edx
jmp 0x6b26c6bf
mov eax, dword [esi + 0x148]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [esi + 0xc8]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x150]
add eax, 4
mov dword [esp + 8], eax
mov eax, dword [esi + 0x160]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call sub.ws2_32.dll_sendto
xor edx, edx
sub esp, 0x18
test eax, eax
jns 0x6b26c6bf
nop
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call fcn.6b268f00
mov dword [esp + 4], 0x6b28e0ea
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.6b24c1c0
mov edx, 0x37
jmp 0x6b26c6bf
lea eax, [esi + 0x38]
mov dword [esp], eax
call sub.msvcrt.dll__time64
add word [esi + 0x40], 1
jmp 0x6b26c75c