Function at 0x973534
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x97379c
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov byte [0x979010], 0
lea edx, [ebp - 0x38]
mov eax, 0x9737b4
call fcn.00971e20
push dword [ebp - 0x38]
push 0x9737d0
lea edx, [ebp - 0x3c]
mov eax, 0x9737dc
call fcn.00971e20
push dword [ebp - 0x3c]
push 0x9737d0
lea edx, [ebp - 0x40]
mov eax, 0x9778c8
call fcn.00972cf0
push dword [ebp - 0x40]
lea eax, [ebp - 4]
mov edx, 5
call fcn.00965700
push dword [ebp - 4]
push 0x9737d0
lea edx, [ebp - 0x44]
mov eax, 0x9737ec
call fcn.00971e20
push dword [ebp - 0x44]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00965700
lea eax, [ebp - 0x10]
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.009657f4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x97376b
lea eax, [ebp - 0x34]
mov edx, 0x1c
call fcn.00967a0c
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x97376b
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov esi, dword [ebp - 0x34]
dec esi
test esi, esi
jl 0x97376b
inc esi
xor edi, edi
push dword [ebp - 8]
push 0x9737d0
lea edx, [ebp - 0x48]
mov eax, edi
call fcn.009689bc
push dword [ebp - 0x48]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00965700
lea eax, [ebp - 0x10]
push eax
push 1
push 0
mov eax, dword [ebp - 0xc]
call fcn.009657f4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x973763
mov dword [ebp - 0x18], 4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea edx, [ebp - 0x4c]
mov eax, 0x97380c
call fcn.00971e20
mov eax, dword [ebp - 0x4c]
call fcn.009657f4
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x97375a
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x978a28]
jne 0x97375a
mov byte [0x979010], 1
mov dword [0x9786b8], edi
mov dword [ebp - 0x18], 4
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea edx, [ebp - 0x50]
mov eax, 0x97381c
call fcn.00971e20
mov eax, dword [ebp - 0x50]
call fcn.009657f4
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x9786ec]
sete bl
mov eax, ebx
xor al, 1
mov byte [0x979011], al
cmp byte [0x979011], 0
jne 0x97374f
mov eax, dword [ebp - 0x10]
call fcn.0097319c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x97376b
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
inc edi
dec esi
jne 0x97365b
test bl, bl
je 0x973774
call fcn.00973004
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9737a3
lea eax, [ebp - 0x50]
mov edx, 7
call fcn.00965408
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00965408
ret