Function at 0x42e98f
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]
push 3
pop ebx
sub eax, ebx
je 0x42eaec
dec eax
dec eax
je 0x42ea97
dec eax
je 0x42ea2d
dec eax
je 0x42e9ce
push str.tftp_rx:_internal_error
push 0x47e874
call fcn.00429149
pop ecx
pop ecx
push 0x47
jmp 0x42eba6
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 0x42ea00
mov dword [edi + 8], 0xffffff9d
jmp 0x42eae5
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]
test eax, eax
jge 0x42ebde
jmp 0x42eb86
xor eax, eax
and dword [edi + 0x18], eax
mov word [edi + 0x40], ax
mov eax, dword [edi + 0x160]
mov byte [eax], 0
mov eax, dword [edi + 0x160]
mov byte [eax + 1], 4
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]
test eax, eax
jl 0x42eb86
mov dword [edi], 1
jmp 0x42ebc3
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 0x42ebde
mov eax, dword [edi + 0x15c]
movzx cx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl cx, 8
movzx ebx, cx
or ebx, eax
movzx eax, word [edi + 0x40]
lea ecx, [eax + 1]
and ecx, 0xffff
cmp ecx, ebx
jne 0x42eb1b
and dword [edi + 0x18], 0
jmp 0x42eb30
cmp eax, ebx
jne 0x42ebcf
push ebx
push str.Received_last_DATA_packet_block__d_again._n
call fcn.004290d9
pop ecx
pop ecx
mov word [edi + 0x40], bx
mov eax, dword [edi + 0x160]
mov byte [eax], 0
mov eax, dword [edi + 0x160]
mov byte [eax + 1], 4
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]
test eax, eax
jge 0x42eba9
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 0x42ebe0
mov eax, dword [edi + 0x154]
xor ecx, ecx
add eax, 4
cmp dword [edi + 0x14c], eax
setl cl
lea ecx, [ecx + ecx + 1]
mov dword [edi], ecx
add edi, 0x38
push edi
call fcn.00455635
pop ecx
jmp 0x42ebde
push ecx
push ebx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
call fcn.004290d9
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret