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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4091b6
mov eax, dword [ebp - 0x220]
jmp 0x4093cf
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x4091dc
mov eax, dword [ebp - 0x220]
jmp 0x4093cf
mov edx, dword [ebp - 0x228]
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x409205
mov eax, dword [ebp - 0x220]
jmp 0x4093cf
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x409249
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x228]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x409261
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x220]
jmp 0x4093cf
mov dword [ebp - 0x218], 0
push 0x208
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.0040fb70
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
push ecx
push 0x423c60
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x4092af
jmp 0x4093af
cmp dword [ebp + 0xc], 0
je 0x4092c3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx + 8]
mov dword [eax], edx
cmp dword [ebp + 0x10], 0
je 0x4092d7
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx + 0xc]
mov dword [eax], edx
cmp dword [ebp + 0x14], 0
je 0x4092eb
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx + 0x10]
mov dword [eax], edx
cmp dword [ebp + 0x18], 0
je 0x4092ff
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx + 0x14]
mov dword [eax], edx
cmp dword [ebp + 0x1c], 0
je 0x409352
push str.StringFileInfo080404B0FileVersion
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x409341
jmp 0x4093af
mov edx, dword [ebp - 0x218]
push edx
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp + 0x20], 0
je 0x4093a5
push str.StringFileInfo080404B0ProductVersion
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x409394
jmp 0x4093af
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x220], 1
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e852
mov esp, ebp
pop ebp
ret