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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
add eax, 0x50
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
sub edx, 4
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 3
ja case.default.0x52ca0e
mov eax, dword [ebp - 0x24]
jmp dword [eax*4 + 0x52cf14]
cmp dword [ebp + 0xc], 4
jne 0x52cb6d
mov ecx, dword [ebp + 8]
add ecx, 0x15c
push ecx
call fcn.0052db70
add esp, 4
movzx edx, ax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x40]
cmp dword [ebp - 0xc], ecx
je 0x52cb4a
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x40]
test eax, eax
jne 0x52ca5f
cmp dword [ebp - 0xc], 0xffff
je 0x52cb4a
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x40]
push edx
mov eax, dword [ebp - 0xc]
push eax
push str.Received_ACK_for_block__d__expecting__d_n
mov ecx, dword [ebp - 4]
push ecx
call fcn.00470e79
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [eax + 0x20]
jle 0x52cabe
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x40]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
mov ecx, dword [ebp - 4]
push ecx
call fcn.00472a1c
add esp, 0xc
mov dword [ebp - 0x10], 0x37
jmp 0x52cb42
mov esi, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x148]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xc8
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x150]
add eax, 4
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x160]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
cmp esi, esp
call fcn.00471e55
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x52cb42
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00471e55
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.00471194
add esp, 8
push eax
push 0x5715e0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00472a1c
add esp, 0xc
mov dword [ebp - 0x10], 0x37
mov eax, dword [ebp - 0x10]
jmp 0x52cedb
mov edx, dword [ebp + 8]
add edx, 0x38
push edx
call fcn.0052c560
add esp, 4
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x40]
add cx, 1
mov edx, dword [ebp + 8]
mov word [edx + 0x40], cx
jmp 0x52cb79
mov eax, 1
mov ecx, dword [ebp + 8]
mov word [ecx + 0x40], ax
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0
push 3
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.0052dac0
add esp, 8
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x40]
push edx
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.0052db00
add esp, 8
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x40]
cmp edx, 1
jle 0x52cbdf
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x150]
cmp edx, dword [ecx + 0x154]
jge 0x52cbdf
mov eax, dword [ebp + 8]
mov dword [eax], 3
xor eax, eax
jmp 0x52cedb
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x150], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x160]
add eax, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov ecx, dword [edx]
mov dword [ecx + 0x10c], eax
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x154]
sub edx, dword [ecx + 0x150]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.004706ae
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x52cc3d
mov eax, dword [ebp - 0x10]
jmp 0x52cedb
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x150]
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x150], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10c]
add edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov dword [eax + 0x10c], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x150]
cmp eax, dword [edx + 0x154]
jge 0x52cc8f
cmp dword [ebp - 0x1c], 0
jne 0x52cc06
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x148]
push edx
mov eax, dword [ebp + 8]
add eax, 0xc8
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x150]
add edx, 4
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x160]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp esi, esp
call fcn.00471e55
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x52cd15
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00471e55
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
call fcn.00471194
add esp, 8
push eax
push 0x5715e4
mov eax, dword [ebp - 4]
push eax
call fcn.00472a1c
add esp, 0xc
mov eax, 0x37
jmp 0x52cedb
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x150]
cdq
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx + 0x28]
adc edx, dword [ecx + 0x2c]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], edx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [edx + 0x28]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0047273d
add esp, 0xc
jmp 0x52ced8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x40]
add eax, 1
and eax, 0xffff
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
mov ecx, dword [ebp - 4]
push ecx
call fcn.00470e79
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [eax + 0x20]
jle 0x52cdaa
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0xffffff9d
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x52ce47
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x148]
push edx
mov eax, dword [ebp + 8]
add eax, 0xc8
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x150]
add edx, 4
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x160]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp esi, esp
call fcn.00471e55
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x52ce30
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00471e55
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
call fcn.00471194
add esp, 8
push eax
push 0x57161c
mov eax, dword [ebp - 4]
push eax
call fcn.00472a1c
add esp, 0xc
mov eax, 0x37
jmp 0x52cedb
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ecx + 0x28]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0047273d
add esp, 0xc
jmp 0x52ced8
mov edx, dword [ebp + 8]
mov dword [edx], 3
push 5
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.0052dac0
add esp, 8
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x40]
push edx
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.0052db00
add esp, 8
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x148]
push edx
mov eax, dword [ebp + 8]
add eax, 0xc8
push eax
push 0
push 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x160]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
cmp esi, esp
call fcn.00471e55
mov edx, dword [ebp + 8]
mov dword [edx], 3
jmp 0x52ced8
mov eax, dword [ebp + 0xc]
push eax
push str.tftp_tx:_internal_error__event:__i
mov ecx, dword [ebp - 4]
push ecx
call fcn.00472a1c
add esp, 0xc
mov eax, dword [ebp - 0x10]
push edx
mov ecx, ebp
push eax
lea edx, [0x52cefc]
call fcn.00471914
pop eax
pop edx
pop esi
add esp, 0x24
cmp ebp, esp
call fcn.00471e55
mov esp, ebp
pop ebp
ret