Function at 0x649100
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7093ed
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd8], edx
mov esi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0xdc], eax
xor eax, eax
mov dword [ebp - 0xd4], eax
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xc9], al
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x649171
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x649519
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x14], 0
jb 0x649191
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x649519
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00649820
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
sub eax, ebx
cmp dword [esi + 0x14], 8
jb 0x6491be
mov esi, dword [esi]
push ebx
push eax
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x6494ec
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0xc4]
push eax
push str.VarFileInfoTranslation
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x6494ec
mov ecx, dword [ebp - 0x14]
xor edi, edi
test ecx, 0xfffffffc
jbe 0x6494ec
mov dx, word [ebp + 8]
nop dword [eax]
mov eax, dword [ebp - 0xc4]
cmp dx, word [eax + edi*4]
jne 0x6494de
push 0x98
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.00690480
mov dword [ebp - 0xc0], 0x77df78
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
mov eax, dword [ebp - 0xd0]
add esp, 8
or eax, 1
mov dword [ebp - 0x70], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp - 0x74], 0x48
call fcn.00482f30
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xbc]
call fcn.00482e40
mov dword [ebp - 0xbc], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 4
mov edx, str.StringFileInfo_
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xc0]
call fcn.004fe140
mov esi, eax
push 0
push 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + esi + 0x14], eax
lea eax, [ebp - 0x108]
push eax
call fcn.0067fd46
add esp, 0xc
mov edx, eax
mov ecx, esi
call fcn.006497f0
mov ecx, eax
mov esi, 0x30
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov word [eax + ecx + 0x40], si
mov eax, dword [ebp - 0xc4]
movzx eax, word [eax + edi*4]
push eax
call fcn.006495e0
push 0
lea eax, [ebp - 0x118]
push 4
push eax
call fcn.0067fd46
add esp, 0xc
lea ecx, [ebp - 0xc0]
mov edx, eax
call fcn.006497f0
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov word [eax + ecx + 0x40], si
mov eax, dword [ebp - 0xc4]
movzx eax, word [eax + edi*4 + 2]
push eax
call fcn.006495e0
push 0
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.0067fd46
add esp, 0xc
lea ecx, [ebp - 0xc0]
mov edx, eax
call fcn.006497f0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [eax + 4]
mov eax, dword [edx + ecx + 0x14]
and eax, 0xfffff3ff
or eax, 0x200
mov dword [edx + ecx + 0x14], eax
mov edx, 0x7625f8
lea ecx, [ebp - 0xc0]
call fcn.004fe140
mov ecx, eax
mov eax, dword [ebp - 0xd8]
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x6493cc
mov edx, dword [eax]
push dword [eax + 0x10]
call fcn.0051bf00
add esp, 4
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0xf8]
lea ecx, [ebp - 0xbc]
push eax
call fcn.004fd040
or dword [ebp - 0xd0], 4
lea ecx, [ebp - 0x24]
cmp dword [ebp - 0xe4], 8
lea eax, [ebp - 0xf8]
push ecx
cmovae eax, dword [ebp - 0xf8]
lea ecx, [ebp - 0xc8]
push ecx
push eax
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
lea ecx, [ebp - 0xf8]
mov esi, eax
call fcn.0042fd70
test esi, esi
je 0x649463
mov edx, dword [ebp - 0xc8]
mov eax, edx
lea esi, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x649440
mov ecx, dword [ebp - 0xdc]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.0042fe00
mov byte [ebp - 0xc9], 1
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xbc]
call fcn.00482510
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xc4], eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - 0x70], vtable.std::ios_base.0
call fcn.0067ef4c
mov dx, word [ebp + 8]
add esp, 4
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
mov eax, ecx
inc edi
shr eax, 2
cmp edi, eax
jl 0x649210
test ebx, ebx
je 0x649519
mov ecx, dword [ebp - 0x18]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x64950f
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x64953b
push ecx
push ebx
call fcn.0067d913
add esp, 8
mov al, byte [ebp - 0xc9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
call fcn.00692c95
int3