Function at 0x414240
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x638d67
push eax
mov dword fs:[0], esp
sub esp, 0x82c
push esi
call fcn.0044bfc0
neg eax
mov edx, dword [esp + 0x840]
lea ecx, [esp + 4]
sbb eax, eax
push ecx
and eax, 0x100
xor esi, esi
add eax, 0xf003f
push eax
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x414627
mov eax, dword [0x6fca30]
mov dword [esp + 0x14], 0x800
cmp eax, esi
jne 0x4142a9
mov eax, 0x6fca34
lea ecx, [esp + 0x14]
push ebx
lea edx, [esp + 0x34]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
push edx
push esi
push esi
push eax
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
jne 0x41432e
lea ecx, [esp + 0x34]
push ecx
call fcn.0060c818
lea edx, [esp + 0x38]
push 0x6ca758
push edx
call fcn.0060a3e0
add esp, 0xc
test eax, eax
jne 0x414314
lea eax, [esp + 0x34]
push str.RUNAS
push eax
call fcn.0060a3e0
add esp, 8
test eax, eax
jne 0x414314
lea ecx, [esp + 0x34]
push str.VISTA
push ecx
call fcn.0060a3e0
add esp, 8
test eax, eax
je 0x41432e
mov eax, dword [0x6fca30]
cmp eax, esi
jne 0x414322
mov eax, 0x6fca34
mov edx, dword [esp + 8]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], ecx
mov word [esp + 0x10], si
mov eax, dword [0x6fca20]
mov dword [esp + 0x83c], esi
cmp eax, esi
jne 0x414352
mov eax, 0x6fca24
mov edx, str._sUninstall.exe
push ebp
test edx, edx
push edi
je 0x41444e
cmp eax, esi
je 0x41444e
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov word [esp + 0x2c], si
call fcn.00401f20
mov bl, 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x844], bl
call fcn.00401070
lea ecx, [esp + 0x30]
call fcn.004027c0
push esi
push str._sUninstall.exe
lea ecx, [esp + 0x38]
mov byte [esp + 0x84c], 2
call fcn.004027e0
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x24]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x14], edi
je 0x414421
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x24]
call fcn.00401f10
push eax
lea ecx, [esp + 0x34]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x844], bl
call fcn.00401070
lea ecx, [esp + 0x24]
mov byte [esp + 0x844], 0
call fcn.00401070
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor esi, esi
cmp ecx, esi
mov dword [esp + 0x20], 0x800
mov eax, ecx
jne 0x414460
lea eax, [esp + 0x18]
lea edx, [esp + 0x20]
lea ecx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x14]
push ecx
push esi
push esi
push eax
push edx
call ebx
test eax, eax
jne 0x4144b0
lea eax, [esp + 0x3c]
push eax
call fcn.0060c818
lea ecx, [esp + 0x40]
push 0x6ca758
push ecx
call fcn.0060a3e0
add esp, 0xc
test eax, eax
je 0x4144b0
mov eax, dword [esp + 0x14]
cmp eax, esi
jne 0x4144a4
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [0x6fca20]
cmp eax, esi
jne 0x4144be
mov eax, 0x6fca24
mov ecx, str._sIDMGrHlp.exe
test ecx, ecx
je 0x4145a1
cmp eax, esi
je 0x4145a1
push eax
lea ecx, [esp + 0x28]
call fcn.00401ee0
lea ecx, [esp + 0x14]
mov byte [esp + 0x844], 3
call fcn.00401070
lea ecx, [esp + 0x30]
call fcn.004027c0
push esi
push str._sIDMGrHlp.exe
lea ecx, [esp + 0x38]
mov byte [esp + 0x84c], 4
call fcn.004027e0
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x24]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x14], edi
je 0x41457d
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x24]
call fcn.00401f10
push eax
lea ecx, [esp + 0x34]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x844], 3
call fcn.00401070
lea ecx, [esp + 0x24]
mov byte [esp + 0x844], 0
call fcn.00401070
xor esi, esi
mov eax, dword [esp + 0x14]
pop edi
cmp eax, esi
mov dword [esp + 0x1c], 0x800
pop ebp
jne 0x4145b7
lea eax, [esp + 0x10]
lea edx, [esp + 0x18]
lea ecx, [esp + 0x34]
push edx
mov edx, dword [esp + 0xc]
push ecx
push esi
push esi
push eax
push edx
call ebx
test eax, eax
pop ebx
jne 0x414608
lea eax, [esp + 0x30]
push eax
call fcn.0060c818
lea ecx, [esp + 0x34]
push 0x6ca758
push ecx
call fcn.0060a3e0
add esp, 0xc
test eax, eax
je 0x414608
mov eax, dword [esp + 8]
cmp eax, esi
jne 0x4145fc
lea eax, [esp + 0xc]
mov edx, dword [esp + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov dword [esp + 0x838], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x830]
pop esi
mov dword fs:[0], ecx
add esp, 0x838
ret