Function at 0x458bc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46373d
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4891c0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x14]
call fcn.00402d60
shl eax, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], 0xffffffff
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x18], eax
lea ecx, [ebp - 0x10]
push ecx
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00401d50
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x458c4d
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 4
mov ecx, dword [ebp + 0xc]
call fcn.00401d50
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x458ca6
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.00401d50
push eax
mov eax, dword [ebp + 0x18]
push eax
push 0
mov ecx, dword [ebp + 0x10]
call fcn.00401d50
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x458c97
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x458c97
mov al, 1
jmp 0x458e6c
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x458d82
cmp dword [ebp - 0x38], 2
jne 0x458d82
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004583c0
add esp, 8
movzx eax, al
test eax, eax
je 0x458d82
mov ecx, dword [ebp + 0x14]
call fcn.00402d60
shl eax, 1
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], 0xffffffff
mov dword [ebp - 0x5c], 1
lea ecx, [ebp - 0x58]
push ecx
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00401d50
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x458d2e
lea eax, [ebp - 0x58]
push eax
push 0xf003f
push 4
mov ecx, dword [ebp + 0xc]
call fcn.00401d50
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x458d82
mov edx, dword [ebp - 0x60]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.00401d50
push eax
mov eax, dword [ebp - 0x5c]
push eax
push 0
mov ecx, dword [ebp + 0x10]
call fcn.00401d50
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x458d78
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x458d78
mov al, 1
jmp 0x458e6c
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x54]
call fcn.00401d20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00401d20
mov byte [ebp - 4], 1
cmp dword [ebp + 8], 0x80000000
jne 0x458db5
push str.HKEY_CLASSES_ROOT
lea ecx, [ebp - 0x54]
call fcn.00401d00
jmp 0x458dda
cmp dword [ebp + 8], 0x80000001
jne 0x458dcd
push str.HKEY_CURRENT_USER
lea ecx, [ebp - 0x54]
call fcn.00401d00
jmp 0x458dda
push str.OtherKey
lea ecx, [ebp - 0x54]
call fcn.00401d00
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.00401d50
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00401d50
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00401d50
push eax
lea ecx, [ebp - 0x54]
call fcn.00401d50
push eax
push str._s_s
lea edx, [ebp - 0x80]
push edx
call fcn.00458010
add esp, 0x1c
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00401540
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x80]
call fcn.004026a0
mov byte [ebp - 0x81], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004026a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004026a0
mov al, byte [ebp - 0x81]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0043bc88
mov esp, ebp
pop ebp
ret