Function at 0x460830
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df62f
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x527064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push str...includeMcRegistryOps.cpp
push str.CMcRegistryOps::SetStringRegValue
push 0x1c
push 3
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 3
call fcn.00431610
mov byte [ebp - 4], 4
mov edx, str.SetStringRegValue___START
mov ecx, dword [eax]
call fcn.004333c0
xor esi, esi
mov edi, eax
cmp dword [ebp + 0x34], esi
jbe 0x4608b3
cmp dword [ebp + 0x38], 8
lea ecx, [ebp + 0x24]
cmovae ecx, dword [ebp + 0x24]
mov ax, word [ecx + esi*2]
mov ecx, edi
cbw
movzx eax, ax
push eax
call fcn.0043a440
inc esi
cmp esi, dword [ebp + 0x34]
jb 0x460891
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
call fcn.004327d0
mov eax, dword [ebp - 0x10]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [ebp + 0x6c]
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1c]
cmp dword [ebp + 0x20], 8
push edi
cmovae eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.0043eae0
test eax, eax
je 0x4609f6
mov esi, dword [0x52d524]
test esi, esi
jne 0x460942
push 0x6c
call fcn.004a3e8e
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x460936
mov ecx, esi
call fcn.004635c0
mov dword [esi], vtable.CMcSingleton_class_CMcSecurityHelperClass_.0
jmp 0x460938
xor esi, esi
mov byte [ebp - 4], 6
mov dword [0x52d524], esi
inc dword [0x52d528]
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
push eax
mov ecx, esi
movq qword [ebp - 0x24], xmm0
call fcn.004638a0
sub dword [0x52d528], 1
jne 0x460985
mov ecx, dword [0x52d524]
test ecx, ecx
je 0x460985
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x52d524], 0
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ecx
cmovae eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
push ecx
push edi
sub esp, 8
lea ecx, [ebp - 0x1c]
push eax
push ebx
call fcn.00460770
mov edi, eax
test edi, edi
je 0x4609f6
push str...includeMcRegistryOps.cpp
push str.CMcRegistryOps::SetStringRegValue
push 0x2b
push 4
lea ecx, [ebp - 0x10]
call fcn.00431610
mov byte [ebp - 4], 8
mov edx, str.Failed_to_create_registry_key
mov ecx, dword [eax]
call fcn.004333c0
push edi
lea edx, [ebp + 0xc]
mov ecx, eax
call fcn.00433d20
mov edx, str.._Error_:
mov ecx, eax
call fcn.004333c0
mov ecx, eax
call fcn.0043a770
mov byte [ebp - 4], 9
jmp 0x460a94
cmp dword [ebp + 0x50], 8
lea edx, [ebp + 0x3c]
lea esi, [ebp + 0x24]
cmovae edx, dword [ebp + 0x3c]
cmp dword [ebp + 0x38], 8
cmovae esi, dword [ebp + 0x24]
test edx, edx
jne 0x460a15
lea edi, [edx + 0xd]
jmp 0x460a4c
mov ecx, edx
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460a20
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x460aae
push str...includeMcRegistryOps.cpp
push str.CMcRegistryOps::SetStringRegValue
push 0x35
push 4
lea ecx, [ebp - 0x10]
call fcn.00431610
mov byte [ebp - 4], 0xa
mov edx, str.Failed_to_set_registry_value
mov ecx, dword [eax]
call fcn.004333c0
push edi
lea edx, [ebp + 0x24]
mov ecx, eax
call fcn.00433d20
mov edx, str.._Error_:
mov ecx, eax
call fcn.004333c0
mov ecx, eax
call fcn.0043a770
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
call fcn.004327d0
mov eax, dword [ebp - 0x10]
add eax, 0x14
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call eax
mov byte [ebp - 4], 6
push str...includeMcRegistryOps.cpp
push str.CMcRegistryOps::SetStringRegValue
push 0x39
push 3
lea ecx, [ebp - 0x10]
call fcn.00431610
mov byte [ebp - 4], 0xc
mov edx, str.SetStringRegValue___END
mov ecx, dword [eax]
call fcn.004333c0
xor esi, esi
mov ebx, eax
cmp dword [ebp + 0x34], esi
jbe 0x460b02
nop dword [eax]
cmp dword [ebp + 0x38], 8
lea ecx, [ebp + 0x24]
cmovae ecx, dword [ebp + 0x24]
mov ax, word [ecx + esi*2]
mov ecx, ebx
cbw
movzx eax, ax
push eax
call fcn.0043a440
inc esi
cmp esi, dword [ebp + 0x34]
jb 0x460ae0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x10]
call fcn.004327d0
mov eax, dword [ebp - 0x10]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x460b29
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x20]
cmp eax, 8
jb 0x460b40
push 2
inc eax
push eax
push dword [ebp + 0xc]
call fcn.00402ff0
add esp, 0xc
xor eax, eax
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x1c], 0
cmp eax, 8
jb 0x460b6b
push 2
inc eax
push eax
push dword [ebp + 0x24]
call fcn.00402ff0
add esp, 0xc
xor eax, eax
mov dword [ebp + 0x38], 7
mov word [ebp + 0x24], ax
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x34], 0
cmp eax, 8
jb 0x460b96
push 2
inc eax
push eax
push dword [ebp + 0x3c]
call fcn.00402ff0
add esp, 0xc
xor eax, eax
mov dword [ebp + 0x50], 7
mov word [ebp + 0x3c], ax
mov eax, dword [ebp + 0x68]
mov dword [ebp + 0x4c], 0
cmp eax, 8
jb 0x460bc1
push 2
inc eax
push eax
push dword [ebp + 0x54]
call fcn.00402ff0
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x68