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

Disassembly:
mov eax, 0x41dc65
call fcn.0041d980
sub esp, 0x240
push ebx
or dword [ebp - 0x1c], 0xffffffff
push esi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push 0x423878
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41c5b4
push 0x103
lea eax, [ebp - 0x14b]
push ebx
push eax
mov byte [ebp - 0x14c], bl
call fcn.00407710
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x24], 0x104
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x18], ebx
je 0x41c5a5
xor esi, esi
cmp dword [ebp - 0x18], ebx
jbe 0x41c5a5
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24c]
push eax
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x20], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x41c59f
lea eax, [ebp - 0x24c]
push eax
call fcn.00405ef3
cmp eax, dword [ebp - 0x1c]
pop ecx
jle 0x41c59f
mov dword [ebp - 0x1c], eax
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x41c563
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x41c5b9
mov dword [ebp - 0x1c], ebx
jmp 0x41c5bc
inc dword [ebp - 0x1c]
push 0x429b94
call fcn.00416667
cmp dword [0x429b88], ebx
mov dword [ebp - 0x18], ebx
jle 0x41c719
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [0x4285cc]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push 0x4238a8
push str._s_i
mov dword [ebp - 4], ebx
call fcn.00401d36
mov ecx, dword [ebp - 0x24]
add esp, 0xc
inc dword [ebp - 0x1c]
lea eax, [ecx - 0x10]
sub eax, 0x428668
push ebx
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41c6fb
mov eax, dword [0x429b90]
mov ecx, dword [ebp - 0x18]
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 4]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push ebx
push 0x4238e0
push dword [ebp - 0x14]
call edi
mov eax, dword [esi + 8]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push ebx
push 0x4238e8
push dword [ebp - 0x14]
call edi
push ecx
mov eax, esp
mov ecx, esi
mov dword [ebp - 0x28], esp
call fcn.00401e3f
push 0x4238f4
push dword [ebp - 0x14]
call fcn.00401c06
push ecx
mov eax, esp
mov ecx, esi
mov dword [ebp - 0x28], esp
call fcn.00401a2a
push 0x423900
push dword [ebp - 0x14]
call fcn.00401c06
push ecx
mov eax, esp
mov ecx, esi
mov dword [ebp - 0x28], esp
call fcn.00404351
push 0x423904
push dword [ebp - 0x14]
call fcn.00401c06
push ecx
mov eax, esp
mov ecx, esi
mov dword [ebp - 0x28], esp
call fcn.00401a3f
push 0x423910
push dword [ebp - 0x14]
call fcn.00401c06
mov eax, dword [esi + 0x1c]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push ebx
push 0x423920
push dword [ebp - 0x14]
call edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x24]
call fcn.0040107f
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [0x429b88]
jl 0x41c5db
push 0x429b94
call fcn.00416658
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret