Function at 0x44d1c2
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xdc
mov eax, dword [ebp + 0x14]
mov esi, dword [eax + 0x10]
mov edx, dword [esi + 4]
mov dword [ebp - 0xa4], edx
mov dword [eax + 4], edx
mov dword [eax], 0
cmp dword [esi + 4], 0
je 0x44d1fc
mov edx, dword [esi]
mov eax, dword [esi + 4]
cmp byte [eax + edx - 1], 0x2f
jne 0x44d243
test eax, eax
jne 0x44d220
mov eax, dword [ebp + 0x14]
test byte [eax + 0xd], 0x40
je 0x44d220
mov edx, dword [ebp + 8]
cmp byte [edx], 0x2e
jne 0x44d220
cmp byte [edx + 1], 0
jne 0x44d220
mov eax, dword [esi]
mov byte [eax], 0x2e
mov eax, dword [esi]
mov byte [eax + 1], 0
jmp 0x44d272
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [esi]
add eax, dword [esi + 4]
mov dword [esp], eax
call fcn.00453b30
sub eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x44d272
mov dword [esp + 0xc], 0
mov edx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x44d194
mov eax, dword [esi]
add eax, dword [esi + 4]
mov dword [esp], eax
call fcn.00453b30
sub eax, dword [esi]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x14]
inc dword [eax + 4]
mov edx, dword [ebp + 0x14]
test byte [edx + 0xc], 0x40
je 0x44d2df
cmp dword [ebp + 0x18], 0
je 0x44d2df
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x10], 0
jne 0x44d2df
cmp word [eax + 0x14], 0
jne 0x44d2df
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x98], 0xffffffff
mov word [ebp - 0x84], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0xa0], 1
jmp 0x44d40d
lea ebx, [ebp - 0x98]
mov dword [esp + 4], ebx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call dword [ebp + 0xc]
mov edi, eax
test eax, eax
jns 0x44d306
call fcn.00450d70
cmp eax, 4
je 0x44d2e5
test edi, edi
js 0x44d373
mov eax, dword [ebp - 0x88]
and eax, 0xf000
cmp eax, 0x4000
jne 0x44d354
mov dword [ebp - 0xa0], 3
cmp dword [ebp + 0x18], 0
je 0x44d3ef
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x10], 0
jne 0x44d3ef
cmp word [eax + 0x14], 0
je 0x44d3ef
mov edx, eax
movzx eax, word [eax + 0x14]
dec eax
mov word [edx + 0x14], ax
jmp 0x44d3ef
mov eax, dword [ebp - 0x88]
and eax, 0xf000
cmp eax, 0xa000
sete al
movzx eax, al
inc eax
mov dword [ebp - 0xa0], eax
jmp 0x44d3ef
call fcn.00450d70
mov dword [ebp - 0xa8], eax
lea ebx, [ebp - 0x98]
mov dword [esp + 4], ebx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll__lstat64
mov edi, eax
test eax, eax
jns 0x44d3a7
call fcn.00450d70
cmp eax, 4
je 0x44d384
test edi, edi
js 0x44d3db
mov eax, dword [ebp - 0x88]
and eax, 0xf000
cmp eax, 0xa000
jne 0x44d3db
mov edx, dword [ebp - 0xa8]
mov dword [esp], edx
call fcn.00450d90
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 7
jmp 0x44d78d
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 6
jmp 0x44d78d
mov eax, dword [ebp + 0x14]
test byte [eax + 0xc], 2
je 0x44d40d
mov eax, dword [esi + 0x18]
cmp eax, dword [ebp - 0x98]
je 0x44d40d
mov edi, 0
jmp 0x44d7a1
cmp dword [ebp - 0xa0], 3
jne 0x44d77c
mov dword [ebp - 0xac], 0
mov edx, dword [ebp + 8]
cmp byte [edx], 0x2e
jne 0x44d43c
cmp byte [edx + 1], 0
jne 0x44d43c
mov dword [ebp - 0xac], 1
mov ebx, dword [ebp + 0x18]
mov edi, 0
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
and eax, 0x21
cmp eax, 1
jne 0x44d459
mov dword [ebp + 0xc], sub.cygwin1.dll__lstat64
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x90]
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp + 0x14]
test byte [edx + 0xc], 0x40
je 0x44d4a3
cmp word [ebp - 0x84], 1
jbe 0x44d4a3
mov eax, dword [ebp - 0x84]
sub eax, 2
mov word [ebp - 0x24], ax
mov dword [ebp - 0x28], 1
jmp 0x44d4b0
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 1
test ebx, ebx
je 0x44d4f9
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0xb4], edx
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 0x98]
jne 0x44d4f3
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebp - 0xb0]
xor ecx, edx
xor eax, dword [ebp - 0xb4]
or ecx, eax
je 0x44d76b
mov ebx, dword [ebx]
test ebx, ebx
jne 0x44d4cc
mov eax, dword [ebp + 0x14]
test byte [eax + 0xc], 4
jne 0x44d530
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0xa0]
mov dword [esp + 8], edx
lea eax, [ebp - 0x98]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call dword [ebp + 0x10]
mov edi, eax
mov eax, dword [ebp + 0x14]
test byte [eax], 1
jne 0x44d7a1
cmp dword [ebp - 0xac], 0
jne 0x44d579
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sub.cygwin1.dll_chdir
test eax, eax
jns 0x44d579
mov eax, dword [ebp + 0x14]
or dword [eax], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 5
lea eax, [ebp - 0x98]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call dword [ebp + 0x10]
mov edi, eax
mov edx, dword [ebp + 0x14]
and dword [edx], 0xfffffffb
jmp 0x44d7a1
mov eax, dword [esi + 8]
sub eax, dword [esi + 4]
sub eax, 2
mov dword [ebp - 0xbc], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x9c]
mov dword [esp + 4], eax
mov dword [esp], 0x44cf7a
call fcn.0044e31e
mov ebx, eax
test eax, eax
jne 0x44d5dc
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 5
lea eax, [ebp - 0x98]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call dword [ebp + 0x10]
mov edi, eax
jmp 0x44d6b3
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0x9c], 0
jle 0x44d6a5
test edi, edi
jne 0x44d6a5
lea edx, [ebx + 1]
mov dword [ebp - 0xc0], edx
mov edi, edx
cld
mov al, 0
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
mov dword [ebp - 0xc4], edx
cmp dword [ebp - 0xbc], edx
jge 0x44d647
inc eax
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x1c]
mov dword [esp], eax
call fcn.0044d7bd
mov edi, 0xffffffff
test eax, eax
js 0x44d6a5
add dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x14]
inc dword [eax + 8]
lea eax, [ebp - 0x38]
mov dword [esp + 0x10], eax
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0xc0]
mov dword [esp], eax
call fcn.0044d1c2
mov edi, eax
mov edx, dword [ebp + 0x14]
dec dword [edx + 8]
test byte [edx], 2
jne 0x44d6a5
dec dword [ebp - 0x9c]
mov eax, dword [ebp - 0xc4]
lea ebx, [eax + ebx + 2]
cmp dword [ebp - 0x9c], 0
jle 0x44d6a5
test edi, edi
je 0x44d5f7
mov edx, dword [ebp - 0xb8]
mov dword [esp], edx
call sub.cygwin1.dll_free
cmp dword [ebp - 0xac], 0
jne 0x44d726
mov eax, dword [ebp + 0x14]
cmp dword [eax + 8], 0
jle 0x44d726
mov dword [esp + 8], eax
mov edx, dword [ebp - 0xa4]
mov dword [esp + 4], edx
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call fcn.0044daf3
test eax, eax
jns 0x44d726
call fcn.00450d70
mov edi, eax
mov edx, dword [ebp + 0x14]
or dword [edx], 0x10
test byte [edx + 0xd], 2
jne 0x44d70e
mov eax, dword [esi]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x44d1a0
mov eax, dword [edx + 0x1c]
mov dword [esp], eax
call fcn.00451a96
mov eax, dword [ebp + 0x14]
test byte [eax + 0xd], 1
jne 0x44d71f
mov dword [esp], edi
call fcn.0044ef3f
mov edi, 0xffffffff
jmp 0x44d7a1
test edi, edi
js 0x44d7a1
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
test al, 4
je 0x44d7a1
cmp dword [esi + 4], 0
jne 0x44d758
test ah, 0x40
je 0x44d758
mov eax, dword [ebp + 8]
cmp byte [eax], 0x2e
jne 0x44d758
cmp byte [eax + 1], 0
jne 0x44d758
mov eax, dword [esi]
mov byte [eax], 0x2e
mov eax, dword [esi]
mov byte [eax + 1], 0
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov eax, dword [ebp - 0xa0]
mov dword [esp + 8], eax
jmp 0x44d78d
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 4
jmp 0x44d78d
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0xa0]
mov dword [esp + 8], edx
lea eax, [ebp - 0x98]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call dword [ebp + 0x10]
mov edi, eax
mov eax, dword [esi]
mov edx, dword [ebp - 0xa4]
mov byte [edx + eax], 0
mov dword [esi + 4], edx
mov eax, edi
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret