Function at 0x414731
Capabilities:
Get file version info

Disassembly:
push 0x114
mov eax, 0x479779
call fcn.00450819
mov dword [ebp - 0x54], edx
mov eax, ecx
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x48]
xor ebx, ebx
push ecx
push eax
mov dword [ebp - 0x48], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x414773
push str.updtDispDevEnumClass::GetBasicFileVersion_Failed
push 2
call fcn.00406d9c
pop ecx
pop ecx
xor al, al
jmp 0x414989
push esi
lea ecx, [ebp - 0x64]
call fcn.0040cf65
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x64]
call fcn.0040732b
mov edi, eax
push dword [edi]
push esi
push ebx
push dword [ebp - 0x44]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4147ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x120]
mov esi, eax
call fcn.00408d76
mov edi, eax
mov byte [ebp - 4], 1
push str.GetBasicFileVersion::GetFileVersionInfo_FailedError_code_
push edi
call fcn.0040b812
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.0040a427
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00408d5d
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
push 2
call fcn.00406d81
pop ecx
pop ecx
mov byte [ebp - 4], 1
jmp 0x414965
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x4914c0
push dword [edi]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x414917
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x120]
movzx esi, word [eax + 0xa]
movzx edi, word [eax + 8]
movzx ebx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
mov dword [ebp - 0x50], eax
call fcn.00408d76
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 3
push esi
mov esi, eax
mov ecx, esi
call fcn.0040e0c2
push 0x2e
push esi
call fcn.0040b9d8
push 0
lea eax, [ebp - 0x78]
push 2
push eax
call fcn.0044f90b
add esp, 0x14
mov edx, eax
mov ecx, esi
call fcn.0040c7d8
mov eax, dword [esi]
push 0x30
pop ecx
push edi
mov eax, dword [eax + 4]
mov word [eax + esi + 0x40], cx
mov ecx, esi
call fcn.0040e0c2
push 0x2e
push esi
call fcn.0040b9d8
push 0
lea eax, [ebp - 0x88]
push 2
push eax
call fcn.0044f90b
add esp, 0x14
mov edx, eax
mov ecx, esi
call fcn.0040c7d8
mov eax, dword [esi]
mov ecx, esi
push 0x30
pop edi
push ebx
mov eax, dword [eax + 4]
mov word [eax + esi + 0x40], di
call fcn.0040e0c2
push 0x2e
push esi
call fcn.0040b9d8
xor ebx, ebx
lea eax, [ebp - 0x20]
push ebx
push 4
push eax
call fcn.0044f90b
add esp, 0x14
mov edx, eax
mov ecx, esi
call fcn.0040c7d8
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x50]
mov eax, dword [eax + 4]
mov word [eax + esi + 0x40], di
call fcn.0040e0c2
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00408d5d
mov byte [ebp - 4], 4
push eax
mov ecx, dword [ebp - 0x54]
call fcn.0041508c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.00407241
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x120]
call fcn.0040878b
mov bl, 1
jmp 0x41497b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x120]
mov esi, eax
call fcn.00408d76
mov edi, eax
mov byte [ebp - 4], 5
push str.GetBasicFileVersion::VerQueryValue_FailedError_code_
push edi
call fcn.0040b812
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.0040a427
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00408d5d
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
push eax
push 2
call fcn.00406d81
pop ecx
pop ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00407241
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x120]
call fcn.0040878b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.0040c901
mov al, bl
call fcn.004507c3
ret