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

Disassembly:
push 0x20
mov eax, 0x45d77d
call fcn.00441277
and dword [ebp - 0x2c], 0
mov dword [ebp - 4], 1
call fcn.0041ef9c
push eax
lea ecx, [ebp - 0x10]
call fcn.00406449
mov byte [ebp - 4], 2
mov esi, dword [ebp + 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x417e11
call fcn.0042af0a
push dword [eax + 0x10]
lea ecx, [ebp - 0x10]
call fcn.0040387a
push str..exe
lea ecx, [ebp - 0x10]
call fcn.00403855
lea edi, [ebp - 0x14]
call fcn.00416bf3
push 0x46a764
mov eax, edi
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 3
call fcn.0040625e
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 4
call fcn.00406207
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.004035bc
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 0x417e1d
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x10]
call fcn.004035bc
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417e40
mov ecx, dword [ebp + 8]
push 0x467314
call fcn.00403310
lea ecx, [edi - 0x10]
jmp 0x417f6f
push 4
lea ecx, [ebp - 0x10]
call fcn.004036cd
and dword [ebp - 0x28], 0
push 0x50
mov edi, eax
pop eax
push eax
mov dword [ebp - 0x2c], eax
call fcn.0043b4d5
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.0043b4d5
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x417e98
push str.null_pointer_since_malloc_failed._returning
call fcn.00409842
mov dword [esp], 0x46733a
mov ecx, dword [ebp + 8]
call fcn.00403354
jmp 0x417f69
push ebx
push dword [ebp - 0x24]
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x417ec2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_get_version_info:__s
call fcn.00409842
pop ecx
pop ecx
push 0x46733a
jmp 0x417e8b
mov edi, 0x467314
push edi
lea ecx, [ebp - 0x18]
call fcn.00403310
mov byte [ebp - 4], 6
call fcn.0041ef9c
push eax
lea ecx, [ebp - 0x14]
call fcn.00406449
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 7
call fcn.00403453
push eax
lea eax, [ebp - 0x14]
push str.StringFileInfo_sFileVersion
push eax
call fcn.00403c8e
add esp, 0xc
push 0
lea ecx, [ebp - 0x14]
call fcn.004036cd
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 0x417f3f
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push 0x46b8bc
push eax
call fcn.00403c8e
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.0040359e
jmp 0x417f53
push str.Unable_to_get_version._Name_may_not_exist_or_the_resource_is_in_valid
call fcn.00409842
pop ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.00403310
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.0044134f
ret