Function at 0x4e5517
Capabilities:
Get common file path

Disassembly:
push 0x8a8
mov eax, 0x5619e7
call fcn.00523c97
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 0x4e5575
push str.updtDispDevEnumClass::GetDriverFileInfocannot_get_the_system_dir
xor ecx, ecx
inc ecx
call fcn.00492b4d
pop ecx
xor al, al
jmp 0x4e57f0
call fcn.004e697a
mov edi, eax
mov dword [ebp - 0x8b4], edi
mov dword [ebp - 0x8a8], ebx
cmp dword [edi], ebx
je 0x4e57df
mov esi, edi
push str._impure_
push dword [esi]
call fcn.0051b120
pop ecx
pop ecx
test eax, eax
jne 0x4e55b0
mov byte [ebp - 0x899], 1
jmp 0x4e57c8
push dword [esi]
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x414]
push str._s_s
push eax
call fcn.004e7c93
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x824], ebx
mov dword [ebp - 0x820], ebx
call fcn.0051b2d1
add esp, 0x18
test eax, eax
jne 0x4e57c8
push 0x54
call fcn.00515ac7
mov esi, eax
pop ecx
mov dword [ebp - 0x8b0], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x4e5631
mov ecx, esi
call fcn.0040337c
mov byte [ebp - 4], 1
lea ecx, [esi + 0x1c]
call fcn.0040337c
mov byte [ebp - 4], 2
lea ecx, [esi + 0x38]
call fcn.0040337c
mov byte [ebp - 4], bl
mov edi, esi
jmp 0x4e5633
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x8b0], edi
cmp edi, ebx
je 0x4e57f8
lea eax, [ebp - 0x824]
push eax
call fcn.0051af46
pop ecx
push eax
lea eax, [ebp - 0x860]
push eax
call fcn.0048eebc
pop ecx
pop ecx
mov dword [ebp - 4], 4
lea esi, [edi + 0x38]
mov ebx, eax
mov eax, esi
call fcn.0040403a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x860]
call fcn.004033b1
cmp dword [esi + 0x14], 8
mov eax, dword [edi + 0x48]
jb 0x4e5690
mov ecx, dword [esi]
jmp 0x4e5692
mov ecx, esi
push 0xa
add eax, eax
pop edx
cmp dx, word [eax + ecx - 2]
jne 0x4e56ad
cmp dword [esi + 0x14], 8
jb 0x4e56a6
mov esi, dword [esi]
xor ecx, ecx
mov word [eax + esi - 2], cx
cmp byte [ebp - 0x899], 0
jne 0x4e570d
mov eax, dword [ebp - 0x824]
mov ecx, dword [ebp - 0x820]
mov edx, eax
or edx, ecx
je 0x4e570d
mov edx, dword [ebp - 0x8a4]
or edx, dword [ebp - 0x8a0]
jne 0x4e56e4
mov dword [ebp - 0x8a4], eax
mov dword [ebp - 0x8a0], ecx
jmp 0x4e570d
sub eax, dword [ebp - 0x8a4]
sbb ecx, dword [ebp - 0x8a0]
push ecx
push eax
call fcn.0051b1dd
pop ecx
pop ecx
test edx, edx
jl 0x4e570d
jg 0x4e5706
cmp eax, 0xb4
jbe 0x4e570d
mov byte [ebp - 0x89a], 0
push str.Unknown
lea esi, [edi + 0x1c]
push esi
call fcn.0040411c
lea ecx, [ebp - 0x414]
call fcn.004e545d
test al, al
jne 0x4e5738
push str.GetBasicFileVersion_failed
push 2
pop ecx
call fcn.00492b4d
pop ecx
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.0051b1b0
pop ecx
pop ecx
test eax, eax
jne 0x4e577d
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x898]
push eax
call fcn.0048eebc
pop ecx
pop ecx
mov dword [ebp - 4], 5
mov ebx, eax
mov eax, edi
call fcn.0040403a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x898]
jmp 0x4e57a7
inc eax
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.0048eebc
pop ecx
pop ecx
mov dword [ebp - 4], 6
mov ebx, eax
mov eax, edi
call fcn.0040403a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x87c]
call fcn.004033b1
mov esi, dword [ebp - 0x8ac]
add esi, 0x4c
lea ecx, [ebp - 0x8b0]
call fcn.004fbc84
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 0x4e5592
mov al, byte [ebp - 0x89a]
mov ecx, dword [ebp - 0x8ac]
mov byte [ecx + 0x39], al
mov al, 1
call fcn.00523d1a
ret 4
push str.new_updtDispDrvFileInfo_failed
jmp 0x4e5565