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

Disassembly:
push ebp
push edi
mov eax, 0x107c
push esi
push ebx
call fcn.0044e3e0
sub esp, eax
mov dword [esp], str.RSYNC_PROXY
call sub.cygwin1.dll_getenv
test eax, eax
je 0x432280
cmp byte [eax], 0
je 0x432280
lea ebx, [esp + 0x70]
mov dword [esp + 8], 0x400
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.cygwin1.dll_strlcpy
mov dword [esp + 4], 0x40
mov dword [esp], ebx
call sub.cygwin1.dll_strrchr
test eax, eax
je 0x4327ed
lea edi, [eax + 1]
mov byte [eax], 0
mov dword [esp + 4], 0x3a
mov dword [esp], ebx
mov dword [esp + 0x2c], edi
call sub.cygwin1.dll_strchr
test eax, eax
je 0x4328b7
lea edi, [eax + 1]
mov byte [eax], 0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], 0x3a
mov dword [esp], eax
call sub.cygwin1.dll_strchr
test eax, eax
je 0x43287d
lea ebx, [esp + 0x46]
mov byte [eax], 0
add eax, 1
mov dword [esp + 8], 0xa
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.cygwin1.dll_strlcpy
cmp word [0x480948], 0
mov dword [esp + 0x3c], 1
jle 0x4320a9
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str.connection_via_http_proxy__s_port__s_n
mov dword [esp], 2
mov dword [esp + 8], eax
call fcn.00420340
xor eax, eax
mov dword [esp + eax + 0x50], 0
add eax, 4
cmp eax, 0x20
jb 0x4320ab
mov eax, dword [esp + 0x109c]
mov dword [esp + 4], ebx
mov dword [esp + 0x58], 1
mov dword [esp + 0x54], eax
lea eax, [esp + 0x40]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.cygwin1.dll_getaddrinfo
test eax, eax
jne 0x43282e
mov eax, dword [esp + 0x40]
xor edx, edx
test eax, eax
je 0x43210a
mov eax, dword [eax + 0x1c]
add edx, 1
test eax, eax
jne 0x432100
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], edx
call fcn.0041a790
test eax, eax
mov dword [esp + 0x28], eax
je 0x4328de
mov ebp, dword [esp + 0x40]
test ebp, ebp
je 0x432827
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 4]
mov dword [esp], eax
call sub.cygwin1.dll_socket
test eax, eax
mov ebx, eax
js 0x432250
mov eax, dword [esp + 0x1098]
test eax, eax
je 0x43219b
mov eax, dword [esp + 0x1098]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00431ec0
cmp eax, 0xffffffff
je 0x4322ee
mov eax, dword [0x47d930]
test eax, eax
jle 0x4321d7
mov dword [esp + 8], 0
mov dword [esp + 4], 0x47dde0
mov dword [esp], 0xe
mov dword [0x47dde0], 0x431c90
call sub.cygwin1.dll_sigaction
mov eax, dword [0x47d930]
mov dword [esp], eax
call sub.cygwin1.dll_alarm
mov edx, dword [0x47d898]
test edx, edx
je 0x4321ea
cmp byte [edx], 0
jne 0x432300
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.cygwin1.dll_connect
test eax, eax
jns 0x43230c
mov eax, dword [0x47d930]
test eax, eax
js 0x43289b
call sub.cygwin1.dll___errno
cmp dword [eax], 4
je 0x4321ea
mov dword [esp], ebx
call sub.cygwin1.dll_close
mov eax, dword [0x47d930]
test eax, eax
jle 0x43223c
mov dword [esp], 0
call sub.cygwin1.dll_alarm
call sub.cygwin1.dll___errno
mov edi, dword [esp + 0x34]
mov eax, dword [eax]
mov ebx, 0xffffffff
mov dword [edi], eax
nop
mov ebp, dword [ebp + 0x1c]
add dword [esp + 0x34], 4
test ebp, ebp
jne 0x432142
mov esi, dword [esp + 0x40]
test esi, esi
jne 0x4325ff
mov ebx, 0xffffffff
jmp 0x432495
mov eax, dword [esp + 0x1094]
lea ebx, [esp + 0x46]
mov dword [esp + 8], 0x45dd10
mov dword [esp + 4], 0xa
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_snprintf
mov eax, dword [esp + 0x1090]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x2c], eax
jmp 0x4320a9
call sub.cygwin1.dll___errno
mov dword [esp + 8], str.failed_to_write_to_proxy
mov eax, dword [eax]
mov dword [esp], 3
mov dword [esp + 4], eax
call fcn.0041f9e0
mov dword [esp], ebx
mov ebx, 0xffffffff
call sub.cygwin1.dll_close
jmp 0x432250
mov eax, ebx
call fcn.00431cd0
jmp 0x4321ea
mov eax, dword [0x47d930]
test eax, eax
jle 0x432321
mov dword [esp], 0
call sub.cygwin1.dll_alarm
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x432483
mov esi, dword [esp + 0x30]
test esi, esi
je 0x432341
mov ecx, dword [esp + 0x38]
test ecx, ecx
jne 0x4326e0
lea edi, [esp + 0x470]
mov byte [esp + 0x870], 0
mov eax, 0x45db40
mov dword [esp + 0x24], edi
lea edi, [esp + 0x870]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1094]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], edi
mov dword [esp + 8], str.CONNECT__s:_d_HTTP_1.0_s_s_r_n_r_n
mov dword [esp + 4], 0x400
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1090]
mov dword [esp], esi
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_snprintf
mov edx, dword [esi]
add esi, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x43239a
mov edx, eax
mov dword [esp], ebx
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [esi + 2]
cmove esi, edx
add al, al
mov eax, dword [esp + 0x24]
sbb esi, 3
sub esi, eax
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call sub.cygwin1.dll_write
cmp esi, eax
jne 0x4322cf
mov esi, dword [esp + 0x24]
jmp 0x43240d
movzx eax, byte [esi]
cmp al, 0xa
je 0x4324c0
lea ecx, [esp + 0x86f]
add esi, 1
cmp esi, ecx
je 0x4327ac
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.cygwin1.dll_read
cmp eax, 1
je 0x4323f0
call sub.cygwin1.dll___errno
mov dword [esp + 8], str.failed_to_read_from_proxy
mov eax, dword [eax]
mov dword [esp], 3
mov dword [esp + 4], eax
call fcn.0041f9e0
mov dword [esp], ebx
mov ebx, 0xffffffff
call sub.cygwin1.dll_close
jmp 0x432250
cmp esi, edi
jbe 0x432467
sub esi, 1
cmp esi, edi
jne 0x432538
movzx eax, byte [esp + 0x470]
cmp al, 0xd
je 0x432483
cmp al, 0xa
jne 0x432538
cmp word [0x480948], 1
jg 0x432580
mov esi, dword [esp + 0x40]
mov dword [esp], esi
call sub.cygwin1.dll_freeaddrinfo
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.0044e534
mov eax, ebx
add esp, 0x107c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx edx, byte [esi - 1]
cmp dl, 0xd
mov byte [esi], 0
je 0x4327a3
mov esi, dword [esp + 0x24]
mov edi, str.HTTP_
mov ecx, 5
repe cmpsb byte [esi], byte es:[edi]
jne 0x432806
mov eax, dword [sym.imp.cygwin1.dll___ctype_ptr__]
mov esi, dword [eax]
lea eax, [esp + 0x475]
jmp 0x432503
add eax, 1
movzx ecx, byte [eax]
test byte [esi + ecx + 1], 4
mov edx, ecx
jne 0x432500
cmp cl, 0x2e
je 0x432500
cmp dl, 0x20
jne 0x43252b
lea esi, [esi]
add eax, 1
movzx edx, byte [eax]
cmp dl, 0x20
je 0x432520
cmp dl, 0x32
jne 0x432806
mov edi, dword [esp + 0x24]
mov esi, edi
jmp 0x43255b
cmp byte [esi], 0xa
je 0x432460
lea eax, [esp + 0x86f]
add esi, 1
cmp esi, eax
je 0x432790
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.cygwin1.dll_read
cmp eax, 1
je 0x432540
jmp 0x432426
lea esi, [esp + 0x870]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x800
mov dword [esp + 8], esi
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call sub.cygwin1.dll_getnameinfo
test eax, eax
jne 0x4327c4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], esi
mov dword [esp + 4], str.Connected_to__s___s__n
mov dword [esp], 2
mov dword [esp + 8], eax
call fcn.00420340
cmp word [0x480948], 1
mov esi, dword [esp + 0x40]
jle 0x432495
test esi, esi
je 0x432495
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x24], ebx
lea edi, [esp + 0x870]
mov ebx, ebp
mov ebp, dword [esp + 0x2c]
jmp 0x43262a
mov esi, dword [esi + 0x1c]
add ebx, 4
test esi, esi
je 0x432697
mov edx, dword [ebx]
test edx, edx
je 0x432620
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x800
mov dword [esp + 8], edi
mov eax, dword [esi + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esp], eax
call sub.cygwin1.dll_getnameinfo
test eax, eax
jne 0x4326b0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebp
add ebx, 4
mov dword [esp + 8], str.failed_to_connect_to__s___s_
mov eax, dword [ebx - 4]
mov dword [esp], 3
mov dword [esp + 4], eax
call fcn.0041f9e0
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x43262a
mov ebx, dword [esp + 0x24]
mov eax, 0xffffffff
mov esi, dword [esp + 0x40]
test ebx, ebx
cmovs ebx, eax
jmp 0x432495
mov dword [esp], eax
call sub.cygwin1.dll_gai_strerror
mov dword [esp + 8], str.getnameinfo_failure:__s
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x800
mov dword [esp], edi
call sub.cygwin1.dll_snprintf
jmp 0x43266a
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0x45dc3c
mov dword [esp + 4], 0x400
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
lea eax, [esp + 0x470]
mov edi, eax
mov dword [esp], eax
mov dword [esp + 0x24], eax
call fcn.00418520
mov edx, edi
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x43271f
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
add al, al
sbb edx, 3
sub edx, dword [esp + 0x24]
lea eax, [edx*8]
cmp eax, 0x17e8
jg 0x432864
mov eax, dword [esp + 0x24]
lea edi, [esp + 0x870]
mov dword [esp + 0xc], 1
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [esp], eax
call fcn.0043d6c0
mov eax, str._r_nProxy_Authorization:_Basic
jmp 0x432360
cmp byte [esp + 0x86f], 0xa
jne 0x432538
jmp 0x432464
mov byte [esi - 1], 0
jmp 0x4324d0
movzx edx, byte [esp + 0x86f]
cmp dl, 0xa
je 0x4328d5
mov esi, edi
jmp 0x4324c4
mov dword [esp], eax
call sub.cygwin1.dll_gai_strerror
mov dword [esp + 8], str.getnameinfo_failure:__s
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x800
mov dword [esp], esi
call sub.cygwin1.dll_snprintf
jmp 0x4325c5
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x2c], ebx
jmp 0x43203d
mov eax, dword [esp + 0x24]
mov dword [esp + 4], str.bad_response_from_proxy_____s_n
mov dword [esp], 3
mov dword [esp + 8], eax
call fcn.00420340
jmp 0x4322ee
xor esi, esi
jmp 0x43226c
mov dword [esp], eax
call sub.cygwin1.dll_gai_strerror
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str.rsync:_getaddrinfo:__s__s:__s_n
mov dword [esp], 3
mov dword [esp + 8], eax
call fcn.00420340
mov eax, 0xffffffff
jmp 0x4324ab
mov dword [esp + 4], str.authentication_information_is_too_long_n
mov dword [esp], 3
call fcn.00420340
jmp 0x4322ee
mov dword [esp + 4], str.invalid_proxy_specification:_should_be_HOST:PORT_n
mov dword [esp], 3
call fcn.00420340
mov eax, 0xffffffff
jmp 0x4324ab
mov dword [esp + 8], 0x119
mov dword [esp + 4], str.socket.c
mov dword [esp], 0x23
call fcn.00412fd0
mov dword [esp + 4], str.invalid_proxy_specification:_should_be_USER:PASS_HOST:PORT_n
mov dword [esp], 3
call fcn.00420340
mov eax, 0xffffffff
jmp 0x4324ab
mov edx, eax
mov esi, ecx
jmp 0x4324c4
mov dword [esp], str.open_socket_out
call fcn.0041a8d0
lea esi, [esi]