Function at 0x4c9ce5
Capabilities:
Get file version info

Disassembly:
push 0x128
mov eax, 0x5a0c3f
call fcn.0056ce95
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x78]
mov ebx, ecx
push eax
push ebx
mov byte [ebp - 0x51], 1
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x4c9d28
push str.updtDispDevEnumClass::GetBasicFileVersion_Failed
push 2
pop ecx
call fcn.0047c666
pop ecx
xor al, al
jmp 0x4c9f78
push esi
call fcn.0055e4e1
pop ecx
push eax
push esi
push edi
push ebx
mov dword [ebp - 0x58], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4c9dba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x134]
push eax
call fcn.00409ac6
mov esi, eax
mov dword [ebp - 4], edi
push str.GetBasicFileVersion::GetFileVersionInfo_FailedError_code_
push esi
call fcn.0040fa1f
pop ecx
pop ecx
push ebx
push esi
call fcn.0040d432
lea eax, [ebp - 0x34]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 1
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x4c9d88
lea eax, [ebp - 0x34]
push eax
push 2
pop ecx
call fcn.0047c666
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004090d2
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x134]
call fcn.004021a3
push dword [ebp - 0x58]
call fcn.0055e744
jmp 0x4c9d20
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x5c2724
push dword [ebp - 0x58]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4c9ef2
mov eax, dword [ebp - 0x60]
movzx ecx, word [eax + 8]
movzx esi, word [eax + 0xa]
mov dword [ebp - 0x64], ecx
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - 0x68], ecx
call fcn.00409ac6
mov dword [ebp - 0x70], eax
push 2
pop ebx
mov dword [ebp - 4], ebx
push esi
push eax
call fcn.00436f9b
mov esi, dword [ebp - 0x70]
push 0x2e
push esi
call fcn.004101f8
push edi
lea eax, [ebp - 0x8c]
push ebx
push eax
call fcn.0057d246
add esp, 0x14
mov ecx, eax
call fcn.0040d109
push 0x30
mov esi, eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
pop ecx
push dword [ebp - 0x64]
mov word [eax + esi + 0x40], cx
push esi
call fcn.00436f9b
push 0x2e
push esi
call fcn.004101f8
push edi
lea eax, [ebp - 0x9c]
push ebx
push eax
call fcn.0057d246
add esp, 0x14
mov ecx, eax
call fcn.0040d109
push 0x30
mov esi, eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
pop ecx
push dword [ebp - 0x68]
mov word [eax + esi + 0x40], cx
push esi
call fcn.00436f9b
push 0x2e
push esi
call fcn.004101f8
push edi
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.0057d246
add esp, 0x14
mov ecx, eax
call fcn.0040d109
push 0x30
mov esi, eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
pop ecx
push dword [ebp - 0x6c]
mov word [eax + esi + 0x40], cx
push esi
call fcn.00436f9b
lea eax, [ebp - 0x50]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x5c]
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x50]
call fcn.0040ac9e
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x50]
call fcn.004090d2
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x134]
call fcn.004021a3
jmp 0x4c9f67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x134]
push eax
call fcn.00409ac6
mov esi, eax
mov dword [ebp - 4], 4
push str.GetBasicFileVersion::VerQueryValue_FailedError_code_
push esi
call fcn.0040fa1f
pop ecx
pop ecx
push ebx
push esi
call fcn.0040d432
lea eax, [ebp - 0x34]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 5
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x4c9f3e
lea eax, [ebp - 0x34]
push eax
push 2
pop ecx
call fcn.0047c666
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.004090d2
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x134]
call fcn.004021a3
mov byte [ebp - 0x51], 0
cmp dword [ebp - 0x58], edi
je 0x4c9f75
push dword [ebp - 0x58]
call fcn.0055e744
pop ecx
mov al, byte [ebp - 0x51]
call fcn.0056cf18
ret