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

Disassembly:
push 0x20
mov eax, 0x459272
call fcn.0043d49a
and dword [ebp - 0x2c], 0
mov dword [ebp - 4], 1
call fcn.0041bb36
push eax
lea ecx, [ebp - 0x10]
call fcn.00405f08
mov byte [ebp - 4], 2
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx - 0xc]
test eax, eax
jne 0x4156cd
call fcn.00427aaa
push dword [eax + 0x10]
lea ecx, [ebp - 0x10]
call fcn.00403458
push str..exe
lea ecx, [ebp - 0x10]
call fcn.00403433
lea esi, [ebp - 0x24]
lea edi, [ebp - 0x14]
call fcn.0041459d
push 0x4662e4
mov eax, edi
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 3
call fcn.00405c99
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 4
call fcn.00405c42
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00403190
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 0x4156d9
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403190
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4156fc
mov ecx, dword [ebp + 8]
push 0x462fac
call fcn.00402eee
lea ecx, [esi - 0x10]
jmp 0x41582b
push 4
lea ecx, [ebp - 0x10]
call fcn.004032a1
and dword [ebp - 0x28], 0
push 0x50
mov esi, eax
pop eax
push eax
mov dword [ebp - 0x2c], eax
call fcn.0043803a
pop ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
push eax
mov dword [ebp - 0x24], eax
call fcn.0043803a
mov edi, eax
test edi, edi
pop ecx
jne 0x415754
push str.null_pointer_since_malloc_failed._returning
call fcn.004074db
mov dword [esp], 0x462fd2
mov ecx, dword [ebp + 8]
call fcn.00402f32
jmp 0x415825
push edi
push dword [ebp - 0x24]
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x41577e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_get_version_info:__s
call fcn.004074db
pop ecx
pop ecx
push 0x462fd2
jmp 0x415747
mov esi, 0x462fac
push esi
lea ecx, [ebp - 0x18]
call fcn.00402eee
mov byte [ebp - 4], 6
call fcn.0041bb36
push eax
lea ecx, [ebp - 0x14]
call fcn.00405f08
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 7
call fcn.00403027
push eax
lea eax, [ebp - 0x14]
push str.StringFileInfo_sFileVersion
push eax
call fcn.00403880
add esp, 0xc
push 0
lea ecx, [ebp - 0x14]
call fcn.004032a1
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4157fb
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push 0x466c9c
push eax
call fcn.00403880
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.00403172
jmp 0x41580f
push str.Unable_to_get_version._Name_may_not_exist_or_the_resource_is_in_valid
call fcn.004074db
pop ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.00402eee
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, [ebx - 0x10]
call fcn.004010ea
mov eax, dword [ebp + 8]
call fcn.0043d572
ret