Function at 0x10008816
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d53be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x76c
push esi
push edi
lea edi, [ebp - 0x778]
mov ecx, 0x1db
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov word [ebp - 0x42c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x42a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x220], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x680]
call fcn.100acad7
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.100acad7
mov byte [ebp - 4], 1
mov esi, esp
push 0x208
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp esi, esp
call fcn.10021b10
mov esi, esp
push str._system32drivers
lea ecx, [ebp - 0x42c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp esi, esp
call fcn.10021b10
push 0
mov ecx, 0x10107038
call fcn.1006a88b
push eax
lea edx, [ebp - 0x42c]
push edx
push str._s1043_ASUSTeK__s.alu
lea eax, [ebp - 0x14]
push eax
call fcn.100503de
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push ecx
push str.EnumerateInstalledItem___sALUFile:__s
call fcn.10003f70
add esp, 8
push str.EnumerateInstalledItem___FindFirstFile...
call fcn.10003f70
add esp, 4
push 0xc8
push 0
lea edx, [ebp - 0x748]
push edx
call fcn.10021ab0
add esp, 0xc
mov dword [ebp - 0x74c], 0
jmp 0x10008952
mov eax, dword [ebp - 0x74c]
add eax, 1
mov dword [ebp - 0x74c], eax
mov ecx, 0x10107050
call fcn.1000fe40
cmp dword [ebp - 0x74c], eax
jge 0x10008b14
push 0xc8
lea ecx, [ebp - 0x748]
push ecx
mov edx, dword [ebp - 0x74c]
push edx
mov ecx, 0x10107050
call fcn.1000fee0
mov eax, dword [eax]
push eax
call fcn.10007ad0
add esp, 0xc
test eax, eax
je 0x10008a1e
push 0x190
call fcn.1006b3a0
add esp, 4
mov dword [ebp - 0x764], eax
mov ecx, dword [ebp - 0x764]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x74c]
push edx
mov ecx, 0x10107050
call fcn.1000fee0
mov esi, esp
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp esi, esp
call fcn.10021b10
mov esi, esp
lea edx, [ebp - 0x748]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp esi, esp
call fcn.10021b10
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, 0x10107cc8
call fcn.100102d0
mov edx, dword [ebp - 0x10]
push edx
push str.EnumerateInstalledItem___m_aInstalledItem.Add_pInstalledItem_:__s
call fcn.10003f70
add esp, 8
jmp 0x10008b0f
push 0xc8
lea eax, [ebp - 0x748]
push eax
mov ecx, dword [ebp - 0x74c]
push ecx
mov ecx, 0x10107050
call fcn.1000fee0
mov edx, dword [eax]
push edx
call fcn.100077fb
add esp, 0xc
test eax, eax
je 0x10008aee
push 0x190
call fcn.1006b3a0
add esp, 4
mov dword [ebp - 0x768], eax
mov eax, dword [ebp - 0x768]
mov dword [ebp - 0x10], eax
push 0x190
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10021ab0
add esp, 0xc
mov edx, dword [ebp - 0x74c]
push edx
mov ecx, 0x10107050
call fcn.1000fee0
mov esi, esp
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp esi, esp
call fcn.10021b10
mov esi, esp
lea edx, [ebp - 0x748]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp esi, esp
call fcn.10021b10
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, 0x10107cc8
call fcn.100102d0
mov edx, dword [ebp - 0x10]
add edx, 0xc8
push edx
mov eax, dword [ebp - 0x10]
push eax
push str.EnumerateInstalledItem___GetAS2APVersion____s:__s
call fcn.10003f70
add esp, 0xc
jmp 0x10008b0f
mov ecx, dword [ebp - 0x74c]
push ecx
mov ecx, 0x10107050
call fcn.1000fee0
mov edx, dword [eax]
push edx
push str.EnumerateInstalledItem___Get_no_version_for__s
call fcn.10003f70
add esp, 8
jmp 0x10008943
mov esi, esp
lea eax, [ebp - 0x67c]
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.1006a88b
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp esi, esp
call fcn.10021b10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x10008e9e
push str.EnumerateInstalledItem___do_once...
call fcn.10003f70
add esp, 4
mov esi, esp
lea ecx, [ebp - 0x42c]
push ecx
push str._s1043_ASUSTeK_.cab
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp esi, esp
call fcn.10021b10
mov esi, esp
lea eax, [ebp - 0x67c]
push eax
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp esi, esp
call fcn.10021b10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x10008d24
mov esi, esp
lea edx, [ebp - 0x42c]
push edx
push str._s1043_ASUSTeK_.mrk
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp esi, esp
call fcn.10021b10
mov esi, esp
lea ecx, [ebp - 0x67c]
push ecx
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp esi, esp
call fcn.10021b10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x10008d15
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, esp
call fcn.10021b10
lea ecx, [ebp - 0x754]
call fcn.100acad7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x75c]
call fcn.100acad7
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x758]
call fcn.100acad7
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x650]
push ecx
lea ecx, [ebp - 0x754]
call fcn.1006a387
push str..cab
push str..mrk
lea ecx, [ebp - 0x754]
call fcn.1004f447
mov edx, dword [ebp - 0x754]
push edx
lea eax, [ebp - 0x42c]
push eax
push 0x100f4264
lea ecx, [ebp - 0x758]
push ecx
call fcn.100503de
add esp, 0x10
push str.http:__liveupdate01.asus.com_pub_ASUS_LiveUpdate_Patch_
lea ecx, [ebp - 0x75c]
call fcn.1006a387
lea edx, [ebp - 0x754]
push edx
lea ecx, [ebp - 0x75c]
call fcn.1006a861
mov eax, dword [ebp - 0x758]
push eax
push str.EnumerateInstalledItem___DownloadFile:__s
call fcn.10003f70
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x758]
call fcn.1006a88b
push eax
push 0
lea ecx, [ebp - 0x75c]
call fcn.1006a88b
push eax
call sym.EzULIB.dll_DownloadFile
cmp eax, 5
jne 0x10008ce6
lea ecx, [ebp - 0x758]
push ecx
lea ecx, [ebp - 0x680]
call fcn.1006a2d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x758]
call fcn.1006a0d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x75c]
call fcn.1006a0d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x754]
call fcn.1006a0d0
jmp 0x10008d22
push str.hFind
call fcn.10003f70
add esp, 4
jmp 0x10008d59
mov esi, esp
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, esp
call fcn.10021b10
lea eax, [ebp - 0x650]
push eax
lea ecx, [ebp - 0x42c]
push ecx
push 0x100f4340
lea edx, [ebp - 0x680]
push edx
call fcn.100503de
add esp, 0x10
mov eax, dword [ebp - 0x680]
push eax
push str.EnumerateInstalledItem___sHistoryFile:__s
call fcn.10003f70
add esp, 8
lea ecx, [ebp - 0x680]
call fcn.100acbf6
test eax, eax
jne 0x10008e45
push ecx
mov ecx, esp
mov dword [ebp - 0x76c], esp
lea edx, [ebp - 0x680]
push edx
call fcn.10069cfa
mov dword [ebp - 0x778], eax
call fcn.10007f62
add esp, 4
mov dword [ebp - 0x760], 0
jmp 0x10008dbe
mov eax, dword [ebp - 0x760]
add eax, 1
mov dword [ebp - 0x760], eax
mov ecx, 0x10107cc8
call fcn.10010280
cmp dword [ebp - 0x760], eax
jge 0x10008e45
mov ecx, dword [ebp - 0x760]
push ecx
mov ecx, 0x10107cc8
call fcn.10010320
mov edx, dword [eax]
add edx, 0xc8
push edx
mov eax, dword [ebp - 0x760]
push eax
mov ecx, 0x10107cc8
call fcn.10010320
mov ecx, dword [eax]
push ecx
call fcn.10007595
add esp, 8
mov edx, dword [ebp - 0x760]
push edx
mov ecx, 0x10107cc8
call fcn.10010320
mov eax, dword [eax]
add eax, 0xc8
push eax
mov ecx, dword [ebp - 0x760]
push ecx
mov ecx, 0x10107cc8
call fcn.10010320
mov edx, dword [eax]
push edx
push str.EnumerateInstalledItem___SetAPVersion:__s___s
call fcn.10003f70
add esp, 0xc
jmp 0x10008daf
mov dword [ebp - 0x750], 0xffffffff
mov esi, esp
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x14]
call fcn.100acc14
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp esi, esp
call fcn.10021b10
mov dword [ebp - 0x750], eax
cmp dword [ebp - 0x750], 0xffffffff
je 0x10008e9e
mov esi, esp
mov eax, dword [ebp - 0x750]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.10021b10
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x224], 0
jmp 0x10008ec0
mov ecx, dword [ebp - 0x224]
add ecx, 1
mov dword [ebp - 0x224], ecx
mov ecx, 0x10107cc8
call fcn.10010280
cmp dword [ebp - 0x224], eax
jge 0x10008f18
mov esi, esp
push 0x100f43fc
mov edx, dword [ebp - 0x224]
push edx
mov ecx, 0x10107cc8
call fcn.10010320
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp esi, esp
call fcn.10021b10
test eax, eax
jne 0x10008f16
mov ecx, dword [ebp - 0x224]
push ecx
mov ecx, 0x10107cc8
call fcn.10010320
mov edx, dword [eax]
mov dword [ebp - 0x10], edx
jmp 0x10008f18
jmp 0x10008eb1
cmp dword [ebp - 0x10], 0
jne 0x10008f60
push 0x190
call fcn.1006b3a0
add esp, 4
mov dword [ebp - 0x770], eax
mov eax, dword [ebp - 0x770]
mov dword [ebp - 0x10], eax
mov esi, esp
push 0x100f4414
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp esi, esp
call fcn.10021b10
mov edx, dword [ebp - 0x10]
push edx
mov ecx, 0x10107cc8
call fcn.100102d0
push 0xc8
mov eax, dword [ebp - 0x10]
add eax, 0xc8
push eax
push 0x100f442c
call fcn.100077fb
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add ecx, 0xc8
push ecx
push str.ASUS_Easy_Update_Version_:__s
call fcn.10003f70
add esp, 8
mov dword [ebp - 0x774], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.1006a0d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x680]
call fcn.1006a0d0
mov eax, dword [ebp - 0x774]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x778
cmp ebp, esp
call fcn.10021b10
mov esp, ebp
pop ebp
ret 8