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

Disassembly:
sub esp, 0x84
mov eax, dword [0x5cab48]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
mov esi, dword [esp + 0x90]
push edi
mov eax, dword [esi + 0x10]
mov edi, dword [eax]
mov eax, dword [esp + 0x98]
add eax, 0xfffffffd
cmp eax, 4
ja case.0x52e7f6.4
jmp dword [eax*4 + 0x52eaf0]
mov ecx, dword [esi + 0x15c]
movzx eax, byte [ecx + 2]
shl ax, 8
movzx ebx, ax
movzx eax, byte [ecx + 3]
movzx ecx, word [esi + 0x40]
or ebx, eax
lea eax, [ecx + 1]
and eax, 0xffff
cmp eax, ebx
jne 0x52e82d
mov dword [esi + 0x18], 0
jmp 0x52e844
cmp ecx, ebx
jne 0x52e8e2
push ebx
push str.Received_last_DATA_packet_block__d_again._n
push edi
call fcn.00517d30
add esp, 0xc
mov word [esi + 0x40], bx
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
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
js 0x52ea0e
mov eax, dword [esi + 0x154]
add eax, 4
xor ecx, ecx
cmp dword [esi + 0x14c], eax
lea eax, [esi + 0x38]
setl cl
push eax
lea ecx, [ecx*2 + 1]
mov dword [esi], ecx
call dword [sym.imp.MSVCR110.dll__time64]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0055423a
add esp, 0x84
ret
push eax
push ebx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push edi
call fcn.00517d30
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0055423a
add esp, 0x84
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
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
js 0x52ea0e
lea eax, [esi + 0x38]
push eax
mov dword [esi], 1
call dword [sym.imp.MSVCR110.dll__time64]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0055423a
add esp, 0x84
ret
movzx eax, word [esi + 0x40]
inc dword [esi + 0x18]
push dword [esi + 0x18]
inc eax
and eax, 0xffff
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push edi
call fcn.00517d30
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x52e9e6
pop edi
mov dword [esi + 8], 0xffffff9d
mov dword [esi], 3
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0055423a
add esp, 0x84
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 0x52eaa4
push 0x80
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00504ec0
push eax
push 0x55a8e4
push edi
call fcn.00517c40
add esp, 0x18
mov eax, 0x37
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0055423a
add esp, 0x84
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
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]
mov dword [esi], 3
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0055423a
add esp, 0x84
ret
push str.tftp_rx:_internal_error
push 0x55a8e4
push edi
call fcn.00517c40
mov ecx, dword [esp + 0x98]
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055423a
add esp, 0x84
ret