Function at 0x42a594
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [0x43af20]
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x42a645
mov edi, dword [eax + 8]
mov esi, 1
mov dword [ebp - 0x2c], edi
mov dword [eax + 0x18], 1
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x42a60d
cmp dword [eax + 0xa0], 0
mov dword [eax + 0x94], 0
jle 0x42a5f0
mov dword [eax + 0x94], 1
mov eax, dword [eax]
xor esi, esi
mov dword [ebp - 0x2c], eax
jmp 0x42a608
cmp eax, edi
jne 0x42a600
lea eax, [ebp - 0x2c]
mov edi, dword [edi]
call fcn.0041b5c4
jmp 0x42a5c3
lea eax, [ebp - 0x2c]
call fcn.0041b5c4
cmp edi, dword [ebp - 0x2c]
jne 0x42a5c3
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov dword [eax + 8], edx
test esi, esi
je 0x42a635
cmp eax, ebx
jne 0x42a62d
lea eax, [ebp - 0x30]
mov ebx, dword [ebx]
call fcn.0041b550
jmp 0x42a5a6
lea eax, [ebp - 0x30]
call fcn.0041b550
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
cmp ebx, eax
jne 0x42a5a6
mov eax, dword [ebp - 0x30]
mov dword [0x43af20], eax
mov eax, dword [0x43c7c0]
mov dword [esp], eax
call sub.cygwin1.dll_chdir
test eax, eax
je 0x42a67b
mov eax, dword [0x43c7c0]
mov dword [esp + 4], str.chdir__s_
mov dword [esp], 0
mov dword [esp + 8], eax
call fcn.00421a30
mov dword [esp], 0x452d59
call sub.cygwin1.dll_opendir
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x42a6b8
mov dword [esp + 8], 0x452d59
mov dword [esp + 4], str.chdir__s_
mov dword [esp], 0
call fcn.00421a30
jmp 0x42a6b8
cmp byte [eax + 0x14], 0x2e
jne 0x42a6dd
cmp byte [eax + 0x15], 0
jne 0x42a6cc
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call sub.cygwin1.dll_readdir
test eax, eax
jne 0x42a6ac
jmp 0x42aa49
mov edx, dword [eax + 0x14]
and edx, 0xffff00
cmp edx, 0x2e00
je 0x42a6b8
lea esi, [eax + 0x14]
mov dword [esp], esi
call sub.cygwin1.dll_getpwnam
test eax, eax
jne 0x42a701
mov dword [esp + 8], esi
mov dword [esp + 4], str.ignoring_file__s__no_such_user_
mov dword [esp], 7
jmp 0x42a6a5
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.cygwin1.dll__open64
mov dword [ebp - 0x40], eax
test eax, eax
js 0x42a6b8
mov dword [esp], 0x1c
call fcn.00439aa0
mov dword [esp], esi
mov ebx, eax
call fcn.0043858c
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call fcn.0041c2c0
mov dword [ebp - 0x44], eax
test eax, eax
je 0x42a9bb
lea edi, [ebp - 0x2c]
mov ecx, 5
xor eax, eax
mov esi, dword [ebp - 0x44]
rep stosd dword es:[edi], eax
mov al, byte [esi]
cmp al, 0x20
jne 0x42a75f
inc esi
jmp 0x42a756
cmp al, 9
je 0x42a75c
test al, 0xbf
je 0x42a9ab
cmp al, 0x23
je 0x42a9ab
cmp byte [0x43c7d4], 0
je 0x42a79b
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], str.user:_s_entry:_s
mov dword [esp + 8], eax
mov dword [esp], 5
call fcn.00421a30
xor edi, edi
mov dword [esp + 4], 0x452d8e
mov dword [esp], esi
call sub.cygwin1.dll_strcspn
lea edx, [esi + eax]
cmp byte [edx], 0
je 0x42a7b9
mov byte [edx], 0
inc eax
inc edi
mov dword [ebp + edi*4 - 0x30], esi
add esi, eax
mov al, byte [esi]
cmp al, 0x20
jne 0x42a7c9
inc esi
jmp 0x42a7c0
cmp al, 9
je 0x42a7c6
test al, al
je 0x42a7db
cmp edi, 5
jne 0x42a79d
jmp 0x42a872
cmp edi, 2
je 0x42a824
jg 0x42a7ea
dec edi
je 0x42a7f4
jmp 0x42a9ab
cmp edi, 3
je 0x42a85b
jmp 0x42a9ab
mov esi, dword [ebp - 0x2c]
mov dword [esp + 4], 0x3d
mov dword [esp], esi
call sub.cygwin1.dll_strchr
test eax, eax
je 0x42a9ab
cmp byte [eax + 1], 0
mov byte [eax], 0
lea edi, [eax + 1]
jne 0x42a950
jmp 0x42a9ab
mov esi, dword [ebp - 0x2c]
mov dword [esp + 4], 0x3d
mov dword [esp], esi
call sub.cygwin1.dll_strchr
mov edi, dword [ebp - 0x28]
test eax, eax
je 0x42a843
mov byte [eax], 0
jmp 0x42a84d
cmp byte [edi], 0x3d
jne 0x42a9ab
inc edi
cmp byte [edi], 0
jne 0x42a950
jmp 0x42a9ab
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x24]
cmp byte [eax], 0x3d
jne 0x42a9ab
jmp 0x42a950
mov dword [esp], 0xa4
call fcn.00439aa0
mov edx, dword [ebp - 0x2c]
mov ecx, 0x3c
mov edi, eax
lea eax, [eax + 8]
mov dword [esp], edx
xor edx, edx
call fcn.0042599c
test eax, eax
jne 0x42a946
mov edx, dword [ebp - 0x28]
lea eax, [edi + 0x44]
mov ecx, 0x18
mov dword [esp], edx
xor edx, edx
call fcn.0042599c
test eax, eax
jne 0x42a946
mov edx, dword [ebp - 0x24]
lea eax, [edi + 0x5c]
mov ecx, 0x1f
mov dword [esp], edx
mov edx, 1
call fcn.0042599c
test eax, eax
jne 0x42a946
mov edx, dword [ebp - 0x20]
lea eax, [edi + 0x7b]
mov ecx, 0xc
mov dword [esp], edx
mov edx, 1
call fcn.0042599c
test eax, eax
jne 0x42a946
mov edx, dword [ebp - 0x1c]
lea eax, [edi + 0x87]
mov ecx, 7
mov dword [esp], edx
xor edx, edx
call fcn.0042599c
test eax, eax
jne 0x42a946
mov dword [esp], esi
call fcn.0043858c
cmp byte [0x43c7d4], 0
mov dword [edi + 0x90], eax
je 0x42a93d
mov dword [esp + 8], eax
mov dword [esp + 4], str._command:_s
mov dword [esp], 5
call fcn.00421a30
mov dword [esp + 4], edi
lea eax, [ebx + 8]
jmp 0x42a9a3
mov dword [esp], edi
call sub.cygwin1.dll_free
jmp 0x42a9ab
mov dword [esp + 4], str.MAILTO
mov dword [esp], esi
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x42a971
mov dword [esp], edi
call fcn.0043858c
mov dword [ebx + 0x14], eax
jmp 0x42a9ab
mov dword [esp], 0x10
call fcn.00439aa0
mov dword [esp], esi
mov dword [ebp - 0x48], eax
call fcn.0043858c
mov edx, dword [ebp - 0x48]
mov dword [edx + 8], eax
mov dword [esp], edi
call fcn.0043858c
mov edx, dword [ebp - 0x48]
mov dword [edx + 0xc], eax
lea eax, [ebx + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00412470
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call sub.cygwin1.dll_free
jmp 0x42a731
cmp dword [ebx + 8], 0
jne 0x42aa1d
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x42a9e1
mov dword [esp], eax
call sub.cygwin1.dll_free
cmp dword [ebp - 0x2c], 0
jne 0x42a9f1
mov dword [esp], ebx
call sub.cygwin1.dll_free
jmp 0x42aa39
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.004124a0
mov esi, eax
test eax, eax
je 0x42a9e7
mov eax, dword [esi + 8]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov dword [esp], esi
jmp 0x42a9dc
cmp dword [ebx + 0x14], 0
jne 0x42aa29
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x14], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x43af20
call fcn.00412470
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sub.cygwin1.dll_close
jmp 0x42a6b8
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call sub.cygwin1.dll_closedir
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret