Function at 0x421e60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404490
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x422087
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0046cee7
add esp, 4
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x422087
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404490
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x422075
call fcn.004223d0
movzx eax, al
test eax, eax
je 0x421fda
call fcn.00422320
movzx ecx, al
test ecx, ecx
jne 0x421fda
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x28]
push eax
push str.VarFileInfoTranslation
mov ecx, dword [ebp - 8]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x421fda
mov dword [ebp - 0xc], 0
jmp 0x421f2b
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x24]
shr eax, 2
cmp dword [ebp - 0xc], eax
jae 0x421fda
lea ecx, [ebp - 0x14]
call fcn.00404180
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
movzx eax, word [edx + ecx*4 + 2]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
movzx eax, word [edx + ecx*4]
push eax
push str.StringFileInfo_04x_04xFileVersion
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040da40
add esp, 0x10
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x14]
call fcn.00404490
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x421fcd
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00405ba0
push 0x2e
push 0x2c
mov ecx, dword [ebp + 0xc]
call fcn.004227c0
push 0x20
mov ecx, dword [ebp + 0xc]
call fcn.004226c0
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x14]
call fcn.004042d0
jmp 0x421fda
lea ecx, [ebp - 0x14]
call fcn.004042d0
jmp 0x421f22
cmp dword [ebp - 0x18], 0
je 0x421ff3
mov ecx, dword [ebp + 0xc]
call fcn.00405510
movzx ecx, al
test ecx, ecx
je 0x422075
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x38], 0
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x10]
push eax
push 0x521fb4
mov ecx, dword [ebp - 8]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x422075
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
push 0x522084
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040da40
add esp, 0x18
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0046cfd4
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x422093
mov byte [ebp - 1], 1
jmp 0x422097
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret