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

Disassembly:
push 0x24
mov eax, 0x6a35a0
call fcn.0049be25
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], 1
call fcn.00474f38
push eax
lea ecx, [ebp - 0x10]
call fcn.00451c1b
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
jne 0x68a08e
call fcn.00476161
mov esi, dword [eax + 0x10]
push esi
call fcn.0044ea83
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00452145
push 4
push str..exe
lea ecx, [ebp - 0x10]
call fcn.0045234c
lea ecx, [ebp - 0x14]
call fcn.00689cdf
push 0x7516bc
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00451281
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004512d9
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00451d78
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
jmp 0x68a09a
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00451d78
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x68a0bc
push 0x750660
mov ecx, edi
call fcn.004514db
lea ecx, [esi - 0x10]
jmp 0x68a200
push 4
lea ecx, [ebp - 0x10]
call fcn.00451c69
and dword [ebp - 0x28], 0
mov ebx, eax
push 0x50
pop eax
push eax
mov dword [ebp - 0x2c], eax
call fcn.00512439
pop ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push eax
mov dword [ebp - 0x24], eax
call fcn.00512439
mov esi, eax
pop ecx
test esi, esi
jne 0x68a114
push str.null_pointer_since_malloc_failed._returning
call fcn.006778de
mov dword [esp], 0x750660
mov ecx, edi
call fcn.004514db
jmp 0x68a1fa
push esi
push dword [ebp - 0x24]
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x68a13f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_get_version_info:__d
call fcn.006778de
pop ecx
pop ecx
push 0x750660
jmp 0x68a108
mov ebx, 0x750660
lea ecx, [ebp - 0x18]
push ebx
call fcn.004514db
mov byte [ebp - 4], 6
call fcn.00474f38
push eax
lea ecx, [ebp - 0x14]
call fcn.00451c1b
mov byte [ebp - 4], 7
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x68a17a
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00451ca4
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push str.StringFileInfo_sFileVersion
push eax
call fcn.00452465
add esp, 0xc
lea ecx, [ebp - 0x14]
push 0
call fcn.00451c69
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x68a1d1
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push 0x75734c
push eax
call fcn.00452465
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
push eax
call fcn.0045207b
add esp, 0x10
add eax, 0x10
mov dword [edi], eax
jmp 0x68a1e4
push str.Unable_to_get_version._Name_may_not_exist_or_the_resource_is_in_valid
call fcn.006778de
pop ecx
push ebx
mov ecx, edi
call fcn.004514db
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
mov eax, edi
call fcn.0049bdee
ret