Function at 0x559e35
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x68], 0x62f624
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x74], 0x62f624
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], 0
cmp dword [ebp + 0x14], 0
jne 0x559f4a
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x5a
mov dword [esp + 4], 1
mov dword [esp], 0x5cc4c4
call sub.cygwin1.dll_fwrite
mov eax, 0
jmp 0x55a957
lea eax, [ebp - 0x84]
mov dword [esp + 4], eax
mov dword [esp], str.push.negotiate
call fcn.0041489e
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x559f85
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea edx, [ebp - 0x64]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00559c77
lea eax, [ebp - 0x80]
mov dword [esp + 4], eax
mov dword [esp], str.transfer.advertisesid
call fcn.0041489e
mov dword [esp], str.report_status_v2
call fcn.004182c9
test eax, eax
je 0x559fb1
mov dword [ebp - 0x1c], 2
jmp 0x559fc8
mov dword [esp], str.report_status
call fcn.004182c9
test eax, eax
je 0x559fc8
mov dword [ebp - 0x1c], 1
mov dword [esp], str.delete_refs
call fcn.004182c9
test eax, eax
je 0x559fdf
mov dword [ebp - 0x18], 1
mov dword [esp], str.ofs_delta
call fcn.004182c9
test eax, eax
je 0x559ffc
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 4]
or edx, 0xffffff80
mov byte [eax + 4], dl
mov dword [esp], str.side_band_64k
call fcn.004182c9
test eax, eax
je 0x55a013
mov dword [ebp - 0x20], 1
mov dword [esp], 0x5cc587
call fcn.004182c9
test eax, eax
je 0x55a02a
mov dword [ebp - 0x24], 1
mov dword [esp], str.agent
call fcn.004182c9
test eax, eax
je 0x55a041
mov dword [ebp - 0x28], 1
mov dword [esp], str.session_id
call fcn.004182c9
test eax, eax
jne 0x55a058
mov dword [ebp - 0x80], 0
mov dword [esp], str.no_thin
call fcn.004182c9
test eax, eax
je 0x55a075
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 4]
and edx, 0xffffffbf
mov byte [eax + 4], dl
mov dword [esp], 0x5cc5a6
call fcn.004182c9
test eax, eax
je 0x55a08c
mov dword [ebp - 0x2c], 1
mov dword [esp], str.push_options
call fcn.004182c9
test eax, eax
je 0x55a0a3
mov dword [ebp - 0x30], 1
mov eax, dword [0x62f280]
mov eax, dword [eax + 0x8c]
mov eax, dword [eax]
lea edx, [ebp - 0x88]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00418197
test eax, eax
jne 0x55a0da
mov dword [esp], str.the_receiving_end_does_not_support_this_repositorys_hash_algorithm
call fcn.00558d96
mov dword [esp], eax
call fcn.004ae00f
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 5]
and eax, 6
test al, al
je 0x55a17e
lea eax, [ebp - 0xe0]
mov dword [esp + 4], eax
mov dword [esp], str.push_cert
call fcn.0041829e
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x55a13a
mov eax, dword [ebp - 0xe0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.00559bc2
mov eax, dword [ebp - 0xe0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.004b4370
mov dword [ebp - 0x3c], eax
jmp 0x55a17e
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 5]
and eax, 6
cmp al, 4
jne 0x55a15c
mov dword [esp], str.the_receiving_end_does_not_support___signed_push
call fcn.00558d96
mov dword [esp], eax
call fcn.004ae00f
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 5]
and eax, 6
cmp al, 2
jne 0x55a17e
mov dword [esp], str.not_sending_a_push_certificate_since_the_receiving_end_does_not_support___signed_push
call fcn.00558d96
mov dword [esp], eax
call fcn.004ae342
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 5]
and eax, 0x10
test al, al
je 0x55a1a6
cmp dword [ebp - 0x2c], 0
jne 0x55a1a6
mov dword [esp], str.the_receiving_end_does_not_support___atomic_push
call fcn.00558d96
mov dword [esp], eax
call fcn.004ae00f
cmp dword [ebp - 0x2c], 0
je 0x55a1c1
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 5]
and eax, 0x10
test al, al
je 0x55a1c1
mov eax, 1
jmp 0x55a1c6
mov eax, 0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
test eax, eax
je 0x55a1ed
cmp dword [ebp - 0x30], 0
jne 0x55a1ed
mov dword [esp], str.the_receiving_end_does_not_support_push_options
call fcn.00558d96
mov dword [esp], eax
call fcn.004ae00f
cmp dword [ebp - 0x30], 0
je 0x55a204
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
test eax, eax
je 0x55a204
mov eax, 1
jmp 0x55a209
mov eax, 0
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x1c], 1
jne 0x55a227
mov dword [esp + 4], str._report_status
lea eax, [ebp - 0x7c]
mov dword [esp], eax
call fcn.00558c50
jmp 0x55a240
cmp dword [ebp - 0x1c], 2
jne 0x55a240
mov dword [esp + 4], str._report_status_v2
lea eax, [ebp - 0x7c]
mov dword [esp], eax
call fcn.00558c50
cmp dword [ebp - 0x20], 0
je 0x55a259
mov dword [esp + 4], str._side_band_64k
lea eax, [ebp - 0x7c]
mov dword [esp], eax
call fcn.00558c50
cmp dword [ebp - 0x24], 0
je 0x55a28e
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 4]
and eax, 2
test al, al
jne 0x55a27b
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 4]
and eax, 8
test al, al
jne 0x55a28e
mov dword [esp + 4], str._quiet
lea eax, [ebp - 0x7c]
mov dword [esp], eax
call fcn.00558c50
cmp dword [ebp - 0x48], 0
je 0x55a2a7
mov dword [esp + 4], str._atomic
lea eax, [ebp - 0x7c]
mov dword [esp], eax
call fcn.00558c50
cmp dword [ebp - 0x4c], 0
je 0x55a2c0
mov dword [esp + 4], str._push_options
lea eax, [ebp - 0x7c]
mov dword [esp], eax
call fcn.00558c50
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x55a2ee
mov eax, dword [0x62f280]
mov eax, dword [eax + 0x8c]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str._object_format_s
lea eax, [ebp - 0x7c]
mov dword [esp], eax
call fcn.0048b459
cmp dword [ebp - 0x28], 0
je 0x55a310
call fcn.004affa4
mov dword [esp + 8], eax
mov dword [esp + 4], str._agent_s
lea eax, [ebp - 0x7c]
mov dword [esp], eax
call fcn.0048b459
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x55a333
call fcn.0049b137
mov dword [esp + 8], eax
mov dword [esp + 4], str._session_id_s
lea eax, [ebp - 0x7c]
mov dword [esp], eax
call fcn.0048b459
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
jmp 0x55a364
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x78]
and eax, 0x10
test al, al
je 0x55a35c
cmp dword [ebp - 0x18], 0
jne 0x55a35c
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x84], 4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x55a33b
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
jmp 0x55a475
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0055985d
cmp eax, 0xfffffffe
je 0x55a399
test eax, eax
jne 0x55a46c
jmp 0x55a425
cmp dword [ebp - 0x48], 0
je 0x55a46c
lea eax, [ebp - 0x70]
mov dword [esp], eax
call fcn.0048a820
lea eax, [ebp - 0x7c]
mov dword [esp], eax
call fcn.0048a820
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 4]
shr al, 4
and eax, 1
movzx eax, al
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call fcn.0056ff22
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x84]
mov edx, dword [ebp - 0x10]
add edx, 0x94
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], str.atomic_push_failed_for_ref__s._status:__d_n
call fcn.004ae2ca
call fcn.00558b64
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 4]
and eax, 4
test al, al
je 0x55a41b
mov eax, 0
jmp 0x55a957
mov eax, 0xffffffff
jmp 0x55a957
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x78]
and eax, 0x10
test al, al
jne 0x55a43a
mov dword [ebp - 0x14], 1
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 5]
and eax, 1
test al, al
jne 0x55a44e
cmp dword [ebp - 0x1c], 0
jne 0x55a45d
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x84], 1
jmp 0x55a46d
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x84], 0xc
jmp 0x55a46d
nop
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x55a375
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 5]
and eax, 1
test al, al
jne 0x55a498
lea eax, [ebp - 0x70]
mov dword [esp], eax
call fcn.0055982e
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 5]
and eax, 1
test al, al
jne 0x55a4db
cmp dword [ebp - 0x3c], 0
je 0x55a4db
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
lea eax, [ebp - 0x70]
mov dword [esp], eax
call fcn.005598f6
mov dword [ebp - 0x34], eax
jmp 0x55a5c2
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 5]
and eax, 1
test al, al
jne 0x55a5c2
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
jmp 0x55a5b8
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0055985d
test eax, eax
js 0x55a5af
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [esp], eax
call fcn.0042bbe2
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x10]
add eax, 0x28
mov dword [esp], eax
call fcn.0042bbe2
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x34], 0
jne 0x55a580
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0x10]
add edx, 0x94
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov eax, dword [ebp - 0x54]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s__s__s_c_s
lea eax, [ebp - 0x70]
mov dword [esp], eax
call fcn.00448560
mov dword [ebp - 0x34], 1
jmp 0x55a5b0
mov eax, dword [ebp - 0x10]
add eax, 0x94
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5cc7ac
lea eax, [ebp - 0x70]
mov dword [esp], eax
call fcn.00448560
jmp 0x55a5b0
nop
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x55a4f8
cmp dword [ebp - 0x4c], 0
je 0x55a621
lea eax, [ebp - 0x70]
mov dword [esp], eax
call fcn.00447fb3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
jmp 0x55a600
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5cc7b5
lea eax, [ebp - 0x70]
mov dword [esp], eax
call fcn.00448560
add dword [ebp - 0x40], 8
cmp dword [ebp - 0x40], 0
je 0x55a621
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
shl eax, 3
add eax, edx
cmp dword [ebp - 0x40], eax
jb 0x55a5e0
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 5]
and eax, 8
test al, al
je 0x55a68c
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 5]
and eax, 1
test al, al
jne 0x55a6b0
cmp dword [ebp - 0x34], 0
jne 0x55a654
mov eax, dword [0x62f280]
mov dword [esp], eax
call fcn.0048509b
test eax, eax
je 0x55a6b0
lea eax, [ebp - 0x70]
mov dword [esp], eax
call fcn.00447fb3
mov eax, dword [ebp - 0x6c]
mov edx, eax
mov eax, dword [ebp - 0x68]
mov dword [esp + 0x10], 0xfff0
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.00487b84
jmp 0x55a6b0
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.004b576f
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.00447e48
lea eax, [ebp - 0x70]
mov dword [esp], eax
call fcn.0048a820
lea eax, [ebp - 0x7c]
mov dword [esp], eax
call fcn.0048a820
cmp dword [ebp - 0x20], 0
je 0x55a73e
cmp dword [ebp - 0x34], 0
je 0x55a73e
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0
lea eax, [ebp - 0xa8]
mov dword [esp], eax
call sub.cygwin1.dll_memset
mov dword [ebp - 0xa8], 0x55979a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x9c], 0xffffffff
mov dword [ebp - 0x8c], 1
lea eax, [ebp - 0xa8]
mov dword [esp], eax
call fcn.0047ffed
test eax, eax
je 0x55a735
mov dword [esp], str.send_pack:_unable_to_fork_off_sideband_demultiplexer
call fcn.004ae00f
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xc], eax
mov dword [esp + 0x10], 6
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0xdc]
mov dword [esp], eax
call fcn.00448f3d
cmp dword [ebp - 0x14], 0
je 0x55a858
cmp dword [ebp - 0x34], 0
je 0x55a858
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x64]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.00558ed6
test eax, eax
jns 0x55a83e
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 5]
and eax, 8
test al, al
je 0x55a7c7
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call sub.cygwin1.dll_close
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.00418957
test eax, eax
je 0x55a7eb
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.cygwin1.dll_shutdown
cmp dword [ebp - 0x1c], 0
je 0x55a806
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
lea eax, [ebp - 0xdc]
mov dword [esp], eax
call fcn.00559335
cmp dword [ebp - 0x20], 0
je 0x55a828
mov eax, dword [ebp - 0x9c]
mov dword [esp], eax
call sub.cygwin1.dll_close
lea eax, [ebp - 0xa8]
mov dword [esp], eax
call fcn.00480264
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [eax], 0xffffffff
mov eax, 0xffffffff
jmp 0x55a957
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 5]
and eax, 8
test al, al
jne 0x55a858
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [eax], 0xffffffff
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 5]
and eax, 8
test al, al
je 0x55a877
cmp dword [ebp - 0x34], 0
je 0x55a877
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.00447e48
cmp dword [ebp - 0x1c], 0
je 0x55a89d
cmp dword [ebp - 0x34], 0
je 0x55a89d
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
lea eax, [ebp - 0xdc]
mov dword [esp], eax
call fcn.00559335
mov dword [ebp - 0x38], eax
jmp 0x55a8a4
mov dword [ebp - 0x38], 0
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 5]
and eax, 8
test al, al
je 0x55a8bd
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.00447e48
cmp dword [ebp - 0x20], 0
je 0x55a901
cmp dword [ebp - 0x34], 0
je 0x55a901
mov eax, dword [ebp - 0x9c]
mov dword [esp], eax
call sub.cygwin1.dll_close
lea eax, [ebp - 0xa8]
mov dword [esp], eax
call fcn.00480264
test eax, eax
je 0x55a901
mov dword [esp], str.error_in_sideband_demultiplexer
call fcn.004ae2ca
call fcn.00558b64
mov dword [ebp - 0x38], 0xffffffff
cmp dword [ebp - 0x38], 0
jns 0x55a90c
mov eax, dword [ebp - 0x38]
jmp 0x55a957
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 4]
and eax, 4
test al, al
je 0x55a921
mov eax, 0
jmp 0x55a957
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
jmp 0x55a94c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x84]
cmp eax, 1
jbe 0x55a943
cmp eax, 0xa
je 0x55a943
mov eax, 0xffffffff
jmp 0x55a957
nop
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x55a929
mov eax, 0
leave
ret