Function at 0x4328f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Execute command
Get local ipv4 addresses
Get socket information
Query environment variable
Start tcp server
Terminate process

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov dword [esp], str.RSYNC_CONNECT_PROG
call sub.cygwin1.dll_getenv
test eax, eax
mov ebx, eax
je 0x432b40
mov dword [esp + 4], 0x25
mov dword [esp], eax
call sub.cygwin1.dll_strchr
test eax, eax
je 0x432bb4
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
mov dword [esp], ebx
mov edi, eax
call sub.cygwin1.dll_strlen
movzx edx, byte [ebx]
add eax, 1
test dl, dl
je 0x432972
mov ecx, ebx
jmp 0x432957
add ecx, 1
test dl, dl
je 0x432972
cmp dl, 0x25
movzx edx, byte [ecx + 1]
jne 0x432950
cmp dl, 0x25
je 0x432b30
add eax, edi
add ecx, 1
test dl, dl
jne 0x432957
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.0041a790
test eax, eax
mov ebp, eax
je 0x432df5
movzx eax, byte [ebx]
mov esi, ebp
test al, al
jne 0x4329b7
jmp 0x432a00
movzx eax, byte [ebx]
lea ecx, [ebx + 1]
mov edx, ebx
mov byte [esi], al
movzx eax, byte [edx + 1]
add esi, 1
mov ebx, ecx
test al, al
je 0x432a00
cmp al, 0x25
jne 0x4329a0
movzx eax, byte [ebx + 1]
lea edx, [ebx + 1]
cmp al, 0x25
je 0x432b20
cmp al, 0x48
jne 0x432b10
mov eax, dword [esp + 0x80]
mov dword [esp], esi
add ebx, 2
mov dword [esp + 8], edi
mov dword [esp + 0x2c], edx
add esi, edi
mov dword [esp + 4], eax
call sub.cygwin1.dll_memcpy
mov edx, dword [esp + 0x2c]
movzx eax, byte [edx + 1]
test al, al
jne 0x4329b7
nop
mov byte [esi], 0
cmp word [0x480948], 0
jle 0x432a40
mov eax, dword [esp + 0x84]
mov dword [esp + 8], str.Using_RSYNC_CONNECT_PROG_instead_of
mov dword [esp + 4], str._sopening_tcp_connection_to__s_port__d_n
mov dword [esp], 2
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], eax
call fcn.00420340
nop
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
mov dword [esp + 0x3c], 0x10
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call sub.cygwin1.dll_socket
cmp eax, 0xffffffff
mov edi, eax
je 0x432ae2
lea ebx, [esp + 0x50]
mov eax, 2
mov dword [esp + 8], 0x10
mov dword [esp], edi
mov dword [esp + 0x50], 0
mov dword [esp + 4], ebx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov word [esp + 0x50], ax
mov dword [esp + 0x54], 0x100007f
call sub.cygwin1.dll_bind
test eax, eax
je 0x432bc0
cmp edi, 0xffffffff
je 0x432ae2
mov dword [esp], edi
call sub.cygwin1.dll_close
call sub.cygwin1.dll___errno
mov dword [esp + 8], str.socketpair_tcp_failed
mov eax, dword [eax]
mov dword [esp], 3
mov dword [esp + 4], eax
call fcn.0041f9e0
add esp, 0x6c
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, edx
movzx eax, byte [ebx]
mov edx, ebx
jmp 0x4329a8
lea ecx, [ebx + 2]
jmp 0x4329a8
movzx edx, byte [ecx + 2]
add ecx, 1
jmp 0x432950
cmp word [0x480948], 0
jle 0x432b7c
mov eax, dword [esp + 0x84]
mov dword [esp + 8], 0x45db40
mov dword [esp + 4], str._sopening_tcp_connection_to__s_port__d_n
mov dword [esp], 2
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], eax
call fcn.00420340
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call fcn.00431fb0
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, ebx
jmp 0x432a03
mov dword [esp + 4], 1
mov dword [esp], edi
call sub.cygwin1.dll_listen
test eax, eax
jne 0x432ad5
lea eax, [esp + 0x3c]
mov dword [esp], edi
mov dword [esp + 8], eax
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
call sub.cygwin1.dll_getsockname
test eax, eax
jne 0x432ad5
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.cygwin1.dll_socket
cmp eax, 0xffffffff
mov esi, eax
je 0x432ad5
mov dword [esp], eax
call fcn.00417da0
lea eax, [esp + 0x40]
mov dword [esp + 8], 0x10
mov dword [esp], esi
mov dword [esp + 0x44], 0x100007f
mov dword [esp + 4], eax
call sub.cygwin1.dll_connect
cmp eax, 0xffffffff
je 0x432cfc
lea eax, [esp + 0x3c]
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 8], eax
call sub.cygwin1.dll_accept
cmp eax, 0xffffffff
mov ebx, eax
je 0x432d6c
mov dword [esp], edi
call sub.cygwin1.dll_close
mov dword [esp], esi
call fcn.00417df0
cmp word [0x48094a], 0
jle 0x432ca1
mov dword [esp + 8], ebp
mov dword [esp + 4], str.Running_socket_program:___s__n
mov dword [esp], 2
call fcn.00420340
call sub.cygwin1.dll_fork
test eax, eax
js 0x432dba
jne 0x432d80
mov dword [esp], ebx
call sub.cygwin1.dll_close
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.cygwin1.dll_dup2
test eax, eax
js 0x432d92
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.cygwin1.dll_dup2
test eax, eax
js 0x432d92
mov dword [esp], ebp
call sub.cygwin1.dll_system
mov dword [esp], eax
call sub.cygwin1.dll_exit
call sub.cygwin1.dll___errno
cmp dword [eax], 0x77
jne 0x432d6c
lea eax, [esp + 0x3c]
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 8], eax
call sub.cygwin1.dll_accept
cmp eax, 0xffffffff
mov ebx, eax
je 0x432d6c
mov dword [esp], edi
call sub.cygwin1.dll_close
mov dword [esp], esi
call fcn.00417df0
lea eax, [esp + 0x40]
mov dword [esp + 8], 0x10
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygwin1.dll_connect
test eax, eax
je 0x432c7f
call sub.cygwin1.dll___errno
cmp dword [eax], 0x7f
je 0x432c7f
mov dword [esp], ebx
mov edi, 0xffffffff
call sub.cygwin1.dll_close
mov dword [esp], esi
call sub.cygwin1.dll_close
jmp 0x432ad5
mov dword [esp], esi
call sub.cygwin1.dll_close
add esp, 0x6c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebp
mov dword [esp + 4], str.Failed_to_run___s__n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
call sub.cygwin1.dll___errno
mov dword [esp + 8], 0x45dd7c
mov eax, dword [eax]
mov dword [esp], 3
mov dword [esp + 4], eax
call fcn.0041f9e0
mov dword [esp + 8], 0x348
mov dword [esp + 4], str.socket.c
mov dword [esp], 0xe
call fcn.00412fd0
mov dword [esp], str.open_socket_out_wrapped
call fcn.0041a8d0
jmp fcn.00432e10