Function at 0x11b978
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x11b980
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x11bdab
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
call fcn.00013c3c
lea eax, [ebp - 0x30]
call fcn.00013c3c
mov eax, 0x2800
call fcn.00019220
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 4
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x11bd71
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
lea eax, [ebp - 0x34]
call fcn.00025330
mov eax, dword [ebp - 0x34]
call fcn.00014090
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
cmp dword [ebp - 0x1c], 0
je 0x11ba45
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x11bdbc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
call fcn.000189b4
test eax, eax
jne 0x11ba45
cmp dword [ebp - 0x18], 1
jne 0x11ba45
cmp dword [ebp - 0x10], 0xa
jb 0x11ba45
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x14]
call fcn.0001899c
mov eax, dword [ebp - 0x28]
call fcn.00013ecc
test eax, eax
jle 0x11bd47
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x38]
mov eax, 0x11bdc4
call fcn.00031d88
mov ecx, dword [ebp - 0x38]
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.0011ae80
mov eax, dword [ebp - 0x30]
call fcn.00013ecc
cmp eax, 0x33
jne 0x11bb46
lea eax, [ebp - 0x3c]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x30]
call fcn.000140d4
mov eax, dword [ebp - 0x3c]
mov edx, dword [0x2a8338]
call fcn.00013fdc
jne 0x11bb3e
lea eax, [ebp - 0x30]
mov ecx, 8
mov edx, 0x24
call fcn.00014114
lea edx, [ebp - 0x40]
xor eax, eax
call fcn.0002d44c
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x30]
mov ecx, 0x24
call fcn.0001415c
lea eax, [ebp - 0x30]
mov ecx, 8
mov edx, 0x2c
call fcn.00014114
lea edx, [ebp - 0x44]
xor eax, eax
call fcn.0002d44c
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x30]
mov ecx, 0x2c
call fcn.0001415c
lea edx, [ebp - 0x48]
mov eax, 0x11bdc8
call fcn.00031d88
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x30]
call fcn.00013ed4
lea eax, [ebp - 0x30]
call fcn.0001409c
push eax
mov eax, 0x2a833c
call fcn.0001409c
mov ecx, 2
pop edx
call fcn.00012840
jmp 0x11bb46
lea eax, [ebp - 0x30]
call fcn.0011b50c
mov eax, dword [ebp - 0x30]
call fcn.00013ecc
cmp eax, 0x37
jne 0x11bd40
lea eax, [ebp - 0x4c]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x30]
call fcn.000140d4
mov eax, dword [ebp - 0x4c]
mov edx, dword [0x2a833c]
call fcn.00013fdc
jne 0x11bd37
lea eax, [ebp - 0xc]
push eax
mov ecx, 8
mov edx, 0x24
mov eax, dword [ebp - 0x30]
call fcn.000140d4
lea eax, [ebp - 0x20]
push eax
mov ecx, 8
mov edx, 0x2c
mov eax, dword [ebp - 0x30]
call fcn.000140d4
lea edx, [ebp - 0x50]
mov eax, 0x11bdd0
call fcn.00031d88
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 0xc]
call fcn.00013ed4
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x24]
call fcn.00015490
mov edi, eax
lea edx, [ebp - 0x54]
mov eax, 0x11bdd0
call fcn.00031d88
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0x20]
call fcn.00013ed4
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x2c]
call fcn.00015490
mov esi, eax
cmp dword [ebp - 0x24], 0
jne 0x11bd2e
cmp dword [ebp - 0x2c], 0
jne 0x11bd2e
add edi, dword [ebp - 4]
test esi, esi
jne 0x11bc17
mov esi, dword [ebp - 4]
jmp 0x11bc28
lea eax, [esi + esi*8]
add eax, dword [ebp - 4]
mov ecx, 0xa
xor edx, edx
div ecx
mov esi, eax
lea eax, [ebp - 0x30]
mov ecx, 8
mov edx, 0x24
call fcn.00014114
lea edx, [ebp - 0x58]
mov eax, edi
call fcn.0002d44c
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x30]
mov ecx, 0x24
call fcn.0001415c
lea eax, [ebp - 0x30]
mov ecx, 8
mov edx, 0x2c
call fcn.00014114
lea edx, [ebp - 0x5c]
mov eax, esi
call fcn.0002d44c
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x30]
mov ecx, 0x2c
call fcn.0001415c
lea eax, [ebp - 0x30]
call fcn.0001409c
push eax
mov eax, 0x2a833c
call fcn.0001409c
mov ecx, 2
pop edx
call fcn.00012840
lea edx, [ebp - 0x60]
mov eax, 0x11bdd4
call fcn.00031d88
mov eax, dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
mov edx, 5
mov eax, dword [ebp - 0x30]
call fcn.0011aa60
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, dword [ebp - 0x28]
call fcn.00013ecc
test eax, eax
jle 0x11bd47
xor eax, eax
push ebp
push 0x11bd22
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x1c], 0
je 0x11bd15
mov eax, dword [ebp - 0x28]
call fcn.00013ecc
inc eax
push eax
mov eax, dword [ebp - 0x28]
call fcn.00014090
push eax
push 1
push 0
push 0x11bdbc
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegSetValueExA
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x11bd18
mov dword [ebp - 8], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x11bd47
mov dword [ebp - 8], 3
jmp 0x11bd47
mov dword [ebp - 8], 2
jmp 0x11bd47
mov dword [ebp - 8], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x11bd78
cmp dword [ebp - 0x1c], 0
je 0x11bd63
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
call fcn.00019230
ret