Function at 0x421a14
Capabilities:
Set registry value

Disassembly:
push 0x14
mov eax, 0x528414
call fcn.004f8194
mov dword [ebp - 4], 2
xor ebx, ebx
mov dword [ebp - 0x18], edi
cmp edi, ebx
je 0x421a35
call fcn.0041f8eb
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x14]
mov eax, dword [eax - 0xc]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], ebx
jne 0x421ad0
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push str.CCoreRegistry::SetString
call fcn.00401769
mov byte [ebp - 4], 4
push 0x224
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str..CoreRegistry.cpp
call fcn.00401769
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.hkeyRoot_is_NULL_
call fcn.00401769
mov byte [ebp - 4], 6
push 0x57
mov byte [ebp - 4], 3
call fcn.004114a5
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x421aa5
call fcn.0040e1fe
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00401898
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00401898
xor eax, eax
call fcn.004f826c
ret
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 0xc], ebx
jne 0x421b1e
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push str.CCoreRegistry::SetString
call fcn.00401769
mov byte [ebp - 4], 7
push 0x229
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str..CoreRegistry.cpp
call fcn.00401769
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.subkey_is_empty_
call fcn.00401769
mov byte [ebp - 4], 9
jmp 0x421a8d
cmp dword [ebp + 8], 0x80000001
je 0x421b2c
mov eax, dword [ebp + 8]
jmp 0x421b35
push edi
call fcn.0042103e
add esp, 4
push ebx
lea edx, [ebp - 0x10]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
cmp esi, ebx
je 0x421b98
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push str.CCoreRegistry::SetString
call fcn.00401769
mov byte [ebp - 4], 0xa
push 0x232
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str..CoreRegistry.cpp
call fcn.00401769
mov byte [ebp - 4], 0xb
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.RegCreateKeyEx_failed_
call fcn.00401769
mov byte [ebp - 4], 0xc
push esi
jmp 0x421a8f
push dword [ebp - 0x14]
mov esi, dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.004081b7
push eax
push 1
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
cmp esi, ebx
je 0x421c4b
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push str.CCoreRegistry::SetString
call fcn.00401769
mov byte [ebp - 4], 0xd
push 0x23a
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str..CoreRegistry.cpp
call fcn.00401769
mov byte [ebp - 4], 0xe
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.RegSetValueEx_failed_
call fcn.00401769
mov byte [ebp - 4], 0xf
push esi
mov byte [ebp - 4], 3
call fcn.004114a5
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x421c1f
call fcn.0040e1fe
xor esi, esi
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00401898
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00401898
mov eax, esi
jmp 0x421aca
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x421c61
call fcn.0040e1fe
xor esi, esi
inc esi
jmp 0x421c21