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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7062ad
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x7adbc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
push 0
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x701398
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test byte [ebp + 0x10], 1
je 0x70146b
lea ecx, [ebp - 0x3c]
call fcn.00700c80
push dword [ebp - 0x18]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.00700d50
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.007020d6
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
add esp, 4
mov edi, eax
xor esi, esi
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x38]
lea eax, [ebp - 0x30]
inc ecx
push eax
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ecx
push eax
push edi
push esi
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x70143d
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x3c]
push edx
push edi
push dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jne 0x701444
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.007020df
add esp, 4
lea ecx, [ebp - 0x3c]
call fcn.00700cf0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0x103
je 0x70144d
mov eax, dword [ebp - 0x18]
inc esi
mov dword [ebp - 0x34], eax
jmp 0x7013d3
push edi
call fcn.007020df
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00700cf0
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
inc eax
push eax
call fcn.007020d6
mov ecx, dword [ebp - 0x1c]
mov edi, eax
add esp, 4
xor eax, eax
inc ecx
mov dword [ebp - 0x24], ecx
push ecx
push edi
push eax
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x701584
test byte [ebp + 0x10], 2
je 0x7014b1
push dword [ebp + 0x14]
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 8]
test eax, eax
je 0x70159a
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x70158b
mov ecx, dword [ebp + 8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x7014d2
sub ecx, edx
mov edx, edi
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x7014e0
sub edx, esi
lea eax, [edx + 2]
add eax, ecx
push eax
call fcn.007020d6
mov esi, eax
add esp, 4
mov edx, esi
lea eax, [edx + 1]
nop
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x701500
push dword [ebp + 8]
sub edx, eax
push edx
push esi
call fcn.006ddb12
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x701520
sub ecx, edx
push 0x7648dc
push ecx
push esi
call fcn.006e435d
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x701540
sub ecx, edx
push edi
push ecx
push esi
call fcn.006e435d
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
inc eax
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x20]
push esi
call fcn.00701320
test eax, eax
je 0x7015b9
push esi
call fcn.007020df
mov eax, dword [ebp + 0xc]
add esp, 4
mov esi, dword [ebp - 0x10]
inc eax
mov ecx, dword [ebp - 0x24]
jmp 0x701483
cmp eax, 0x103
je 0x7015e5
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
inc eax
mov ecx, dword [ebp - 0x24]
jmp 0x701483
push edi
call fcn.007020df
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.007020df
push esi
call fcn.007020df
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push edi
call fcn.007020df
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10