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

Disassembly:
mov eax, 0x2009c04c
call fcn.2007d394
sub esp, 0x9b8
mov eax, dword [0x200cc84c]
push ebx
push esi
mov esi, ecx
xor eax, ebp
lea ecx, [esi + 0x2c]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x984], ecx
call fcn.20012c63
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x554]
mov dword [ebp - 0x53c], 0xf
call fcn.20001bc0
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x20015832
push edi
lea ecx, [ebp - 0x554]
call fcn.20003a20
push esi
lea ecx, [ebp - 0x538]
call fcn.20003892
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x554]
push eax
lea ecx, [ebp - 0x538]
call fcn.20008e33
cmp dword [ebp - 0x520], 0x10
mov eax, dword [ebp - 0x534]
jae 0x2001586c
lea eax, [ebp - 0x534]
lea ecx, [ebp - 0x970]
push ecx
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x2001588c
mov byte [ebp - 0x965], bl
jmp 0x20015a65
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x114], bl
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x9a8]
push eax
lea eax, [ebp - 0x998]
push eax
lea eax, [ebp - 0x98c]
push eax
lea eax, [ebp - 0x990]
push eax
lea eax, [ebp - 0x978]
push eax
lea eax, [ebp - 0x9a0]
push eax
lea eax, [ebp - 0x99c]
push eax
lea eax, [ebp - 0x994]
push eax
push ebx
lea eax, [ebp - 0x988]
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x970]
mov dword [ebp - 0x988], 0x104
mov dword [ebp - 0x980], 0x406
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x978], ebx
je 0x20015a52
mov dword [ebp - 0x96c], ebx
jbe 0x20015a52
mov eax, 0x405
mov dword [ebp - 0x974], eax
mov dword [ebp - 0x980], eax
lea eax, [ebp - 0x974]
push eax
lea eax, [ebp - 0x964]
push eax
lea eax, [ebp - 0x97c]
push eax
push ebx
lea eax, [ebp - 0x980]
push eax
lea eax, [ebp - 0x51c]
push eax
push dword [ebp - 0x96c]
mov dword [ebp - 0x97c], ebx
push dword [ebp - 0x970]
mov byte [ebp - 0x51c], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
je 0x20015981
cmp eax, 0x7a
jne 0x20015a3a
mov eax, dword [ebp - 0x97c]
push 2
pop edx
cmp eax, edx
je 0x200159bb
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x200159bb
cmp eax, 4
jne 0x200159a2
mov dword [ebp - 0x558], ecx
jmp 0x200159ce
cmp eax, 3
jne 0x200159ce
mov eax, dword [ebp - 0x974]
mov dword [ebp - 0x55c], eax
mov dword [ebp - 0x558], edx
jmp 0x200159ce
mov eax, dword [ebp - 0x974]
mov byte [ebp + eax - 0x964], bl
mov dword [ebp - 0x558], ebx
lea eax, [ebp - 0x51c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x200159f1
push str._NO_NAME_
lea eax, [ebp - 0x51c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x51c]
push eax
lea ecx, [ebp - 0x9c4]
call fcn.20003c27
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x984]
lea eax, [ebp - 0x9c4]
push eax
call fcn.20015758
mov ecx, 0x104
lea esi, [ebp - 0x964]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x9c4]
call fcn.2000275e
inc dword [ebp - 0x96c]
mov eax, dword [ebp - 0x96c]
cmp eax, dword [ebp - 0x978]
jb 0x20015921
push dword [ebp - 0x970]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x965], 1
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x538]
call fcn.2000275e
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x554]
call fcn.2000275e
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x965]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.2007c9ae
leave
ret 4