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

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebx, ecx
mov dword [esp + 0x30], 1
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
push esi
push edi
mov dword [esp + 0x40], 0xffffffff
lea ebp, [ebx + 4]
mov dword [esp + 0x44], 0
xor ecx, ecx
mov dword [esp + 0x48], 0
xor eax, eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 3
movups xmmword [esp + 0x5c], xmm0
mov dword [esp + 0x74], 0
movq qword [esp + 0x6c], xmm0
mov dword [esp + 0x14], 0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x34], 0
lock cmpxchg dword [ebp], ecx
test eax, eax
je 0x10042a84
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [ebp], ecx
test eax, eax
jne 0x100428d0
push str.repo
push str.invalid_argument
push 0x101d76f8
push 3
call fcn.10028740
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
test byte [eax + 0x60], 1
jne 0x10042a84
cmp dword [eax + 0x44], 0
je 0x10042a84
or dword [esp + 0x3c], 0x1240
xor ecx, ecx
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], esi
cmp dword [ebx + 0x50], ecx
jbe 0x100429d2
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x18], edx
nop
mov eax, dword [ebx + 0x4c]
mov ecx, dword [eax + ecx*4]
test byte [ecx + 0x3e], 4
jne 0x100429bd
mov eax, dword [ecx + 0x18]
and eax, 0xf000
cmp eax, 0xe000
je 0x100429bd
mov esi, dword [ebx + 0x10]
mov eax, esi
or eax, dword [ebx + 0x14]
je 0x100429b9
cmp esi, dword [ecx + 8]
jl 0x1004294c
jg 0x100429b9
mov eax, dword [ebx + 0x18]
cmp eax, dword [ecx + 0xc]
ja 0x100429b9
mov eax, dword [ecx + 0x40]
mov dword [esp + 0x20], eax
cmp edx, ebp
jb 0x100429ab
cmp ebp, 8
jae 0x10042963
mov edi, 8
jmp 0x10042978
cmp ebp, 0xaaaaaaaa
ja 0x10042975
mov edi, ebp
shr edi, 1
add edi, ebp
je 0x100429ab
jmp 0x10042978
or edi, 0xffffffff
mov esi, dword [fcn.1005ed10]
mov ecx, esi
push 0x26
push str.D:DevelopmentMillennium_vendor_vcpkg_buildtreeslibgit2_src_v1.4.2_3f39c3e750.clean_src_vector.c
push 4
push edi
push dword [esp + 0x20]
call dword [0x101a54ac]
call esi
mov edx, dword [esp + 0x2c]
add esp, 0x14
test eax, eax
je 0x100429b9
mov dword [esp + 0x10], eax
mov ebp, edi
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
mov dword [esi + edx*4], eax
inc edx
mov dword [esp + 0x18], edx
jmp 0x100429bd
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, dword [ebx + 0x50]
jb 0x10042910
lea ebp, [ebx + 4]
test edx, edx
je 0x10042a3f
mov dword [esp + 0x48], edx
xor ecx, ecx
mov dword [esp + 0x44], esi
xor eax, eax
lock cmpxchg dword [ebp], ecx
lea ecx, [esp + 0x38]
push ecx
push ebx
push eax
lea eax, [esp + 0x20]
push eax
call sym.user32.dll_git_diff_index_to_workdir
add esp, 0x10
test eax, eax
js 0x10042a86
mov esi, dword [esp + 0x14]
xor edi, edi
cmp dword [esi + 0x7c], edi
jbe 0x10042a43
nop
mov eax, dword [esi + 0x78]
push 0
mov eax, dword [eax + edi*4]
push dword [eax + 0x24]
push ebx
call sym.user32.dll_git_index_get_bypath
add esp, 0xc
test eax, eax
je 0x10042a33
mov dword [eax + 0x24], 0
or dword [ebx + 0x74], 0x10
mov esi, dword [esp + 0x14]
inc edi
cmp edi, dword [esi + 0x7c]
jb 0x10042a10
jmp 0x10042a43
mov esi, dword [esp + 0x14]
test esi, esi
je 0x10042a6d
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x10042a6d
cmp dword [esi + 4], 0
jne 0x10042a6d
push esi
mov esi, dword [esi + 0xb8]
mov ecx, esi
call dword [0x101a54ac]
call esi
add esp, 4
push dword [esp + 0x10]
mov esi, dword [fcn.10032f00]
mov ecx, esi
call dword [0x101a54ac]
call esi
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret