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

Disassembly:
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x10]
mov esi, dword [eax]
mov eax, dword [esp + 0x10]
xor ebx, ebx
sub eax, 4
je 0x42ecea
dec eax
je 0x42ec90
dec eax
je 0x42ecea
dec eax
je 0x42ec23
push dword [esp + 0x10]
push str.tftp_tx:_internal_error__event:__i
call fcn.00429149
pop ecx
pop ecx
jmp 0x42ee90
movzx eax, word [edi + 0x40]
inc dword [edi + 0x18]
push dword [edi + 0x18]
inc eax
and eax, 0xffff
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
call fcn.004290d9
mov eax, dword [edi + 0x18]
add esp, 0xc
cmp eax, dword [edi + 0x20]
jle 0x42ec5b
mov dword [edi + 8], 0xffffff9d
mov dword [edi], 3
jmp 0x42ee90
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
mov eax, dword [edi + 0x150]
push 0
add eax, 4
push eax
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x42ee7e
jmp 0x42ee52
push 3
pop ebx
mov dword [edi], ebx
mov eax, dword [edi + 0x160]
mov byte [eax], 0
mov eax, dword [edi + 0x160]
mov byte [eax + 1], 5
movzx eax, word [edi + 0x40]
mov edx, dword [edi + 0x160]
mov ecx, eax
shr ecx, 8
mov byte [edx + 2], cl
mov ecx, dword [edi + 0x160]
mov byte [ecx + 3], al
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
push 0
push 4
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [edi], ebx
jmp 0x42ee90
cmp dword [esp + 0x10], 4
jne 0x42edbd
mov ecx, dword [edi + 0x15c]
movzx ax, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl ax, 8
movzx eax, ax
or eax, ecx
movzx ecx, word [edi + 0x40]
movzx edx, cx
cmp eax, edx
je 0x42edad
test cx, cx
jne 0x42ed2c
cmp eax, 0xffff
je 0x42edad
push edx
push eax
push str.Received_ACK_for_block__d__expecting__d_n
call fcn.004290d9
add esp, 0xc
inc dword [edi + 0x18]
mov eax, dword [edi + 0x18]
cmp eax, dword [edi + 0x20]
jle 0x42ed59
movzx eax, word [edi + 0x40]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
call fcn.00429149
pop ecx
pop ecx
jmp 0x42eda3
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
mov eax, dword [edi + 0x150]
push 0
add eax, 4
push eax
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x42eda6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [edi + 0x10]
mov edi, eax
call fcn.0042cb77
push eax
push 0x47e874
call fcn.00429149
add esp, 0xc
push 0x37
pop ebx
mov eax, ebx
jmp 0x42ee92
lea eax, [edi + 0x38]
push eax
call fcn.00455635
inc word [edi + 0x40]
pop ecx
jmp 0x42edc4
xor eax, eax
inc eax
mov word [edi + 0x40], ax
and dword [edi + 0x18], ebx
mov eax, dword [edi + 0x160]
mov byte [eax], bl
mov eax, dword [edi + 0x160]
push 3
pop ebx
mov byte [eax + 1], bl
movzx eax, word [edi + 0x40]
mov edx, dword [edi + 0x160]
mov ecx, eax
shr ecx, 8
mov byte [edx + 2], cl
mov ecx, dword [edi + 0x160]
mov byte [ecx + 3], al
cmp word [edi + 0x40], 1
jbe 0x42ee0f
mov eax, dword [edi + 0x150]
cmp eax, dword [edi + 0x154]
jl 0x42ece3
push dword [edi + 0x154]
mov edx, dword [edi + 0x10]
lea ebx, [edi + 0x150]
mov ecx, ebx
call fcn.0042f61c
pop ecx
test eax, eax
jne 0x42ee92
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
mov eax, dword [ebx]
push 0
add eax, 4
push eax
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x42ee75
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [edi + 0x10]
mov edi, eax
call fcn.0042cb77
push eax
push 0x47e874
call fcn.00429149
add esp, 0xc
push 0x37
pop eax
jmp 0x42ee92
mov eax, dword [ebx]
cdq
add dword [esi + 0x78], eax
adc dword [esi + 0x7c], edx
mov eax, dword [esi + 0x78]
mov dword [esi + 0x4a8], eax
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x4ac], eax
xor eax, eax
pop edi
pop esi
pop ebx
ret