Function at 0x1001b5c8
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 0x1001b5d0
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x1001b836
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call fcn.1001b0c8
test al, al
je 0x1001b81b
push 0xf003f
push 0
push 0
call dword [0x1002a70c]
mov esi, eax
test esi, esi
je 0x1001b81b
push 0x1ff
lea edx, [ebp - 0x20]
mov eax, 0x1001b850
call fcn.1000ccec
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov dl, 1
call fcn.1000cd5c
mov eax, dword [ebp - 0x1c]
push eax
push esi
call dword [0x1002a710]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1001b65e
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.1001b384
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
call dword [0x1002a700]
jmp 0x1001b6cf
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, 0x1001b864
call fcn.1000ccec
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
mov dl, 1
call fcn.1000cd5c
mov eax, dword [ebp - 0x24]
push eax
lea edx, [ebp - 0x30]
mov eax, 0x1001b850
call fcn.1000ccec
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov dl, 1
call fcn.1000cd5c
mov eax, dword [ebp - 0x2c]
push eax
push esi
call dword [0x1002a718]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1001b6cf
mov bl, 1
mov eax, dword [ebp - 8]
push eax
call dword [0x1002a700]
push esi
call dword [0x1002a700]
test bl, bl
je 0x1001b81b
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
lea edx, [ebp - 0x38]
mov eax, 0x1001b890
call fcn.1000ccec
push dword [ebp - 0x38]
push 0x1001b8bc
lea edx, [ebp - 0x3c]
mov eax, 0x1001b850
call fcn.1000ccec
push dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.1000a808
mov eax, dword [ebp - 0x34]
call fcn.1000a948
push eax
push SysFreeString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x1001b81b
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, 0x1001b8c8
call fcn.1000ccec
mov eax, dword [ebp - 0x40]
call fcn.1000a948
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x1001b772
cmp dword [ebp - 0xc], 4
je 0x1001b7e6
mov dword [ebp - 0x18], 0x10000
mov dword [ebp - 0x14], 0x10000
mov eax, dword [ebp - 4]
call fcn.1001a3d8
mov dword [ebp - 8], eax
push 8
lea eax, [ebp - 0x18]
push eax
push 3
push 0
lea edx, [ebp - 0x44]
mov eax, 0x1001b8e0
call fcn.1000ccec
mov eax, dword [ebp - 0x44]
call fcn.1000a948
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, 0x1001b8f0
call fcn.1000ccec
mov eax, dword [ebp - 0x48]
call fcn.1000a948
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
mov dword [ebp - 8], 1
jmp 0x1001b7e9
inc dword [ebp - 8]
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
mov eax, 0x1001b8c8
lea edx, [ebp - 0x4c]
call fcn.1000ccec
mov eax, dword [ebp - 0x4c]
call fcn.1000a948
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 0x1001b83d
lea eax, [ebp - 0x4c]
mov edx, 0xd
call fcn.1000a50c
ret