Function at 0x418834
Capabilities:
Set registry value

Disassembly:
push 0x1c
mov eax, 0x47b83f
call fcn.00437fb7
mov esi, dword [ebp + 8]
push 3
pop eax
mov edi, str...includeMcRegistryOps.cpp
mov dword [ebp - 4], eax
push edi
push str.CMcRegistryOps::SetStringRegValue
push 0x1c
push eax
lea ecx, [ebp - 0x10]
call fcn.00409a60
mov byte [ebp - 4], 4
mov edx, str.SetStringRegValue___START
mov ecx, dword [eax]
call fcn.004112cc
lea edx, [ebp + 0x24]
mov ecx, eax
call fcn.0041180a
lea ecx, [ebp - 0x10]
call fcn.00409aa0
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push dword [ebp + 0x6c]
mov byte [ebp - 4], 5
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x1c]
cmovae eax, dword [ebp + 0xc]
push eax
push esi
call fcn.004187aa
test eax, eax
je 0x41894c
call fcn.00419876
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
push ecx
mov ecx, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.00419ebf
call fcn.00419855
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ecx
cmovae eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
push ecx
push dword [ebp + 0x6c]
push ecx
push ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00418740
mov esi, eax
test esi, esi
je 0x41894c
push edi
push str.CMcRegistryOps::SetStringRegValue
push 0x2b
push 4
lea ecx, [ebp - 0x10]
call fcn.00409a60
mov byte [ebp - 4], 6
mov edx, str.Failed_to_create_registry_key
mov ecx, dword [eax]
call fcn.004112cc
push esi
push ecx
lea edx, [ebp + 0xc]
mov ecx, eax
call fcn.0041180a
mov edx, str.._Error_:
mov ecx, eax
call fcn.004112cc
pop ecx
mov ecx, eax
call fcn.0040ef8c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00409aa0
mov edi, dword [ebp - 0x1c]
jmp 0x4189f1
cmp dword [ebp + 0x50], 8
lea edx, [ebp + 0x3c]
mov edi, dword [ebp - 0x1c]
lea esi, [ebp + 0x24]
cmovae edx, dword [ebp + 0x3c]
cmp dword [ebp + 0x38], 8
cmovae esi, dword [ebp + 0x24]
test edx, edx
jne 0x41896e
push 0xd
pop esi
jmp 0x41899f
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x10]
jne 0x418973
sub ecx, ebx
xor ebx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x4189f1
push str...includeMcRegistryOps.cpp
push str.CMcRegistryOps::SetStringRegValue
push 0x35
push 4
lea ecx, [ebp - 0x10]
call fcn.00409a60
mov byte [ebp - 4], 7
mov edx, str.Failed_to_set_registry_value
mov ecx, dword [eax]
call fcn.004112cc
push esi
push ecx
lea edx, [ebp + 0x24]
mov ecx, eax
call fcn.0041180a
mov edx, str.._Error_:
mov ecx, eax
call fcn.004112cc
pop ecx
mov ecx, eax
call fcn.0040ef8c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00409aa0
push str...includeMcRegistryOps.cpp
push str.CMcRegistryOps::SetStringRegValue
push 0x39
push 3
lea ecx, [ebp - 0x10]
call fcn.00409a60
mov byte [ebp - 4], 8
mov edx, str.SetStringRegValue___END
mov ecx, dword [eax]
call fcn.004112cc
lea edx, [ebp + 0x24]
mov ecx, eax
call fcn.0041180a
lea ecx, [ebp - 0x10]
call fcn.00409aa0
test edi, edi
je 0x418a37
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
call fcn.00418726
xor edi, edi
lea ecx, [ebp + 0xc]
push ebx
inc edi
push edi
call fcn.0040626d
push ebx
push edi
lea ecx, [ebp + 0x24]
call fcn.0040626d
push ebx
push edi
lea ecx, [ebp + 0x3c]
call fcn.0040626d
push ebx
push edi
lea ecx, [ebp + 0x54]
call fcn.0040626d
mov eax, esi
call fcn.00437f80
ret 0x68