Function at 0x58fb77
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], 0x61d2e4
cmp dword [ebp - 0x24], 0
je 0x58fc0a
cmp dword [ebp - 0x10], 0
je 0x58fc10
cmp dword [ebp - 0xc], 0
jne 0x58fc66
cmp dword [ebp - 0x34], 0
jne 0x58fc32
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.004b58e7
mov dword [esp], str.GIT_REFLOG_ACTION
call sub.cygwin1.dll_getenv
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x58fc4c
mov eax, dword [ebp - 0x38]
jmp 0x58fc4f
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.00492911
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x24], 0
je 0x58fd28
mov eax, dword [0x61cf40]
lea edx, [ebp - 0x60]
mov dword [esp + 8], edx
mov dword [esp + 4], str.ORIG_HEAD
mov dword [esp], eax
call fcn.00441116
test eax, eax
jne 0x58fc9c
lea eax, [ebp - 0x60]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x10], 0
je 0x58fcff
cmp dword [ebp - 0x10], 0
jne 0x58fcc1
mov dword [esp + 4], str.updating_ORIG_HEAD
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call fcn.0058fb15
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x28], 0
je 0x58fccc
mov eax, dword [ebp - 0x28]
jmp 0x58fccf
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.0046414f
jmp 0x58fd28
cmp dword [ebp - 0x14], 0
je 0x58fd28
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.0046338d
cmp dword [ebp - 0xc], 0
jne 0x58fd59
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call fcn.0058fa7e
mov dword [esp + 4], str.updating_HEAD
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call fcn.0058fb15
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x2c], 0
jne 0x58fd9b
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.0046414f
mov dword [ebp - 0x18], eax
jmp 0x58fdfd
cmp dword [ebp - 0x30], 0
je 0x58fda6
mov eax, dword [ebp - 0x30]
jmp 0x58fda9
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.0046414f
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x58fdfd
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.004659e0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x58fe52
cmp dword [ebp - 0x20], 0
je 0x58fe52
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00431daa
mov ebx, eax
cmp dword [ebp + 0x10], 0
jne 0x58fe23
call fcn.004385b2
jmp 0x58fe26
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.00431daa
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x5d5730
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], str.post_checkout
call fcn.00432277
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call fcn.00491cd8
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 4]
leave
ret