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

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x24c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
sub edi, edi
mov dword [ebp - 0xc], 0x104
cmp eax, edi
je 0xd9741d
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0xd97426
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0xd97430
mov byte [eax], 0
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0xd9743a
mov byte [eax], 0
call fcn.00d96dc2
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 0xda06e8
mov esi, 0xda22f8
push esi
call fcn.00d92544
add esp, 0x14
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x100
push edi
push esi
test eax, eax
jne 0xd977f9
call fcn.00d9ee2a
add esp, 0xc
push dword [ebp - 0xc]
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 0x14], edi
push edi
jmp 0xd97703
lea eax, [ebp - 0x228]
push eax
call fcn.00d96cad
pop ecx
test eax, eax
je 0xd976ed
lea eax, [ebp - 0x228]
push eax
call fcn.00d9f1a5
xor eax, 0x55555555
pop ecx
cmp eax, dword [ebp - 0x1c]
jne 0xd976ed
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 0xd97727
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 0xda06dc
push esi
call fcn.00d92544
add esp, 0x14
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0xd97727
lea eax, [ebp - 0x228]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xd9753f
sub eax, edx
cmp dword [ebp - 0xc], eax
jbe 0xd97755
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.00d9ee95
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp eax, edi
je 0xd97755
push 0xc8
push ebx
push 5
mov edi, 0xda0694
push edi
push esi
call fcn.00d92544
push eax
push dword [ebp - 4]
call fcn.00d9ee95
add esp, 0x1c
test eax, eax
je 0xd97753
cmp byte [ebp - 0x124], 0x22
jne 0xd975c8
lea eax, [ebp - 0x123]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.00d9ef00
lea eax, [ebp - 0x124]
push 0x22
push eax
call fcn.00d9ed03
add esp, 0x10
jmp 0xd975d8
lea eax, [ebp - 0x124]
push 0x20
push eax
call fcn.00d9ed03
pop ecx
pop ecx
test eax, eax
je 0xd975df
mov byte [eax], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.00d9ee95
push 0xc8
push ebx
push 5
push edi
push esi
mov dword [ebp - 4], eax
call fcn.00d92544
push eax
push dword [ebp - 4]
call fcn.00d9ee95
push 0x100
push 0
push esi
mov dword [ebp - 0x18], eax
call fcn.00d9ee2a
mov eax, dword [ebp + 8]
add esp, 0x30
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xd97626
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 0xd97637
sub ecx, eax
cmp edi, ecx
jle 0xd9765c
push dword [ebp - 4]
sub edi, ecx
add edi, dword [ebp + 8]
push edi
call fcn.00d9ed77
pop ecx
pop ecx
or eax, eax
je 0xd97769
mov edi, dword [ebp - 0x18]
push 0x5c
push dword [ebp - 4]
mov byte [edi], 0
call fcn.00d9ed23
pop ecx
pop ecx
mov dword [ebp - 4], eax
or eax, eax
jne 0xd97680
lea eax, [ebp - 0x124]
mov dword [ebp - 4], eax
jmp 0xd97683
inc dword [ebp - 4]
push dword [ebp - 4]
call fcn.00d96cad
pop ecx
or eax, eax
je 0xd97722
push dword [ebp - 4]
call fcn.00d9f1a5
mov edi, eax
mov eax, dword [ebp - 0x18]
xor edi, 0x55555555
mov ebx, edi
shr ebx, 8
push edi
and ebx, 0xff
mov byte [eax], 0x2e
call fcn.00d96c96
pop ecx
pop ecx
test eax, eax
jne 0xd976d8
lea eax, [ebx - 0x51]
cmp eax, 0x2e
ja 0xd976d8
and edi, 0xff
cmp edi, 0x10
jl 0xd9777e
mov ebx, 0xe4
xor edi, edi
cmp dword [ebp - 8], edi
je 0xd976ed
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 0xd974a2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0xd97801
mov byte [edi], 0x2e
jmp 0xd976dd
cmp eax, 5
jne 0xd97755
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0x14]
call fcn.00d9ef00
pop ecx
pop ecx
cmp dword [ebp - 8], edi
je 0xd9774b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
pop esi
jmp 0xd977ec
xor edi, edi
push 0x100
push edi
push esi
call fcn.00d9ee2a
add esp, 0xc
jmp 0xd976df
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0x14]
call fcn.00d9ef00
pop ecx
pop ecx
sub esi, esi
jmp 0xd977e3
lea eax, [ebp - 0x24c]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
or eax, eax
je 0xd9779a
inc edi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0xd977a3
mov dword [eax], ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0xd977c4
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x124]
sub esi, eax
push esi
push eax
push ebx
call fcn.00d9ee08
add esp, 0xc
mov byte [esi + ebx], 0
cmp dword [ebp + 0x18], 0
je 0xd977d7
push dword [ebp - 4]
push dword [ebp + 0x18]
call fcn.00d9ef00
pop ecx
pop ecx
mov eax, dword [ebp + 0x10]
or eax, eax
je 0xd977e0
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]
push esi
pop eax
jmp 0xd97804
call fcn.00d9ee2a
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret