Function at 0x42b0b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5492a8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x59a530]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00408670
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x42b30b
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004e659d
add esp, 4
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
je 0x42b30b
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00408670
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42b2f9
call fcn.0042b450
movzx eax, al
test eax, eax
je 0x42b25e
call fcn.0042b3a0
movzx ecx, al
test ecx, ecx
jne 0x42b25e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x34]
push eax
push str.VarFileInfoTranslation
mov ecx, dword [ebp - 0x14]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42b25e
mov dword [ebp - 0x18], 0
jmp 0x42b19a
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x30]
shr eax, 2
cmp dword [ebp - 0x18], eax
jae 0x42b25e
lea ecx, [ebp - 0x20]
call fcn.00408020
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x34]
movzx eax, word [edx + ecx*4 + 2]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x34]
movzx eax, word [edx + ecx*4]
push eax
push str.StringFileInfo_04x_04xFileVersion
lea ecx, [ebp - 0x20]
push ecx
call fcn.0040ace0
add esp, 0x10
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00408670
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42b24a
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040ba50
push 0x2e
push 0x2c
mov ecx, dword [ebp + 0xc]
call fcn.0042b5d0
push 0x20
mov ecx, dword [ebp + 0xc]
call fcn.0042b4d0
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004083d0
jmp 0x42b25e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004083d0
jmp 0x42b191
cmp dword [ebp - 0x24], 0
je 0x42b277
mov ecx, dword [ebp + 0xc]
call fcn.00410db0
movzx ecx, al
test ecx, ecx
je 0x42b2f9
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x44], 0
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x5576e4
mov ecx, dword [ebp - 0x14]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42b2f9
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
push str._d._d._d._d
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040ace0
add esp, 0x18
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004e6564
add esp, 4
cmp dword [ebp - 0x24], 0
je 0x42b317
mov byte [ebp - 0xd], 1
jmp 0x42b31b
mov byte [ebp - 0xd], 0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret