Function at 0x56c654
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x24], 0x61d2e4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
test eax, eax
je 0x56c695
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
jmp 0x56cc45
mov dword [esp], 0x50
call fcn.004ba857
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00485d53
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x30], 0xffffffff
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x34], 0xffffffff
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x38], 0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], str.remote__s
mov dword [esp], eax
call fcn.0049632d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004962f4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp], eax
call fcn.0056c5d2
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.004962f4
mov eax, dword [ebp - 0x18]
movzx edx, byte [eax + 0x40]
or edx, 8
mov byte [eax + 0x40], dl
mov eax, dword [ebp - 0x18]
movzx edx, byte [eax + 0x40]
or edx, 0x10
mov byte [eax + 0x40], dl
call fcn.0042a433
test eax, eax
je 0x56c768
call fcn.0042a45a
mov edx, dword [ebp - 0x18]
add edx, 0xc
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.GIT_DIR
mov dword [esp + 4], 0x5cdabd
mov dword [esp], edx
call fcn.0049632d
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00487069
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jns 0x56c7b2
call sub.cygwin1.dll___errno
mov eax, dword [eax]
cmp eax, 2
jne 0x56c7b2
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
mov dword [esp], str.unable_to_find_remote_helper_for__s
call fcn.0056c3ba
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004b54c7
cmp dword [ebp - 0x1c], 0
je 0x56c7db
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x93
mov dword [esp], str.transport_helper.c
call fcn.004a1237
mov dword [esp], eax
call sub.cygwin1.dll_exit
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
movzx edx, byte [eax + 0xd]
and edx, 0xfffffffb
mov byte [eax + 0xd], dl
mov eax, dword [ebp - 0x14]
add eax, 0x18
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004720f4
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], eax
call sub.cygwin1.dll_dup
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jns 0x56c832
mov dword [esp], str.cant_dup_helper_output_fd
call fcn.0056c3ba
mov dword [esp], eax
call fcn.004b5614
mov dword [esp + 4], 0x5cdb18
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.004baffd
mov edx, dword [ebp - 0x14]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x30]
mov dword [esp + 4], str.capabilities_n
mov dword [esp], eax
call fcn.0056c568
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.0056c54b
test eax, eax
je 0x56c8a2
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0xaa
mov dword [esp], str.transport_helper.c
call fcn.004a1237
mov dword [esp], eax
call sub.cygwin1.dll_exit
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test al, al
jne 0x56c8bf
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x56cbba
jmp 0x56cbf8
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
cmp al, 0x2a
jne 0x56c8db
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 1
jmp 0x56c8e1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov eax, dword [0x62e1ac]
test eax, eax
je 0x56c909
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], str.Debug:_Got_cap__s_n
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp + 4], str.fetch
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x56c932
mov eax, dword [ebp - 0x14]
movzx edx, byte [eax + 0xc]
or edx, 1
mov byte [eax + 0xc], dl
jmp 0x56c861
mov dword [esp + 4], 0x5cdb41
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x56c95b
mov eax, dword [ebp - 0x14]
movzx edx, byte [eax + 0xc]
or edx, 0x10
mov byte [eax + 0xc], dl
jmp 0x56c861
mov dword [esp + 4], 0x5cdb48
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x56c984
mov eax, dword [ebp - 0x14]
movzx edx, byte [eax + 0xc]
or edx, 0x20
mov byte [eax + 0xc], dl
jmp 0x56c861
mov dword [esp + 4], str.import
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x56c9ad
mov eax, dword [ebp - 0x14]
movzx edx, byte [eax + 0xc]
or edx, 2
mov byte [eax + 0xc], dl
jmp 0x56c861
mov dword [esp + 4], str.bidi_import
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x56c9d6
mov eax, dword [ebp - 0x14]
movzx edx, byte [eax + 0xc]
or edx, 4
mov byte [eax + 0xc], dl
jmp 0x56c861
mov dword [esp + 4], str.export
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x56c9ff
mov eax, dword [ebp - 0x14]
movzx edx, byte [eax + 0xc]
or edx, 8
mov byte [eax + 0xc], dl
jmp 0x56c861
mov dword [esp + 4], str.check_connectivity
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x56ca28
mov eax, dword [ebp - 0x14]
movzx edx, byte [eax + 0xd]
or edx, 2
mov byte [eax + 0xd], dl
jmp 0x56c861
lea eax, [ebp - 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], str.refspec
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0056c196
test eax, eax
je 0x56ca60
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
add edx, 0x18
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.004722c0
jmp 0x56c861
mov dword [esp + 4], str.connect
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x56ca89
mov eax, dword [ebp - 0x14]
movzx edx, byte [eax + 0xc]
or edx, 0x40
mov byte [eax + 0xc], dl
jmp 0x56c861
mov dword [esp + 4], str.stateless_connect
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x56cab2
mov eax, dword [ebp - 0x14]
movzx edx, byte [eax + 0xc]
or edx, 0xffffff80
mov byte [eax + 0xc], dl
jmp 0x56c861
mov dword [esp + 4], str.signed_tags
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x56cadb
mov eax, dword [ebp - 0x14]
movzx edx, byte [eax + 0xd]
or edx, 1
mov byte [eax + 0xd], dl
jmp 0x56c861
lea eax, [ebp - 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], str.export_marks
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0056c196
test eax, eax
je 0x56cb0f
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.004ba79d
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
jmp 0x56c861
lea eax, [ebp - 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], str.import_marks
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0056c196
test eax, eax
je 0x56cb43
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.004ba79d
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x14], eax
jmp 0x56c861
mov dword [esp + 4], str.no_private_update
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.00491b72
test eax, eax
je 0x56cb6c
mov eax, dword [ebp - 0x14]
movzx edx, byte [eax + 0xd]
or edx, 8
mov byte [eax + 0xd], dl
jmp 0x56c861
mov dword [esp + 4], str.object_format
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.00491b72
test eax, eax
je 0x56cb95
mov eax, dword [ebp - 0x14]
movzx edx, byte [eax + 0xd]
or edx, 0x10
mov byte [eax + 0xd], dl
jmp 0x56c861
cmp dword [ebp - 0x10], 0
je 0x56c861
mov dword [esp], str.unknown_mandatory_capability__s__this_remote_helper_probably_needs_newer_version_of_Git
call fcn.0056c3ba
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004b54c7
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0xc]
and eax, 2
test al, al
jne 0x56cbe4
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0xc]
and eax, 4
test al, al
jne 0x56cbe4
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0xc]
and eax, 8
test al, al
je 0x56cbf8
mov dword [esp], str.this_remote_helper_should_implement_refspec_capability
call fcn.0056c3ba
mov dword [esp], eax
call fcn.004b57fa
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.00491cd8
mov eax, dword [0x62e1ac]
test eax, eax
je 0x56cc34
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1e
mov dword [esp + 4], 1
mov dword [esp], str.Debug:_Capabilities_complete._n
call sub.cygwin1.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0056d0c5
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov ebx, dword [ebp - 4]
leave
ret