Function at 0x40adfd
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x38], ebx
call fcn.0043d5bb
push eax
lea ecx, [esp + 0x30]
call fcn.0043bbe8
mov ecx, dword [0x4ad468]
lea eax, [esp + 0x2c]
push eax
push str.NotLoadWofadk
mov edx, 0x488134
call fcn.0044e2fd
pop ecx
pop ecx
push 0x49045c
lea ecx, [esp + 0x30]
call fcn.00432a00
test eax, eax
je 0x40ae69
call fcn.0044cd5b
cmp eax, 0x60002
jb 0x40ae69
call fcn.00415703
test al, al
jne 0x40ae69
call fcn.004059f6
mov eax, dword [ebx]
push 0x491e6c
mov eax, dword [eax + 0x1e0]
mov esi, dword [eax]
call sym.Dismx86.exe_DismMultiLanguage
mov ecx, dword [ebx]
push eax
mov ecx, dword [ecx + 0x1e0]
call dword [esi + 0x2c]
push 0xf
pop ecx
mov esi, str.A:WindowsSystem32_ntdll.dll
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
push 0x1cc
xor edi, edi
lea eax, [esp + 0x88]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00431146
push 0x5a
pop esi
cmp word [esp + 0x48], si
ja 0x40af10
lea ecx, [esp + 0x48]
call fcn.0044d9e7
cmp eax, 1
jne 0x40aeff
push 2
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
call fcn.0043b8e8
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x38]
call fcn.00435b1c
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov ax, word [esp + 0x48]
inc ax
mov word [esp + 0x48], ax
cmp ax, si
jbe 0x40aec2
push 0x104
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x5c
push edi
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
xor ecx, ecx
mov dword [esp + 0x1c], edi
mov esi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
mov word [eax], cx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x10]
call fcn.0043c2b8
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x38]
call fcn.00436145
mov edi, dword [esp + 0x44]
lea eax, [esp + 0xc]
push eax
push edi
call fcn.00436697
test al, al
jne 0x40af79
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov eax, dword [esp + 0x30]
cmp edi, eax
je 0x40afbc
lea eax, [esp + 0x14]
push eax
push dword [edi + 0x10]
call sym.Dismx86.exe_DismGetSystemInfoByPath
test eax, eax
jne 0x40afa9
push dword [esp + 0x14]
mov ecx, dword [ebx]
call fcn.0040b572
push edi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
call fcn.0043116c
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
cmp byte [eax + 0xd], 0
jne 0x40b015
mov edi, dword [esp + 0x24]
mov ecx, dword [ebx]
push 2
push dword [eax + 0x10]
call fcn.0040b50c
mov dword [esp + 0x14], eax
cmp esi, edi
je 0x40afeb
mov dword [esi], eax
add esi, 4
mov dword [esp + 0x20], esi
jmp 0x40b002
lea eax, [esp + 0x14]
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.00433a9a
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x10]
call fcn.00430288
mov eax, dword [esp + 0x10]
cmp byte [eax + 0xd], 0
je 0x40afcc
and dword [esp + 0x10], 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
call sym.Dismx86.exe_DismGetMountedImages
test eax, eax
jne 0x40b0e3
and dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x20019
push dword [0x4ad198]
push str.SOFTWAREDismHide
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
test eax, eax
je 0x40b0d9
mov edi, dword [esp + 0x10]
cmp dword [esp + 0xc], 0
je 0x40b085
lea eax, [esp + 0x3c]
push eax
xor eax, eax
push eax
push eax
push eax
push edi
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40b0cc
mov ecx, dword [ebx]
push 4
push edi
call fcn.0040b50c
cmp dword [edi + 0x414], 0
mov dword [esp + 0x18], eax
je 0x40b0a8
mov ecx, dword [eax + 0x22c]
mov dword [ecx], 3
cmp esi, dword [esp + 0x24]
je 0x40b0b9
mov dword [esi], eax
add esi, 4
mov dword [esp + 0x20], esi
jmp 0x40b0cc
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.00433a9a
mov esi, dword [esp + 0x20]
add edi, 0x41a
sub dword [esp + 0x14], 1
jne 0x40b065
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x1c]
cmp ebx, esi
je 0x40b202
mov edi, dword [ebx]
cmp dword [edi + 0x238], 0
jne 0x40b1ec
lea eax, [esp + 0xc]
push eax
mov eax, dword [edi + 0x22c]
add eax, 0x870
push eax
call sym.Dismx86.exe_DismGetSystemInfoByPath
test eax, eax
jne 0x40b1f5
mov eax, dword [edi + 0x22c]
push 3
pop esi
cmp dword [eax], esi
jne 0x40b12f
mov eax, dword [esp + 0xc]
mov dword [eax], esi
mov ecx, dword [edi + 0x22c]
mov eax, dword [esp + 0xc]
push ecx
mov dword [esp + 0x10], ecx
mov dword [edi + 0x22c], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0047ee32
mov eax, dword [edi + 0x22c]
cmp dword [eax], esi
jne 0x40b1ec
add eax, 0x870
push eax
push 0x491ef0
call sym.Dismx86.exe_DismMultiLanguage
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0044af44
add esp, 0xc
mov esi, eax
push 0xf1
push 0x4880b0
call sym.Dismx86.exe_DismMultiLanguage
push eax
mov eax, dword [esp + 0x40]
push dword [esi]
mov eax, dword [eax]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x18]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0043d912
cmp esi, 1
jne 0x40b1ec
push 4
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
test eax, eax
je 0x40b1c6
mov dword [eax], edi
jmp 0x40b1c8
xor eax, eax
push 0
push 0
push eax
push 0x4333b1
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x40b1f5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b1f5
push 0
mov ecx, edi
call fcn.0047eb84
add ebx, 4
cmp ebx, dword [esp + 0x20]
jne 0x40b0ef
push dword [esp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, dword [esp + 0x38]
push 0x491f34
mov eax, dword [ebx]
mov eax, dword [eax + 0x1e0]
mov esi, dword [eax]
call sym.Dismx86.exe_DismMultiLanguage
mov ecx, dword [ebx]
push eax
mov ecx, dword [ecx + 0x1e0]
call dword [esi + 0x2c]
lea ecx, [esp + 0x1c]
call fcn.004303a3
lea ecx, [esp + 0x30]
call fcn.00430407
mov ecx, dword [esp + 0x2c]
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea ecx, [esp + 0x2b]
call fcn.0043bc2f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret