Function at 0x48b1aa
Capabilities:
Query environment variable
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov dword [esp], str.GIT_WORK_TREE
call sub.cygwin1.dll_getenv
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
cmp eax, 0xfd8
jbe 0x48b1ee
mov dword [esp], str.__s_too_big
call fcn.00489755
mov dword [esp + 4], 0x5af620
mov dword [esp], eax
call fcn.004b54c7
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0048af00
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x48b21e
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.004ba79d
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0048a0af
test eax, eax
jne 0x48b26c
cmp dword [ebp + 0x14], 0
je 0x48b251
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov eax, 0
jmp 0x48b511
mov dword [esp], str.not_a_git_repository:__s
call fcn.00489755
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004b54c7
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0048a824
test eax, eax
je 0x48b29e
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov eax, 0
jmp 0x48b511
cmp dword [ebp - 0x10], 0
je 0x48b2b4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0042a564
jmp 0x48b41f
mov eax, dword [0x59936c]
test eax, eax
jle 0x48b304
mov eax, dword [0x61c3ec]
test eax, eax
je 0x48b2dc
mov dword [esp], str.core.bare_and_core.worktree_do_not_make_sense
call fcn.004b57fa
mov dword [0x61d138], 1
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0042a880
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov eax, 0
jmp 0x48b511
mov eax, dword [0x61c3ec]
test eax, eax
je 0x48b3d3
mov eax, dword [0x61c3ec]
mov dword [esp], eax
call fcn.0048979a
test eax, eax
je 0x48b334
mov eax, dword [0x61c3ec]
mov dword [esp], eax
call fcn.0042a564
jmp 0x48b41f
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll_chdir
test eax, eax
je 0x48b35e
mov dword [esp], str.cannot_chdir_to__s
call fcn.00489755
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004b5614
mov eax, dword [0x61c3ec]
mov dword [esp], eax
call sub.cygwin1.dll_chdir
test eax, eax
je 0x48b38d
mov ebx, dword [0x61c3ec]
mov dword [esp], str.cannot_chdir_to__s
call fcn.00489755
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004b5614
call fcn.004bb7ad
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_chdir
test eax, eax
je 0x48b3bb
mov dword [esp], str.cannot_come_back_to_cwd
call fcn.00489755
mov dword [esp], eax
call fcn.004b5614
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.0042a564
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.cygwin1.dll_free
jmp 0x48b41f
mov dword [esp + 4], 1
mov dword [esp], str.GIT_IMPLICIT_WORK_TREE
call fcn.00419cc6
test eax, eax
jne 0x48b413
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0042a880
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov eax, 0
jmp 0x48b511
mov dword [esp], 0x5af2fc
call fcn.0042a564
call fcn.0042a61a
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x48b468
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0042a880
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov eax, 0
jmp 0x48b511
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00427c6b
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
js 0x48b4ee
mov dword [esp + 4], 1
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0042a880
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.cygwin1.dll_chdir
test eax, eax
je 0x48b4c3
mov dword [esp], str.cannot_chdir_to__s
call fcn.00489755
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004b5614
mov dword [esp + 4], 0x2f
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0048968a
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x1c]
add eax, edx
jmp 0x48b511
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0042a880
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret