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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push esi
push edi
lea edi, [ebp - 0x78]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x5759c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], str.octet
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x68]
movzx ecx, byte [eax + 0x33b]
test ecx, ecx
je 0x52e65f
mov dword [ebp - 0x10], str.netascii
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x70], edx
cmp dword [ebp - 0x70], 7
ja case.0x52e672.1
mov eax, dword [ebp - 0x70]
jmp dword [eax*4 + 0x52eadc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
cmp eax, dword [edx + 0x20]
jle 0x52e6b1
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0xffffff9e
mov edx, dword [ebp + 8]
mov dword [edx], 3
mov eax, dword [ebp - 0x6c]
jmp 0x52ea81
mov eax, dword [ebp - 0x68]
movzx ecx, byte [eax + 0x349]
test ecx, ecx
je 0x52e729
push 2
mov edx, dword [ebp + 8]
add edx, 0x160
push edx
call fcn.0052e020
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x160]
add ecx, 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov edx, dword [eax]
mov dword [edx + 0x10c], ecx
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x74]
mov eax, dword [ecx + 0x47c8]
and eax, dword [edx + 0x47cc]
cmp eax, 0xffffffff
je 0x52e727
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 0x47cc]
push edx
mov eax, dword [ecx + 0x47c8]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.004730e3
add esp, 0xc
jmp 0x52e73d
push 1
mov edx, dword [ebp + 8]
add edx, 0x160
push edx
call fcn.0052e020
add esp, 8
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx]
mov ecx, 1
shl ecx, 0
add ecx, dword [eax + 0x47a4]
push ecx
mov edx, dword [ebp - 0x68]
push edx
call fcn.004722ce
add esp, 0x18
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x52e77b
mov eax, dword [ebp - 0x6c]
jmp 0x52ea81
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
push str._s_c_s_c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x154]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x160]
add edx, 2
push edx
call fcn.00472355
add esp, 0x1c
mov eax, dword [ebp - 0x18]
push eax
call fcn.00472f49
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00472f49
add esp, 4
lea edx, [esi + eax + 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x68]
movzx ecx, byte [eax + 0x1dc]
test ecx, ecx
jne 0x52e964
mov edx, dword [ebp - 0x68]
movzx eax, byte [edx + 0x349]
test eax, eax
je 0x52e82f
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x78]
mov ecx, dword [edx + 0x47c8]
and ecx, dword [eax + 0x47cc]
cmp ecx, 0xffffffff
je 0x52e82f
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0x47cc]
push eax
mov ecx, dword [edx + 0x47c8]
push ecx
push str._I64d
push 0x40
lea edx, [ebp - 0x60]
push edx
call fcn.00472355
add esp, 0x14
jmp 0x52e840
push 0x572478
lea eax, [ebp - 0x60]
push eax
call fcn.00471b4e
add esp, 8
push str.tsize
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x160]
add edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0052e4c0
add esp, 0x10
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x160]
add ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0052e4c0
add esp, 0x10
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x158]
push edx
push 0x572484
push 0x40
lea eax, [ebp - 0x60]
push eax
call fcn.00472355
add esp, 0x10
push str.blksize
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x160]
add edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0052e4c0
add esp, 0x10
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x160]
add ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0052e4c0
add esp, 0x10
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push edx
push 0x572490
push 0x40
lea eax, [ebp - 0x60]
push eax
call fcn.00472355
add esp, 0x10
push str.timeout
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x160]
add edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0052e4c0
add esp, 0x10
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x160]
add ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0052e4c0
add esp, 0x10
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x4c]
mov esi, esp
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0x4c]
mov edx, dword [ecx + 0x18]
push edx
push 0
mov eax, dword [ebp - 8]
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 - 0xc], eax
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 8]
je 0x52e9e0
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00471e7d
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.004711a8
add esp, 8
push eax
push 0x57249c
mov edx, dword [ebp - 0x68]
push edx
call fcn.00472a30
add esp, 0xc
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
call dword [0x568010]
add esp, 4
cmp esi, esp
call fcn.00471e7d
jmp 0x52ea7e
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x349]
test edx, edx
je 0x52ea1e
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0052e510
add esp, 8
mov dword [ebp - 0x6c], eax
jmp 0x52ea31
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0052e590
add esp, 8
mov dword [ebp - 0x6c], eax
jmp 0x52ea7e
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0052e510
add esp, 8
mov dword [ebp - 0x6c], eax
jmp 0x52ea7e
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0052e590
add esp, 8
mov dword [ebp - 0x6c], eax
jmp 0x52ea7e
mov edx, dword [ebp + 8]
mov dword [edx], 3
jmp 0x52ea7e
push str.tftp_send_first:_internal_error
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
push edx
call fcn.00472a30
add esp, 8
mov eax, dword [ebp - 0x6c]
push edx
mov ecx, ebp
push eax
lea edx, [0x52eaac]
call fcn.0047194b
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471225
add esp, 0x78
cmp ebp, esp
call fcn.00471e7d
mov esp, ebp
pop ebp
ret