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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x156afc
push ecx
push ebx
xor eax, eax
push ebp
push 0x156dc0
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 0x156d57
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
push 0x156dd0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
je 0x156b86
lea edx, [ebp - 0x1c]
mov eax, 0x156e0c
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 0x156d35
mov dword [ebp - 0xc], 4
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x156e18
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
test ebx, ebx
jne 0x156bd1
cmp dword [ebp - 0x10], 4
jne 0x156bd1
cmp dword [ebp - 0xc], 4
je 0x156c6c
lea edx, [ebp - 0x2c]
mov eax, 0x156e34
call fcn.00031d88
push dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
mov eax, 0x156e40
call fcn.00031d88
push dword [ebp - 0x30]
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x34]
call fcn.00033468
push dword [ebp - 0x34]
lea edx, [ebp - 0x38]
mov eax, 0x156e44
call fcn.00031d88
push dword [ebp - 0x38]
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x3c]
call fcn.00033468
push dword [ebp - 0x3c]
lea edx, [ebp - 0x40]
mov eax, 0x156e48
call fcn.00031d88
push dword [ebp - 0x40]
lea edx, [ebp - 0x44]
mov eax, ebx
call fcn.0002b100
push dword [ebp - 0x44]
lea eax, [ebp - 0x28]
mov edx, 7
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 0x156d35
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0x156e4c
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je 0x156ccc
lea edx, [ebp - 0x4c]
mov eax, 0x156e68
call fcn.00031d88
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x50]
mov eax, ebx
call fcn.0002b100
mov edx, dword [ebp - 0x50]
pop eax
call fcn.00013ed4
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
call fcn.000144c4
mov edx, dword [ebp - 0x48]
mov eax, dword [0x2a8dd0]
call fcn.00138bc8
jmp 0x156d35
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0x156e18
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je 0x156d31
lea edx, [ebp - 0x58]
mov eax, 0x156e74
call fcn.00031d88
lea eax, [ebp - 0x58]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
call fcn.0002b100
mov edx, dword [ebp - 0x5c]
pop eax
call fcn.00013ed4
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
call fcn.000144c4
mov edx, dword [ebp - 0x54]
mov eax, dword [0x2a8dd0]
call fcn.00138bc8
jmp 0x156d35
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x156d5e
cmp dword [ebp - 0x14], 0
je 0x156d51
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x14], eax
ret