Function at 0x591507
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x94
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
and eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
and eax, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
and eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x64], 0x62f624
cmp dword [ebp - 0x24], 0
je 0x59159a
cmp dword [ebp - 0x10], 0
je 0x5915a0
cmp dword [ebp - 0xc], 0
jne 0x5915f6
cmp dword [ebp - 0x34], 0
jne 0x5915c2
mov dword [esp + 8], str.default_reflog_action_must_be_given_when_reflog_messages_are_omitted
mov dword [esp + 4], 0x21
mov dword [esp], str.reset.c
call fcn.004ae42f
mov dword [esp], str.GIT_REFLOG_ACTION
call sub.cygwin1.dll_getenv
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x5915dc
mov eax, dword [ebp - 0x38]
jmp 0x5915df
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s:
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call fcn.0048b459
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x24], 0
je 0x5916b8
mov eax, dword [0x62f280]
lea edx, [ebp - 0x60]
mov dword [esp + 8], edx
mov dword [esp + 4], str.ORIG_HEAD
mov dword [esp], eax
call fcn.0043973e
test eax, eax
jne 0x59162c
lea eax, [ebp - 0x60]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x10], 0
je 0x59168f
cmp dword [ebp - 0x10], 0
jne 0x591651
mov dword [esp + 4], str.updating_ORIG_HEAD
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call fcn.005914a5
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x28], 0
je 0x59165c
mov eax, dword [ebp - 0x28]
jmp 0x59165f
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov edx, dword [ebp - 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.ORIG_HEAD
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0045cd13
jmp 0x5916b8
cmp dword [ebp - 0x14], 0
je 0x5916b8
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], str.ORIG_HEAD
mov dword [esp], 0
call fcn.0045bf51
cmp dword [ebp - 0xc], 0
jne 0x5916e9
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call fcn.0059140e
mov dword [esp + 4], str.updating_HEAD
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call fcn.005914a5
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x2c], 0
jne 0x59172b
cmp dword [ebp - 0x1c], 0
setne al
movzx eax, al
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.HEAD
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0045cd13
mov dword [ebp - 0x18], eax
jmp 0x59178d
cmp dword [ebp - 0x30], 0
je 0x591736
mov eax, dword [ebp - 0x30]
jmp 0x591739
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x2c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0045cd13
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x59178d
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], str.HEAD
call fcn.0045e5a4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x5917e2
cmp dword [ebp - 0x20], 0
je 0x5917e2
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0042bbe2
mov ebx, eax
cmp dword [ebp + 0x10], 0
jne 0x5917b3
call fcn.00430bda
jmp 0x5917b6
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.0042bbe2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x5d7810
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], str.post_checkout
call fcn.0051b453
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call fcn.0048a820
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 4]
leave
ret