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

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004c0a30
push 0xffffffffffffffff
push 0x4d7304
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x57b750]
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.004a451b
mov edi, 0x1000
xor ebx, ebx
push edi
lea eax, [ebp]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004be850
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x585efc]
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 0x479e07
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.0047a096
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.00402967
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004027b0
or esi, 0xffffffff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004a47f7
mov eax, esi
jmp 0x479fcc
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.004a49ab
mov eax, dword [ebp - 0x28]
xor esi, esi
cmp eax, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], eax
jle 0x479ea7
mov ecx, dword [0x585eec]
mov dword [ebp - 0x1c], ecx
test esi, esi
jl 0x479fb0
cmp esi, dword [ebp - 0x28]
jge 0x479fb0
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.004be74c
add esp, 0xc
test eax, eax
jne 0x479e9b
cmp esi, dword [ebp - 0x28]
mov dword [ebp - 0x18], 1
jge 0x479fb0
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + esi*4]
push 0x585eec
call fcn.0040257e
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x479e41
cmp dword [ebp - 0x18], 0
jne 0x479eee
push 0x585eec
lea ecx, [ebp - 0x10]
call fcn.0040228a
push 0x525554
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00415cf1
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x10]
call fcn.00415cf1
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x30]
call fcn.004a4959
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004027b0
push edi
xor ebx, ebx
lea eax, [ebp]
push ebx
push eax
call fcn.004be850
mov eax, dword [ebp - 0x28]
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x479f51
test esi, esi
jl 0x479fb0
cmp esi, dword [ebp - 0x28]
jge 0x479fb0
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 0x479fb0
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.004c3c80
add esp, 0xc
add ebx, edi
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x479f0a
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 0x479fb5
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.0047a096
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.00402967
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004027b0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xfffffffffffffffd
pop esi
jmp 0x479df4
call fcn.004998d4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004a47f7
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.004b96ff
add ebp, 0x1004
leave
ret 4