Function at 0x973824
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x18
push 0
push 0
dec ecx
jne 0x97382c
xor eax, eax
push ebp
push 0x973b8a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x94]
mov eax, 0x973ba0
call fcn.00971e20
push dword [ebp - 0x94]
push 0x973bbc
lea edx, [ebp - 0x98]
mov eax, 0x973bc8
call fcn.00971e20
push dword [ebp - 0x98]
push 0x973bbc
lea edx, [ebp - 0x9c]
mov eax, 0x9778c8
call fcn.00972cf0
push dword [ebp - 0x9c]
lea eax, [ebp - 4]
mov edx, 5
call fcn.00965700
push dword [ebp - 4]
push 0x973bbc
lea edx, [ebp - 0xa0]
mov eax, 0x973bd8
call fcn.00971e20
push dword [ebp - 0xa0]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00965700
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.009657f4
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyA
test eax, eax
jne 0x973b5f
cmp byte [0x979010], 0
je 0x9739ce
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
push dword [ebp - 8]
push 0x973bbc
mov eax, dword [0x9786b8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xa4]
call fcn.009689ec
push dword [ebp - 0xa4]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00965700
lea eax, [ebp - 0xc]
push eax
push 0x20006
push 0
mov eax, dword [ebp - 8]
call fcn.009657f4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x973acc
cmp byte [0x979011], 0
jne 0x973988
push 4
push 0x9786ec
push 4
push 0
lea edx, [ebp - 0xa8]
mov eax, 0x973bf8
call fcn.00971e20
mov eax, dword [ebp - 0xa8]
call fcn.009657f4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
push 4
push 0x978a28
push 4
push 0
lea edx, [ebp - 0xac]
mov eax, 0x973c08
call fcn.00971e20
mov eax, dword [ebp - 0xac]
call fcn.009657f4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 0xc]
call fcn.0097336c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x973acc
lea eax, [ebp - 0x28]
mov edx, 0x1c
call fcn.00967a0c
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x973acc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
push dword [ebp - 8]
push 0x973bbc
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 0x28]
call fcn.009689bc
push dword [ebp - 0xb0]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00965700
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.009657f4
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyA
test eax, eax
jne 0x973acc
push 4
push 0x9786ec
push 4
push 0
mov eax, 0x973bf8
lea edx, [ebp - 0xb4]
call fcn.00971e20
mov eax, dword [ebp - 0xb4]
call fcn.009657f4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
push 4
push 0x978a28
push 4
push 0
mov eax, 0x973c08
lea edx, [ebp - 0xb8]
call fcn.00971e20
mov eax, dword [ebp - 0xb8]
call fcn.009657f4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 0xc]
call fcn.0097336c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
push dword [ebp - 4]
push 0x973bbc
lea edx, [ebp - 0xbc]
mov eax, 0x973c18
call fcn.00971e20
push dword [ebp - 0xbc]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00965700
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.009657f4
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyA
test eax, eax
jne 0x973b5f
lea edx, [ebp - 0xc0]
mov eax, 0x973c30
call fcn.00971e20
mov edx, dword [ebp - 0xc0]
lea eax, [ebp - 0x8d]
call fcn.00968f9c
lea eax, [ebp - 0x8d]
call fcn.00968ed8
inc eax
push eax
lea eax, [ebp - 0x8d]
push eax
push 1
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x973b91
lea eax, [ebp - 0xc0]
mov edx, 0xc
call fcn.00965408
lea eax, [ebp - 8]
mov edx, 2
call fcn.00965408
ret