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

Disassembly:
sub esp, 0xa4
push ebx
xor ebx, ebx
mov dword [esp + 0x14], ecx
push ebp
xor eax, eax
mov dword [esp + 0x10], 0
push esi
mov esi, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
xor ebp, ebp
mov dword [esp + 0x18], esi
mov eax, 0x102069cd
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x10], ebx
push edi
test esi, esi
jne 0x10008165
mov edx, str.GIT_DIR
lea ecx, [esp + 0x5c]
call fcn.10041550
mov edi, eax
cmp edi, 0xfffffffd
jne 0x1000818f
call sym.user32.dll_git_error_clear
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], 0x101de3b8
mov dword [esp + 0x30], eax
mov edx, str.GIT_CEILING_DIRECTORIES
lea ecx, [esp + 0xa8]
call fcn.10041550
mov edi, eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x4c], eax
cmp edi, 0xfffffffd
jne 0x100081b3
call sym.user32.dll_git_error_clear
jmp 0x100081bf
test edi, edi
js 0x100081a6
mov esi, dword [esp + 0x5c]
mov ebp, 9
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], esi
jmp 0x10008165
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
jmp 0x10008523
test edi, edi
js 0x10008523
mov dword [esp + 0x14], eax
mov edx, str.GIT_DISCOVERY_ACROSS_FILESYSTEM
lea ecx, [esp + 0x9c]
call fcn.10041550
mov edi, eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x48], eax
cmp edi, 0xfffffffd
jne 0x100081e9
call sym.user32.dll_git_error_clear
jmp 0x10008216
test edi, edi
js 0x10008523
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
push eax
call sym.user32.dll_git_config_parse_bool
mov edi, eax
add esp, 8
test edi, edi
js 0x10008523
cmp dword [esp + 0x38], ebx
je 0x10008216
or ebp, 2
mov edx, str.GIT_INDEX_FILE
lea ecx, [esp + 0x90]
call fcn.10041550
mov edi, eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x44], eax
cmp edi, 0xfffffffd
jne 0x10008240
call sym.user32.dll_git_error_clear
jmp 0x10008268
test edi, edi
js 0x10008523
push eax
lea eax, [esp + 0x38]
push eax
call sym.user32.dll_git_index_open
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
test edi, edi
js 0x10008523
mov edx, str.GIT_NAMESPACE
lea ecx, [esp + 0x50]
call fcn.10041550
mov edi, eax
cmp edi, 0xfffffffd
jne 0x10008284
call sym.user32.dll_git_error_clear
jmp 0x1000828c
test edi, edi
js 0x10008523
mov edx, str.GIT_OBJECT_DIRECTORY
lea ecx, [esp + 0x84]
call fcn.10041550
mov esi, dword [esp + 0x84]
mov edi, eax
mov dword [esp + 0x40], esi
cmp edi, 0xfffffffd
jne 0x100082b6
call sym.user32.dll_git_error_clear
jmp 0x1000832b
test edi, edi
js 0x10008523
test esi, esi
jne 0x100082e0
push str.objects_dir
push str.invalid_argument
push 0x101dc9b8
push 3
call fcn.1002a5a0
add esp, 0x10
jmp 0x10008520
lea eax, [esp + 0x80]
push eax
call sym.user32.dll_git_odb_new
add esp, 4
test eax, eax
js 0x10008520
mov edx, esi
mov esi, dword [esp + 0x80]
push 0
push 0
mov ecx, esi
call fcn.10036970
add esp, 8
test eax, eax
jns 0x10008321
push esi
call sym.user32.dll_git_odb_free
add esp, 4
jmp 0x10008520
mov ebx, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov edx, str.GIT_WORK_TREE
lea ecx, [esp + 0x68]
call fcn.10041550
mov edi, eax
cmp edi, 0xfffffffd
jne 0x1000850d
call sym.user32.dll_git_error_clear
mov edx, str.GIT_COMMON_DIR
lea ecx, [esp + 0x68]
call fcn.10041550
mov edi, eax
cmp edi, 0xfffffffd
jne 0x10008502
call sym.user32.dll_git_error_clear
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push ebp
push dword [esp + 0x24]
push eax
call sym.user32.dll_git_repository_open_ext
mov edi, eax
add esp, 0x10
test edi, edi
js 0x10008523
test ebx, ebx
je 0x100083d0
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x100083ae
push str.repo
push str.invalid_argument
push 0x101dc9b8
push 3
call fcn.1002a5a0
add esp, 0x10
jmp 0x100083d0
mov ecx, esi
lea eax, [ebx + 4]
xchg dword [eax], ecx
lock inc dword [ebx]
mov edx, ebx
xchg dword [esi], edx
test edx, edx
je 0x100083d0
xor ecx, ecx
lea eax, [edx + 4]
xchg dword [eax], ecx
push edx
call sym.user32.dll_git_odb_free
add esp, 4
mov edx, str.GIT_ALTERNATE_OBJECT_DIRECTORIES
lea ecx, [esp + 0x74]
call fcn.10041550
mov esi, dword [esp + 0x74]
mov edi, eax
mov dword [esp + 0x3c], esi
cmp edi, 0xfffffffd
jne 0x100083f6
call sym.user32.dll_git_error_clear
xor edi, edi
jmp 0x10008470
test edi, edi
js 0x10008523
test ebx, ebx
jne 0x10008425
push dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
call sym.user32.dll_git_repository_odb
mov ebx, dword [esp + 0x2c]
mov edi, eax
add esp, 8
mov dword [esp + 0x28], ebx
test edi, edi
js 0x10008523
mov ebp, dword [esp + 0x7c]
mov edx, esi
add ebp, esi
cmp edx, ebp
je 0x10008470
mov al, byte [edx]
mov esi, edx
test al, al
je 0x10008451
nop dword [eax]
cmp al, 0x3b
je 0x1000844e
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10008440
jmp 0x10008451
mov byte [esi], 0
push 0
push 1
mov ecx, ebx
call fcn.10036970
mov edi, eax
add esp, 8
test edi, edi
js 0x10008523
lea edx, [esi + 1]
cmp esi, ebp
jne 0x10008431
cmp dword [esp + 0x58], 0
je 0x10008491
push dword [esp + 0x50]
push dword [esp + 0x1c]
call sym.user32.dll_git_repository_set_namespace
mov edi, eax
add esp, 8
test edi, edi
js 0x10008523
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x100084b4
push str.repo
push str.invalid_argument
push 0x101dc9b8
push 3
call fcn.1002a5a0
add esp, 0x10
jmp 0x100084ef
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x100084c7
mov ecx, edx
lea eax, [ebp + 4]
xchg dword [eax], ecx
lock inc dword [ebp]
mov ecx, ebp
lea eax, [edx + 0xc]
xchg dword [eax], ecx
test ecx, ecx
je 0x100084ef
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 0x100084ef
cmp dword [edx], 0
jne 0x100084ef
call fcn.10043750
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x10008523
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
jmp 0x100087cf
test edi, edi
js 0x10008523
push str.GIT_COMMON_DIR_unimplemented
jmp 0x10008516
test edi, edi
js 0x10008523
push str.GIT_WORK_TREE_unimplemented
push 3
call fcn.1002a5a0
add esp, 8
or edi, 0xffffffff
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x100087cf
mov ecx, dword [ebp + 0xa8]
call fcn.1004c260
mov eax, dword [0x102048ac]
lea esi, [ebp + 0x14]
mov dword [ebp + 0xa8], 0
mov dword [esp + 0x20], eax
push esi
test eax, eax
je 0x10008563
mov ecx, eax
call dword [0x101aa4e4]
call dword [esp + 0x24]
jmp 0x10008569
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp + 0x10]
call fcn.100564b0
mov eax, dword [0x102048a4]
mov dword [esp + 0x20], eax
push esi
test eax, eax
je 0x1000858d
mov ecx, eax
call dword [0x101aa4e4]
call dword [esp + 0x24]
jmp 0x10008593
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
lea eax, [ebp + 0x30]
xchg dword [eax], ecx
test ecx, ecx
je 0x100085a3
call fcn.1004b590
xor edx, edx
lea eax, [ebp + 8]
xchg dword [eax], edx
test edx, edx
je 0x100085be
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 [0x101ebf70]
lea eax, [ebp + 0xc]
movups xmmword [ebp + 0x6c], xmm0
xor ecx, ecx
movups xmmword [ebp + 0x7c], xmm0
movups xmmword [ebp + 0x8c], xmm0
movq qword [ebp + 0x9c], xmm0
mov dword [ebp + 0xa4], 0xffffffff
xchg dword [eax], ecx
test ecx, ecx
je 0x1000860e
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 0x1000860e
cmp dword [edx], 0
jne 0x1000860e
call fcn.10043750
xor edx, edx
xchg dword [ebp], edx
test edx, edx
je 0x10008627
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, [ebp + 4]
xchg dword [eax], ecx
test ecx, ecx
je 0x1000864f
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 0x1000864f
cmp dword [edx], 0
jne 0x1000864f
call fcn.10040540
lea ecx, [ebp + 0x10]
call fcn.10056650
mov ecx, dword [ebp + 0x34]
call fcn.10030d80
mov ecx, dword [ebp + 0x58]
xor eax, eax
mov dword [ebp + 0x34], 0
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x100086df
xor edx, edx
mov dword [esp + 0x1c], edx
cmp eax, ecx
jae 0x100086c8
mov ebx, dword [ebp + 0x54]
add ebx, edx
je 0x100086c8
cmp dword [ebx + 4], 0
jbe 0x100086b4
mov ecx, dword [ebx]
test ecx, ecx
je 0x100086b4
cmp ecx, 0x102069cc
je 0x100086b4
mov esi, dword [fcn.10034de0]
push ecx
mov ecx, esi
call dword [0x101aa4e4]
call esi
mov eax, dword [esp + 0x18]
add esp, 4
mov edx, dword [esp + 0x1c]
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0x102069cd
mov ecx, dword [ebp + 0x58]
inc eax
add edx, 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
cmp eax, ecx
jb 0x1000867d
mov ebx, dword [esp + 0x28]
push dword [ebp + 0x54]
mov esi, dword [fcn.10034de0]
mov ecx, esi
call dword [0x101aa4e4]
call esi
add esp, 4
mov dword [ebp + 0x5c], 0
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x54], 0
mov esi, dword [fcn.10034de0]
mov ecx, esi
push dword [ebp + 0x38]
call dword [0x101aa4e4]
call esi
mov esi, dword [fcn.10034de0]
add esp, 4
mov ecx, esi
push dword [ebp + 0x3c]
call dword [0x101aa4e4]
call esi
mov esi, dword [fcn.10034de0]
add esp, 4
mov ecx, esi
push dword [ebp + 0x40]
call dword [0x101aa4e4]
call esi
mov esi, dword [fcn.10034de0]
add esp, 4
mov ecx, esi
push dword [ebp + 0x44]
call dword [0x101aa4e4]
call esi
mov esi, dword [fcn.10034de0]
add esp, 4
mov ecx, esi
push dword [ebp + 0x48]
call dword [0x101aa4e4]
call esi
mov esi, dword [fcn.10034de0]
add esp, 4
mov ecx, esi
push dword [ebp + 0x4c]
call dword [0x101aa4e4]
call esi
mov esi, dword [fcn.10034de0]
add esp, 4
mov ecx, esi
push dword [ebp + 0x50]
call dword [0x101aa4e4]
call esi
add esp, 4
mov ecx, 0xac
mov eax, ebp
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x100087b0
mov esi, dword [fcn.10034de0]
mov ecx, esi
push ebp
call dword [0x101aa4e4]
call esi
add esp, 4
or ecx, 0xffffffff
test ebx, ebx
je 0x100088d2
mov eax, ecx
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x100088d2
cmp dword [ebx + 4], 0
jne 0x100088d2
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x2c]
xor ebp, ebp
test eax, eax
je 0x1000884a
cmp ebp, eax
jae 0x10008812
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + ebp*4]
jmp 0x10008814
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [eax]
push eax
mov esi, dword [eax + 0x3c]
mov ecx, esi
call dword [0x101aa4e4]
call esi
mov esi, dword [fcn.10034de0]
add esp, 4
mov ecx, esi
push dword [esp + 0x14]
call dword [0x101aa4e4]
call esi
mov eax, dword [ebx + 0x2c]
inc ebp
add esp, 4
cmp ebp, eax
jb 0x1000880a
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx + 0x54]
call sym.user32.dll_git_commit_graph_free
lea ebp, [ebx + 0x20]
add esp, 4
test ebp, ebp
je 0x10008891
push dword [ebp + 8]
mov esi, dword [fcn.10034de0]
mov ecx, esi
call dword [0x101aa4e4]
call esi
add esp, 4
mov dword [ebp + 8], 0
mov dword [ebp + 0xc], 0
mov dword [ebp], 0
lea ecx, [ebx + 0x34]
call fcn.10056650
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, 0x5c
mov eax, ebx
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x100088b0
mov esi, dword [fcn.10034de0]
mov ecx, esi
push ebx
call dword [0x101aa4e4]
call esi
add esp, 4
or ecx, 0xffffffff
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x100088f0
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100088f0
cmp dword [eax + 4], 0
jne 0x100088f0
mov ecx, eax
call fcn.10043750
cmp dword [esp + 0x6c], 0
jbe 0x1000891a
mov eax, dword [esp + 0x68]
test eax, eax
je 0x1000891a
cmp eax, 0x102069cc
je 0x1000891a
mov esi, dword [fcn.10034de0]
mov ecx, esi
push eax
call dword [0x101aa4e4]
call esi
add esp, 4
cmp dword [esp + 0x78], 0
jbe 0x10008944
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10008944
cmp eax, 0x102069cc
je 0x10008944
mov esi, dword [fcn.10034de0]
mov ecx, esi
push eax
call dword [0x101aa4e4]
call esi
add esp, 4
cmp dword [esp + 0x88], 0
jbe 0x10008971
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10008971
cmp eax, 0x102069cc
je 0x10008971
mov esi, dword [fcn.10034de0]
mov ecx, esi
push eax
call dword [0x101aa4e4]
call esi
add esp, 4
cmp dword [esp + 0x54], 0
jbe 0x1000899b
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1000899b
cmp eax, 0x102069cc
je 0x1000899b
mov esi, dword [fcn.10034de0]
mov ecx, esi
push eax
call dword [0x101aa4e4]
call esi
add esp, 4
cmp dword [esp + 0x94], 0
jbe 0x100089c8
mov eax, dword [esp + 0x44]
test eax, eax
je 0x100089c8
cmp eax, 0x102069cc
je 0x100089c8
mov esi, dword [fcn.10034de0]
mov ecx, esi
push eax
call dword [0x101aa4e4]
call esi
add esp, 4
cmp dword [esp + 0xa0], 0
jbe 0x100089f5
mov eax, dword [esp + 0x48]
test eax, eax
je 0x100089f5
cmp eax, 0x102069cc
je 0x100089f5
mov esi, dword [fcn.10034de0]
mov ecx, esi
push eax
call dword [0x101aa4e4]
call esi
add esp, 4
cmp dword [esp + 0xac], 0
jbe 0x10008a22
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x10008a22
cmp eax, 0x102069cc
je 0x10008a22
mov esi, dword [fcn.10034de0]
mov ecx, esi
push eax
call dword [0x101aa4e4]
call esi
add esp, 4
cmp dword [esp + 0x60], 0
jbe 0x10008a4c
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10008a4c
cmp eax, 0x102069cc
je 0x10008a4c
mov esi, dword [fcn.10034de0]
mov ecx, esi
push eax
call dword [0x101aa4e4]
call esi
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret