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

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x10]
mov esi, dword [eax]
lea eax, [ecx - 4]
xor ebx, ebx
cmp eax, 3
ja case.default.0x4244cb
jmp dword [eax*4 + 0x424804]
cmp ecx, 4
jne 0x4245ac
mov ecx, dword [edi + 0x15c]
movzx dx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl dx, 8
movzx eax, dx
movzx edx, word [edi + 0x40]
or eax, ecx
movzx ecx, dx
cmp eax, ecx
je 0x42459a
cmp dx, bx
jne 0x424512
cmp eax, 0xffff
je 0x42459a
push ecx
push eax
push str.Received_ACK_for_block__d__expecting__d_n
mov ecx, esi
call fcn.0040f940
inc dword [edi + 0x18]
mov eax, dword [edi + 0x18]
add esp, 0xc
cmp eax, dword [edi + 0x20]
jle 0x42453a
movzx edx, word [edi + 0x40]
push edx
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
jmp 0x424582
mov eax, dword [edi + 0x148]
mov edx, dword [edi + 0x150]
push eax
mov eax, dword [edi + 0x160]
lea ecx, [edi + 0xc8]
push ecx
mov ecx, dword [edi + 0x14]
push ebx
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x424591
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [edi + 0x10]
push edx
mov edi, eax
call fcn.00431bd0
add esp, 4
push eax
push 0x71f628
mov eax, esi
call fcn.0040f9d0
mov ebx, 0x37
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 8
ret
lea eax, [edi + 0x38]
push eax
call fcn.005674cc
add esp, 4
inc word [edi + 0x40]
jmp 0x4245b5
mov ecx, 1
mov word [edi + 0x40], cx
mov dword [edi + 0x18], ebx
mov edx, dword [edi + 0x160]
mov byte [edx], bl
mov eax, dword [edi + 0x160]
mov byte [eax + 1], 3
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 0x4245fe
mov edx, dword [edi + 0x150]
cmp edx, dword [edi + 0x154]
jl 0x4247db
mov eax, dword [edi + 0x160]
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x150], ebx
mov edx, dword [ecx]
add eax, 4
mov dword [edx + 0x114], eax
jmp 0x424620
mov ecx, dword [edi + 0x154]
mov edx, dword [edi + 0x10]
sub ecx, dword [edi + 0x150]
lea eax, [esp + 0x10]
push eax
push edx
call fcn.004147f0
add esp, 8
cmp eax, ebx
jne 0x4247fc
mov ecx, dword [esp + 0x10]
add dword [edi + 0x150], ecx
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
add dword [eax + 0x114], ecx
mov edx, dword [edi + 0x150]
cmp edx, dword [edi + 0x154]
jge 0x42466c
cmp ecx, ebx
jne 0x424620
mov eax, dword [edi + 0x148]
mov edx, dword [edi + 0x150]
push eax
mov eax, dword [edi + 0x160]
lea ecx, [edi + 0xc8]
push ecx
mov ecx, dword [edi + 0x14]
push ebx
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x4246ca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [edi + 0x10]
push edx
mov edi, eax
call fcn.00431bd0
add esp, 4
push eax
push 0x71f628
mov eax, esi
call fcn.0040f9d0
add esp, 8
mov eax, 0x37
pop edi
pop esi
pop ebx
add esp, 8
ret
mov eax, dword [edi + 0x150]
cdq
add dword [esi + 0x78], eax
mov ecx, dword [esi + 0x78]
adc dword [esi + 0x7c], edx
mov eax, dword [esi + 0x7c]
push eax
push ecx
call fcn.004176d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
movzx edx, word [edi + 0x40]
inc dword [edi + 0x18]
mov eax, dword [edi + 0x18]
inc edx
push eax
and edx, 0xffff
push edx
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
mov ecx, esi
call fcn.0040f940
mov eax, dword [edi + 0x18]
add esp, 0xc
cmp eax, dword [edi + 0x20]
jle 0x424730
mov dword [edi + 8], 0xffffff9d
mov dword [edi], 3
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
mov ecx, dword [edi + 0x148]
mov eax, dword [edi + 0x150]
push ecx
mov ecx, dword [edi + 0x160]
lea edx, [edi + 0xc8]
push edx
mov edx, dword [edi + 0x14]
push ebx
add eax, 4
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x42476d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [edi + 0x10]
push ecx
jmp 0x4246a4
mov edx, dword [esi + 0x7c]
mov eax, dword [esi + 0x78]
push edx
push eax
call fcn.004176d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
mov dword [edi], 3
mov ecx, dword [edi + 0x160]
mov byte [ecx], bl
mov edx, dword [edi + 0x160]
mov byte [edx + 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
mov edx, dword [edi + 0x148]
mov ecx, dword [edi + 0x160]
push edx
mov edx, dword [edi + 0x14]
lea eax, [edi + 0xc8]
push eax
push ebx
push 4
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [edi], 3
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
push ecx
push str.tftp_tx:_internal_error__event:__i
mov eax, esi
call fcn.0040f9d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret