Function at 0x4120a0
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x440
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x43c], eax
mov eax, dword [esp + 0x444]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x458]
push edi
mov edi, dword [esp + 0x460]
lea edx, [esp + 0x10]
push edx
push 0x2001f
mov ebx, ecx
mov ecx, dword [esp + 0x460]
push 0
push ecx
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [esp + 0x2c]
mov ebp, eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x2001f
push 0
push 0x46db5c
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test ebp, ebp
jne 0x412196
test eax, eax
jne 0x412196
test esi, esi
je 0x41219d
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1f]
push ecx
lea edx, [esp + 0x40]
push edx
push ebp
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412162
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1f]
push edx
push eax
push ebp
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
push edi
call esi
test ebp, ebp
je 0x412324
xor eax, eax
jmp 0x412329
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [esp + 0x20], 0
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 0
push 0
push 0
push edx
call ebp
test eax, eax
jne 0x412344
cmp dword [esp + 0x20], eax
jbe 0x41223a
mov eax, dword [esp + 0x1c]
inc eax
push eax
call fcn.00426d03
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
add esp, 4
inc ecx
push ecx
mov esi, eax
push esi
push 0
push edx
call edi
test eax, eax
jne 0x41235c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push 0
push esi
push ecx
mov ecx, ebx
call fcn.004120a0
push esi
test eax, eax
je 0x41237d
call fcn.00426cf8
add esp, 4
cmp dword [esp + 0x20], 0
ja 0x4121b1
push 0
push 0
lea edx, [esp + 0x50]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
call ebp
test eax, eax
jne 0x412385
cmp dword [esp + 0x24], eax
jbe 0x4122fc
mov edx, dword [esp + 0x34]
inc edx
push edx
call fcn.00426d03
push 0x3ff
mov edi, eax
lea eax, [esp + 0x55]
push 0
push eax
mov byte [esp + 0x5c], 0
call fcn.00449a70
xor esi, esi
add esp, 0x10
cmp dword [esp + 0x24], esi
jle 0x4122f3
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea esp, [esp]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x50]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x38]
push eax
push 0
lea ecx, [esp + 0x54]
push ecx
push edi
push esi
push edx
call ebp
test eax, eax
jne 0x4122ec
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x50]
push ecx
push edx
push 0
push edi
push eax
call ebx
inc esi
cmp esi, dword [esp + 0x24]
jl 0x4122b0
push edi
call fcn.00426cf8
add esp, 4
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x412358
mov eax, 1
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00449ba6
add esp, 0x440
ret 0x10
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
xor eax, eax
jmp 0x412329
push esi
call fcn.00426cf8
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
xor eax, eax
jmp 0x412329
call fcn.00426cf8
add esp, 4
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
xor eax, eax
jmp 0x412329