Function at 0x483352
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 0x483396
mov dword [esp], str.__s_too_big
call fcn.004818fd
mov dword [esp + 4], 0x5b0ef0
mov dword [esp], eax
call fcn.004ae00f
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004830a8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4833c6
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.004b4201
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.00482257
test eax, eax
jne 0x483414
cmp dword [ebp + 0x14], 0
je 0x4833f9
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 0x4836b9
mov dword [esp], str.not_a_git_repository:__s
call fcn.004818fd
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ae00f
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.004829cc
test eax, eax
je 0x483446
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov eax, 0
jmp 0x4836b9
cmp dword [ebp - 0x10], 0
je 0x48345c
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00426c20
jmp 0x4835c7
mov eax, dword [0x59b3ec]
test eax, eax
jle 0x4834ac
mov eax, dword [0x61e758]
test eax, eax
je 0x483484
mov dword [esp], str.core.bare_and_core.worktree_do_not_make_sense
call fcn.004ae342
mov dword [0x62f478], 1
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00426f3c
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov eax, 0
jmp 0x4836b9
mov eax, dword [0x61e758]
test eax, eax
je 0x48357b
mov eax, dword [0x61e758]
mov dword [esp], eax
call fcn.00481942
test eax, eax
je 0x4834dc
mov eax, dword [0x61e758]
mov dword [esp], eax
call fcn.00426c20
jmp 0x4835c7
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll_chdir
test eax, eax
je 0x483506
mov dword [esp], str.cannot_chdir_to__s
call fcn.004818fd
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ae15c
mov eax, dword [0x61e758]
mov dword [esp], eax
call sub.cygwin1.dll_chdir
test eax, eax
je 0x483535
mov ebx, dword [0x61e758]
mov dword [esp], str.cannot_chdir_to__s
call fcn.004818fd
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004ae15c
call fcn.004b5211
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 0x483563
mov dword [esp], str.cannot_come_back_to_cwd
call fcn.004818fd
mov dword [esp], eax
call fcn.004ae15c
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.00426c20
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.cygwin1.dll_free
jmp 0x4835c7
mov dword [esp + 4], 1
mov dword [esp], str.GIT_IMPLICIT_WORK_TREE
call fcn.004135de
test eax, eax
jne 0x4835bb
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00426f3c
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov eax, 0
jmp 0x4836b9
mov dword [esp], 0x5b0bcc
call fcn.00426c20
call fcn.00426cd6
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 0x483610
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00426f3c
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov eax, 0
jmp 0x4836b9
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.00424327
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
js 0x483696
mov dword [esp + 4], 1
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00426f3c
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.cygwin1.dll_chdir
test eax, eax
je 0x48366b
mov dword [esp], str.cannot_chdir_to__s
call fcn.004818fd
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ae15c
mov dword [esp + 4], 0x2f
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00481832
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 0x4836b9
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00426f3c
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret