Function at 0x4c8808
Capabilities:
Get common file path

Disassembly:
push 0x8a8
mov eax, 0x5a8eb4
call fcn.0056beab
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8ac], eax
xor ebx, ebx
push 0x400
lea eax, [ebp - 0x814]
push eax
mov dword [ebp - 0x8a4], ebx
mov dword [ebp - 0x8a0], ebx
mov byte [ebp - 0x899], bl
mov byte [ebp - 0x89a], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4c8866
push str.updtDispDevEnumClass::GetDriverFileInfocannot_get_the_system_dir
xor ecx, ecx
inc ecx
call fcn.0047feaf
pop ecx
xor al, al
jmp 0x4c8ae1
call fcn.004c9c5b
mov edi, eax
mov dword [ebp - 0x8b4], edi
mov dword [ebp - 0x8a8], ebx
cmp dword [edi], ebx
je 0x4c8ad0
mov esi, edi
push str._impure_
push dword [esi]
call fcn.00563240
pop ecx
pop ecx
test eax, eax
jne 0x4c88a1
mov byte [ebp - 0x899], 1
jmp 0x4c8ab9
push dword [esi]
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x414]
push str._s_s
push eax
call fcn.004cb0fe
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x824], ebx
mov dword [ebp - 0x820], ebx
call fcn.005633f1
add esp, 0x18
test eax, eax
jne 0x4c8ab9
push 0x54
call fcn.0055db17
mov esi, eax
pop ecx
mov dword [ebp - 0x8b0], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x4c8922
mov ecx, esi
call fcn.0040379b
mov byte [ebp - 4], 1
lea ecx, [esi + 0x1c]
call fcn.0040379b
mov byte [ebp - 4], 2
lea ecx, [esi + 0x38]
call fcn.0040379b
mov byte [ebp - 4], bl
mov edi, esi
jmp 0x4c8924
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x8b0], edi
cmp edi, ebx
je 0x4c8ae9
lea eax, [ebp - 0x824]
push eax
call fcn.00563070
pop ecx
push eax
lea eax, [ebp - 0x860]
push eax
call fcn.0047bdb1
pop ecx
pop ecx
mov dword [ebp - 4], 4
lea esi, [edi + 0x38]
mov ebx, eax
mov eax, esi
call fcn.0040447e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x860]
call fcn.004037d0
cmp dword [esi + 0x14], 8
mov eax, dword [edi + 0x48]
jb 0x4c8981
mov ecx, dword [esi]
jmp 0x4c8983
mov ecx, esi
push 0xa
add eax, eax
pop edx
cmp dx, word [eax + ecx - 2]
jne 0x4c899e
cmp dword [esi + 0x14], 8
jb 0x4c8997
mov esi, dword [esi]
xor ecx, ecx
mov word [eax + esi - 2], cx
cmp byte [ebp - 0x899], 0
jne 0x4c89fe
mov eax, dword [ebp - 0x824]
mov ecx, dword [ebp - 0x820]
mov edx, eax
or edx, ecx
je 0x4c89fe
mov edx, dword [ebp - 0x8a4]
or edx, dword [ebp - 0x8a0]
jne 0x4c89d5
mov dword [ebp - 0x8a4], eax
mov dword [ebp - 0x8a0], ecx
jmp 0x4c89fe
sub eax, dword [ebp - 0x8a4]
sbb ecx, dword [ebp - 0x8a0]
push ecx
push eax
call fcn.005632fd
pop ecx
pop ecx
test edx, edx
jl 0x4c89fe
jg 0x4c89f7
cmp eax, 0xb4
jbe 0x4c89fe
mov byte [ebp - 0x89a], 0
push str.Unknown
lea esi, [edi + 0x1c]
push esi
call fcn.00404560
lea ecx, [ebp - 0x414]
call fcn.004c874e
test al, al
jne 0x4c8a29
push str.GetBasicFileVersion_failed
push 2
pop ecx
call fcn.0047feaf
pop ecx
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.005632d0
pop ecx
pop ecx
test eax, eax
jne 0x4c8a6e
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x898]
push eax
call fcn.0047bdb1
pop ecx
pop ecx
mov dword [ebp - 4], 5
mov ebx, eax
mov eax, edi
call fcn.0040447e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x898]
jmp 0x4c8a98
inc eax
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.0047bdb1
pop ecx
pop ecx
mov dword [ebp - 4], 6
mov ebx, eax
mov eax, edi
call fcn.0040447e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x87c]
call fcn.004037d0
mov esi, dword [ebp - 0x8ac]
add esi, 0x4c
lea ecx, [ebp - 0x8b0]
call fcn.004ca3f5
mov edi, dword [ebp - 0x8b4]
xor ebx, ebx
inc dword [ebp - 0x8a8]
mov eax, dword [ebp - 0x8a8]
lea esi, [edi + eax*4]
cmp dword [esi], ebx
jne 0x4c8883
mov al, byte [ebp - 0x89a]
mov ecx, dword [ebp - 0x8ac]
mov byte [ecx + 0x39], al
mov al, 1
call fcn.0056bf2e
ret 4
push str.new_updtDispDrvFileInfo_failed
jmp 0x4c8856