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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x10156440]
xor eax, esp
mov dword [esp + 0xa4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0x1015ddcd
movups xmm0, xmmword [esi + 0x10]
mov ecx, dword [esi + 8]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [esp + 0x50], xmm0
test ecx, ecx
jne 0x10041b4a
call fcn.1002b0b0
mov esi, eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], 0
test eax, eax
jne 0x10041a9c
mov dword [esi + 0x10], eax
mov eax, 0x1015ddcd
mov dword [esi + 0xc], 0x1015ddcd
cmp dword [esi + 0x10], 0
jbe 0x10041aa5
mov byte [eax], 0
mov eax, dword [esi + 0x14]
lea edx, [eax + 0x31]
cmp edx, eax
jb 0x10041aff
lea eax, [edx + 1]
cmp eax, edx
jb 0x10041aff
cmp dword [esi + 0xc], 0x1015ddcc
je 0x10041b33
cmp eax, dword [esi + 0x10]
jbe 0x10041ad7
push 1
mov edx, eax
lea ecx, [esi + 0xc]
call fcn.10029800
add esp, 4
test eax, eax
js 0x10041b0a
mov eax, dword [esi + 0x14]
add eax, dword [esi + 0xc]
push 0x31
push str.failed_to_read_index:_The_index_is_in_memory_only
push eax
call fcn.100f5f90
mov ecx, dword [esi + 0x14]
add esp, 0xc
mov eax, dword [esi + 0xc]
add ecx, 0x31
mov dword [esi + 0x14], ecx
mov byte [ecx + eax], 0
jmp 0x10041b0a
call fcn.1002b0b0
mov dword [eax], str.Out_of_memory
cmp dword [esi + 0xc], 0x1015ddcc
je 0x10041b33
call fcn.1002b0b0
lea esi, [eax + 4]
call fcn.1002b0b0
mov ecx, dword [eax + 0xc]
mov dword [esi], ecx
mov dword [esi + 4], 0xa
call fcn.1002b0b0
mov dword [eax], esi
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100f4277
mov esp, ebp
pop ebp
ret
xor edx, edx
call fcn.10040680
mov ecx, dword [esi + 0x74]
xor edx, edx
test eax, eax
sete dl
and ecx, 0xfffffffe
or ecx, edx
mov dword [esi + 0x74], ecx
test eax, eax
je 0x10041b98
cmp dword [ebp + 0xc], 0
je 0x10041b7e
push esi
call sym.user32.dll_git_index_clear
add esp, 4
test eax, eax
js 0x10041c0b
and dword [esi + 0x74], 0xffffffef
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100f4277
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 8]
lea ecx, [esp + 0x40]
call fcn.1003a510
mov edi, eax
shr edi, 0x1f
test edi, edi
jne 0x10041bf7
push edi
push dword [esi + 8]
call fcn.1003fd10
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
js 0x10041bf7
push 2
push 0xffffffffffffffff
push 0xffffffffffffffec
push edi
call fcn.10101f7b
add esp, 0x10
test edx, edx
jg 0x10041c1f
jl 0x10041bdc
test eax, eax
jae 0x10041c1f
push edi
call fcn.10105c23
add esp, 4
push str.failed_to_seek_to_end_of_file
push 2
call fcn.10028180
add esp, 8
or edi, 0xffffffff
push dword [esi + 8]
push str.failed_to_read_index:__s_no_longer_exists
push 0xa
call fcn.10028180
add esp, 0xc
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100f4277
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x98]
mov edi, 0x14
mov dword [esp + 8], ecx
mov edx, closesocket
mov eax, edi
cmp edi, edx
cmova eax, edx
push eax
push ecx
push dword [esp + 0x20]
call fcn.10106272
add esp, 0xc
test eax, eax
jns 0x10041d18
call fcn.100fe80a
cmp dword [eax], 4
je 0x10041c69
call fcn.100fe80a
cmp dword [eax], 0xb
jne 0x10041d2f
mov ecx, dword [esp + 8]
test edi, edi
jne 0x10041c2f
mov edi, dword [esp + 8]
lea eax, [esp + 0x98]
push dword [esp + 0x18]
sub edi, eax
call fcn.10105c23
add esp, 4
cmp edi, 0x14
jl 0x10041bf4
lea edx, [esi + 0x30]
mov edi, 0x10
lea ecx, [esp + 0x98]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10041cbd
add ecx, 4
add edx, 4
sub edi, 4
jae 0x10041ca2
cmp dword [ebp + 0xc], 0
je 0x10041b82
mov edx, dword [esi + 8]
lea ecx, [esp + 0x28]
call fcn.10038a50
test eax, eax
js 0x10041c0b
lea ecx, [esi + 0x7c]
mov dword [esi + 0x78], 0
call fcn.10063870
push esi
call sym.user32.dll_git_index_clear
mov edi, eax
add esp, 4
test edi, edi
jne 0x1004221e
mov edi, dword [esp + 0x30]
cmp edi, 0x20
jae 0x10041d40
push str.insufficient_buffer_space
push str.invalid_data_in_index____s
push 0xa
call fcn.10028180
add esp, 0xc
or edi, 0xffffffff
jmp 0x1004221e
je 0x10041c71
mov ecx, dword [esp + 8]
sub edi, eax
add ecx, eax
mov dword [esp + 8], ecx
jmp 0x10041c6d
push dword [esp + 0x18]
call fcn.10105c23
add esp, 4
jmp 0x10041bf4
mov edx, dword [esp + 0x28]
lea eax, [edi - 0x14]
push ecx
push eax
lea ecx, [esp + 0x78]
call fcn.1007fed0
mov eax, dword [esp + 0x30]
add esp, 8
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
cmp eax, 0x44495243
je 0x10041d72
mov eax, str.incorrect_header_signature
jmp 0x1004220b
mov eax, dword [esp + 0x28]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0x10], eax
cmp eax, 2
jb 0x10042206
cmp eax, 4
ja 0x10042206
mov eax, dword [esp + 0x28]
push dword [eax + 8]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esi + 0xc0], eax
cmp edi, 0xc
ja 0x10041dc1
push str.ran_out_of_data_while_parsing
jmp 0x100421d4
mov edx, dword [esp + 0x28]
lea eax, [edi - 0xc]
add edx, 0xc
mov dword [esp + 8], eax
cmp dword [esi + 0x50], 0
mov dword [esp + 0xc], edx
je 0x10041dfa
push str._index__entries.length
push str.unrecoverable_internal_error
push 0x1013afe8
push 0x23
call fcn.10028180
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004221e
mov eax, dword [esi + 0x74]
mov edx, ecx
mov ecx, dword [esi + 0x58]
shr eax, 1
and al, 1
movzx eax, al
push eax
call fcn.10040ab0
mov edi, eax
add esp, 4
test edi, edi
js 0x1004221e
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], 0
test ecx, ecx
je 0x1004201c
xor edx, edx
mov eax, 0x1013b090
cmp dword [esp + 0x10], 4
cmovb eax, edx
mov edx, dword [esp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
nop dword [eax + eax]
mov dword [esp + 0x10], ecx
cmp edx, 0x14
jbe 0x10042020
push dword [esp + 0x14]
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
push edx
push eax
push esi
lea edx, [esp + 0x4c]
call fcn.100463a0
add esp, 0x10
test eax, eax
js 0x10042012
lea edx, [esi + 0x44]
mov dword [esp + 0x1c], edx
test edx, edx
je 0x10041fc3
mov edi, dword [edx]
cmp dword [edx + 0xc], edi
jb 0x10041ef0
cmp edi, 8
jae 0x10041ea6
mov edi, 8
jmp 0x10041ebb
cmp edi, 0xaaaaaaaa
ja 0x10041eb8
mov eax, edi
shr eax, 1
add edi, eax
jne 0x10041ebb
jmp 0x10041ef0
or edi, 0xffffffff
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_52]
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 [edx + 8]
call dword [0x101182f8]
call esi
add esp, 0x14
test eax, eax
je 0x10041fdc
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov dword [edx], edi
mov dword [edx + 8], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 8]
mov edi, dword [esp + 0x20]
mov dword [eax + ecx*4], edi
mov edx, dword [edx + 0xc]
mov ecx, dword [esi + 0x54]
inc edx
mov eax, ecx
mov dword [esi + 0x50], edx
and eax, 0xfffffffe
or ecx, 1
cmp edx, 1
mov edx, edi
cmova ecx, eax
mov dword [esi + 0x54], ecx
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x58]
shr eax, 1
mov dword [esp + 0x1c], ecx
test al, 1
je 0x10041f3a
lea eax, [esp + 0x34]
push eax
call fcn.1009f520
mov ecx, dword [esp + 0x38]
jmp 0x10041f48
lea eax, [esp + 0x38]
push eax
call fcn.1009eec0
mov ecx, dword [esp + 0x3c]
add esp, 4
test ecx, ecx
jns 0x10041f54
or edi, 0xffffffff
jmp 0x10041f6f
mov ecx, dword [esp + 0x1c]
lea edx, [eax*4]
jne 0x10041f67
mov eax, dword [ecx + 0x14]
mov dword [edx + eax], edi
mov eax, dword [ecx + 0x18]
mov dword [edx + eax], edi
xor edi, edi
test edi, edi
js 0x10041fdf
xor edi, edi
cmp dword [esi + 0xc0], 4
jb 0x10041f89
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x40]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 8]
cmp ecx, edx
jae 0x10041db7
mov eax, dword [esp + 0xc]
sub edx, ecx
inc dword [esp + 0x18]
add eax, ecx
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
cmp esi, ecx
mov esi, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
jb 0x10041e50
jmp 0x10042020
push 0x10140cbc
push str.invalid_argument
push 0x1013afe8
push 3
call fcn.10028180
add esp, 0x10
or edi, 0xffffffff
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100421e6
xorps xmm0, xmm0
movups xmmword [eax + 0x28], xmm0
mov dword [eax + 0x38], 0
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
push eax
call dword [0x101182f8]
call esi
add esp, 4
jmp 0x100421e6
push str.invalid_entry
jmp 0x100421d4
mov edx, dword [esp + 8]
cmp dword [esp + 0x18], ecx
je 0x10042030
push str.header_entries_changed_while_parsing
jmp 0x100421d4
mov ecx, dword [esp + 0xc]
cmp edx, 0x14
jbe 0x1004215a
nop dword [eax]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x6c], ecx
lea edi, [ecx + 8]
cmp ecx, edi
ja 0x1004216b
mov edx, dword [esp + 8]
cmp edx, edi
jb 0x1004216b
mov eax, edx
sub eax, edi
cmp eax, 0x14
jb 0x1004216b
mov al, byte [esp + 0x68]
sub al, 0x41
cmp al, 0x19
lea eax, [esp + 0x68]
ja 0x10042163
mov eax, dword [eax]
cmp eax, dword [0x1013b604]
jne 0x100420e2
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
add eax, 8
mov dword [esp + 0x14], eax
lea edi, [ecx + eax]
lea eax, [esi + 0x7c]
push eax
push edi
lea ecx, [esi + 0x78]
call fcn.1009f8f0
add esp, 8
test eax, eax
js 0x100421e3
cmp dword [esp + 0x14], edi
jae 0x10042129
push str.corrupted_TREE_extension_in_index__unexpected_trailing_data_
push 0xa
call fcn.10028180
add esp, 8
jmp 0x100421e3
lea eax, [esp + 0x68]
mov eax, dword [eax]
cmp eax, dword [str.REUC]
jne 0x10042101
mov edx, dword [esp + 0xc]
push ecx
add edx, 8
mov ecx, esi
call fcn.10045e80
jmp 0x1004211e
lea eax, [esp + 0x68]
mov eax, dword [eax]
cmp eax, dword [0x1013b600]
jne 0x10042131
mov edx, dword [esp + 0xc]
push ecx
add edx, 8
mov ecx, esi
call fcn.10046100
add esp, 4
test eax, eax
js 0x100421e3
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
lea eax, [ecx + 8]
xor edi, edi
cmp eax, edx
jae 0x10041db7
mov ecx, dword [esp + 0xc]
sub edx, eax
add ecx, eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
cmp edx, 0x14
ja 0x10042040
cmp edx, 0x14
je 0x10042172
push str.buffer_size_does_not_match_index_footer_size
jmp 0x100421d4
push eax
push str.unsupported_mandatory_extension:__.4s
jmp 0x100421d9
push str.extension_is_truncated
jmp 0x100421d4
lea edx, [esp + 0x70]
mov dword [esp + 0x14], 0x10
nop
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x100421cf
add edx, 4
add ecx, 4
sub dword [esp + 0x14], 4
jae 0x10042180
movups xmm0, xmmword [esp + 0x70]
mov eax, dword [esp + 0x80]
movups xmmword [esi + 0x30], xmm0
mov dword [esi + 0x40], eax
mov edx, dword [esi + 0x54]
mov eax, edx
mov ecx, dword [esi + 0x74]
and eax, 0xfffffffe
shr ecx, 1
or edx, 1
not ecx
test cl, 1
lea ecx, [esi + 0x44]
cmove edx, eax
mov dword [esi + 0x54], edx
call fcn.100383f0
and dword [esi + 0x74], 0xffffffef
jmp 0x100421e6
push str.calculated_checksum_does_not_match_expected
push str.invalid_data_in_index____s
push 0xa
call fcn.10028180
add esp, 0xc
or edi, 0xffffffff
test edi, edi
jne 0x1004221e
mov ecx, dword [esp + 0x24]
movups xmm0, xmmword [esp + 0x40]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [esp + 0x50]
movups xmmword [ecx + 0x20], xmm0
and dword [ecx + 0x74], 0xffffffef
jmp 0x1004221e
mov eax, str.incorrect_header_version
push eax
push str.invalid_data_in_index____s
push 0xa
or edi, 0xffffffff
call fcn.10028180
add esp, 0xc
cmp dword [esp + 0x2c], 0
jbe 0x10041c09
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10041c09
cmp eax, 0x1015ddcc
je 0x10041c09
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
push eax
call dword [0x101182f8]
call esi
mov ecx, dword [esp + 0xb0]
add esp, 4
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.100f4277
mov esp, ebp
pop ebp
ret