Function at 0x10027940
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.10174ed0
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.10174ed0
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 0x10027a59
push 0x101d76e0
push str.invalid_argument
push 0x101d76f8
push 3
call fcn.10028740
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x10027a7f
push 0x101da67c
push str.invalid_argument
push 0x101d76f8
push 3
call fcn.10028740
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0
jne 0x10027aa7
push str.local_path
push str.invalid_argument
push 0x101d76f8
push 3
call fcn.10028740
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 0x10027ac0
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 0x10027aec
push str.git_clone_options
push ecx
push str.invalid_version__d_on__s
push 3
call fcn.10028740
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.10040c20
test eax, eax
jne 0x10027b27
cmp dword [ebp + 0x10], eax
jne 0x10027b27
mov ecx, esi
call fcn.10030600
test al, al
jne 0x10027b27
push esi
push str._s_exists_and_is_not_an_empty_directory
push 3
call fcn.10028740
add esp, 0xc
mov eax, 0xfffffffc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor edx, edx
mov ecx, esi
call fcn.10040c20
push dword [esp + 0x160]
mov ecx, dword [esp + 0x160]
neg eax
push dword [esp + 0x154]
sbb eax, eax
mov esi, 0x100275a0
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 [0x101a54ac]
call esi
add esp, 0x10
test eax, eax
js 0x1002854d
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x88]
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.100275e0
mov edi, eax
add esp, 8
test edi, edi
jne 0x10028227
cmp dword [esp + 0x154], 2
mov esi, 0x1020156d
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
je 0x10028065
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.10030240
test eax, eax
jle 0x10027bf1
mov edx, edi
lea ecx, [esp + 0x5c]
call fcn.100302c0
mov esi, dword [esp + 0x5c]
test eax, eax
jns 0x10027be5
mov edi, 0xff
jmp 0x10027c1f
cmp dword [esp + 0x154], 0
mov edi, esi
je 0x10027c1d
lea edx, [esp + 0x170]
mov ecx, edi
call fcn.10040850
test eax, eax
js 0x10027c1d
mov eax, dword [esp + 0x176]
and eax, 0xf000
cmp eax, 0x4000
jne 0x10027c1d
mov edi, 1
jmp 0x10027c1f
xor edi, edi
cmp dword [esp + 0x60], 0
jbe 0x10027c46
test esi, esi
je 0x10027c46
cmp esi, 0x1020156c
je 0x10027c46
push esi
mov esi, dword [fcn.10032f00]
mov ecx, esi
call dword [0x101a54ac]
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], 0x1020156d
mov dword [esp + 0x1c], eax
cmp edi, 1
jne 0x1002804d
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 0x44], 0x1020156d
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0x1020156d
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x20], 0x1020156d
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x1020156d
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
test eax, eax
jne 0x10027d05
push str.repo
push str.invalid_argument
push 0x101d76f8
push 3
call fcn.10028740
add esp, 0x10
or edi, 0xffffffff
jmp 0x10028213
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x10027d2e
push str.remote
push str.invalid_argument
push 0x101d76f8
push 3
call fcn.10028740
add esp, 0x10
or edi, 0xffffffff
jmp 0x10028213
push eax
call sym.user32.dll_git_repository_is_empty
add esp, 4
test eax, eax
jne 0x10027d52
push str.the_repository_is_not_empty
push 3
call fcn.10028740
add esp, 8
or edi, 0xffffffff
jmp 0x10028213
mov edi, dword [esi + 4]
mov ecx, edi
call fcn.10030240
test eax, eax
jle 0x10027d6d
mov edx, edi
lea ecx, [esp + 0x20]
call fcn.100302c0
jmp 0x10027d92
test edi, edi
je 0x10027d81
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10027d76
sub ecx, edx
jmp 0x10027d83
xor ecx, ecx
push ecx
mov edx, edi
lea ecx, [esp + 0x24]
call fcn.10029f60
add esp, 4
mov edi, eax
test edi, edi
js 0x10028213
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 0x10027dfe
cmp dword [esp + 0x24], 0
jbe 0x10027de1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10027de1
cmp eax, 0x1020156c
je 0x10027de1
mov esi, dword [fcn.10032f00]
mov ecx, esi
push eax
call dword [0x101a54ac]
call esi
add esp, 4
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0x1020156d
jmp 0x10028213
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x44]
push 4
mov edx, edi
call fcn.1000d110
add esp, 4
test eax, eax
js 0x10027f31
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x50]
push 4
call fcn.1000d110
add esp, 4
test eax, eax
js 0x10027f31
test edi, edi
jne 0x10027e51
push str.repo
push str.invalid_argument
push 0x101d76f8
push 3
call fcn.10028740
add esp, 0x10
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
push 0x1ff
push 0
call fcn.1003a980
mov edi, eax
add esp, 8
test edi, edi
jns 0x10027e9a
cmp dword [esp + 0x1c], 0
je 0x10027f34
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
push 0x1ff
push 0
call fcn.1003a980
mov edi, eax
add esp, 8
test edi, edi
js 0x10027f34
push dword [esi + 4]
lea eax, [esp + 0x30]
push str.clone:_from__s
push eax
call fcn.1002a720
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 0x10027f34
mov eax, dword [esp + 0x158]
mov edx, esi
mov esi, dword [esp + 0xc]
mov ecx, esi
push dword [esp + 0x2c]
test eax, eax
je 0x10027eee
push eax
call fcn.10027380
add esp, 8
jmp 0x10027ef6
call fcn.10027160
add esp, 4
mov edi, eax
test edi, edi
jne 0x10027f34
test dword [esi + 0x60], 1
jne 0x10027f34
cmp dword [esp + 0x90], eax
je 0x10027f34
push esi
call sym.user32.dll_git_repository_head_unborn
add esp, 4
test eax, eax
jne 0x10027f34
lea eax, [esp + 0x8c]
push eax
push edi
push esi
call sym.user32.dll_git_checkout_tree
add esp, 0xc
mov edi, eax
jmp 0x10027f34
or edi, 0xffffffff
cmp dword [esp + 0x30], 0
jbe 0x10027f5e
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10027f5e
cmp eax, 0x1020156c
je 0x10027f5e
mov esi, dword [fcn.10032f00]
mov ecx, esi
push eax
call dword [0x101a54ac]
call esi
add esp, 4
cmp dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], 0x1020156d
jbe 0x10027fa0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10027fa0
cmp eax, 0x1020156c
je 0x10027fa0
mov esi, dword [fcn.10032f00]
mov ecx, esi
push eax
call dword [0x101a54ac]
call esi
add esp, 4
cmp dword [esp + 0x48], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0x1020156d
jbe 0x10027fe2
mov eax, dword [esp + 0x44]
test eax, eax
je 0x10027fe2
cmp eax, 0x1020156c
je 0x10027fe2
mov esi, dword [fcn.10032f00]
mov ecx, esi
push eax
call dword [0x101a54ac]
call esi
add esp, 4
cmp dword [esp + 0x54], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0x1020156d
jbe 0x10028024
mov eax, dword [esp + 0x50]
test eax, eax
je 0x10028024
cmp eax, 0x1020156c
je 0x10028024
mov esi, dword [fcn.10032f00]
mov ecx, esi
push eax
call dword [0x101a54ac]
call esi
add esp, 4
push dword [esp + 0x14]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 0x1020156d
call sym.user32.dll_git_repository_free
add esp, 4
jmp 0x10028213
test edi, edi
je 0x10028065
push dword [esp + 0x10]
or edi, 0xffffffff
call sym.user32.dll_git_remote_free
add esp, 4
jmp 0x10028227
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], 0x1020156d
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
test eax, eax
je 0x10027ce4
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x1002809f
push str._remote
jmp 0x10027ce9
push eax
call sym.user32.dll_git_repository_is_empty
add esp, 4
test eax, eax
jne 0x100280c3
push str.the_repository_is_not_empty
push 3
call fcn.10028740
add esp, 8
or edi, 0xffffffff
jmp 0x10028213
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 0x10028213
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 0x1002812b
push str.remote
push str.invalid_argument
push 0x101d76f8
push 3
call fcn.10028740
add esp, 0x10
xor eax, eax
jmp 0x1002812e
mov eax, dword [esi + 4]
push eax
lea eax, [esp + 0x3c]
push str.clone:_from__s
push eax
call fcn.1002a720
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 0x100281c8
mov ecx, dword [esp + 0x158]
mov edx, esi
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
push eax
test ecx, ecx
je 0x10028181
push ecx
mov ecx, esi
call fcn.10027380
add esp, 8
jmp 0x1002818b
mov ecx, esi
call fcn.10027160
add esp, 4
mov edi, eax
test edi, edi
jne 0x100281c4
test dword [esi + 0x60], 1
jne 0x100281c4
cmp dword [esp + 0x90], eax
je 0x100281c4
push esi
call sym.user32.dll_git_repository_head_unborn
add esp, 4
test eax, eax
jne 0x100281c4
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 0x100281fb
mov eax, dword [esp + 0x38]
test eax, eax
je 0x100281fb
cmp eax, 0x1020156c
je 0x100281fb
mov esi, dword [fcn.10032f00]
mov ecx, esi
push eax
call dword [0x101a54ac]
call esi
add esp, 4
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], 0x1020156d
push dword [esp + 0x10]
call sym.user32.dll_git_remote_free
add esp, 4
test edi, edi
je 0x10028541
xorps xmm0, xmm0
lea ecx, [esp + 0x70]
mov edx, edi
movaps xmmword [esp + 0x70], xmm0
call fcn.10028aa0
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], esi
test esi, esi
je 0x1002851f
mov ecx, dword [esi + 0xa8]
call fcn.1004a470
mov ecx, dword [0x101ff45c]
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 0x10028284
call dword [0x101a54ac]
call dword [esp + 0x20]
jmp 0x1002828a
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0xc]
call fcn.100540b0
mov eax, dword [esp + 0xc]
mov ecx, dword [0x101ff454]
add eax, 4
mov dword [esp + 0x1c], ecx
push eax
test ecx, ecx
je 0x100282b5
call dword [0x101a54ac]
call dword [esp + 0x20]
jmp 0x100282bb
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
lea eax, [esi + 0x30]
xchg dword [eax], ecx
test ecx, ecx
je 0x100282cb
call fcn.100497a0
xor edx, edx
lea eax, [esi + 8]
xchg dword [eax], edx
test edx, edx
je 0x100282e6
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 [0x101e73d0]
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 0x10028336
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 0x10028336
cmp dword [edx], 0
jne 0x10028336
call fcn.10041930
xor edx, edx
xchg dword [esi], edx
test edx, edx
je 0x1002834e
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 0x10028376
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 0x10028376
cmp dword [edx], 0
jne 0x10028376
call fcn.1003e6e0
mov ecx, dword [esp + 0xc]
call fcn.10054250
mov ecx, dword [esi + 0x34]
call fcn.1002eec0
mov eax, dword [esi + 0x58]
xor ecx, ecx
mov dword [esi + 0x34], 0
mov dword [esp + 0x14], ecx
test eax, eax
je 0x1002840f
xor edx, edx
mov dword [esp + 0xc], edx
cmp ecx, eax
jae 0x100283fc
mov eax, dword [esi + 0x54]
add eax, edx
mov dword [esp + 0x1c], eax
je 0x100283fc
cmp dword [eax + 4], 0
jbe 0x100283e8
mov edx, dword [eax]
test edx, edx
je 0x100283e4
cmp edx, 0x1020156c
je 0x100283e4
mov esi, dword [fcn.10032f00]
mov ecx, esi
push edx
call dword [0x101a54ac]
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], 0x1020156d
mov eax, dword [esi + 0x58]
inc ecx
add edx, 0xc
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edx
cmp ecx, eax
jb 0x100283a5
push dword [esi + 0x54]
mov esi, dword [fcn.10032f00]
mov ecx, esi
call dword [0x101a54ac]
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.10032f00]
mov ecx, esi
call dword [0x101a54ac]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, dword [fcn.10032f00]
mov ecx, esi
push dword [eax + 0x3c]
call dword [0x101a54ac]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, dword [fcn.10032f00]
mov ecx, esi
push dword [eax + 0x40]
call dword [0x101a54ac]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, dword [fcn.10032f00]
mov ecx, esi
push dword [eax + 0x44]
call dword [0x101a54ac]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, dword [fcn.10032f00]
mov ecx, esi
push dword [eax + 0x48]
call dword [0x101a54ac]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, dword [fcn.10032f00]
mov ecx, esi
push dword [eax + 0x4c]
call dword [0x101a54ac]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, dword [fcn.10032f00]
mov ecx, esi
push dword [eax + 0x50]
call dword [0x101a54ac]
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 0x10028500
mov esi, dword [fcn.10032f00]
mov ecx, esi
push eax
call dword [0x101a54ac]
call esi
add esp, 4
push dword [esp + 0x68]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [esp + 0x1c], 0
call fcn.1003a160
add esp, 4
lea ecx, [esp + 0x70]
call fcn.10028b50
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