Function at 0x10027490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1d8
push esi
push edi
push 0x4c
lea eax, [esp + 0x98]
mov dword [esp + 0x1c], 0
mov edi, edx
mov dword [esp + 0x8c], 1
mov esi, ecx
mov dword [esp + 0x10], edi
push 0
push eax
mov dword [esp + 0x78], esi
mov dword [esp + 0x98], 1
mov dword [esp + 0x9c], 1
call fcn.10131ea0
add esp, 0xc
mov dword [esp + 0xe0], 1
lea eax, [esp + 0xe8]
mov dword [esp + 0xe4], 1
push 0x38
push 0
push eax
call fcn.10131ea0
xorps xmm0, xmm0
mov dword [esp + 0x12c], 0
add esp, 0xc
mov dword [esp + 0x124], 1
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], 1
mov dword [esp + 0x140], 0
movq qword [esp + 0x144], xmm0
mov dword [esp + 0x14c], 0
movq qword [esp + 0x160], xmm0
mov dword [esp + 0x168], 0
movups xmmword [esp + 0x130], xmm0
movups xmmword [esp + 0x150], xmm0
test esi, esi
jne 0x100275a9
push 0x10186740
push str.invalid_argument
push 0x10186758
push 3
call fcn.10028290
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x100275cf
push 0x101896dc
push str.invalid_argument
push 0x10186758
push 3
call fcn.10028290
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0
jne 0x100275f7
push str.local_path
push str.invalid_argument
push 0x10186758
push 3
call fcn.10028290
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10027610
mov ecx, 0x39
lea edi, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x88]
lea eax, [ecx - 1]
test eax, eax
je 0x1002763c
push str.git_clone_options
push ecx
push str.invalid_version__d_on__s
push 3
call fcn.10028290
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
xor edx, edx
mov ecx, esi
call fcn.10040780
test eax, eax
jne 0x10027677
cmp dword [ebp + 0x10], eax
jne 0x10027677
mov ecx, esi
call fcn.10030150
test al, al
jne 0x10027677
push esi
push str._s_exists_and_is_not_an_empty_directory
push 3
call fcn.10028290
add esp, 0xc
mov eax, 0xfffffffc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor edx, edx
mov ecx, esi
call fcn.10040780
push dword [esp + 0x160]
mov ecx, dword [esp + 0x160]
neg eax
push dword [esp + 0x154]
sbb eax, eax
mov esi, 0x100270f0
push dword [ebp + 8]
and eax, 0xfffffff0
add eax, 0x11
test ecx, ecx
mov dword [esp + 0x74], eax
lea eax, [esp + 0x24]
cmovne esi, ecx
push eax
mov ecx, esi
call dword [0x1015f3cc]
call esi
add esp, 0x10
test eax, eax
js 0x1002809d
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x88]
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.10027130
mov edi, eax
add esp, 8
test edi, edi
jne 0x10027d77
cmp dword [esp + 0x154], 2
mov esi, 0x101b01ed
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
je 0x10027bb5
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.1002fd90
test eax, eax
jle 0x10027741
mov edx, edi
lea ecx, [esp + 0x5c]
call fcn.1002fe10
mov esi, dword [esp + 0x5c]
test eax, eax
jns 0x10027735
mov edi, 0xff
jmp 0x1002776f
cmp dword [esp + 0x154], 0
mov edi, esi
je 0x1002776d
lea edx, [esp + 0x170]
mov ecx, edi
call fcn.100403b0
test eax, eax
js 0x1002776d
mov eax, dword [esp + 0x176]
and eax, 0xf000
cmp eax, 0x4000
jne 0x1002776d
mov edi, 1
jmp 0x1002776f
xor edi, edi
cmp dword [esp + 0x60], 0
jbe 0x10027796
test esi, esi
je 0x10027796
cmp esi, 0x101b01ec
je 0x10027796
push esi
mov esi, dword [fcn.10032a50]
mov ecx, esi
call dword [0x1015f3cc]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 0
cmp dword [esp + 0x154], 3
mov dword [esp + 0x64], 0
setne al
mov dword [esp + 0x5c], 0x101b01ed
mov dword [esp + 0x1c], eax
cmp edi, 1
jne 0x10027b9d
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 0x44], 0x101b01ed
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0x101b01ed
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x20], 0x101b01ed
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x101b01ed
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
test eax, eax
jne 0x10027855
push str.repo
push str.invalid_argument
push 0x10186758
push 3
call fcn.10028290
add esp, 0x10
or edi, 0xffffffff
jmp 0x10027d63
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x1002787e
push str.remote
push str.invalid_argument
push 0x10186758
push 3
call fcn.10028290
add esp, 0x10
or edi, 0xffffffff
jmp 0x10027d63
push eax
call sym.user32.dll_git_repository_is_empty
add esp, 4
test eax, eax
jne 0x100278a2
push str.the_repository_is_not_empty
push 3
call fcn.10028290
add esp, 8
or edi, 0xffffffff
jmp 0x10027d63
mov edi, dword [esi + 4]
mov ecx, edi
call fcn.1002fd90
test eax, eax
jle 0x100278bd
mov edx, edi
lea ecx, [esp + 0x20]
call fcn.1002fe10
jmp 0x100278e2
test edi, edi
je 0x100278d1
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100278c6
sub ecx, edx
jmp 0x100278d3
xor ecx, ecx
push ecx
mov edx, edi
lea ecx, [esp + 0x24]
call fcn.10029ab0
add esp, 4
mov edi, eax
test edi, edi
js 0x10027d63
push 0
push 1
push dword [esp + 0x28]
lea eax, [esp + 0x20]
push eax
call sym.user32.dll_git_repository_open_ext
mov edi, eax
add esp, 0x10
test edi, edi
jns 0x1002794e
cmp dword [esp + 0x24], 0
jbe 0x10027931
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10027931
cmp eax, 0x101b01ec
je 0x10027931
mov esi, dword [fcn.10032a50]
mov ecx, esi
push eax
call dword [0x1015f3cc]
call esi
add esp, 4
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0x101b01ed
jmp 0x10027d63
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x44]
push 4
mov edx, edi
call fcn.1000cc70
add esp, 4
test eax, eax
js 0x10027a81
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x50]
push 4
call fcn.1000cc70
add esp, 4
test eax, eax
js 0x10027a81
test edi, edi
jne 0x100279a1
push str.repo
push str.invalid_argument
push 0x10186758
push 3
call fcn.10028290
add esp, 0x10
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
push 0x1ff
push 0
call fcn.1003a4d0
mov edi, eax
add esp, 8
test edi, edi
jns 0x100279ea
cmp dword [esp + 0x1c], 0
je 0x10027a84
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
push 0x1ff
push 0
call fcn.1003a4d0
mov edi, eax
add esp, 8
test edi, edi
js 0x10027a84
push dword [esi + 4]
lea eax, [esp + 0x30]
push str.clone:_from__s
push eax
call fcn.1002a270
add esp, 0xc
lea eax, [esp + 0xe0]
push dword [esp + 0x2c]
push eax
push 0
push esi
call sym.user32.dll_git_remote_fetch
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10027a84
mov eax, dword [esp + 0x158]
mov edx, esi
mov esi, dword [esp + 0xc]
mov ecx, esi
push dword [esp + 0x2c]
test eax, eax
je 0x10027a3e
push eax
call fcn.10026ed0
add esp, 8
jmp 0x10027a46
call fcn.10026cb0
add esp, 4
mov edi, eax
test edi, edi
jne 0x10027a84
test dword [esi + 0x60], 1
jne 0x10027a84
cmp dword [esp + 0x90], eax
je 0x10027a84
push esi
call sym.user32.dll_git_repository_head_unborn
add esp, 4
test eax, eax
jne 0x10027a84
lea eax, [esp + 0x8c]
push eax
push edi
push esi
call sym.user32.dll_git_checkout_tree
add esp, 0xc
mov edi, eax
jmp 0x10027a84
or edi, 0xffffffff
cmp dword [esp + 0x30], 0
jbe 0x10027aae
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10027aae
cmp eax, 0x101b01ec
je 0x10027aae
mov esi, dword [fcn.10032a50]
mov ecx, esi
push eax
call dword [0x1015f3cc]
call esi
add esp, 4
cmp dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], 0x101b01ed
jbe 0x10027af0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10027af0
cmp eax, 0x101b01ec
je 0x10027af0
mov esi, dword [fcn.10032a50]
mov ecx, esi
push eax
call dword [0x1015f3cc]
call esi
add esp, 4
cmp dword [esp + 0x48], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0x101b01ed
jbe 0x10027b32
mov eax, dword [esp + 0x44]
test eax, eax
je 0x10027b32
cmp eax, 0x101b01ec
je 0x10027b32
mov esi, dword [fcn.10032a50]
mov ecx, esi
push eax
call dword [0x1015f3cc]
call esi
add esp, 4
cmp dword [esp + 0x54], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0x101b01ed
jbe 0x10027b74
mov eax, dword [esp + 0x50]
test eax, eax
je 0x10027b74
cmp eax, 0x101b01ec
je 0x10027b74
mov esi, dword [fcn.10032a50]
mov ecx, esi
push eax
call dword [0x1015f3cc]
call esi
add esp, 4
push dword [esp + 0x14]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 0x101b01ed
call sym.user32.dll_git_repository_free
add esp, 4
jmp 0x10027d63
test edi, edi
je 0x10027bb5
push dword [esp + 0x10]
or edi, 0xffffffff
call sym.user32.dll_git_remote_free
add esp, 4
jmp 0x10027d77
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], 0x101b01ed
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
test eax, eax
je 0x10027834
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x10027bef
push str._remote
jmp 0x10027839
push eax
call sym.user32.dll_git_repository_is_empty
add esp, 4
test eax, eax
jne 0x10027c13
push str.the_repository_is_not_empty
push 3
call fcn.10028290
add esp, 8
or edi, 0xffffffff
jmp 0x10027d63
lea eax, [esp + 0xc]
push esi
push eax
call sym.user32.dll_git_remote_dup
mov edi, eax
add esp, 8
test edi, edi
js 0x10027d63
mov ecx, 0x1c
lea esi, [esp + 0xe0]
lea edi, [esp + 0x170]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 3
test esi, esi
jne 0x10027c7b
push str.remote
push str.invalid_argument
push 0x10186758
push 3
call fcn.10028290
add esp, 0x10
xor eax, eax
jmp 0x10027c7e
mov eax, dword [esi + 4]
push eax
lea eax, [esp + 0x3c]
push str.clone:_from__s
push eax
call fcn.1002a270
add esp, 0xc
lea eax, [esp + 0x170]
push dword [esp + 0x38]
push eax
push 0
push esi
call sym.user32.dll_git_remote_fetch
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10027d18
mov ecx, dword [esp + 0x158]
mov edx, esi
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
push eax
test ecx, ecx
je 0x10027cd1
push ecx
mov ecx, esi
call fcn.10026ed0
add esp, 8
jmp 0x10027cdb
mov ecx, esi
call fcn.10026cb0
add esp, 4
mov edi, eax
test edi, edi
jne 0x10027d14
test dword [esi + 0x60], 1
jne 0x10027d14
cmp dword [esp + 0x90], eax
je 0x10027d14
push esi
call sym.user32.dll_git_repository_head_unborn
add esp, 4
test eax, eax
jne 0x10027d14
lea eax, [esp + 0x8c]
push eax
push edi
push esi
call sym.user32.dll_git_checkout_tree
add esp, 0xc
mov edi, eax
mov esi, dword [esp + 0xc]
push esi
call sym.user32.dll_git_remote_free
add esp, 4
cmp dword [esp + 0x3c], 0
jbe 0x10027d4b
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10027d4b
cmp eax, 0x101b01ec
je 0x10027d4b
mov esi, dword [fcn.10032a50]
mov ecx, esi
push eax
call dword [0x1015f3cc]
call esi
add esp, 4
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], 0x101b01ed
push dword [esp + 0x10]
call sym.user32.dll_git_remote_free
add esp, 4
test edi, edi
je 0x10028091
xorps xmm0, xmm0
lea ecx, [esp + 0x70]
mov edx, edi
movaps xmmword [esp + 0x70], xmm0
call fcn.100285f0
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], esi
test esi, esi
je 0x1002806f
mov ecx, dword [esi + 0xa8]
call fcn.10049fd0
mov ecx, dword [0x101ae0fc]
lea eax, [esi + 0x10]
mov dword [esp + 0xc], eax
add eax, 4
mov dword [esi + 0xa8], 0
mov dword [esp + 0x1c], ecx
push eax
test ecx, ecx
je 0x10027dd4
call dword [0x1015f3cc]
call dword [esp + 0x20]
jmp 0x10027dda
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0xc]
call fcn.10053c20
mov eax, dword [esp + 0xc]
mov ecx, dword [0x101ae0f4]
add eax, 4
mov dword [esp + 0x1c], ecx
push eax
test ecx, ecx
je 0x10027e05
call dword [0x1015f3cc]
call dword [esp + 0x20]
jmp 0x10027e0b
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
lea eax, [esi + 0x30]
xchg dword [eax], ecx
test ecx, ecx
je 0x10027e1b
call fcn.10049300
xor edx, edx
lea eax, [esi + 8]
xchg dword [eax], edx
test edx, edx
je 0x10027e36
xor ecx, ecx
lea eax, [edx + 4]
xchg dword [eax], ecx
push edx
call sym.user32.dll_git_config_free
add esp, 4
movaps xmm0, xmmword [0x10196420]
lea eax, [esi + 0xc]
movups xmmword [esi + 0x6c], xmm0
xor ecx, ecx
movups xmmword [esi + 0x7c], xmm0
movups xmmword [esi + 0x8c], xmm0
movq qword [esi + 0x9c], xmm0
mov dword [esi + 0xa4], 0xffffffff
xchg dword [eax], ecx
test ecx, ecx
je 0x10027e86
lea edx, [ecx + 4]
xor eax, eax
xchg dword [edx], eax
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10027e86
cmp dword [edx], 0
jne 0x10027e86
call fcn.10041490
xor edx, edx
xchg dword [esi], edx
test edx, edx
je 0x10027e9e
xor ecx, ecx
lea eax, [edx + 4]
xchg dword [eax], ecx
push edx
call sym.user32.dll_git_odb_free
add esp, 4
xor ecx, ecx
lea eax, [esi + 4]
xchg dword [eax], ecx
test ecx, ecx
je 0x10027ec6
lea edx, [ecx + 4]
xor eax, eax
xchg dword [edx], eax
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10027ec6
cmp dword [edx], 0
jne 0x10027ec6
call fcn.1003e240
mov ecx, dword [esp + 0xc]
call fcn.10053dc0
mov ecx, dword [esi + 0x34]
call fcn.1002ea10
mov eax, dword [esi + 0x58]
xor ecx, ecx
mov dword [esi + 0x34], 0
mov dword [esp + 0x14], ecx
test eax, eax
je 0x10027f5f
xor edx, edx
mov dword [esp + 0xc], edx
cmp ecx, eax
jae 0x10027f4c
mov eax, dword [esi + 0x54]
add eax, edx
mov dword [esp + 0x1c], eax
je 0x10027f4c
cmp dword [eax + 4], 0
jbe 0x10027f38
mov edx, dword [eax]
test edx, edx
je 0x10027f34
cmp edx, 0x101b01ec
je 0x10027f34
mov esi, dword [fcn.10032a50]
mov ecx, esi
push edx
call dword [0x1015f3cc]
call esi
mov eax, dword [esp + 0x20]
add esp, 4
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax], 0x101b01ed
mov eax, dword [esi + 0x58]
inc ecx
add edx, 0xc
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edx
cmp ecx, eax
jb 0x10027ef5
push dword [esi + 0x54]
mov esi, dword [fcn.10032a50]
mov ecx, esi
call dword [0x1015f3cc]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
push dword [eax + 0x38]
mov dword [eax + 0x5c], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x54], 0
mov esi, dword [fcn.10032a50]
mov ecx, esi
call dword [0x1015f3cc]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, dword [fcn.10032a50]
mov ecx, esi
push dword [eax + 0x3c]
call dword [0x1015f3cc]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, dword [fcn.10032a50]
mov ecx, esi
push dword [eax + 0x40]
call dword [0x1015f3cc]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, dword [fcn.10032a50]
mov ecx, esi
push dword [eax + 0x44]
call dword [0x1015f3cc]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, dword [fcn.10032a50]
mov ecx, esi
push dword [eax + 0x48]
call dword [0x1015f3cc]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, dword [fcn.10032a50]
mov ecx, esi
push dword [eax + 0x4c]
call dword [0x1015f3cc]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, dword [fcn.10032a50]
mov ecx, esi
push dword [eax + 0x50]
call dword [0x1015f3cc]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov edx, 0xac
mov ecx, eax
nop dword [eax + eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x10028050
mov esi, dword [fcn.10032a50]
mov ecx, esi
push eax
call dword [0x1015f3cc]
call esi
add esp, 4
push dword [esp + 0x68]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [esp + 0x1c], 0
call fcn.10039cb0
add esp, 4
lea ecx, [esp + 0x70]
call fcn.100286a0
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret