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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x30026dec
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x30027052
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call fcn.300268e4
test al, al
je 0x30027037
push 0xf003f
push 0
push 0
call dword [0x30040918]
mov esi, eax
test esi, esi
je 0x30027037
push 0x1ff
lea edx, [ebp - 0x20]
mov eax, 0x3002706c
call fcn.30017d04
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov dl, 1
call fcn.30017d74
mov eax, dword [ebp - 0x1c]
push eax
push esi
call dword [0x3004091c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x30026e7a
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.30026ba0
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
call dword [0x3004090c]
jmp 0x30026eeb
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 1
push 1
push 1
push 0x1f01ff
lea edx, [ebp - 0x28]
mov eax, 0x30027080
call fcn.30017d04
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
mov dl, 1
call fcn.30017d74
mov eax, dword [ebp - 0x24]
push eax
lea edx, [ebp - 0x30]
mov eax, 0x3002706c
call fcn.30017d04
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov dl, 1
call fcn.30017d74
mov eax, dword [ebp - 0x2c]
push eax
push esi
call dword [0x30040924]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x30026eeb
mov bl, 1
mov eax, dword [ebp - 8]
push eax
call dword [0x3004090c]
push esi
call dword [0x3004090c]
test bl, bl
je 0x30027037
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
lea edx, [ebp - 0x38]
mov eax, 0x300270ac
call fcn.30017d04
push dword [ebp - 0x38]
push 0x300270d8
lea edx, [ebp - 0x3c]
mov eax, 0x3002706c
call fcn.30017d04
push dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.30015808
mov eax, dword [ebp - 0x34]
call fcn.30015948
push eax
push SysFreeString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x30027037
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
lea edx, [ebp - 0x40]
mov eax, 0x300270e4
call fcn.30017d04
mov eax, dword [ebp - 0x40]
call fcn.30015948
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x30026f8e
cmp dword [ebp - 0xc], 4
je 0x30027002
mov dword [ebp - 0x18], 0x10000
mov dword [ebp - 0x14], 0x10000
mov eax, dword [ebp - 4]
call fcn.30025bc4
mov dword [ebp - 8], eax
push 8
lea eax, [ebp - 0x18]
push eax
push 3
push 0
lea edx, [ebp - 0x44]
mov eax, 0x300270fc
call fcn.30017d04
mov eax, dword [ebp - 0x44]
call fcn.30015948
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
push 4
lea eax, [ebp - 8]
push eax
push 3
push 0
lea edx, [ebp - 0x48]
mov eax, 0x3002710c
call fcn.30017d04
mov eax, dword [ebp - 0x48]
call fcn.30015948
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
mov dword [ebp - 8], 1
jmp 0x30027005
inc dword [ebp - 8]
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
mov eax, 0x300270e4
lea edx, [ebp - 0x4c]
call fcn.30017d04
mov eax, dword [ebp - 0x4c]
call fcn.30015948
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30027059
lea eax, [ebp - 0x4c]
mov edx, 0xd
call fcn.3001550c
ret