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

Disassembly:
push 0x2c
mov eax, 0x45eb23
call fcn.004497b9
mov esi, ecx
mov dword [ebp - 0x20], esi
xor edi, edi
cmp dword [esi + 4], edi
je 0x4043f1
xor eax, eax
jmp 0x4045ce
cmp dword [ebp + 0x14], edi
je 0x4045c9
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4045c9
mov eax, dword [esi + 4]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push edi
push dword [ebp + 0x14]
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x404442
lea esi, [ebp - 0x30]
call fcn.00404376
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x30], ecx
mov ebx, eax
cmp eax, edi
je 0x404457
lea esi, [ebp - 0x30]
call fcn.00404376
mov eax, ebx
jmp 0x4045ce
push edi
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
push edi
push edi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4045c1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
xor eax, eax
cmp dword [ebp + 0x1c], edi
mov byte [ebp - 4], 1
setne al
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push dword [ebp + 8]
call fcn.00404389
mov ebx, eax
cmp ebx, edi
je 0x4044b6
lea esi, [ebp - 0x38]
call fcn.00404376
jmp 0x404448
mov eax, dword [ebp - 0x14]
inc eax
push eax
mov dword [ebp + 0x14], edi
call fcn.00421415
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x18]
pop ecx
inc eax
push eax
call fcn.00421415
pop ecx
mov dword [ebp + 0x10], eax
mov esi, 0x103
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebx, eax
cmp ebx, esi
je 0x404532
cmp ebx, edi
jne 0x404529
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
inc dword [ebp + 0x14]
cmp ebx, edi
je 0x4044da
jmp 0x404534
xor ebx, ebx
push dword [ebp + 0x10]
call fcn.00421420
pop ecx
push dword [ebp + 0xc]
call fcn.00421420
pop ecx
cmp dword [ebp + 0x18], edi
jne 0x4045b4
mov eax, dword [ebp - 0x1c]
inc eax
push eax
mov dword [ebp + 0x14], edi
call fcn.00421415
pop ecx
mov dword [ebp + 0x10], eax
jmp 0x4045a3
mov eax, dword [ebp - 0x1c]
push edi
push edi
push edi
inc eax
push edi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, eax
cmp ebx, esi
je 0x4045a9
cmp ebx, edi
jne 0x4045a0
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x38]
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x30]
push dword [ebp + 0x10]
push dword [ebp - 0x38]
call fcn.004043d2
mov ebx, eax
inc dword [ebp + 0x14]
cmp ebx, edi
je 0x40455e
jmp 0x4045ab
xor ebx, ebx
push dword [ebp + 0x10]
call fcn.00421420
pop ecx
lea esi, [ebp - 0x38]
call fcn.00404376
call fcn.00404376
lea esi, [ebp - 0x30]
jmp 0x4044af
mov eax, 0x3f2
call fcn.00449891
ret 0x18