Function at 0x41cad0
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.00407c80
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41ccf7
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00472167
add esp, 4
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x41ccf7
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.00407c80
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41cce5
call fcn.0041d230
movzx eax, al
test eax, eax
je 0x41cc4a
call fcn.0041d180
movzx ecx, al
test ecx, ecx
jne 0x41cc4a
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 0x41cc4a
mov dword [ebp - 0xc], 0
jmp 0x41cb9b
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 0x41cc4a
lea ecx, [ebp - 0x14]
call fcn.00407970
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.00416ab0
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.00407c80
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41cc3d
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00409390
push 0x2e
push 0x2c
mov ecx, dword [ebp + 0xc]
call fcn.0041d840
push 0x20
mov ecx, dword [ebp + 0xc]
call fcn.0041d560
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x14]
call fcn.00407ac0
jmp 0x41cc4a
lea ecx, [ebp - 0x14]
call fcn.00407ac0
jmp 0x41cb92
cmp dword [ebp - 0x18], 0
je 0x41cc63
mov ecx, dword [ebp + 0xc]
call fcn.00408d00
movzx ecx, al
test ecx, ecx
je 0x41cce5
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x38], 0
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x10]
push eax
push 0x5f5d3c
mov ecx, dword [ebp - 8]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41cce5
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 0x5f5e04
mov edx, dword [ebp + 0xc]
push edx
call fcn.00416ab0
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.00472254
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x41cd03
mov byte [ebp - 1], 1
jmp 0x41cd07
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret