Function at 0x1008ca40
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
cmp dword [ebp + 0x14], 0
mov eax, ecx
push esi
xorps xmm0, xmm0
mov dword [esp + 0x24], eax
push edi
mov esi, edx
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x50], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
jne 0x1008ca81
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x1008caa7
push str.values
push str.invalid_argument
push 0x101dc9b8
push 3
call fcn.1002a5a0
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x1008cab2
push str.repo
jmp 0x1008ca8a
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x1008cac0
push str.pathname
jmp 0x1008ca8a
cmp dword [ebp + 0x18], 0
jne 0x1008cacd
push str.names
jmp 0x1008ca8a
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1008cafb
mov edx, dword [edi]
lea eax, [edx - 1]
test eax, eax
je 0x1008cafb
push str.git_attr_options
push edx
push str.invalid_version__d_on__s
push 3
call fcn.1002a5a0
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x60]
and edx, 1
lea edx, [edx - 1]
je 0x1008cb0a
xor eax, eax
jmp 0x1008cb0d
mov eax, dword [esi + 0x44]
push edx
mov edx, ecx
lea ecx, [esp + 0x6c]
push eax
call fcn.100a6560
add esp, 8
test eax, eax
js 0x1008ca9e
mov edx, dword [ebp + 8]
lea eax, [esp + 0x40]
push eax
push dword [ebp + 0x10]
mov ecx, esi
push edi
call fcn.1008db30
add esp, 0xc
mov dword [esp + 0x3c], eax
test eax, eax
js 0x1008cd06
mov edi, dword [ebp + 0x14]
mov esi, dword [fcn.10060f30]
mov ecx, esi
push 0x9e
push str.C:UsersAdmin_vcpkg_buildtreeslibgit2_src_v1.4.2_3f39c3e750.clean_src_attr.c
push 0x14
push edi
call dword [0x101aa4e4]
call esi
mov esi, eax
add esp, 0x10
mov dword [esp + 0x18], esi
test esi, esi
je 0x1008ca9e
mov ecx, dword [esp + 0x4c]
xor edx, edx
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x1008cce5
nop word [eax + eax]
mov eax, dword [esp + 0x48]
mov eax, dword [eax + edx*4]
mov dword [esp + 0x38], eax
mov edx, dword [eax + 0x40]
dec edx
mov dword [esp + 0x20], edx
cmp edx, 0xffffffff
jae 0x1008ccd1
nop dword [eax]
mov eax, dword [eax + 0x3c]
mov edi, dword [eax + edx*4]
lea edx, [esp + 0x68]
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.100a6460
test byte [edi + 0x10], 1
je 0x1008cbd0
test al, al
sete al
test al, al
je 0x1008ccb7
cmp dword [ebp + 0x14], 0
mov dword [esp + 0xc], 0
jbe 0x1008ccb7
mov ecx, dword [ebp + 0x18]
add esi, 8
mov eax, dword [esp + 0x28]
mov edx, dword [ebp + 0x14]
sub eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
cmp dword [esi + 8], 0
jne 0x1008cc9c
cmp dword [esi], 0
jne 0x1008cc62
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, 0x1505
mov edx, dword [ecx]
test edx, edx
jne 0x1008cc41
push str.name
push str.invalid_argument
push 0x101dc9b8
push 3
call fcn.1002a5a0
add esp, 0x10
or eax, 0xffffffff
jmp 0x1008cc5f
movsx edi, byte [edx]
test edi, edi
je 0x1008cc5b
mov ecx, eax
lea edx, [edx + 1]
shl eax, 5
add eax, edi
movsx edi, byte [edx]
add eax, ecx
test edi, edi
jne 0x1008cc48
mov edi, dword [esp + 0x10]
mov dword [esi + 4], eax
mov ecx, dword [edi + 0x18]
lea eax, [esi - 8]
mov dword [esp + 0x2c], ecx
test eax, eax
jne 0x1008cd39
push 0x101e257c
push str.invalid_argument
push 0x101dc9b8
push 3
call fcn.1002a5a0
mov edi, dword [esp + 0x20]
add esp, 0x10
mov edx, dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
inc eax
add ecx, 4
add esi, 0x14
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ecx
cmp eax, edx
jb 0x1008cc05
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
dec edx
mov dword [esp + 0x20], edx
cmp edx, 0xffffffff
jb 0x1008cbb0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
inc edx
mov dword [esp + 0x24], edx
cmp edx, ecx
jb 0x1008cb90
mov edi, dword [ebp + 0x14]
xor eax, eax
test edi, edi
je 0x1008cd06
mov edx, dword [esp + 0x28]
lea ecx, [esi + 0x10]
cmp dword [ecx], 0
jne 0x1008ccfe
mov dword [edx + eax*4], 0
inc eax
add ecx, 0x14
cmp eax, edi
jb 0x1008ccf2
lea ecx, [esp + 0x40]
call fcn.1008dad0
lea ecx, [esp + 0x68]
call fcn.100a6740
push dword [esp + 0x18]
mov esi, dword [fcn.10034de0]
mov ecx, esi
call dword [0x101aa4e4]
call esi
mov eax, dword [esp + 0x40]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x1008cd53
push str.key_lookup
push str.unrecoverable_internal_error
push 0x101dc9b8
push 0x23
jmp 0x1008cc85
lea ecx, [edi + 0x14]
call fcn.1003a800
mov edx, dword [edi + 0x20]
lea eax, [esp + 0x30]
mov ecx, dword [edi + 0x1c]
push eax
push dword [esp + 0x30]
lea eax, [esi - 8]
push eax
call fcn.100413c0
mov edi, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x1008cc91
mov ecx, dword [esp + 0x30]
cmp ecx, dword [edi + 0x20]
jae 0x1008cd93
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + ecx*4]
jmp 0x1008cd95
xor eax, eax
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov dword [esi + 8], eax
mov eax, dword [eax + 0x10]
mov dword [edx + ecx], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x14]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, edx
je 0x1008cd06
jmp 0x1008cc98