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

Disassembly:
push 0x20
mov eax, 0x45b07f
call fcn.0043f06a
and dword [ebp - 0x2c], 0
mov dword [ebp - 4], 1
call fcn.0041d3b7
push eax
lea ecx, [ebp - 0x10]
call fcn.00403139
mov byte [ebp - 4], 2
mov esi, dword [ebp + 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x415c61
call fcn.00429326
push dword [eax + 0x10]
lea ecx, [ebp - 0x10]
call fcn.00403444
push str..exe
lea ecx, [ebp - 0x10]
call fcn.0040341f
lea edi, [ebp - 0x14]
call fcn.00414a4d
push 0x46835c
mov eax, edi
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 3
call fcn.00405d77
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 4
call fcn.00405d20
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.0040317c
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401109
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401109
jmp 0x415c6d
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040317c
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415c90
mov ecx, dword [ebp + 8]
push 0x464fb4
call fcn.00402eb5
lea ecx, [edi - 0x10]
jmp 0x415dbf
push 4
lea ecx, [ebp - 0x10]
call fcn.0040328d
and dword [ebp - 0x28], 0
push 0x50
mov edi, eax
pop eax
push eax
mov dword [ebp - 0x2c], eax
call fcn.004398d5
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.004398d5
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x415ce8
push str.null_pointer_since_malloc_failed._returning
call fcn.0040750a
mov dword [esp], 0x464fda
mov ecx, dword [ebp + 8]
call fcn.00402ef9
jmp 0x415db9
push ebx
push dword [ebp - 0x24]
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x415d12
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_get_version_info:__s
call fcn.0040750a
pop ecx
pop ecx
push 0x464fda
jmp 0x415cdb
mov edi, 0x464fb4
push edi
lea ecx, [ebp - 0x18]
call fcn.00402eb5
mov byte [ebp - 4], 6
call fcn.0041d3b7
push eax
lea ecx, [ebp - 0x14]
call fcn.00403139
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 7
call fcn.00402fee
push eax
lea eax, [ebp - 0x14]
push str.StringFileInfo_sFileVersion
push eax
call fcn.0040384d
add esp, 0xc
push 0
lea ecx, [ebp - 0x14]
call fcn.0040328d
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 0x415d8f
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push 0x468d64
push eax
call fcn.0040384d
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.0040315e
jmp 0x415da3
push str.Unable_to_get_version._Name_may_not_exist_or_the_resource_is_in_valid
call fcn.0040750a
pop ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.00402eb5
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401109
lea ecx, [esi - 0x10]
call fcn.00401109
mov eax, dword [ebp + 8]
call fcn.0043f142
ret