Function at 0x156e80
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x156e88
push ebx
xor eax, eax
push ebp
push 0x157128
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x1570bf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
push 0x157138
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
je 0x156f11
lea edx, [ebp - 0x1c]
mov eax, 0x157174
call fcn.00031d88
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0002b100
mov edx, dword [ebp - 0x20]
pop eax
call fcn.00013ed4
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.000144c4
mov edx, dword [ebp - 0x18]
mov eax, dword [0x2a8dd0]
call fcn.00138bc8
test ebx, ebx
jne 0x15709d
mov dword [ebp - 8], 4
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x157180
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
test ebx, ebx
jne 0x156f5c
cmp dword [ebp - 0xc], 4
jne 0x156f5c
cmp dword [ebp - 8], 4
je 0x156fe7
lea edx, [ebp - 0x2c]
mov eax, 0x15719c
call fcn.00031d88
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.00033468
push dword [ebp - 0x30]
lea edx, [ebp - 0x34]
mov eax, 0x1571a8
call fcn.00031d88
push dword [ebp - 0x34]
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x38]
call fcn.00033468
push dword [ebp - 0x38]
lea edx, [ebp - 0x3c]
mov eax, 0x1571ac
call fcn.00031d88
push dword [ebp - 0x3c]
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.0002b100
push dword [ebp - 0x40]
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.00013f8c
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
call fcn.000144c4
mov edx, dword [ebp - 0x24]
mov eax, dword [0x2a8dd0]
call fcn.00138bc8
jmp 0x15709d
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0x1571b0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je 0x157047
lea edx, [ebp - 0x48]
mov eax, 0x1571cc
call fcn.00031d88
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x4c]
mov eax, ebx
call fcn.0002b100
mov edx, dword [ebp - 0x4c]
pop eax
call fcn.00013ed4
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
call fcn.000144c4
mov edx, dword [ebp - 0x44]
mov eax, dword [0x2a8dd0]
call fcn.00138bc8
jmp 0x15709d
push 0x157180
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov ebx, eax
test ebx, ebx
je 0x157099
lea edx, [ebp - 0x54]
mov eax, 0x1571d8
call fcn.00031d88
lea eax, [ebp - 0x54]
push eax
lea edx, [ebp - 0x58]
mov eax, ebx
call fcn.0002b100
mov edx, dword [ebp - 0x58]
pop eax
call fcn.00013ed4
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
call fcn.000144c4
mov edx, dword [ebp - 0x50]
mov eax, dword [0x2a8dd0]
call fcn.00138bc8
jmp 0x15709d
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1570c6
cmp dword [ebp - 0x14], 0
je 0x1570b9
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x14], eax
ret