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

Disassembly:
push 0x24
mov eax, 0x616e7e
call fcn.00508068
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], 1
call fcn.004e2479
push eax
lea ecx, [ebp - 0x10]
call fcn.00452c50
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
jne 0x6059dc
call fcn.004f1179
mov esi, dword [eax + 0x10]
push esi
call fcn.0045216a
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00452fb2
push 4
push str..exe
lea ecx, [ebp - 0x10]
call fcn.004531cd
lea ecx, [ebp - 0x14]
call fcn.00605e00
push 0x6b2b98
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0045266e
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004526c6
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00452dcd
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00452239
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00452239
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00452239
jmp 0x6059e8
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00452dcd
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x605a0a
push 0x6b2b30
mov ecx, edi
call fcn.0045290e
lea ecx, [esi - 0x10]
jmp 0x605b52
push 4
lea ecx, [ebp - 0x10]
call fcn.00452c9e
and dword [ebp - 0x28], 0
mov ebx, eax
push 0x50
pop eax
push eax
mov dword [ebp - 0x2c], eax
call fcn.0051a7b4
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.0051a7b4
mov esi, eax
pop ecx
test esi, esi
jne 0x605a62
push str.null_pointer_since_malloc_failed._returning
call fcn.00609c05
mov dword [esp], 0x6b2ba4
mov ecx, edi
call fcn.0045290e
jmp 0x605b4c
push esi
push dword [ebp - 0x24]
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x605a8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_get_version_info:__d
call fcn.00609c05
pop ecx
pop ecx
push 0x6b2b9c
jmp 0x605a56
push 0x6b2ba0
lea ecx, [ebp - 0x18]
call fcn.0045290e
mov byte [ebp - 4], 6
call fcn.004e2479
push eax
lea ecx, [ebp - 0x14]
call fcn.00452c50
mov byte [ebp - 4], 7
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x605ac7
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00452cd9
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push str.StringFileInfo_sFileVersion
push eax
call fcn.004533be
add esp, 0xc
lea ecx, [ebp - 0x14]
push 0
call fcn.00452c9e
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 0x605b1e
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push 0x6b2cb8
push eax
call fcn.004533be
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
push eax
call fcn.00452eea
add esp, 0x10
add eax, 0x10
mov dword [edi], eax
jmp 0x605b36
push str.Unable_to_get_version._Name_may_not_exist_or_the_resource_is_in_valid
call fcn.00609c05
mov ecx, edi
mov dword [esp], 0x6b2c74
call fcn.0045290e
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00452239
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00452239
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00452239
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00452239
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00452239
mov eax, edi
call fcn.00508031
ret