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

Disassembly:
push ecx
mov eax, dword [esi + 0x10]
push ebx
mov ebx, dword [eax]
push edi
lea eax, [ecx - 4]
xor edi, edi
cmp eax, 3
ja case.default.0x43db76
jmp dword [eax*4 + 0x43de50]
cmp ecx, 4
jne 0x43dc55
mov ecx, dword [esi + 0x15c]
movzx dx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl dx, 8
movzx eax, dx
movzx edx, word [esi + 0x40]
or eax, ecx
movzx ecx, dx
cmp eax, ecx
je 0x43dc43
test dx, dx
jne 0x43dbbd
cmp eax, 0xffff
je 0x43dc43
push ecx
push eax
push str.Received_ACK_for_block__d__expecting__d_n
mov ecx, ebx
call fcn.00433c20
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
add esp, 0xc
cmp eax, dword [esi + 0x20]
jle 0x43dbe5
movzx edx, word [esi + 0x40]
push edx
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
jmp 0x43dc2e
mov eax, dword [esi + 0x148]
mov edx, dword [esi + 0x150]
push eax
mov eax, dword [esi + 0x160]
lea ecx, [esi + 0xc8]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x43dc3d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esi + 0x10]
push edx
mov edi, eax
call fcn.00452ce0
add esp, 4
push eax
push 0x4badd0
mov eax, ebx
call fcn.00433ce0
mov edi, 0x37
add esp, 8
mov eax, edi
pop edi
pop ebx
pop ecx
ret
lea eax, [esi + 0x38]
push eax
call fcn.00489850
add esp, 4
inc word [esi + 0x40]
jmp 0x43dc5e
mov ecx, 1
mov word [esi + 0x40], cx
mov dword [esi + 0x18], edi
mov edx, dword [esi + 0x160]
mov byte [edx], 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 ecx, 8
mov byte [edx + 2], cl
mov ecx, dword [esi + 0x160]
mov byte [ecx + 3], al
cmp word [esi + 0x40], 1
jbe 0x43dca8
mov edx, dword [esi + 0x150]
cmp edx, dword [esi + 0x154]
jl 0x43de2b
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x154]
lea edi, [esi + 0x150]
push edi
push eax
call fcn.00448650
add esp, 8
test eax, eax
jne 0x43de49
mov ecx, dword [esi + 0x148]
push ecx
mov ecx, dword [esi + 0x160]
lea edx, [esi + 0xc8]
push edx
mov edx, dword [esi + 0x14]
push eax
mov eax, dword [edi]
add eax, 4
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x43dd20
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 0x10]
push ecx
mov edi, eax
call fcn.00452ce0
add esp, 4
push eax
push 0x4badd0
mov eax, ebx
call fcn.00433ce0
add esp, 8
mov eax, 0x37
pop edi
pop ebx
pop ecx
ret
mov eax, dword [edi]
cdq
add dword [ebx + 0x40], eax
adc dword [ebx + 0x44], edx
mov edx, dword [ebx + 0x40]
mov dword [ebx + 0x460], edx
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x464], eax
xor eax, eax
pop edi
pop ebx
pop ecx
ret
movzx ecx, word [esi + 0x40]
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
inc ecx
push eax
and ecx, 0xffff
push ecx
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
mov ecx, ebx
call fcn.00433c20
mov edx, dword [esi + 0x18]
add esp, 0xc
cmp edx, dword [esi + 0x20]
jle 0x43dd7e
mov dword [esi + 8], 0xffffff9d
mov dword [esi], 3
xor eax, eax
pop edi
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x148]
mov edx, dword [esi + 0x150]
push eax
mov eax, dword [esi + 0x160]
lea ecx, [esi + 0xc8]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x43ddbc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esi + 0x10]
push edx
jmp 0x43dcfd
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x460], eax
mov ecx, dword [ebx + 0x44]
mov dword [ebx + 0x464], ecx
xor eax, eax
pop edi
pop ebx
pop ecx
ret
mov dword [esi], 3
mov edx, dword [esi + 0x160]
mov byte [edx], 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 ecx, 8
mov byte [edx + 2], cl
mov ecx, dword [esi + 0x160]
mov byte [ecx + 3], al
mov edx, dword [esi + 0x148]
mov ecx, dword [esi + 0x160]
push edx
mov edx, dword [esi + 0x14]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esi], 3
xor eax, eax
pop edi
pop ebx
pop ecx
ret
push ecx
push str.tftp_tx:_internal_error__event:__i
mov eax, ebx
call fcn.00433ce0
add esp, 8
xor eax, eax
pop edi
pop ebx
pop ecx
ret