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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x10]
mov edi, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffd
cmp eax, 4
ja case.0x46230c.4
jmp dword [eax*4 + 0x46254c]
mov ecx, dword [esi + 0x15c]
movzx eax, byte [ecx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 3]
or edx, eax
movzx eax, word [esi + 0x40]
inc eax
and eax, 0xffff
cmp eax, edx
je 0x46234e
push eax
push edx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push edi
call fcn.0044a770
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
ret
mov word [esi + 0x40], dx
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x160]
mov byte [eax], 0
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 4
movzx edx, word [esi + 0x40]
mov eax, dword [esi + 0x160]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x160]
mov byte [eax + 3], dl
lea eax, [esi + 0xc8]
push dword [esi + 0x148]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x4624af
mov eax, dword [esi + 0x154]
xor ecx, ecx
add eax, 4
cmp dword [esi + 0x14c], eax
lea eax, [esi + 0x38]
push eax
setl cl
lea ecx, [ecx*2 + 1]
mov dword [esi], ecx
call fcn.00426357
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
ret
xor eax, eax
mov word [esi + 0x40], ax
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x160]
mov byte [eax], 0
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 4
movzx edx, word [esi + 0x40]
mov eax, dword [esi + 0x160]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x160]
mov byte [eax + 3], dl
lea eax, [esi + 0xc8]
push dword [esi + 0x148]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x4624af
lea eax, [esi + 0x38]
mov dword [esi], 1
push eax
call fcn.00426357
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
ret
movzx eax, word [esi + 0x40]
inc dword [esi + 0x18]
inc eax
push dword [esi + 0x18]
and eax, 0xffff
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push edi
call fcn.0044a770
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x46248b
pop edi
mov dword [esi + 8], 0xffffff9d
xor eax, eax
mov dword [esi], 3
pop esi
pop ebp
ret
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x46252a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.0044ee50
push eax
push 0x48ae90
push edi
call fcn.0044a6a0
add esp, 0x14
mov eax, 0x37
pop edi
pop esi
pop ebp
ret
mov eax, dword [esi + 0x160]
mov byte [eax], 0
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 5
movzx edx, word [esi + 0x40]
mov eax, dword [esi + 0x160]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x160]
mov byte [eax + 3], dl
lea eax, [esi + 0xc8]
push dword [esi + 0x148]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esi], 3
pop edi
xor eax, eax
pop esi
pop ebp
ret
push str.tftp_rx:_internal_error
push 0x48ae90
push edi
call fcn.0044a6a0
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebp
ret