Function at 0x460be0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df6a8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
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 eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push str...includeMcRegistryOps.cpp
push str.CMcRegistryOps::SetRegValue_HKML_DWORD
push 0x41
push 3
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 2
call fcn.00431610
mov byte [ebp - 4], 3
mov edx, str.SetRegValue_HKML_DWORD___START
mov ecx, dword [eax]
call fcn.004333c0
xor esi, esi
mov edi, eax
cmp dword [ebp + 0x34], esi
jbe 0x460c66
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 0x460c44
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
call fcn.004327d0
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add eax, 0x14
push eax
call ebx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push dword [ebp + 0x58]
mov byte [ebp - 4], 5
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x20]
cmovae eax, dword [ebp + 0xc]
push eax
push dword [ebp - 0x14]
call fcn.0043eae0
mov edi, dword [ebp - 0x20]
mov esi, eax
test esi, esi
jne 0x460d37
mov eax, dword [ebp + 0x54]
lea ecx, [ebp + 0x24]
cmp dword [ebp + 0x38], 8
push 4
cmovae ecx, dword [ebp + 0x24]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x460d94
push str...includeMcRegistryOps.cpp
push str.CMcRegistryOps::SetRegValue_HKML_DWORD
push 0x4c
push 4
lea ecx, [ebp - 0x10]
call fcn.00431610
mov byte [ebp - 4], 6
mov edx, str.Failed_to_set_registry_value
mov ecx, dword [eax]
call fcn.004333c0
push esi
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], 7
jmp 0x460dbe
push str...includeMcRegistryOps.cpp
push str.CMcRegistryOps::SetRegValue_HKML_DWORD
push 0x54
push 4
lea ecx, [ebp - 0x10]
call fcn.00431610
mov byte [ebp - 4], 8
mov edx, str.Failed_to_open_registry_key
mov ecx, dword [eax]
call fcn.004333c0
push esi
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
mov ecx, dword [ebp - 0x10]
call fcn.004327d0
mov eax, dword [ebp - 0x10]
add eax, 0x14
push eax
call ebx
mov byte [ebp - 4], 5
push str...includeMcRegistryOps.cpp
push str.CMcRegistryOps::SetRegValue_HKML_DWORD
push 0x57
push 3
lea ecx, [ebp - 0x10]
call fcn.00431610
mov byte [ebp - 4], 0xa
mov edx, str.SetRegValue_HKML_DWORD___END
mov ecx, dword [eax]
call fcn.004333c0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
call fcn.004327d0
mov eax, dword [ebp - 0x10]
add eax, 0x14
push eax
call ebx
test edi, edi
je 0x460dda
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x20]
cmp eax, 8
jb 0x460df1
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 0x460e1c
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 0x460e47
push 2
inc eax
push eax
push dword [ebp + 0x3c]
call fcn.00402ff0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x54