Function at 0x45f009
Capabilities:
Get common file path

Disassembly:
push 0x8b0
mov eax, 0x529596
call fcn.004f4139
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8b0], 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 0x45f067
push str.updtDispDevEnumClass::GetDriverFileInfocannot_get_the_system_dir
xor ecx, ecx
inc ecx
call fcn.004284f3
pop ecx
xor al, al
jmp 0x45f2e7
call fcn.00460282
mov edi, eax
mov dword [ebp - 0x8b4], edi
mov dword [ebp - 0x8a8], ebx
cmp dword [edi], ebx
je 0x45f2d6
mov esi, edi
push str._impure_
push dword [esi]
call fcn.004ec860
pop ecx
pop ecx
test eax, eax
jne 0x45f0a2
mov byte [ebp - 0x899], 1
jmp 0x45f2bf
push dword [esi]
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x414]
push str._s_s
push eax
call fcn.0046181c
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x824], ebx
mov dword [ebp - 0x820], ebx
call fcn.004ec9f7
add esp, 0x18
test eax, eax
jne 0x45f2bf
push 0x54
call fcn.004e7983
mov esi, eax
pop ecx
mov dword [ebp - 0x8ac], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x45f123
mov ecx, esi
call fcn.0040318b
mov byte [ebp - 4], 1
lea ecx, [esi + 0x1c]
call fcn.0040318b
mov byte [ebp - 4], 2
lea ecx, [esi + 0x38]
call fcn.0040318b
mov byte [ebp - 4], bl
mov edi, esi
jmp 0x45f125
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x8ac], edi
cmp edi, ebx
je 0x45f2ef
lea eax, [ebp - 0x824]
push eax
call fcn.004e7a56
pop ecx
push eax
lea eax, [ebp - 0x860]
push eax
call fcn.00424615
pop ecx
pop ecx
mov dword [ebp - 4], 4
lea esi, [edi + 0x38]
mov ebx, eax
mov eax, esi
call fcn.00403e2e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x860]
call fcn.004014ad
cmp dword [esi + 0x14], 8
mov eax, dword [edi + 0x48]
jb 0x45f182
mov ecx, dword [esi]
jmp 0x45f184
mov ecx, esi
push 0xa
add eax, eax
pop edx
cmp dx, word [eax + ecx - 2]
jne 0x45f19f
cmp dword [esi + 0x14], 8
jb 0x45f198
mov esi, dword [esi]
xor ecx, ecx
mov word [eax + esi - 2], cx
cmp byte [ebp - 0x899], 0
jne 0x45f204
mov ecx, dword [ebp - 0x824]
mov eax, dword [ebp - 0x820]
mov edx, ecx
or edx, eax
je 0x45f204
mov edx, dword [ebp - 0x8a4]
or edx, dword [ebp - 0x8a0]
jne 0x45f1d6
mov dword [ebp - 0x8a4], ecx
mov dword [ebp - 0x8a0], eax
jmp 0x45f204
sub ecx, dword [ebp - 0x8a4]
sbb eax, dword [ebp - 0x8a0]
cdq
xor eax, edx
xor ecx, edx
sub ecx, edx
sbb eax, edx
mov dword [ebp - 0x8b8], eax
js 0x45f204
jg 0x45f1fd
cmp ecx, 0xb4
jbe 0x45f204
mov byte [ebp - 0x89a], 0
push 0x53bb14
lea esi, [edi + 0x1c]
push esi
call fcn.00403fad
lea ecx, [ebp - 0x414]
call fcn.0045ef4f
test al, al
jne 0x45f22f
push str.GetBasicFileVersion_failed
push 2
pop ecx
call fcn.004284f3
pop ecx
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.004ec8f0
pop ecx
pop ecx
test eax, eax
jne 0x45f274
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x898]
push eax
call fcn.00424615
pop ecx
pop ecx
mov dword [ebp - 4], 5
mov ebx, eax
mov eax, edi
call fcn.00403e2e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x898]
jmp 0x45f29e
inc eax
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.00424615
pop ecx
pop ecx
mov dword [ebp - 4], 6
mov ebx, eax
mov eax, edi
call fcn.00403e2e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x87c]
call fcn.004014ad
mov esi, dword [ebp - 0x8b0]
add esi, 0x4c
lea ecx, [ebp - 0x8ac]
call fcn.00460a3d
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 0x45f084
mov al, byte [ebp - 0x89a]
mov ecx, dword [ebp - 0x8b0]
mov byte [ecx + 0x39], al
mov al, 1
call fcn.004f41bc
ret 4
push str.new_updtDispDrvFileInfo_failed
jmp 0x45f057