Function at 0x421aea
Capabilities:
Set registry value

Disassembly:
push 0x14
mov eax, 0x52b8b5
call fcn.004fa4d4
mov dword [ebp - 4], 2
xor ebx, ebx
mov dword [ebp - 0x18], edi
cmp edi, ebx
je 0x421b0b
call fcn.0041fa30
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 0x421ba6
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.00411585
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x421b7b
call fcn.0040e2de
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.004fa5ac
ret
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 0xc], ebx
jne 0x421bf4
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 0x421b63
cmp dword [ebp + 8], 0x80000001
je 0x421c02
mov eax, dword [ebp + 8]
jmp 0x421c0b
push edi
call fcn.00421114
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 0x421c6e
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 0x421b65
push dword [ebp - 0x14]
mov esi, dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.0040819e
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 0x421d21
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.00411585
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x421cf5
call fcn.0040e2de
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 0x421ba0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x421d37
call fcn.0040e2de
xor esi, esi
inc esi
jmp 0x421cf7