Function at 0x61068790
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x38c
mov edi, dword [ebp + 8]
mov dword [ebp - 0x36c], esp
mov eax, edi
call fcn.610552f0
mov ebx, eax
test ebx, ebx
mov eax, 0xffffffff
jne 0x61068984
mov esi, dword [0x610f08a0]
test esi, esi
jne 0x61068ad8
mov dword [esp], edi
call sym.cygwin1.dll__strlen
add eax, 0x10
and eax, 0xfffffff0
call sym.cygwin1.dll__alloca
mov dword [esp + 4], edi
lea esi, [esp + 0x1c]
mov dword [esp], esi
call sym.cygwin1.dll__strcpy
mov eax, ebx
mov edx, esi
mov ah, al
mov al, byte [edx]
cmp al, ah
je 0x610687ff
inc edx
test al, al
jne 0x610687f2
xor edx, edx
mov eax, edx
mov ebx, eax
lea esi, [esi]
lea edi, [edi]
dec ebx
cmp ebx, esi
jb 0x61068829
movzx eax, byte [ebx]
mov dword [esp], eax
call sym.cygwin1.dll__isspace
test eax, eax
je 0x61068829
mov byte [ebx], 0
jmp 0x61068810
cmp byte [ebx], 0
je 0x61068a60
mov dword [esp], 0
mov ecx, 0x11
lea eax, [ebp - 0x368]
mov edx, esi
call fcn.610620e0
mov ecx, dword [ebp - 0x140]
test ecx, ecx
jne 0x61068a94
mov dword [esp + 4], 0x2f
mov dword [esp], esi
call sym.cygwin1.dll__strrchr
test eax, eax
mov ebx, eax
je 0x61068a8d
inc ebx
mov dword [esp], ebx
call sym.cygwin1.dll__strlen
cmp eax, 2
mov edi, eax
jbe 0x6106889b
mov dword [esp + 4], 0x610617bf
mov dword [esp], ebx
call sym.cygwin1.dll__strspn
cmp eax, edi
je 0x61068a60
movsx eax, byte [ebp - 0x11c]
lea edi, [ebp - 0x11c]
mov dword [ebp - 0x370], edi
mov dword [esp], eax
call sym.cygwin1.dll__isalpha
test eax, eax
je 0x610688c7
cmp byte [ebp - 0x11b], 0x3a
je 0x61068a6d
mov ebx, dword [ebp - 0x138]
cmp ebx, 0x620000
je 0x61068a14
cmp ebx, 0xfa
je 0x61068a14
cmp ebx, 0xf9
je 0x61068a14
cmp ebx, 0xf8
je 0x61068a14
mov dword [esp], edi
xor edi, edi
call sub.KERNEL32.dll_SetCurrentDirectoryA
sub esp, 4
test eax, eax
je 0x610689fb
test byte [ebp - 0x145], 0x10
je 0x610689d5
cmp ebx, 0x620000
je 0x610689cf
cmp ebx, 0xfa
je 0x610689cf
cmp ebx, 0xf9
je 0x610689cf
cmp ebx, 0xf8
je 0x610689cf
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x370]
mov dword [esp + 4], eax
mov eax, dword [0x610ed768]
add eax, 0x17c
mov dword [esp], eax
call fcn.61069350
mov eax, dword [0x610f08a0]
test eax, eax
jne 0x6106898c
mov esp, dword [ebp - 0x36c]
mov eax, edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x370]
mov dword [esp + 0x18], eax
mov eax, dword [0x610ed768]
mov eax, dword [eax + 0x17c]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x61068740
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0x6106870d
mov dword [esp + 4], 0x10
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x6106897c
mov dword [esp + 8], esi
jmp 0x61068957
mov dword [esp + 4], 0x61063e47
mov dword [esp], esi
call sym.cygwin1.dll__strpbrk
test eax, eax
jne 0x6106891f
mov eax, dword [0x61146a60]
test eax, eax
je 0x610689cf
jmp 0x6106891f
mov edx, 0xd01
mov eax, 0x610620a0
mov edi, 0xffffffff
call fcn.61022e70
jmp 0x61068973
mov eax, dword [ebp - 0x368]
cmp eax, 0xffffffff
je 0x61068a60
xor edx, edx
cmp eax, 0xffffffff
je 0x61068a2f
test al, 0x10
je 0x61068a2f
mov edx, 1
test edx, edx
je 0x61068a45
mov eax, 0x61068771
xor edi, edi
mov dword [ebp - 0x370], eax
jmp 0x61068912
call sym.cygwin1.dll___errno
mov dword [eax], 0x14
mov esp, dword [ebp - 0x36c]
mov eax, 0xffffffff
jmp 0x61068984
call sym.cygwin1.dll___errno
mov dword [eax], 2
jmp 0x61068a50
cmp byte [ebp - 0x11a], 0
jne 0x610688c7
mov byte [ebp - 0x11a], 0x5c
mov byte [ebp - 0x119], 0
jmp 0x610688c7
mov ebx, esi
jmp 0x61068874
call sym.cygwin1.dll___errno
mov edx, dword [ebp - 0x140]
mov dword [eax], edx
mov edx, dword [0x610f08a0]
test edx, edx
je 0x61068a50
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x61068775
mov dword [esp + 8], 0x6106870d
mov dword [esp + 4], 0x10
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x61068a50
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x61068785
mov dword [esp + 8], 0x6106870d
mov dword [esp + 4], 0x10
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x610687c9