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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0x104
cmp eax, edi
je 0x9741d
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x97426
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x97430
mov byte [eax], 0
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x9743a
mov byte [eax], 0
call fcn.00096dc2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
push 0x20119
push edi
push 0xc8
mov ebx, 0xe4
push ebx
push 0x22
push 0xa06e8
mov esi, 0xa22f8
push esi
call fcn.00092544
add esp, 0x14
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x100
push edi
push esi
test eax, eax
jne 0x977f9
call fcn.0009ee2a
add esp, 0xc
push dword [ebp - 0xc]
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 0x14], edi
push edi
jmp 0x97703
lea eax, [ebp - 0x228]
push eax
call fcn.00096cad
pop ecx
test eax, eax
je 0x976ed
lea eax, [ebp - 0x228]
push eax
call fcn.0009f1a5
xor eax, 0x5e5e5e5e
pop ecx
cmp eax, dword [ebp - 0x1c]
jne 0x976ed
lea eax, [ebp - 8]
push eax
push 0x101
push edi
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x97727
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push 0xc8
push ebx
push 0xa
push 0xa06dc
push esi
call fcn.00092544
add esp, 0x14
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x97727
lea eax, [ebp - 0x228]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x9753f
sub eax, edx
cmp dword [ebp - 0xc], eax
jbe 0x97755
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0009ee95
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp eax, edi
je 0x97755
push 0xc8
push ebx
push 5
mov edi, 0xa0694
push edi
push esi
call fcn.00092544
push eax
push dword [ebp - 4]
call fcn.0009ee95
add esp, 0x1c
test eax, eax
je 0x97753
cmp byte [ebp - 0x124], 0x22
jne 0x975c8
lea eax, [ebp - 0x123]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0009ef00
lea eax, [ebp - 0x124]
push 0x22
push eax
call fcn.0009ed03
add esp, 0x10
jmp 0x975d8
lea eax, [ebp - 0x124]
push 0x20
push eax
call fcn.0009ed03
pop ecx
pop ecx
test eax, eax
je 0x975df
mov byte [eax], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0009ee95
push 0xc8
push ebx
push 5
push edi
push esi
mov dword [ebp - 4], eax
call fcn.00092544
push eax
push dword [ebp - 4]
call fcn.0009ee95
push 0x100
push 0
push esi
mov dword [ebp - 0x18], eax
call fcn.0009ee2a
mov eax, dword [ebp + 8]
add esp, 0x30
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x97626
mov ecx, dword [ebp - 4]
sub eax, edi
mov edi, eax
lea eax, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x97637
sub ecx, eax
cmp edi, ecx
jle 0x9765c
push dword [ebp - 4]
sub edi, ecx
add edi, dword [ebp + 8]
push edi
call fcn.0009ed77
pop ecx
pop ecx
test eax, eax
je 0x97769
mov edi, dword [ebp - 0x18]
push 0x5c
push dword [ebp - 4]
mov byte [edi], 0
call fcn.0009ed23
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x97680
lea eax, [ebp - 0x124]
mov dword [ebp - 4], eax
jmp 0x97683
inc dword [ebp - 4]
push dword [ebp - 4]
call fcn.00096cad
pop ecx
test eax, eax
je 0x97722
push dword [ebp - 4]
call fcn.0009f1a5
mov edi, eax
mov eax, dword [ebp - 0x18]
xor edi, 0x5e5e5e5e
mov ebx, edi
shr ebx, 8
push edi
and ebx, 0xff
mov byte [eax], 0x2e
call fcn.00096c96
pop ecx
pop ecx
test eax, eax
jne 0x976d8
lea eax, [ebx - 0x51]
cmp eax, 0x2e
ja 0x976d8
and edi, 0xff
cmp edi, 0x10
jl 0x9777e
mov ebx, 0xe4
xor edi, edi
cmp dword [ebp - 8], edi
je 0x976ed
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x14]
mov eax, 0x104
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x974a2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x97801
mov byte [edi], 0x2e
jmp 0x976dd
cmp eax, 5
jne 0x97755
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0x14]
call fcn.0009ef00
pop ecx
pop ecx
cmp dword [ebp - 8], edi
je 0x9774b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
pop esi
jmp 0x977ec
xor edi, edi
push 0x100
push edi
push esi
call fcn.0009ee2a
add esp, 0xc
jmp 0x976df
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0x14]
call fcn.0009ef00
pop ecx
pop ecx
xor esi, esi
jmp 0x977e3
lea eax, [ebp - 0x24c]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x9779a
inc edi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x977a3
mov dword [eax], ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x977c4
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x124]
sub esi, eax
push esi
push eax
push ebx
call fcn.0009ee08
add esp, 0xc
mov byte [esi + ebx], 0
cmp dword [ebp + 0x18], 0
je 0x977d7
push dword [ebp - 4]
push dword [ebp + 0x18]
call fcn.0009ef00
pop ecx
pop ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x977e0
mov dword [eax], edi
push 3
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x97804
call fcn.0009ee2a
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret