Function at 0x475a20
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50db45
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x54
mov eax, dword [0x565040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ecx + 0x398]
test ecx, ecx
je 0x475c8e
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SWindow::IsChecked_void_]
test eax, eax
je 0x475bb4
call fcn.0041c8c0
push 1
call dword [0x570380]
add esp, 4
call fcn.00433c50
lea ecx, [ebp - 0x44]
lea edx, [eax + 0x124]
call fcn.00416570
mov esi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push 0x2d
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00416e10
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x60]
push ecx
push 0xf003f
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x475b3a
cmp dword [0x570bd4], 7
mov ecx, 0x570bc0
cmova ecx, dword [0x570bc0]
cmp dword [esi + 0x14], 7
jbe 0x475b11
mov esi, dword [esi]
mov eax, dword [0x570bd0]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push esi
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x60]
test eax, eax
je 0x475b7c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x475b74
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x475b6a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475ce2
push ecx
push edx
call fcn.004d2c11
add esp, 8
lea ecx, [ebp - 0x44]
jmp 0x475c89
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x475b74
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x475b6a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475ce2
jmp 0x475b6a
call fcn.0041c8c0
push 0
call dword [0x570380]
add esp, 4
call fcn.00433c50
lea ecx, [ebp - 0x5c]
lea edx, [eax + 0x124]
call fcn.00416570
mov esi, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push 0x2d
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00416e10
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x60]
push ecx
push 0xf003f
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x475c50
cmp dword [esi + 0x14], 7
jbe 0x475c39
mov esi, dword [esi]
push esi
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x60]
test eax, eax
je 0x475cab
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x475c86
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x475c7c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475cdd
push ecx
push edx
call fcn.004d2c11
add esp, 8
lea ecx, [ebp - 0x5c]
call fcn.00415000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d2bfe
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x475c86
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x475c7c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x475c7c
call fcn.004e23ec
call fcn.004e23ec
int3