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

Disassembly:
push 0x20
mov eax, 0x45b23f
call fcn.0043f22a
and dword [ebp - 0x2c], 0
mov dword [ebp - 4], 1
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x10]
call fcn.00403246
mov byte [ebp - 4], 2
mov esi, dword [ebp + 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x415db1
call fcn.00429507
push dword [eax + 0x10]
lea ecx, [ebp - 0x10]
call fcn.00403547
push str..exe
lea ecx, [ebp - 0x10]
call fcn.00403522
lea edi, [ebp - 0x14]
call fcn.00414b93
push 0x468384
mov eax, edi
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 3
call fcn.00405ea4
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 4
call fcn.00405e4d
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00403289
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004010ea
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010ea
jmp 0x415dbd
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403289
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415de0
mov ecx, dword [ebp + 8]
push 0x464fb4
call fcn.00402fb8
lea ecx, [edi - 0x10]
jmp 0x415f0f
push 4
lea ecx, [ebp - 0x10]
call fcn.0040339a
and dword [ebp - 0x28], 0
push 0x50
mov edi, eax
pop eax
push eax
mov dword [ebp - 0x2c], eax
call fcn.00439a44
pop ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
push eax
mov dword [ebp - 0x24], eax
call fcn.00439a44
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x415e38
push str.null_pointer_since_malloc_failed._returning
call fcn.0040762c
mov dword [esp], 0x464fda
mov ecx, dword [ebp + 8]
call fcn.00402ffc
jmp 0x415f09
push ebx
push dword [ebp - 0x24]
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x415e62
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_get_version_info:__s
call fcn.0040762c
pop ecx
pop ecx
push 0x464fda
jmp 0x415e2b
mov edi, 0x464fb4
push edi
lea ecx, [ebp - 0x18]
call fcn.00402fb8
mov byte [ebp - 4], 6
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x14]
call fcn.00403246
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 7
call fcn.004030f1
push eax
lea eax, [ebp - 0x14]
push str.StringFileInfo_sFileVersion
push eax
call fcn.0040397a
add esp, 0xc
push 0
lea ecx, [ebp - 0x14]
call fcn.0040339a
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x415edf
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push 0x468d8c
push eax
call fcn.0040397a
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.0040326b
jmp 0x415ef3
push str.Unable_to_get_version._Name_may_not_exist_or_the_resource_is_in_valid
call fcn.0040762c
pop ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.00402fb8
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004010ea
lea ecx, [esi - 0x10]
call fcn.004010ea
mov eax, dword [ebp + 8]
call fcn.0043f302
ret