Function at 0x493840
Capabilities:
Delete 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 0x4eec4d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x70], eax
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
test esi, esi
je 0x493b34
test eax, eax
je 0x493b34
push eax
push esi
call fcn.004c2f16
add esp, 8
test eax, eax
je 0x493b34
mov ecx, esi
mov dword [ebp - 0x20], edi
xorps xmm0, xmm0
mov dword [ebp - 0x1c], edi
movups xmmword [ebp - 0x30], xmm0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4938d0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.0040ab20
mov edx, dword [ebp - 0x70]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x493910
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.0040ab20
push 0x51f94c
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x493b1a
push 0x52ecec
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x493b1a
call fcn.00496ee0
test al, al
jne 0x49398b
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x493982
cmp dword [ebp - 0x18], 0
jne 0x49398b
mov dword [ebp - 0x18], 0xf003f
jmp 0x4939b4
lea ecx, [ebp - 0x30]
call fcn.004937b0
movzx edi, al
lea ecx, [ebp - 0x4c]
inc edi
shl edi, 8
call fcn.004937b0
mov dword [ebp - 0x18], 0xf023f
test al, al
jne 0x4939b4
mov dword [ebp - 0x18], 0xf013f
cmp dword [ebp - 0x1c], 7
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push 0
lea eax, [ebp - 0x30]
cmova eax, dword [ebp - 0x30]
or edi, 0xf003f
push edi
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x493b22
cmp dword [ebp - 0x38], 7
lea ecx, [ebp - 0x6c]
push esi
push ecx
push esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x4c]
cmova eax, dword [ebp - 0x4c]
push esi
push esi
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x493b22
cmp dword [ebp - 0x34], 2
jne 0x493a37
push eax
push dword [ebp - 0x6c]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.SHLWAPI.dll_SHCopyKeyW]
mov esi, eax
test esi, esi
jne 0x493b22
push 0
push dword [ebp - 0x68]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov esi, eax
test esi, esi
jne 0x493b22
push dword [ebp - 0x68]
mov esi, dword [ebp - 0x74]
mov ecx, esi
call dword [0x4f1320]
call esi
test eax, eax
je 0x493a6a
mov esi, 5
jmp 0x493b22
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 7
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], 0
push ecx
push 0
push edi
push 2
push 0
lea eax, [ebp - 0x30]
cmova eax, dword [ebp - 0x30]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x493b22
push 0x12
xorps xmm0, xmm0
mov dword [ebp - 0x54], eax
push str.RegistryMACHINE_
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], eax
movups xmmword [ebp - 0x64], xmm0
call fcn.0040ab20
mov edx, dword [ebp - 0x70]
mov ecx, edx
mov byte [ebp - 4], 2
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x493ad0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x64]
call fcn.0040a680
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x50], 7
lea ecx, [eax + eax]
push ecx
lea eax, [ebp - 0x64]
cmova eax, dword [ebp - 0x64]
push eax
push 6
push 0
push str.SymbolicLinkValue
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x64]
mov esi, eax
call fcn.0040a900
jmp 0x493b22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x4c]
call fcn.0040a900
lea ecx, [ebp - 0x30]
call fcn.0040a900
jmp 0x493b39
mov esi, 0x57
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x493b47
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x493b55
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret