Function at 0x10678dd
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [esi + 0xc], edi
mov dword [ebp - 0x620], edi
je 0x1067b6a
push 0x1004298
mov dword [ebp - 0x624], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [ebp - 0x634], eax
je 0x1067b18
push 0x100e778
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [ebp - 0x638], eax
je 0x1067b0c
push dword [esi + 0xc]
call fcn.01056f43
test eax, eax
je 0x1067b0c
push ebx
push edi
push 1
push 0x100e750
mov ecx, esi
mov dword [ebp - 0x62c], edi
mov dword [ebp - 0x630], edi
mov dword [ebp - 0x628], edi
mov dword [ebp - 0x620], edi
call fcn.01063271
push 1
lea eax, [ebp - 0x624]
push eax
push 0x100d550
mov ecx, esi
call fcn.0106754e
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x62c]
push eax
mov ecx, esi
call fcn.0106776e
push dword [esi + 0xc]
push 0x100e734
push 4
pop ebx
push ebx
call fcn.0105e5ad
push dword [esi + 0x10]
push 0x100e714
push ebx
call fcn.0105e5ad
push dword [ebp - 0x620]
push dword [ebp - 0x628]
push dword [ebp - 0x630]
push dword [ebp - 0x62c]
push 0x100e6e8
push ebx
call fcn.0105e5ad
add esp, 0x30
push edi
push dword [ebp - 0x620]
push dword [ebp - 0x628]
push dword [ebp - 0x630]
push dword [ebp - 0x62c]
push edi
push dword [esi + 0x10]
push dword [esi + 0xc]
call dword [ebp - 0x638]
push eax
push dword [esi + 0xc]
mov dword [ebp - 0x620], eax
push 0x100e6b4
push ebx
call fcn.0105e5ad
add esp, 0x10
cmp dword [ebp - 0x620], 0x20000100
jne 0x1067b0b
mov ecx, esi
call fcn.01067364
test eax, eax
jne 0x1067ad8
push 0x5c
push dword [esi + 0xc]
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
je 0x1067aba
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1067aba
add ebx, 2
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x100e69c
push 0x100e640
push 0x100e618
lea eax, [ebp - 0x61c]
push 0x208
push eax
call fcn.01034d76
add esp, 0x1c
lea eax, [ebp - 0x61c]
push eax
push 0x10040a0
call fcn.0105aa51
push edi
push 0x100e5f8
push 8
mov ecx, 0x10820c8
call fcn.01059acf
mov dword [ebp - 0x620], 0xd2af9
jmp 0x1067b0b
push 1
mov ecx, 0x10820c8
call fcn.01059a9c
push edi
push 2
push edi
push dword [esi + 0xc]
call fcn.0105e6fe
cmp eax, 0xffffffff
je 0x1067b0b
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x40
push 0x100e69c
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupInstallFromInfSectionW]
pop ebx
push dword [ebp - 0x634]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x10821d0]
and eax, 8
push eax
push 1
push 0x100e5cc
mov ecx, esi
call fcn.01063271
push 1
lea eax, [ebp - 0x624]
push eax
push 0x100d530
mov ecx, esi
call fcn.0106754e
cmp dword [ebp - 0x624], edi
je 0x1067b74
push edi
push 0x100e5ac
push 1
mov ecx, 0x10820c8
call fcn.01059acf
mov dword [ebp - 0x620], 0xd2af9
jmp 0x1067b74
mov dword [ebp - 0x620], 0x80004005
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x620]
pop edi
xor ecx, ebp
pop esi
call fcn.01047417
leave
ret