Function at 0x427260
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040d3c0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x427485
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00613615
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x427485
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040d3c0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x427473
call fcn.00427620
test eax, eax
je 0x4273d4
call fcn.00427580
test eax, eax
jne 0x4273d4
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0x686710
mov edx, dword [ebp - 4]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4273d4
mov dword [ebp - 8], 0
jmp 0x427325
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x20]
shr ecx, 2
cmp dword [ebp - 8], ecx
jae 0x4273d4
lea ecx, [ebp - 0x10]
call fcn.00413220
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + edx*4 + 2]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + edx*4]
push ecx
push str.StringFileInfo_04x_04xFileVersion
lea edx, [ebp - 0x10]
push edx
call fcn.00422a10
add esp, 0x10
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040d3c0
push eax
mov edx, dword [ebp - 4]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4273c7
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040e650
push 0x2e
push 0x2c
mov ecx, dword [ebp + 0xc]
call fcn.004277e0
push 0x20
mov ecx, dword [ebp + 0xc]
call fcn.004276e0
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x10]
call fcn.00413870
jmp 0x4273d4
lea ecx, [ebp - 0x10]
call fcn.00413870
jmp 0x42731c
cmp dword [ebp - 0x14], 0
je 0x4273ed
mov ecx, dword [ebp + 0xc]
call fcn.0040dd70
movzx edx, al
test edx, edx
je 0x427473
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x6866d4
mov edx, dword [ebp - 4]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x427473
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
push str._d._d._d._d
mov eax, dword [ebp + 0xc]
push eax
call fcn.00422a10
add esp, 0x18
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.0061361e
add esp, 4
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret