Function at 0x10028040
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.10175310
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.10175310
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 0x10028159
push 0x101d8a20
push str.invalid_argument
push 0x101d8a38
push 3
call fcn.10028e40
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x1002817f
push 0x101db9bc
push str.invalid_argument
push 0x101d8a38
push 3
call fcn.10028e40
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0
jne 0x100281a7
push str.local_path
push str.invalid_argument
push 0x101d8a38
push 3
call fcn.10028e40
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 0x100281c0
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 0x100281ec
push str.git_clone_options
push ecx
push str.invalid_version__d_on__s
push 3
call fcn.10028e40
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.10041330
test eax, eax
jne 0x10028227
cmp dword [ebp + 0x10], eax
jne 0x10028227
mov ecx, esi
call fcn.10030d00
test al, al
jne 0x10028227
push esi
push str._s_exists_and_is_not_an_empty_directory
push 3
call fcn.10028e40
add esp, 0xc
mov eax, 0xfffffffc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor edx, edx
mov ecx, esi
call fcn.10041330
push dword [esp + 0x160]
mov ecx, dword [esp + 0x160]
neg eax
push dword [esp + 0x154]
sbb eax, eax
mov esi, 0x10027ca0
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 [0x101a64ac]
call esi
add esp, 0x10
test eax, eax
js 0x10028c4d
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x88]
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.10027ce0
mov edi, eax
add esp, 8
test edi, edi
jne 0x10028927
cmp dword [esp + 0x154], 2
mov esi, 0x102025ed
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
je 0x10028765
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.10030940
test eax, eax
jle 0x100282f1
mov edx, edi
lea ecx, [esp + 0x5c]
call fcn.100309c0
mov esi, dword [esp + 0x5c]
test eax, eax
jns 0x100282e5
mov edi, 0xff
jmp 0x1002831f
cmp dword [esp + 0x154], 0
mov edi, esi
je 0x1002831d
lea edx, [esp + 0x170]
mov ecx, edi
call fcn.10040f60
test eax, eax
js 0x1002831d
mov eax, dword [esp + 0x176]
and eax, 0xf000
cmp eax, 0x4000
jne 0x1002831d
mov edi, 1
jmp 0x1002831f
xor edi, edi
cmp dword [esp + 0x60], 0
jbe 0x10028346
test esi, esi
je 0x10028346
cmp esi, 0x102025ec
je 0x10028346
push esi
mov esi, dword [fcn.10033600]
mov ecx, esi
call dword [0x101a64ac]
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], 0x102025ed
mov dword [esp + 0x1c], eax
cmp edi, 1
jne 0x1002874d
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 0x44], 0x102025ed
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0x102025ed
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x20], 0x102025ed
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x102025ed
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
test eax, eax
jne 0x10028405
push str.repo
push str.invalid_argument
push 0x101d8a38
push 3
call fcn.10028e40
add esp, 0x10
or edi, 0xffffffff
jmp 0x10028913
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x1002842e
push str.remote
push str.invalid_argument
push 0x101d8a38
push 3
call fcn.10028e40
add esp, 0x10
or edi, 0xffffffff
jmp 0x10028913
push eax
call sym.user32.dll_git_repository_is_empty
add esp, 4
test eax, eax
jne 0x10028452
push str.the_repository_is_not_empty
push 3
call fcn.10028e40
add esp, 8
or edi, 0xffffffff
jmp 0x10028913
mov edi, dword [esi + 4]
mov ecx, edi
call fcn.10030940
test eax, eax
jle 0x1002846d
mov edx, edi
lea ecx, [esp + 0x20]
call fcn.100309c0
jmp 0x10028492
test edi, edi
je 0x10028481
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10028476
sub ecx, edx
jmp 0x10028483
xor ecx, ecx
push ecx
mov edx, edi
lea ecx, [esp + 0x24]
call fcn.1002a660
add esp, 4
mov edi, eax
test edi, edi
js 0x10028913
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 0x100284fe
cmp dword [esp + 0x24], 0
jbe 0x100284e1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100284e1
cmp eax, 0x102025ec
je 0x100284e1
mov esi, dword [fcn.10033600]
mov ecx, esi
push eax
call dword [0x101a64ac]
call esi
add esp, 4
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0x102025ed
jmp 0x10028913
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x44]
push 4
mov edx, edi
call fcn.1000d810
add esp, 4
test eax, eax
js 0x10028631
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x50]
push 4
call fcn.1000d810
add esp, 4
test eax, eax
js 0x10028631
test edi, edi
jne 0x10028551
push str.repo
push str.invalid_argument
push 0x101d8a38
push 3
call fcn.10028e40
add esp, 0x10
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
push 0x1ff
push 0
call fcn.1003b090
mov edi, eax
add esp, 8
test edi, edi
jns 0x1002859a
cmp dword [esp + 0x1c], 0
je 0x10028634
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
push 0x1ff
push 0
call fcn.1003b090
mov edi, eax
add esp, 8
test edi, edi
js 0x10028634
push dword [esi + 4]
lea eax, [esp + 0x30]
push str.clone:_from__s
push eax
call fcn.1002ae20
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 0x10028634
mov eax, dword [esp + 0x158]
mov edx, esi
mov esi, dword [esp + 0xc]
mov ecx, esi
push dword [esp + 0x2c]
test eax, eax
je 0x100285ee
push eax
call fcn.10027a80
add esp, 8
jmp 0x100285f6
call fcn.10027860
add esp, 4
mov edi, eax
test edi, edi
jne 0x10028634
test dword [esi + 0x60], 1
jne 0x10028634
cmp dword [esp + 0x90], eax
je 0x10028634
push esi
call sym.user32.dll_git_repository_head_unborn
add esp, 4
test eax, eax
jne 0x10028634
lea eax, [esp + 0x8c]
push eax
push edi
push esi
call sym.user32.dll_git_checkout_tree
add esp, 0xc
mov edi, eax
jmp 0x10028634
or edi, 0xffffffff
cmp dword [esp + 0x30], 0
jbe 0x1002865e
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1002865e
cmp eax, 0x102025ec
je 0x1002865e
mov esi, dword [fcn.10033600]
mov ecx, esi
push eax
call dword [0x101a64ac]
call esi
add esp, 4
cmp dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], 0x102025ed
jbe 0x100286a0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100286a0
cmp eax, 0x102025ec
je 0x100286a0
mov esi, dword [fcn.10033600]
mov ecx, esi
push eax
call dword [0x101a64ac]
call esi
add esp, 4
cmp dword [esp + 0x48], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0x102025ed
jbe 0x100286e2
mov eax, dword [esp + 0x44]
test eax, eax
je 0x100286e2
cmp eax, 0x102025ec
je 0x100286e2
mov esi, dword [fcn.10033600]
mov ecx, esi
push eax
call dword [0x101a64ac]
call esi
add esp, 4
cmp dword [esp + 0x54], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0x102025ed
jbe 0x10028724
mov eax, dword [esp + 0x50]
test eax, eax
je 0x10028724
cmp eax, 0x102025ec
je 0x10028724
mov esi, dword [fcn.10033600]
mov ecx, esi
push eax
call dword [0x101a64ac]
call esi
add esp, 4
push dword [esp + 0x14]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 0x102025ed
call sym.user32.dll_git_repository_free
add esp, 4
jmp 0x10028913
test edi, edi
je 0x10028765
push dword [esp + 0x10]
or edi, 0xffffffff
call sym.user32.dll_git_remote_free
add esp, 4
jmp 0x10028927
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], 0x102025ed
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
test eax, eax
je 0x100283e4
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x1002879f
push str._remote
jmp 0x100283e9
push eax
call sym.user32.dll_git_repository_is_empty
add esp, 4
test eax, eax
jne 0x100287c3
push str.the_repository_is_not_empty
push 3
call fcn.10028e40
add esp, 8
or edi, 0xffffffff
jmp 0x10028913
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 0x10028913
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 0x1002882b
push str.remote
push str.invalid_argument
push 0x101d8a38
push 3
call fcn.10028e40
add esp, 0x10
xor eax, eax
jmp 0x1002882e
mov eax, dword [esi + 4]
push eax
lea eax, [esp + 0x3c]
push str.clone:_from__s
push eax
call fcn.1002ae20
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 0x100288c8
mov ecx, dword [esp + 0x158]
mov edx, esi
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
push eax
test ecx, ecx
je 0x10028881
push ecx
mov ecx, esi
call fcn.10027a80
add esp, 8
jmp 0x1002888b
mov ecx, esi
call fcn.10027860
add esp, 4
mov edi, eax
test edi, edi
jne 0x100288c4
test dword [esi + 0x60], 1
jne 0x100288c4
cmp dword [esp + 0x90], eax
je 0x100288c4
push esi
call sym.user32.dll_git_repository_head_unborn
add esp, 4
test eax, eax
jne 0x100288c4
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 0x100288fb
mov eax, dword [esp + 0x38]
test eax, eax
je 0x100288fb
cmp eax, 0x102025ec
je 0x100288fb
mov esi, dword [fcn.10033600]
mov ecx, esi
push eax
call dword [0x101a64ac]
call esi
add esp, 4
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], 0x102025ed
push dword [esp + 0x10]
call sym.user32.dll_git_remote_free
add esp, 4
test edi, edi
je 0x10028c41
xorps xmm0, xmm0
lea ecx, [esp + 0x70]
mov edx, edi
movaps xmmword [esp + 0x70], xmm0
call fcn.100291a0
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], esi
test esi, esi
je 0x10028c1f
mov ecx, dword [esi + 0xa8]
call fcn.1004abb0
mov ecx, dword [0x102004dc]
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 0x10028984
call dword [0x101a64ac]
call dword [esp + 0x20]
jmp 0x1002898a
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0xc]
call fcn.100547f0
mov eax, dword [esp + 0xc]
mov ecx, dword [0x102004d4]
add eax, 4
mov dword [esp + 0x1c], ecx
push eax
test ecx, ecx
je 0x100289b5
call dword [0x101a64ac]
call dword [esp + 0x20]
jmp 0x100289bb
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
lea eax, [esi + 0x30]
xchg dword [eax], ecx
test ecx, ecx
je 0x100289cb
call fcn.10049ee0
xor edx, edx
lea eax, [esi + 8]
xchg dword [eax], edx
test edx, edx
je 0x100289e6
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 [0x101e8710]
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 0x10028a36
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 0x10028a36
cmp dword [edx], 0
jne 0x10028a36
call fcn.10042040
xor edx, edx
xchg dword [esi], edx
test edx, edx
je 0x10028a4e
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 0x10028a76
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 0x10028a76
cmp dword [edx], 0
jne 0x10028a76
call fcn.1003edf0
mov ecx, dword [esp + 0xc]
call fcn.10054990
mov ecx, dword [esi + 0x34]
call fcn.1002f5c0
mov eax, dword [esi + 0x58]
xor ecx, ecx
mov dword [esi + 0x34], 0
mov dword [esp + 0x14], ecx
test eax, eax
je 0x10028b0f
xor edx, edx
mov dword [esp + 0xc], edx
cmp ecx, eax
jae 0x10028afc
mov eax, dword [esi + 0x54]
add eax, edx
mov dword [esp + 0x1c], eax
je 0x10028afc
cmp dword [eax + 4], 0
jbe 0x10028ae8
mov edx, dword [eax]
test edx, edx
je 0x10028ae4
cmp edx, 0x102025ec
je 0x10028ae4
mov esi, dword [fcn.10033600]
mov ecx, esi
push edx
call dword [0x101a64ac]
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], 0x102025ed
mov eax, dword [esi + 0x58]
inc ecx
add edx, 0xc
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edx
cmp ecx, eax
jb 0x10028aa5
push dword [esi + 0x54]
mov esi, dword [fcn.10033600]
mov ecx, esi
call dword [0x101a64ac]
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.10033600]
mov ecx, esi
call dword [0x101a64ac]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, dword [fcn.10033600]
mov ecx, esi
push dword [eax + 0x3c]
call dword [0x101a64ac]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, dword [fcn.10033600]
mov ecx, esi
push dword [eax + 0x40]
call dword [0x101a64ac]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, dword [fcn.10033600]
mov ecx, esi
push dword [eax + 0x44]
call dword [0x101a64ac]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, dword [fcn.10033600]
mov ecx, esi
push dword [eax + 0x48]
call dword [0x101a64ac]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, dword [fcn.10033600]
mov ecx, esi
push dword [eax + 0x4c]
call dword [0x101a64ac]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov esi, dword [fcn.10033600]
mov ecx, esi
push dword [eax + 0x50]
call dword [0x101a64ac]
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 0x10028c00
mov esi, dword [fcn.10033600]
mov ecx, esi
push eax
call dword [0x101a64ac]
call esi
add esp, 4
push dword [esp + 0x68]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [esp + 0x1c], 0
call fcn.1003a870
add esp, 4
lea ecx, [esp + 0x70]
call fcn.10029250
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