Function at 0x4c4641
Capabilities:
Get common file path

Disassembly:
push 0x8a8
mov eax, 0x5aa2c3
call fcn.0056ce95
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 0x4c469f
push str.updtDispDevEnumClass::GetDriverFileInfocannot_get_the_system_dir
xor ecx, ecx
inc ecx
call fcn.0047c666
pop ecx
xor al, al
jmp 0x4c491a
call fcn.004c5947
mov edi, eax
mov dword [ebp - 0x8b4], edi
mov dword [ebp - 0x8a8], ebx
cmp dword [edi], ebx
je 0x4c4909
mov esi, edi
push str._impure_
push dword [esi]
call fcn.00563c40
pop ecx
pop ecx
test eax, eax
jne 0x4c46da
mov byte [ebp - 0x899], 1
jmp 0x4c48f2
push dword [esi]
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x414]
push str._s_s
push eax
call fcn.004c6a70
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x824], ebx
mov dword [ebp - 0x820], ebx
call fcn.00563df1
add esp, 0x18
test eax, eax
jne 0x4c48f2
push 0x54
call fcn.0055e7f7
mov esi, eax
pop ecx
mov dword [ebp - 0x8b0], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x4c475b
mov ecx, esi
call fcn.00409083
mov byte [ebp - 4], 1
lea ecx, [esi + 0x1c]
call fcn.00409083
mov byte [ebp - 4], 2
lea ecx, [esi + 0x38]
call fcn.00409083
mov byte [ebp - 4], bl
mov edi, esi
jmp 0x4c475d
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x8b0], edi
cmp edi, ebx
je 0x4c4922
lea eax, [ebp - 0x824]
push eax
call fcn.00563a74
pop ecx
push eax
lea eax, [ebp - 0x860]
push eax
call fcn.0047758b
pop ecx
pop ecx
mov dword [ebp - 4], 4
lea esi, [edi + 0x38]
mov ebx, eax
mov eax, esi
call fcn.0040ab21
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x860]
call fcn.004090d2
cmp dword [esi + 0x14], 8
mov eax, dword [edi + 0x48]
jb 0x4c47ba
mov ecx, dword [esi]
jmp 0x4c47bc
mov ecx, esi
push 0xa
add eax, eax
pop edx
cmp dx, word [eax + ecx - 2]
jne 0x4c47d7
cmp dword [esi + 0x14], 8
jb 0x4c47d0
mov esi, dword [esi]
xor ecx, ecx
mov word [eax + esi - 2], cx
cmp byte [ebp - 0x899], 0
jne 0x4c4837
mov eax, dword [ebp - 0x824]
mov ecx, dword [ebp - 0x820]
mov edx, eax
or edx, ecx
je 0x4c4837
mov edx, dword [ebp - 0x8a4]
or edx, dword [ebp - 0x8a0]
jne 0x4c480e
mov dword [ebp - 0x8a4], eax
mov dword [ebp - 0x8a0], ecx
jmp 0x4c4837
sub eax, dword [ebp - 0x8a4]
sbb ecx, dword [ebp - 0x8a0]
push ecx
push eax
call fcn.00563cfd
pop ecx
pop ecx
test edx, edx
jl 0x4c4837
jg 0x4c4830
cmp eax, 0xb4
jbe 0x4c4837
mov byte [ebp - 0x89a], 0
push str.Unknown
lea esi, [edi + 0x1c]
push esi
call fcn.0040ad38
lea ecx, [ebp - 0x414]
call fcn.004c4587
test al, al
jne 0x4c4862
push str.GetBasicFileVersion_failed
push 2
pop ecx
call fcn.0047c666
pop ecx
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.00563cd0
pop ecx
pop ecx
test eax, eax
jne 0x4c48a7
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x898]
push eax
call fcn.0047758b
pop ecx
pop ecx
mov dword [ebp - 4], 5
mov ebx, eax
mov eax, edi
call fcn.0040ab21
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x898]
jmp 0x4c48d1
inc eax
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.0047758b
pop ecx
pop ecx
mov dword [ebp - 4], 6
mov ebx, eax
mov eax, edi
call fcn.0040ab21
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x87c]
call fcn.004090d2
mov esi, dword [ebp - 0x8ac]
add esi, 0x4c
lea ecx, [ebp - 0x8b0]
call fcn.004ca502
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 0x4c46bc
mov al, byte [ebp - 0x89a]
mov ecx, dword [ebp - 0x8ac]
mov byte [ecx + 0x39], al
mov al, 1
call fcn.0056cf18
ret 4
push str.new_updtDispDrvFileInfo_failed
jmp 0x4c468f