Function at 0x3163eb14
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push dword [ebp + 0x28]
xor ebx, ebx
push dword [ebp + 0x24]
mov dword [ebp - 4], ebx
push dword [ebp + 0x20]
mov dword [ebp - 0x10], ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.3163e463
add esp, 0x20
test eax, eax
je 0x3163edfe
push esi
push edi
push 0x28
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0x28]
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x68]
push eax
push 0x31646358
mov esi, 0x104
lea eax, [ebp - 0x270]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
mov edi, 0x2001f
push edi
push ebx
lea eax, [ebp - 0x270]
push eax
push SysAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x3163eba6
xor eax, eax
jmp 0x3163edfc
mov eax, dword [ebp + 0x28]
cmp dword [eax], 0xf0e42d60
jne 0x3163ebcb
push 4
mov esi, eax
pop ecx
mov edi, 0x31646060
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
mov esi, 0x104
mov edi, 0x2001f
je 0x3163ec01
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push ebx
push 0x3164636c
push ebx
push str.Control
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x3163edd8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push ebx
push 0x31646380
push ebx
push str.MiscStatus
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x3163edd8
push 4
lea eax, [ebp - 0x270]
push eax
push 1
push ebx
push ebx
push dword [ebp - 4]
mov word [ebp - 0x270], 0x30
mov word [ebp - 0x26e], bx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x3163edd8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push ebx
push 0x3164639c
push ebx
push 0x316463a0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x3163edd8
push dword [ebp + 0x2c]
lea eax, [ebp - 0x270]
push 0x316463a4
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x270]
push eax
push 1
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], ebx
jne 0x3163edd8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x270]
push eax
push dword [0x31649354]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movzx eax, word [ebp + 0x30]
push eax
push str.___d
lea eax, [ebp - 0x68]
push 0x28
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x68]
push eax
push esi
lea eax, [ebp - 0x270]
push eax
call fcn.3163ee01
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push ebx
push 0x316463b8
push ebx
push str.ToolboxBitmap32
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x3163edd8
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x270]
push eax
push 1
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x3163edd8
mov eax, dword [ebp + 0x28]
cmp dword [eax], 0xf0e42d60
jne 0x3163ed9f
push 4
mov esi, eax
pop ecx
mov edi, 0x31646060
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x3163edd8
lea eax, [ebp - 0x18]
push eax
push 0x31646eb8
push 1
push ebx
push 0x31646cb8
call fcn.31640e83
add esp, 0x14
test eax, eax
jl 0x3163edd8
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push 0x31646ca8
push 1
push dword [ebp + 0x28]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0xc], ebx
je 0x3163ede6
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x3163edf4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], ebx
sete al
pop edi
pop esi
pop ebx
leave
ret