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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7e26
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5049c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x7c], esi
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov eax, dword [esi + 4]
mov dword [ebp - 4], 0
cmp eax, dword [esi + 8]
je 0x4971d7
movups xmm0, xmmword [ebp - 0x28]
mov dword [eax], ecx
mov ecx, 0xf
mov dword [eax + 4], edx
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
movups xmmword [eax + 8], xmm0
mov byte [ebp - 0x28], 0
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x18], xmm0
add dword [esi + 4], 0x20
jmp 0x4971e6
lea ecx, [ebp - 0x30]
push ecx
push eax
mov ecx, esi
call fcn.00498c10
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x49721e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x497214
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49776c
push ecx
push edx
call fcn.004ab3e0
add esp, 8
mov eax, dword [edi + 0x7c]
sub esp, 8
and eax, 0xfffffffc
mov ecx, esp
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x497233
mov edx, dword [eax]
mov dword [ecx + 4], 0
mov dword [ecx], edx
mov eax, dword [eax + 0x10]
mov dword [ecx + 4], eax
call fcn.0049b2b0
add esp, 8
test al, al
jne 0x49729b
push 0x278
push str.C:Usersdeef1Downloads_vcpkg_master_vcpkg_master_buildtreesprotobuf_src_v3.21.12_fdb7676342.clean_srcgoogleprotobufdescriptor_database.cc
push 2
lea ecx, [ebp - 0x34]
call fcn.004370d0
mov ecx, dword [edi + 0x7c]
and ecx, 0xfffffffc
mov dword [ebp - 4], 1
push ecx
push str.Invalid_package_name:
mov ecx, eax
call fcn.00437460
mov ecx, eax
call fcn.00437290
push eax
lea ecx, [ebp - 0x71]
call fcn.00437210
lea ecx, [ebp - 0x34]
call fcn.004371c0
xor al, al
jmp 0x49774f
mov eax, dword [edi + 0x7c]
and eax, 0xfffffffc
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x4972ab
mov ecx, dword [eax]
mov dword [ebp - 0x3c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x4c], xmm0
test ecx, ecx
jne 0x4972cb
mov ecx, 0xf
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x38], ecx
jmp 0x4972e1
push dword [eax + 0x10]
mov dword [ebp - 0x38], 0
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00404950
mov ecx, dword [ebp - 0x38]
mov eax, dword [esi + 4]
lea edx, [ebp - 0x4c]
sub eax, 0x18
mov dword [ebp - 0x80], eax
cmp eax, edx
je 0x497315
mov ecx, eax
call fcn.00407af0
movups xmm0, xmmword [ebp - 0x4c]
mov eax, dword [ebp - 0x80]
mov ecx, 0xf
mov byte [ebp - 0x4c], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x3c]
movq qword [eax + 0x10], xmm0
cmp ecx, 0x10
jb 0x497346
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x49733c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49776c
push ecx
push edx
call fcn.004ab3e0
add esp, 8
mov eax, dword [esi + 4]
sub eax, dword [esi]
sar eax, 5
dec eax
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x78]
and eax, 0xfffffffc
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x497362
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
test ecx, ecx
jne 0x497383
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], cl
jmp 0x497394
push eax
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
call fcn.00404950
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x80], 0xff
push eax
lea ecx, [esi + 0xc]
call fcn.00498a80
cmp byte [ebp - 0x84], 0
je 0x4974e3
mov eax, dword [edi + 0x78]
and eax, 0xfffffffc
mov dword [ebp - 0x94], eax
mov eax, dword [esi + 0x1c]
mov ecx, eax
mov esi, dword [esi + 0x18]
sub ecx, esi
mov dword [ebp - 0x84], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
mov ecx, dword [ebp - 0x94]
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
lea eax, [ecx + 0x14]
mov dword [ebp - 0x98], eax
lea edx, [ecx + 0x10]
mov dword [ebp - 0x80], edx
test edi, edi
jle 0x4974af
mov eax, dword [eax]
mov edx, esi
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x8c], edx
mov eax, dword [eax]
mov dword [ebp - 0xa0], eax
nop dword [eax]
mov esi, edi
shr esi, 1
lea eax, [esi*8]
sub eax, esi
cmp dword [ebp - 0x9c], 0x10
lea eax, [edx + eax*4]
mov edx, ecx
mov dword [ebp - 0xa4], eax
jb 0x497453
mov edx, dword [ecx]
cmp dword [eax + 0x18], 0x10
lea ecx, [eax + 4]
jb 0x49745f
mov ecx, dword [eax + 4]
push dword [ebp - 0xa0]
push edx
push dword [eax + 0x14]
push ecx
call fcn.00448f90
add esp, 0x10
test al, al
je 0x49748e
mov edx, dword [ebp - 0xa4]
or eax, 0xffffffff
add edx, 0x1c
sub eax, esi
mov dword [ebp - 0x8c], edx
add edi, eax
jmp 0x497496
mov edx, dword [ebp - 0x8c]
mov edi, esi
mov ecx, dword [ebp - 0x94]
test edi, edi
jg 0x497430
mov esi, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x98]
mov edx, dword [ebp - 0x80]
cmp esi, dword [ebp - 0x84]
je 0x4974dd
cmp dword [eax], 0x10
jb 0x4974be
mov ecx, dword [ecx]
cmp dword [esi + 0x18], 0x10
lea eax, [esi + 4]
jb 0x4974ca
mov eax, dword [esi + 4]
push dword [esi + 0x14]
push eax
push dword [edx]
push ecx
call fcn.00448f90
add esp, 0x10
test al, al
je 0x4974e3
mov byte [ebp - 0x71], 0
jmp 0x4974e7
mov byte [ebp - 0x71], 1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004940a0
cmp byte [ebp - 0x71], 0
je 0x49754f
push 0x282
push str.C:Usersdeef1Downloads_vcpkg_master_vcpkg_master_buildtreesprotobuf_src_v3.21.12_fdb7676342.clean_srcgoogleprotobufdescriptor_database.cc
push 2
lea ecx, [ebp - 0x70]
call fcn.004370d0
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 4], 3
mov ecx, dword [ecx + 0x78]
and ecx, 0xfffffffc
push ecx
push str.File_already_exists_in_database:
mov ecx, eax
call fcn.00437460
mov ecx, eax
call fcn.00437290
push eax
lea ecx, [ebp - 0x8d]
call fcn.00437210
lea ecx, [ebp - 0x70]
call fcn.004371c0
xor al, al
jmp 0x49774f
mov ecx, dword [ebp - 0x78]
mov esi, dword [ecx + 0x2c]
lea eax, [esi + 4]
neg esi
sbb esi, esi
and esi, eax
mov eax, dword [ecx + 0x24]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x4975fa
nop dword [eax]
mov eax, dword [esi]
sub esp, 8
mov dword [ebp - 0x84], eax
mov ecx, esp
mov eax, dword [eax + 0x90]
and eax, 0xfffffffc
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x497590
mov edx, dword [eax]
mov dword [ecx + 4], 0
mov dword [ecx], edx
mov eax, dword [eax + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x7c]
call fcn.0049a1c0
test al, al
je 0x497294
mov eax, dword [ebp - 0x78]
push dword [ebp - 0x84]
sub esp, 8
mov eax, dword [eax + 0x78]
mov ecx, esp
and eax, 0xfffffffc
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x4975cd
mov edx, dword [eax]
mov dword [ecx + 4], 0
mov dword [ecx], edx
mov eax, dword [eax + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x7c]
call fcn.00497780
test al, al
je 0x497294
add esi, 4
cmp esi, edi
jne 0x497570
mov ecx, dword [ebp - 0x78]
mov esi, dword [ecx + 0x3c]
lea eax, [esi + 4]
neg esi
sbb esi, esi
and esi, eax
mov eax, dword [ecx + 0x34]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x497650
mov eax, dword [esi]
sub esp, 8
mov ecx, esp
mov eax, dword [eax + 0x40]
and eax, 0xfffffffc
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x497627
mov edx, dword [eax]
mov dword [ecx + 4], 0
mov dword [ecx], edx
mov eax, dword [eax + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x7c]
call fcn.0049a1c0
test al, al
je 0x497294
add esi, 4
cmp esi, edi
jne 0x497610
mov ecx, dword [ebp - 0x78]
mov esi, dword [ecx + 0x5c]
lea eax, [esi + 4]
neg esi
sbb esi, esi
and esi, eax
mov eax, dword [ecx + 0x54]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x4976f3
nop word [eax + eax]
mov eax, dword [esi]
sub esp, 8
mov dword [ebp - 0x84], eax
mov ecx, esp
mov eax, dword [eax + 0x10]
and eax, 0xfffffffc
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x49768d
mov edx, dword [eax]
mov dword [ecx + 4], 0
mov dword [ecx], edx
mov eax, dword [eax + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x7c]
call fcn.0049a1c0
test al, al
je 0x497294
mov eax, dword [ebp - 0x78]
push dword [ebp - 0x84]
sub esp, 8
mov eax, dword [eax + 0x78]
mov ecx, esp
and eax, 0xfffffffc
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x4976ca
mov edx, dword [eax]
mov dword [ecx + 4], 0
mov dword [ecx], edx
mov eax, dword [eax + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x7c]
call fcn.00496ec0
test al, al
je 0x497294
add esi, 4
cmp esi, edi
jne 0x497670
mov ecx, dword [ebp - 0x78]
mov esi, dword [ecx + 0x4c]
lea eax, [esi + 4]
neg esi
sbb esi, esi
and esi, eax
mov eax, dword [ecx + 0x44]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x49774d
nop dword [eax]
mov eax, dword [esi]
sub esp, 8
mov ecx, esp
mov eax, dword [eax + 0x20]
and eax, 0xfffffffc
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x497727
mov edx, dword [eax]
mov dword [ecx + 4], 0
mov dword [ecx], edx
mov eax, dword [eax + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x7c]
call fcn.0049a1c0
test al, al
je 0x497294
add esi, 4
cmp esi, edi
jne 0x497710
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ab3ee
mov esp, ebp
pop ebp
ret 0xc
call fcn.004b081f
int3