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

Disassembly:
sub esp, 0x50
xor eax, eax
mov dword [esp + 0x10], 0
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
mov ebp, 0x102069cd
mov dword [esp + 0x10], eax
push edi
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
test ebx, ebx
jne 0x1004e78c
push str.repo
push str.invalid_argument
push 0x101dc9a8
push 3
call fcn.1002a5a0
add esp, 0x10
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
add esp, 0x50
ret
cmp dword [esp + 0x68], edi
jne 0x1004e7b5
push 0x101df8ac
push str.invalid_argument
push 0x101dc9a8
push 3
call fcn.1002a5a0
add esp, 0x10
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
add esp, 0x50
ret
push esi
mov esi, dword [esp + 0x70]
test esi, esi
jne 0x1004e7e2
push str.path
push str.invalid_argument
push 0x101dc9a8
push 3
call fcn.1002a5a0
add esp, 0x10
or eax, 0xffffffff
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x50
ret
push dword [ebx + 0xa8]
mov edx, ebx
xor ecx, ecx
push esi
call fcn.1004c3e0
add esp, 8
test eax, eax
jns 0x1004f0ff
call sym.user32.dll_git_error_clear
mov eax, dword [ebx + 0x60]
and eax, 1
mov dword [esp + 0x30], eax
je 0x1004e812
xor eax, eax
jmp 0x1004e815
mov eax, dword [ebx + 0x44]
push eax
push esi
call fcn.10041160
add esp, 8
test eax, eax
jne 0x1004e842
cmp dword [esp + 0x30], edi
je 0x1004e82d
xor ecx, ecx
jmp 0x1004e830
mov ecx, dword [ebx + 0x44]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004e833
sub ecx, edx
add esi, ecx
mov dword [esp + 0x70], esi
mov ecx, esi
call fcn.10031d40
test eax, eax
js 0x1004e866
push str.submodule_path_must_be_a_relative_path
push 0x11
call fcn.1002a5a0
add esp, 8
or ebx, 0xffffffff
xor ecx, ecx
jmp 0x1004edd3
mov edx, ebx
mov dword [esp + 0x48], 0x102069cd
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov byte [esp + 0x13], 0
call fcn.1000a410
mov ebx, eax
test ebx, ebx
js 0x1004e960
push esi
push dword [esp + 0x34]
push 0
call sym.user32.dll_git_index_find
mov ebx, eax
add esp, 0xc
cmp ebx, 0xfffffffd
je 0x1004e8c8
test ebx, ebx
jne 0x1004e960
push esi
push str.File__s_already_exists_in_the_index
push 0x11
call fcn.1002a5a0
add esp, 0xc
mov byte [esp + 0x13], 1
jmp 0x1004e960
test esi, esi
je 0x1004e8dc
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004e8d1
sub ecx, edx
jmp 0x1004e8de
xor ecx, ecx
push ecx
mov edx, esi
lea ecx, [esp + 0x4c]
call fcn.1002bd80
mov ebx, eax
add esp, 4
test ebx, ebx
js 0x1004e960
cmp dword [esp + 0x4c], edi
jbe 0x1004e917
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x1004e917
mov eax, dword [esp + 0x48]
cmp byte [ecx + eax - 1], 0x2f
je 0x1004e91b
mov dl, 0x2f
lea ecx, [esp + 0x48]
call fcn.1002be20
mov eax, dword [esp + 0x48]
xor ebx, ebx
cmp eax, 0x102069cc
setne bl
dec ebx
cmp eax, 0x102069cc
je 0x1004e964
push eax
push dword [esp + 0x34]
push 0
call sym.user32.dll_git_index_find_prefix
mov ebx, eax
add esp, 0xc
cmp ebx, 0xfffffffd
je 0x1004e95e
test ebx, ebx
jne 0x1004e960
push esi
push str.Directory__s_already_exists_in_the_index
push 0x11
call fcn.1002a5a0
add esp, 0xc
mov byte [esp + 0x13], 1
jmp 0x1004e960
xor ebx, ebx
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x4c], edi
jbe 0x1004e98d
test eax, eax
je 0x1004e98d
cmp eax, 0x102069cc
je 0x1004e98d
mov esi, dword [fcn.10034de0]
mov ecx, esi
push eax
call dword [0x101aa4d8]
call esi
mov esi, dword [esp + 0x74]
add esp, 4
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x48], 0x102069cd
test ebx, ebx
js 0x1004ece7
cmp byte [esp + 0x13], 0
je 0x1004e9b8
mov ebx, 0xfffffffc
xor ecx, ecx
jmp 0x1004edd3
mov ecx, dword [esp + 0x68]
mov edx, 1
call fcn.10054990
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1004e9e8
push str.adding_submodules_to_a_bare_repository_is_not_supported
push 0x11
call fcn.1002a5a0
add esp, 8
or eax, 0xffffffff
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x50
ret
push esi
lea eax, [esp + 0x40]
push str.submodule._s.path
push eax
call fcn.1002c540
mov ebp, dword [esp + 0x48]
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x14], ebp
test ebx, ebx
js 0x1004ece7
mov ecx, dword [esp + 0x20]
mov edx, ebp
push esi
call fcn.1004bda0
mov ebx, eax
add esp, 4
test ebx, ebx
js 0x1004ece7
mov ebx, dword [esp + 0x44]
lea eax, [ebx - 1]
test eax, eax
js 0x1004ea3c
cmp byte [eax + ebp], 0x2e
je 0x1004ea3c
sub eax, 1
jns 0x1004ea31
inc eax
cmp eax, ebx
jae 0x1004ea51
mov ebx, eax
mov dword [esp + 0x44], ebx
cmp eax, dword [esp + 0x40]
jae 0x1004ea51
mov byte [eax + ebp], 0
lea eax, [ebx + 3]
cmp eax, ebx
jb 0x1004edbc
lea edx, [eax + 1]
cmp edx, eax
jb 0x1004edbc
cmp ebp, 0x102069cc
je 0x1004edc7
cmp edx, dword [esp + 0x40]
jbe 0x1004ea9b
push 1
lea ecx, [esp + 0x40]
call fcn.1002bbe0
mov ebp, dword [esp + 0x40]
add esp, 4
mov dword [esp + 0x14], ebp
test eax, eax
js 0x1004edc7
mov ebx, dword [esp + 0x44]
push 3
lea eax, [ebx + ebp]
push 0x101df8ac
push eax
call fcn.101787d0
push dword [esp + 0x78]
mov ecx, dword [esp + 0x30]
add ebx, 3
mov edx, ebp
mov dword [esp + 0x54], ebx
mov byte [ebx + ebp], 0
call fcn.1004bda0
mov ebx, eax
add esp, 0x10
test ebx, ebx
js 0x1004ece7
lea ecx, [esp + 0x3c]
call fcn.1002bd50
mov edx, dword [esp + 0x68]
push esi
call fcn.1000f160
mov ebp, dword [esp + 0x40]
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebp
test ebx, ebx
js 0x1004ece7
test ebp, ebp
jne 0x1004eb1c
push str.path
push str.invalid_argument
push 0x101dc9a8
push 3
call fcn.1002a5a0
add esp, 0x10
jmp 0x1004ec6e
xor edx, edx
mov ecx, ebp
call fcn.10042a40
test eax, eax
jne 0x1004ec6e
mov ebx, dword [esp + 0x44]
mov eax, ebx
mov dword [esp + 0x38], eax
lea ecx, [eax + 4]
cmp ecx, eax
jb 0x1004ec63
lea edx, [ecx + 2]
cmp edx, ecx
jb 0x1004ec63
cmp ebp, 0x102069cc
je 0x1004ec6e
cmp dword [esp + 0x40], edi
jne 0x1004eb77
test ebx, ebx
je 0x1004eb77
push str.cannot_grow_a_borrowed_buffer
push 3
call fcn.1002a5a0
add esp, 8
jmp 0x1004ec6e
mov ecx, dword [esp + 0x40]
test edx, edx
cmove edx, ebx
cmp edx, ecx
jbe 0x1004ebf6
test ecx, ecx
jne 0x1004eb8c
xor esi, esi
jmp 0x1004eb9f
mov ecx, dword [esp + 0x40]
mov esi, ebp
mov eax, ecx
add ecx, ecx
shr eax, 1
sub ecx, eax
cmp ecx, edx
cmovae edx, ecx
lea eax, [edx + 7]
and eax, 0xfffffff8
mov dword [esp + 0x34], eax
cmp eax, ebx
jb 0x1004ec63
push 0x56
push str.C:UsersAdmin_vcpkg_buildtreeslibgit2_src_v1.4.2_3f39c3e750.clean_src_str.c
push eax
push esi
mov esi, dword [fcn.10060f30]
mov ecx, esi
call dword [0x101aa4d8]
call esi
add esp, 0x10
test eax, eax
je 0x1004ec6e
mov ecx, dword [esp + 0x34]
mov ebp, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ebp
cmp ebx, ecx
jb 0x1004ebee
lea ebx, [ecx - 1]
mov dword [esp + 0x44], ebx
mov esi, dword [esp + 0x70]
mov byte [eax + ebx], 0
push str..git
push ebp
mov dl, 0x2f
lea ecx, [esp + 0x44]
call fcn.1002c770
mov ebp, dword [esp + 0x44]
add esp, 8
mov dword [esp + 0x14], ebp
test eax, eax
js 0x1004ec6e
test ebp, ebp
jne 0x1004ec37
push str.path
push str.invalid_argument
push 0x101dc9a8
push 3
call fcn.1002a5a0
add esp, 0x10
xor cl, cl
jmp 0x1004ec45
xor edx, edx
mov ecx, ebp
call fcn.10042a40
test eax, eax
sete cl
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x44]
jae 0x1004ec5d
mov dword [esp + 0x44], eax
cmp eax, dword [esp + 0x40]
jae 0x1004ec5d
mov byte [eax + ebp], 0
test cl, cl
jne 0x1004ecb8
jmp 0x1004ec6e
call fcn.1002d4d0
mov dword [eax], str.Out_of_memory
push dword [esp + 0x6c]
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x58]
call fcn.1004e4b0
mov ebx, eax
add esp, 4
mov eax, dword [esp + 0x54]
mov dword [esp + 0x2c], eax
test ebx, ebx
js 0x1004ece7
push dword [esp + 0x74]
mov esi, dword [esp + 0x74]
lea ecx, [esp + 0x2c]
mov edx, dword [esp + 0x6c]
push eax
push esi
call fcn.1004dea0
mov edi, dword [esp + 0x34]
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x24], edi
test ebx, ebx
js 0x1004ece7
push esi
push dword [esp + 0x6c]
lea eax, [esp + 0x24]
push eax
call sym.user32.dll_git_submodule_lookup
mov ebx, eax
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
test ebx, ebx
js 0x1004ece7
push 0
push eax
call sym.user32.dll_git_submodule_init
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x1004edcf
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1004edd3
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1004edb4
cmp dword [ecx + 4], 0
jne 0x1004edb4
cmp dword [ecx + 0x30], 0
je 0x1004ed20
mov dword [ecx + 0x30], 0
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 8]
je 0x1004ed40
mov esi, dword [fcn.10034de0]
mov ecx, esi
push eax
call dword [0x101aa4d8]
call esi
mov ecx, dword [esp + 0x1c]
add esp, 4
push dword [ecx + 8]
mov esi, dword [fcn.10034de0]
mov ecx, esi
call dword [0x101aa4d8]
call esi
mov eax, dword [esp + 0x1c]
add esp, 4
mov esi, dword [fcn.10034de0]
mov ecx, esi
push dword [eax + 0x10]
call dword [0x101aa4d8]
call esi
mov eax, dword [esp + 0x1c]
add esp, 4
mov esi, dword [fcn.10034de0]
mov ecx, esi
push dword [eax + 0x14]
call dword [0x101aa4d8]
call esi
mov eax, dword [esp + 0x1c]
add esp, 4
mov edx, 0x74
mov ecx, eax
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x1004ed95
mov esi, dword [fcn.10034de0]
mov ecx, esi
push eax
call dword [0x101aa4d8]
call esi
add esp, 4
xor ecx, ecx
mov dword [esp + 0x1c], ecx
jmp 0x1004edd3
call fcn.1002d4d0
mov dword [eax], str.Out_of_memory
or ebx, 0xffffffff
jmp 0x1004eced
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x64]
test eax, eax
je 0x1004eddd
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1004edf6
mov esi, dword [eax + 0x34]
mov ecx, esi
push eax
call dword [0x101aa4d8]
call esi
add esp, 4
test edi, edi
je 0x1004f0a4
mov ecx, dword [edi + 0xa8]
call fcn.1004c260
mov eax, dword [0x102048ac]
lea esi, [edi + 0x14]
mov dword [edi + 0xa8], 0
mov dword [esp + 0x38], eax
push esi
test eax, eax
je 0x1004ee32
mov ecx, eax
call dword [0x101aa4d8]
call dword [esp + 0x3c]
jmp 0x1004ee38
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [edi + 0x10]
call fcn.100564b0
mov eax, dword [0x102048a4]
mov dword [esp + 0x38], eax
push esi
test eax, eax
je 0x1004ee5c
mov ecx, eax
call dword [0x101aa4d8]
call dword [esp + 0x3c]
jmp 0x1004ee62
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
lea eax, [edi + 0x30]
xchg dword [eax], ecx
test ecx, ecx
je 0x1004ee72
call fcn.1004b590
xor edx, edx
lea eax, [edi + 8]
xchg dword [eax], edx
test edx, edx
je 0x1004ee8d
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 [0x101ebf60]
lea eax, [edi + 0xc]
movups xmmword [edi + 0x6c], xmm0
xor ecx, ecx
movups xmmword [edi + 0x7c], xmm0
movups xmmword [edi + 0x8c], xmm0
movq qword [edi + 0x9c], xmm0
mov dword [edi + 0xa4], 0xffffffff
xchg dword [eax], ecx
test ecx, ecx
je 0x1004eee1
lea edx, [ecx + 4]
xor eax, eax
xchg dword [edx], eax
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1004eee4
cmp dword [edx], 0
jne 0x1004eee4
call fcn.10043750
jmp 0x1004eee4
or esi, 0xffffffff
xor edx, edx
xchg dword [edi], edx
test edx, edx
je 0x1004eefc
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, [edi + 4]
xchg dword [eax], ecx
test ecx, ecx
je 0x1004ef21
lea edx, [ecx + 4]
xor eax, eax
xchg dword [edx], eax
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x1004ef21
cmp dword [edx], 0
jne 0x1004ef21
call fcn.10040540
lea ecx, [edi + 0x10]
call fcn.10056650
mov ecx, dword [edi + 0x34]
call fcn.10030d80
mov ecx, dword [edi + 0x58]
xor eax, eax
mov dword [edi + 0x34], 0
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x1004efb9
mov ebp, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0x18], edx
cmp eax, ecx
jae 0x1004ef9e
mov edi, dword [ebp + 0x54]
add edi, edx
je 0x1004ef9e
cmp dword [edi + 4], 0
jbe 0x1004ef8a
mov ecx, dword [edi]
test ecx, ecx
je 0x1004ef8a
cmp ecx, 0x102069cc
je 0x1004ef8a
mov esi, dword [fcn.10034de0]
push ecx
mov ecx, esi
call dword [0x101aa4d8]
call esi
mov eax, dword [esp + 0x24]
add esp, 4
mov edx, dword [esp + 0x18]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi], 0x102069cd
mov ecx, dword [ebp + 0x58]
inc eax
add edx, 0xc
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
cmp eax, ecx
jb 0x1004ef53
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
push dword [edi + 0x54]
mov esi, dword [fcn.10034de0]
mov ecx, esi
call dword [0x101aa4d8]
call esi
add esp, 4
mov dword [edi + 0x5c], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x54], 0
mov esi, dword [fcn.10034de0]
mov ecx, esi
push dword [edi + 0x38]
call dword [0x101aa4d8]
call esi
mov esi, dword [fcn.10034de0]
add esp, 4
mov ecx, esi
push dword [edi + 0x3c]
call dword [0x101aa4d8]
call esi
mov esi, dword [fcn.10034de0]
add esp, 4
mov ecx, esi
push dword [edi + 0x40]
call dword [0x101aa4d8]
call esi
mov esi, dword [fcn.10034de0]
add esp, 4
mov ecx, esi
push dword [edi + 0x44]
call dword [0x101aa4d8]
call esi
mov esi, dword [fcn.10034de0]
add esp, 4
mov ecx, esi
push dword [edi + 0x48]
call dword [0x101aa4d8]
call esi
mov esi, dword [fcn.10034de0]
add esp, 4
mov ecx, esi
push dword [edi + 0x4c]
call dword [0x101aa4d8]
call esi
mov esi, dword [fcn.10034de0]
add esp, 4
mov ecx, esi
push dword [edi + 0x50]
call dword [0x101aa4d8]
call esi
add esp, 4
mov ecx, 0xac
mov eax, edi
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x1004f085
mov esi, dword [fcn.10034de0]
mov ecx, esi
push edi
call dword [0x101aa4d8]
call esi
add esp, 4
cmp dword [esp + 0x58], 0
jbe 0x1004f0ce
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1004f0ce
cmp eax, 0x102069cc
je 0x1004f0ce
mov esi, dword [fcn.10034de0]
mov ecx, esi
push eax
call dword [0x101aa4d8]
call esi
add esp, 4
cmp dword [esp + 0x40], 0
jbe 0x1004f0f5
test ebp, ebp
je 0x1004f0f5
cmp ebp, 0x102069cc
je 0x1004f0f5
mov esi, dword [fcn.10034de0]
mov ecx, esi
push ebp
call dword [0x101aa4d8]
call esi
add esp, 4
pop esi
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x50
ret
push esi
push str.attempt_to_add_submodule__s_that_already_exists
push 0x11
call fcn.1002a5a0
add esp, 0xc
mov eax, 0xfffffffc
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x50
ret