Function at 0x10004240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
cmp dword [0x1005d028], 0
mov eax, edx
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov edi, ecx
jne 0x10004264
test eax, eax
jne 0x10004264
xor esi, esi
jmp 0x10004269
mov esi, 1
mov eax, dword [edi]
lea ecx, [ebp - 0x78]
push ecx
push str.M_vi
xorps xmm0, xmm0
mov dword [ebp - 0xc], esi
push edi
movups xmmword [ebp - 0x78], xmm0
call dword [eax + 0x14]
cmp word [ebp - 0x78], 0
jne 0x100042ac
push 0
lea eax, [ebp - 0x38]
push eax
call dword [0x1005dc7c]
push 0
push 0
push 4
lea eax, [ebp - 0x38]
push eax
call dword [0x1005dc78]
mov ecx, eax
mov dword [ebp - 0x70], ecx
jmp 0x100042af
mov ecx, dword [ebp - 0x70]
movzx ebx, cl
or ebx, 0xffffff00
movzx eax, cx
shl ebx, 8
shr eax, 8
or ebx, eax
shr ecx, 0x10
shl ebx, 8
movzx eax, cl
or ebx, eax
test esi, esi
je 0x100042e1
cmp dword [0x1005d02c], 2
mov eax, 0xff4c4c4c
cmove ebx, eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0xc
push eax
push 0
xorps xmm0, xmm0
push 0x42
movlpd qword [ebp - 0x38], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test byte [ebp - 0x38], 1
je 0x1000431a
push 0x12
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, eax
mov eax, dword [edi]
lea ecx, [ebp - 0x88]
push ecx
xorps xmm0, xmm0
push 0x1004f940
push edi
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x68], xmm0
movups xmmword [ebp - 0x88], xmm0
call dword [eax + 0x14]
mov eax, dword [edi]
lea ecx, [ebp - 0x50]
push ecx
push 0x1004f904
push edi
call dword [eax + 0x14]
test esi, esi
mov esi, dword [ebp + 8]
jne 0x10004361
mov ecx, 0x1004f820
cmp esi, 0x80
jae 0x10004366
mov ecx, 0x1004f834
mov eax, dword [edi]
lea edx, [ebp - 0x68]
push edx
push ecx
push edi
call dword [eax + 0x14]
cmp esi, 0xd2
jbe 0x10004380
mov edi, 1
jmp 0x100043ad
cmp esi, 0x36
jbe 0x1000438c
mov edi, 2
jmp 0x100043ad
cmp esi, 0x2a
jbe 0x10004398
mov edi, 1
jmp 0x100043ad
xor edi, edi
mov eax, 3
cmp dword [ebp - 0xc], edi
cmove edi, eax
xor eax, eax
cmp esi, 0x1e
cmova edi, eax
cmp dword [ebp - 8], 0
je 0x10004403
push 0x10
push 0x64
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, 0x190
jl 0x100043ce
mov edi, 0xe
jmp 0x10004403
cmp eax, 0xfa
jl 0x100043dc
mov edi, 0xc
jmp 0x10004403
cmp eax, 0xc8
jl 0x100043ea
mov edi, 9
jmp 0x10004403
cmp eax, 0x96
jl 0x100043f8
mov edi, 4
jmp 0x10004403
cmp eax, 0x7d
mov ecx, 8
cmovge edi, ecx
xor eax, eax
mov dword [ebp + 8], eax
mov dword [ebp - 4], eax
cmp esi, 0x40
jb 0x10004474
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x1000450a
push 0x1d
push str.windows.immersivecontrolpanel
push ecx
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x10004471
push pe_nt_image_headers32
push eax
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x1a0], 0x114
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [ebp - 0x194], 0x4e20
cmovb eax, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x1000450a
cmp dword [ebp - 8], 0
je 0x1000450a
test eax, eax
je 0x10004497
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push esi
push edi
push dword [ebp - 8]
call fcn.10003ff0
add esp, 0x14
test eax, eax
jne 0x10004504
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x1004f684
push 0
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
jne 0x100044f6
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x20]
push edx
push 8
push esi
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x100044f6
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x20]
push edx
push 0
push esi
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x10]
jmp 0x10004731
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x100045a6
push 3
push edx
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
je 0x1000459d
push 0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x104
push eax
lea eax, [ebp - 0x498]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], 0
push eax
push 0x1004f684
push 0
lea eax, [ebp - 0x498]
mov dword [ebp - 0x14], 0
push eax
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
jne 0x1000458f
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edx
push 8
push esi
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x1000458f
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edx
push 0
push esi
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x24]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
jmp 0x10004731
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
test ecx, ecx
je 0x100046da
test edx, edx
je 0x1000473b
test eax, eax
je 0x100045ce
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x60]
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push esi
push edi
push edx
mov edx, dword [ebp - 0x80]
call fcn.10003ff0
add esp, 0x14
test eax, eax
jne 0x10004639
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x1004f684
push 0
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
jne 0x1000462b
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
push edx
push 8
push esi
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x1000462b
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
push edx
push 0
push esi
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x28]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x18]
jmp 0x10004731
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x1000473b
push eax
lea eax, [ebp - 0x290]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push dword [ebp - 0x60]
lea eax, [ebp - 0x290]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcscat_s]
add esp, 0xc
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x1004f684
push 0
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
jne 0x100046cf
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x2c]
push edx
push 8
push esi
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x100046cf
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x2c]
push edx
push 0
push esi
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x2c]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x1c]
jmp 0x10004731
test edx, edx
je 0x1000473b
lea eax, [ebp - 8]
mov dword [ebp - 0x30], 0
push eax
push 0x1004f684
push 0
push edx
mov dword [ebp - 8], 0
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
jne 0x10004728
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x30]
push edx
push 8
push esi
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x10004728
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x30]
push edx
push 0
push esi
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x30]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x1000473b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.ole32.dll_PropVariantClear]
lea eax, [ebp - 0x88]
push eax
call edi
lea eax, [ebp - 0x50]
push eax
call edi
lea eax, [ebp - 0x68]
push eax
call edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x100047cc
mov ecx, dword [0x1005d02c]
cmp ecx, 3
jne 0x1000479a
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 4
push eax
push 0x1005d02c
push 0
push 0x10
push str.ModernIconsColorized
push str.SoftwareStartIsBack
push SHChangeNotifyRegister
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
mov ecx, dword [0x1005d02c]
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x100047a3
cmp esi, 0x40
jle 0x100047a8
mov ecx, 1
push ecx
push dword [ebp - 0xc]
mov edx, ebx
mov ecx, eax
push esi
call fcn.10003d90
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor esi, esi
jmp 0x100047d1
mov esi, 0x80004005
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x100047df
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8