Function at 0x40dc80
Capabilities:
Get common file path
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x417c2a
push eax
mov eax, 0x1688
mov dword fs:[0], esp
call fcn.00416730
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x24]
xor ebp, ebp
push eax
push 8
push ebp
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x16b4], ebp
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40dec8
mov ecx, 0x1ff
lea edi, [esp + 0x69a]
mov word [esp + 0x698], bp
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0x800
push ecx
mov ecx, dword [esp + 0x28]
push ebp
push ebp
stosw word es:[edi], ax
push ebp
lea eax, [esp + 0x6a8]
push edx
push eax
push ebp
push ecx
mov dword [esp + 0x48], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40debd
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0xe9a]
mov word [esp + 0xe98], bp
rep stosd dword es:[edi], eax
lea edx, [esp + 0x698]
mov dword [esp + 0x20], 0x800
stosw word es:[edi], ax
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea eax, [esp + 0xea0]
push str._s_s
push eax
mov dword [esp + 0x20], ebp
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0xe98]
push ecx
push 1
push ebp
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40de89
push 0x190
call sub.MFC42u.DLL_operatornew
mov esi, eax
mov ecx, 0x64
xor eax, eax
mov edi, esi
add esp, 4
mov ebx, 0xc8
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push esi
push ecx
push ebp
push str.DisplayName
push edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40de75
cmp dword [esp + 0x18], 1
jne 0x40de75
cmp word [esi], bp
je 0x40de75
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea edi, [esi + 0xc8]
push eax
lea ecx, [esp + 0x1c]
push edi
push ecx
push ebp
push str.alu7501e157_4b4a_4850_b6ea_3bea55826ba9
push edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40de2b
cmp dword [esp + 0x18], 1
je 0x40de2b
push ebx
push edi
push esi
call fcn.00412c90
add esp, 0xc
test eax, eax
jne 0x40de2b
mov word [edi], bp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [0x4211d0]
cmp edi, edi
jl 0x40de50
lea ecx, [edi + 1]
push 0xffffffffffffffff
push ecx
mov ecx, 0x4211c8
call fcn.00413170
mov edx, dword [0x4211cc]
push str.WinFlash
push esi
mov dword [edx + edi*4], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40de89
mov dword [0x42120c], 1
jmp 0x40de89
push esi
call sub.MFC42u.DLL_operatordelete
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x20]
mov eax, ecx
inc ecx
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x30]
push ecx
push ebp
push ebp
push ebp
lea ecx, [esp + 0x6a8]
push edx
mov edx, dword [esp + 0x38]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40dd21
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x3a]
mov word [esp + 0x38], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x242]
mov word [esp + 0x240], bp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
stosw word es:[edi], ax
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x16a0], 1
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x38]
push 0x208
push ecx
mov byte [esp + 0x16a8], 2
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x38]
push str._system32drivers
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebp
lea ecx, [esp + 0x16ac]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x34]
push str._s1043_ASUSTeK__s.alu
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x448]
lea ecx, [esp + 0x2c]
push edx
push ebp
call sub.MFC42u.DLL_CString::GetBuffer
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
call esi
cmp eax, 0xffffffff
je 0x40df89
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40e1b3
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x244]
push str._s1043_ASUSTeK_.cab
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x448]
lea eax, [esp + 0x240]
push edx
push eax
call esi
cmp eax, 0xffffffff
jne 0x40e10d
lea ecx, [esp + 0x38]
lea edx, [esp + 0x240]
push ecx
push str._s1043_ASUSTeK_.mrk
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x448]
lea ecx, [esp + 0x240]
push eax
push ecx
call esi
cmp eax, 0xffffffff
je 0x40e133
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x16a0], 3
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x16a0], 4
call sub.MFC42u.DLL_CString::CString_1
lea edx, [esp + 0x474]
mov ebx, 5
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x16a4], bl
call sub.MFC42u.DLL_CString::operator_2
push str..cab
push str..mrk
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Replace
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x38]
push eax
push ecx
lea edx, [esp + 0x20]
push str._s_s
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x14]
push str.http:__liveupdate01.asus.com_pub_ASUS_LiveUpdate_Patch_Notebook_
call sub.MFC42u.DLL_CString::operator_2
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42u.DLL_CString::operator
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42u.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x16ac], 6
call sub.MFC42u.DLL_CString::CString_2
mov byte [esp + 0x16a8], bl
call fcn.0040d6e0
add esp, 8
cmp eax, ebx
jne 0x40e0d8
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
call fcn.00416290
lea ecx, [esp + 0x18]
mov byte [esp + 0x16a0], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x16a0], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x16a0], 2
call sub.MFC42u.DLL_CString::CString
jmp 0x40e133
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x474]
lea eax, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x24]
push str._s_s
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
mov edx, dword [esp + 0x1c]
cmp dword [edx - 8], ebp
je 0x40e18c
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call sub.MFC42u.DLL_CString::CString_2
call fcn.0040f1d0
mov eax, dword [0x4211d0]
add esp, 4
xor esi, esi
cmp eax, ebp
jle 0x40e18c
mov ecx, dword [0x4211cc]
mov eax, dword [ecx + esi*4]
cmp word [eax + 0xc8], bp
lea ecx, [eax + 0xc8]
je 0x40e182
push ecx
push eax
call fcn.0040eca0
add esp, 8
mov eax, dword [0x4211d0]
inc esi
cmp esi, eax
jl 0x40e160
mov edx, dword [esp + 0x2c]
push ebp
push 0x80
push 4
push ebp
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40e1b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x41d0f8
call fcn.0040e900
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x40e1da
lea eax, [esi + 0xc8]
push 0xc8
push eax
call fcn.0040f0c0
add esp, 8
add esi, 0xc8
push esi
push str.ASUS_Live_Update_Version_:__s
call fcn.0040d4b0
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x16a0], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x16a0], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x16a8]
mov dword [esp + 0x16a0], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x1698]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x1694
ret