Function at 0x465e82
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004b8880
push 0xffffffffffffffff
push 0x4d54c4
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x56f710]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x100c]
mov esi, ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], eax
call fcn.0049ce85
mov edi, 0x1000
xor ebx, ebx
push edi
lea eax, [ebp]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004b62d0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x57a668]
or eax, 0xf003f
push eax
push ebx
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x465f5d
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.004661ec
mov byte [ebp - 4], 1
push dword [eax]
add esi, 8
push str.Install_failed__r_nFailed_to_open_registry_key1_r_n_s
push esi
call fcn.00402a07
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00402845
or esi, 0xffffffff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0049d161
mov eax, esi
jmp 0x466122
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push str.BootExecute
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.autocheck_autochk_
push dword [ebp - 0x28]
lea ecx, [ebp - 0x30]
call fcn.0049d315
mov eax, dword [ebp - 0x28]
xor esi, esi
cmp eax, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], eax
jle 0x465ffd
mov ecx, dword [0x57a658]
mov dword [ebp - 0x1c], ecx
test esi, esi
jl 0x466106
cmp esi, dword [ebp - 0x28]
jge 0x466106
mov eax, dword [ebp - 0x2c]
lea eax, [eax + esi*4]
mov ebx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp - 0x1c]
push ebx
call fcn.004b5b4c
add esp, 0xc
test eax, eax
jne 0x465ff1
cmp esi, dword [ebp - 0x28]
mov dword [ebp - 0x18], 1
jge 0x466106
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + esi*4]
push 0x57a658
call fcn.004025ee
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x465f97
cmp dword [ebp - 0x18], 0
jne 0x466044
push 0x57a658
lea ecx, [ebp - 0x10]
call fcn.004022fa
push 0x52f454
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00411f5d
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x10]
call fcn.00411f5d
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x30]
call fcn.0049d2c3
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402845
push edi
xor ebx, ebx
lea eax, [ebp]
push ebx
push eax
call fcn.004b62d0
mov eax, dword [ebp - 0x28]
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x4660a7
test esi, esi
jl 0x466106
cmp esi, dword [ebp - 0x28]
jge 0x466106
mov eax, dword [ebp - 0x2c]
lea eax, [eax + esi*4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, dword [ebp - 0x28]
lea edi, [eax + eax + 2]
jge 0x466106
mov eax, dword [ebp - 0x2c]
lea eax, [eax + esi*4]
mov eax, dword [eax]
push edi
push eax
lea eax, [ebp + ebx]
push eax
call fcn.004bbc20
add esp, 0xc
add ebx, edi
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x466060
inc ebx
inc ebx
push ebx
lea eax, [ebp]
push eax
push dword [ebp - 0x34]
push 0
push str.BootExecute
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x46610b
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.004661ec
mov byte [ebp - 4], 3
push dword [eax]
mov eax, dword [ebp - 0x40]
add eax, 8
push str.Install_failed__r_nFailed_to_write_registry_key1_r_n_s
push eax
call fcn.00402a07
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00402845
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xfffffffffffffffd
pop esi
jmp 0x465f4a
call fcn.004920bc
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0049d161
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.004b228f
add ebp, 0x1004
leave
ret 4