Function at 0x43f39c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x43f3a4
push ebx
push esi
xor eax, eax
push ebp
push 0x43f5e7
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
call fcn.0043f010
test al, al
je 0x43f5af
push 0xf003f
push 0
push 0
call dword [0x45d91c]
mov ebx, eax
test ebx, ebx
je 0x43f5af
push 0x1ff
mov eax, dword [ebp + 8]
push eax
push ebx
call dword [0x45d920]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43f41c
push 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.0043f1ec
neg al
sbb esi, esi
mov eax, dword [ebp - 4]
push eax
call dword [0x45d90c]
jmp 0x43f45a
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push 1
push 1
push 1
push 0x1f01ff
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
push ebx
call dword [0x45d928]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43f45a
or esi, 0xffffffff
mov eax, dword [ebp - 4]
push eax
call dword [0x45d90c]
push ebx
call dword [0x45d90c]
test esi, esi
je 0x43f5af
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
lea edx, [ebp - 0x24]
mov eax, dword [0x45be00]
call fcn.0042ee90
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.0042cc80
push dword [ebp - 0x20]
push 0x43f5fc
lea eax, [ebp - 0x28]
mov edx, dword [ebp + 8]
call fcn.0042cc2c
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.0042ccac
mov eax, dword [ebp - 0x1c]
call fcn.0042cc90
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x43f5af
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
lea edx, [ebp - 0x2c]
mov eax, dword [0x45bde8]
call fcn.0042ee90
mov eax, dword [ebp - 0x2c]
call fcn.0042c998
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x43f506
cmp dword [ebp - 8], 4
je 0x43f57a
mov dword [ebp - 0x18], 0x10000
mov dword [ebp - 0x14], 0x10000
mov eax, dword [ebp + 0xc]
call fcn.0043eaec
mov dword [ebp - 4], eax
push 8
lea eax, [ebp - 0x18]
push eax
push 3
push 0
lea edx, [ebp - 0x30]
mov eax, dword [0x45bde0]
call fcn.0042ee90
mov eax, dword [ebp - 0x30]
call fcn.0042c998
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
push 4
lea eax, [ebp - 4]
push eax
push 3
push 0
lea edx, [ebp - 0x34]
mov eax, dword [0x45bde4]
call fcn.0042ee90
mov eax, dword [ebp - 0x34]
call fcn.0042c998
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
mov dword [ebp - 4], 1
jmp 0x43f57d
inc dword [ebp - 4]
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
lea edx, [ebp - 0x38]
mov eax, dword [0x45bde8]
call fcn.0042ee90
mov eax, dword [ebp - 0x38]
call fcn.0042c998
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f5ee
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.0042c52c
lea eax, [ebp - 0x28]
call fcn.0042cb14
lea eax, [ebp - 0x24]
call fcn.0042c508
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0042cb2c
ret