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

Disassembly:
push 0x24
mov eax, 0x466b9f
call fcn.0043d25b
mov edi, ecx
mov dword [ebp - 0x30], edi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040431c
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
jne 0x40e4cf
call fcn.00424f9c
mov esi, dword [eax + 0x10]
test esi, esi
jne 0x40e441
xor eax, eax
jmp 0x40e448
push esi
call fcn.00443870
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00404b48
mov esi, str..exe
push esi
call fcn.00443870
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00404875
lea ecx, [ebp - 0x14]
call fcn.0040e319
push 0x47ea4c
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00409959
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040ecd8
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00404926
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00401696
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00401696
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401696
jmp 0x40e4db
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00404926
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e4fd
push 0x479a58
mov ecx, edi
call fcn.004042c5
lea ecx, [esi - 0x10]
jmp 0x40e637
push 4
lea ecx, [ebp - 0x10]
call fcn.004047ce
and dword [ebp - 0x28], 0
mov ebx, eax
push 0x50
pop eax
push eax
mov dword [ebp - 0x2c], eax
call fcn.0044ac16
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.0044ac16
mov esi, eax
pop ecx
test esi, esi
jne 0x40e555
push str.null_pointer_since_malloc_failed._returning
call fcn.004064a1
mov dword [esp], 0x479a58
mov ecx, edi
call fcn.004042c5
jmp 0x40e631
push esi
push dword [ebp - 0x24]
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40e580
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_get_version_info:__d
call fcn.004064a1
pop ecx
pop ecx
push 0x479a58
jmp 0x40e549
mov ebx, 0x479a58
lea ecx, [ebp - 0x18]
push ebx
call fcn.004042c5
lea ecx, [ebp - 0x14]
call fcn.0040431c
mov byte [ebp - 4], 7
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x40e5b1
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00404809
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push str.StringFileInfo_sFileVersion
push eax
call fcn.00404e31
add esp, 0xc
lea ecx, [ebp - 0x14]
push 0
call fcn.004047ce
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 0x40e608
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push 0x47d290
push eax
call fcn.00404e31
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
push eax
call fcn.00404a80
add esp, 0x10
add eax, 0x10
mov dword [edi], eax
jmp 0x40e61b
push str.Unable_to_get_version._Name_may_not_exist_or_the_resource_is_in_valid
call fcn.004064a1
pop ecx
push ebx
mov ecx, edi
call fcn.004042c5
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401696
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401696
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401696
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00401696
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00401696
mov eax, edi
call fcn.0043d229
ret