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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70758d
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x82d084]
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 0x647761
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x647b09
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x14], 0
jb 0x647781
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x647b09
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00647e10
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
sub eax, ebx
cmp dword [esi + 0x14], 8
jb 0x6477ae
mov esi, dword [esi]
push ebx
push eax
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x647adc
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 0x647adc
mov ecx, dword [ebp - 0x14]
xor edi, edi
test ecx, 0xfffffffc
jbe 0x647adc
mov dx, word [ebp + 8]
nop dword [eax]
mov eax, dword [ebp - 0xc4]
cmp dx, word [eax + edi*4]
jne 0x647ace
push 0x98
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.0068e800
mov dword [ebp - 0xc0], 0x77c3a4
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.004827e0
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.004826f0
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.004fc900
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.0067e0c8
add esp, 0xc
mov edx, eax
mov ecx, esi
call fcn.00647de0
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.00647bd0
push 0
lea eax, [ebp - 0x118]
push 4
push eax
call fcn.0067e0c8
add esp, 0xc
lea ecx, [ebp - 0xc0]
mov edx, eax
call fcn.00647de0
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.00647bd0
push 0
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.0067e0c8
add esp, 0xc
lea ecx, [ebp - 0xc0]
mov edx, eax
call fcn.00647de0
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, 0x761550
lea ecx, [ebp - 0xc0]
call fcn.004fc900
mov ecx, eax
mov eax, dword [ebp - 0xd8]
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x6479bc
mov edx, dword [eax]
push dword [eax + 0x10]
call fcn.0051a6d0
add esp, 4
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0xf8]
lea ecx, [ebp - 0xbc]
push eax
call fcn.004fb800
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 0x647a53
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 0x647a30
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.00481dc0
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.0067d2cc
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 0x647800
test ebx, ebx
je 0x647b09
mov ecx, dword [ebp - 0x18]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x647aff
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x647b2b
push ecx
push ebx
call fcn.0067bc93
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.0067ba01
mov esp, ebp
pop ebp
ret
call fcn.00691015
int3