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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f17b
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x608514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x70], ecx
or eax, 0xffffffff
mov word [ebp - 0x4c], 0x100
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], eax
call fcn.00404270
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun32
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00404270
mov dword [ebp - 4], 1
mov ebx, 0xf003f
push 0x800
mov dword [ebp - 0x78], SysReAllocString
mov dword [ebp - 0x74], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x48], 0
call fcn.0054cb4f
push 0x800
mov esi, eax
mov dword [ebp - 0x54], 0x400
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x58], 0
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
nop dword [eax]
mov dl, byte [ebp + ecx - 0x4c]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x41], dl
mov dword [ebp - 0x50], eax
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
nop dword [eax]
mov eax, ebx
or eax, 0x100
test dl, dl
cmove eax, ebx
mov ebx, dword [ebp - 0x50]
mov edx, eax
mov eax, ebx
mov dword [ebp - 0x68], edx
cmp dword [ebx + 0x14], 8
jb 0x4b75de
mov eax, dword [ebx]
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x5c]
push edx
push 0
push eax
push dword [ebp + ecx*4 - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b774d
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4b7605
mov eax, dword [edi]
lea ecx, [ebp - 0x54]
push ecx
push esi
lea ecx, [ebp - 0x58]
push ecx
push 0
push eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x4b772f
cmp byte [ebp + 8], al
je 0x4b7634
cmp word [esi], 3
jne 0x4b7661
lea eax, [ebx + 2]
jmp 0x4b763f
cmp word [esi], 3
je 0x4b7661
mov eax, 3
mov word [esi], ax
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4b764c
mov eax, dword [edi]
push dword [ebp - 0x54]
push esi
push dword [ebp - 0x58]
push 0
push eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
push esi
call fcn.0054cb33
mov eax, dword [ebp - 0x48]
add esp, 4
test eax, eax
je 0x4b767d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x48], eax
xor esi, esi
test ebx, ebx
je 0x4b775b
test eax, eax
je 0x4b7695
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x48], esi
mov ecx, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x68]
inc ecx
mov dl, byte [ebp - 0x41]
mov dword [ebp - 0x5c], ecx
cmp ecx, 2
jb 0x4b75c0
mov ebx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x64]
add ebx, 0x18
mov eax, dword [ebp - 0x68]
inc edx
mov dword [ebp - 0x64], edx
cmp edx, 2
mov dl, byte [ebp - 0x41]
mov dword [ebp - 0x50], ebx
mov ebx, eax
jb 0x4b75b4
mov ecx, dword [ebp - 0x6c]
inc ecx
mov dword [ebp - 0x6c], ecx
cmp ecx, 2
jb 0x4b75a0
test esi, esi
je 0x4b76e9
push esi
call fcn.0054cb33
add esp, 4
push fcn.004041c0
push 2
push 0x18
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.0054c9a3
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x60]
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [ecx], 0xa802f3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054bed3
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4b76ab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x48], 0
jmp 0x4b76ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x60], eax
jmp 0x4b76ae
mov ebx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x60]
push fcn.004041c0
push 2
mov dword [ebx + 4], eax
lea eax, [ebp - 0x40]
push 0x18
mov dword [ebx], esi
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.0054c9a3
mov eax, ebx
jmp 0x4b7713