Function at 0x52cf10
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.0x52cf6e
mov eax, dword [ebp - 0x24]
jmp dword [eax*4 + 0x52d474]
cmp dword [ebp + 0xc], 4
jne 0x52d0cd
mov ecx, dword [ebp + 8]
add ecx, 0x15c
push ecx
call fcn.0052e0d0
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 0x52d0aa
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x40]
test eax, eax
jne 0x52cfbf
cmp dword [ebp - 0xc], 0xffff
je 0x52d0aa
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.00470e9c
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 0x52d01e
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.00472a30
add esp, 0xc
mov dword [ebp - 0x10], 0x37
jmp 0x52d0a2
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.00471e7d
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x52d0a2
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00471e7d
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.004711a8
add esp, 8
push eax
push 0x5725e0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00472a30
add esp, 0xc
mov dword [ebp - 0x10], 0x37
mov eax, dword [ebp - 0x10]
jmp 0x52d43b
mov edx, dword [ebp + 8]
add edx, 0x38
push edx
call fcn.0052cac0
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 0x52d0d9
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.0052e020
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.0052e060
add esp, 8
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x40]
cmp edx, 1
jle 0x52d13f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x150]
cmp edx, dword [ecx + 0x154]
jge 0x52d13f
mov eax, dword [ebp + 8]
mov dword [eax], 3
xor eax, eax
jmp 0x52d43b
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.004706c7
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x52d19d
mov eax, dword [ebp - 0x10]
jmp 0x52d43b
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 0x52d1ef
cmp dword [ebp - 0x1c], 0
jne 0x52d166
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.00471e7d
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x52d275
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00471e7d
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
call fcn.004711a8
add esp, 8
push eax
push 0x5725e4
mov eax, dword [ebp - 4]
push eax
call fcn.00472a30
add esp, 0xc
mov eax, 0x37
jmp 0x52d43b
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.00472742
add esp, 0xc
jmp 0x52d438
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.00470e9c
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [eax + 0x20]
jle 0x52d30a
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0xffffff9d
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x52d3a7
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.00471e7d
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x52d390
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00471e7d
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
call fcn.004711a8
add esp, 8
push eax
push 0x57261c
mov eax, dword [ebp - 4]
push eax
call fcn.00472a30
add esp, 0xc
mov eax, 0x37
jmp 0x52d43b
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.00472742
add esp, 0xc
jmp 0x52d438
mov edx, dword [ebp + 8]
mov dword [edx], 3
push 5
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.0052e020
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.0052e060
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.00471e7d
mov edx, dword [ebp + 8]
mov dword [edx], 3
jmp 0x52d438
mov eax, dword [ebp + 0xc]
push eax
push str.tftp_tx:_internal_error__event:__i
mov ecx, dword [ebp - 4]
push ecx
call fcn.00472a30
add esp, 0xc
mov eax, dword [ebp - 0x10]
push edx
mov ecx, ebp
push eax
lea edx, [0x52d45c]
call fcn.0047194b
pop eax
pop edx
pop esi
add esp, 0x24
cmp ebp, esp
call fcn.00471e7d
mov esp, ebp
pop ebp
ret