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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d4983
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x6d26f8]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov bl, cl
mov edi, edx
mov dword [ebp - 0x68], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x9c], eax
xor esi, esi
mov dword [ebp - 4], esi
push ecx
mov dword [ebp - 0x78], esp
mov dword [ebp - 0x78], esp
lea ecx, [ebp - 0xb4]
push ecx
call fcn.00456d00
mov byte [ebp - 4], 1
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa0], esi
mov byte [ebp - 4], 2
lea esi, [edi + 4]
call fcn.00437bf0
cmp eax, 0xffffffff
jne 0x4a563b
mov dword [ebp - 0x54], 0
mov eax, dword [esi]
lea edx, [ebp - 0x54]
push edx
movzx ecx, bl
neg ecx
sbb ecx, ecx
and ecx, 0x100
inc ecx
push ecx
push 0
push eax
mov edx, dword [edi]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a58c9
cmp dword [ebp - 0x54], eax
je 0x4a58c9
push ecx
mov eax, esp
mov dword [ebp - 0x78], esp
push esi
push eax
call fcn.0040b840
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x54]
push ecx
lea edx, [ebp - 0x90]
push edx
mov byte [ebp - 4], 2
call fcn.004a6730
add esp, 0xc
mov byte [ebp - 4], 4
mov ebx, eax
lea edi, [ebp - 0xb4]
call fcn.004a6340
mov byte [ebp - 4], 2
lea eax, [ebp - 0x90]
push eax
call fcn.004481f0
jmp 0x4a58c6
mov ecx, 0x5c
call fcn.00437c10
mov edi, eax
cmp edi, 0xffffffff
je 0x4a58c6
lea ecx, [ebp - 0x60]
push ecx
mov ecx, edi
mov edx, esi
call fcn.00437e90
mov byte [ebp - 4], 5
lea edx, [edi + 1]
lea eax, [ebp - 0x54]
push eax
push esi
call fcn.00437c90
mov byte [ebp - 4], 6
lea edi, [ebp - 0x54]
call fcn.0040bc80
mov esi, edi
call fcn.00437bf0
cmp eax, 0xffffffff
je 0x4a58ae
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0x60]
lea esi, [ebp - 0x64]
call fcn.0040ce40
push eax
movzx ecx, bl
neg ecx
sbb ecx, ecx
and ecx, 0x100
add ecx, 9
push ecx
xor esi, esi
push esi
push edi
mov edx, dword [ebp - 0x68]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a589c
mov eax, dword [ebp - 0x64]
cmp eax, esi
je 0x4a589c
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x70], esi
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x5c]
push edx
push esi
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4a589c
mov eax, dword [ebp - 0x5c]
cmp eax, esi
je 0x4a589c
cmp eax, 0x2710
jae 0x4a589c
cmp dword [ebp - 0x70], esi
je 0x4a589c
mov dword [ebp - 0x7c], esi
lea ecx, [ecx]
cmp dword [ebp - 0x7c], eax
jae 0x4a589a
mov ebx, dword [ebp - 0x70]
inc ebx
lea eax, [ebp - 0x34]
call fcn.00437740
mov ebx, 8
mov byte [ebp - 4], bl
mov esi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x20]
push eax
xor edi, edi
lea eax, [ebp - 0x34]
call fcn.00437770
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4a5883
lea eax, [ebp - 0x34]
call fcn.00437770
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a5770
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x34]
call fcn.004377a0
cmp dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x30]
jae 0x4a5792
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x58]
push edx
call fcn.0040b8a0
mov byte [ebp - 4], 9
lea edi, [ebp - 0x58]
call fcn.0040bc80
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
call fcn.0042e9a0
test eax, eax
je 0x4a5878
mov dword [ebp - 0x6c], 0
cmp dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x30]
jae 0x4a57cc
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x6c]
push ecx
push 1
push 0
push eax
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a5878
cmp dword [ebp - 0x6c], eax
je 0x4a5878
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x84]
push ecx
mov ebx, 0x692fe8
call fcn.004176f0
add esp, 8
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x1c], 8
mov ebx, dword [ebp - 0x30]
jae 0x4a5818
lea ebx, [ebp - 0x30]
push ecx
mov edx, esp
mov dword [ebp - 0x78], esp
push eax
push edx
call fcn.004176f0
add esp, 8
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x90]
push ecx
mov byte [ebp - 4], 0xa
call fcn.004a6730
add esp, 0xc
mov byte [ebp - 4], 0xc
mov ebx, eax
lea edi, [ebp - 0xb4]
call fcn.004a6340
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x90]
push edx
call fcn.004481f0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x84]
call fcn.0040b950
mov ebx, 8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x58]
call fcn.0040b950
mov byte [ebp - 4], 7
lea esi, [ebp - 0x34]
call fcn.00440d90
inc dword [ebp - 0x7c]
mov eax, dword [ebp - 0x5c]
jmp 0x4a5720
xor esi, esi
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x64]
cmp eax, esi
je 0x4a58ae
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x54]
call fcn.0040b950
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.0040b950
mov edi, dword [ebp - 0x68]
xor ebx, ebx
mov dword [ebp - 0x74], ebx
mov eax, dword [ebp - 0xa4]
sub eax, dword [ebp - 0xa8]
sar eax, 3
cmp ebx, eax
jae 0x4a5c3d
mov ecx, dword [edi + 8]
xor eax, eax
cmp dword [ecx - 0xc], eax
jne 0x4a599a
mov edx, dword [edi + 0xc]
cmp dword [edx - 0xc], eax
jne 0x4a599a
lea eax, [ebp - 0x64]
push eax
push edi
call fcn.004a46a0
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x70]
push ecx
mov ebx, 0x692fe8
call fcn.004176f0
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 0xe
mov edi, dword [ebp - 0x74]
lea esi, [ebp - 0xb4]
call fcn.0048df70
add eax, 4
push eax
lea edx, [ebp - 0x6c]
push edx
call fcn.0041c9d0
add esp, 8
mov byte [ebp - 4], 0xf
mov ebx, eax
mov edi, dword [ebp - 0x9c]
call fcn.0041ce00
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x6c]
call fcn.0040b950
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x70]
call fcn.0040b950
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.0040b950
mov ebx, dword [ebp - 0x74]
mov edi, ebx
lea esi, [ebp - 0xb4]
call fcn.0048df70
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
mov edi, dword [ebp - 0x68]
jmp 0x4a58cb
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x88], eax
mov edi, ebx
lea esi, [ebp - 0xb4]
call fcn.0048df70
push 0
push 0
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [eax]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4a5978
cmp dword [ebp - 0x60], eax
je 0x4a5978
cmp dword [ebp - 0x58], eax
je 0x4a5978
mov dword [ebp - 0x80], eax
lea esp, [esp]
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x80], eax
jae 0x4a5978
mov ebx, dword [ebp - 0x58]
inc ebx
lea eax, [ebp - 0x50]
call fcn.00437740
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x94], ecx
mov ebx, dword [ebp - 0x88]
shr ebx, 1
add ebx, 2
lea eax, [ebp - 0x34]
call fcn.00437740
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x20]
lea eax, [edx + edx]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x98], 0
mov edi, dword [ebp - 0x74]
lea esi, [ebp - 0xb4]
call fcn.0048df70
mov esi, eax
lea ecx, [ebp - 0x84]
push ecx
xor edi, edi
lea eax, [ebp - 0x34]
call fcn.00437770
push eax
lea edx, [ebp - 0x98]
push edx
push edi
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x50]
call fcn.00437770
push eax
mov ecx, dword [ebp - 0x80]
push ecx
mov edx, dword [esi]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4a5c1d
cmp dword [ebp - 0x98], 1
jne 0x4a5c1d
mov edi, dword [ebp - 0x94]
lea eax, [ebp - 0x50]
call fcn.00437770
xor ecx, ecx
mov word [eax], cx
mov edi, dword [ebp - 0x84]
shr edi, 1
lea eax, [ebp - 0x34]
call fcn.00437770
xor edx, edx
mov word [eax], dx
mov esi, 8
cmp dword [ebp - 0x38], esi
mov ecx, dword [ebp - 0x4c]
jae 0x4a5ad2
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x54]
push eax
call fcn.0040b8a0
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x1c], esi
mov ecx, dword [ebp - 0x30]
jae 0x4a5aea
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x5c]
push edx
call fcn.0040b8a0
mov byte [ebp - 4], 0x13
lea edi, [ebp - 0x54]
call fcn.0040bc80
lea edi, [ebp - 0x5c]
call fcn.0040bc80
mov esi, dword [ebp - 0x68]
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x54]
call fcn.0042e9a0
test eax, eax
je 0x4a5c05
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
je 0x4a5b36
mov ecx, dword [ebp - 0x5c]
call fcn.0042e9a0
test eax, eax
je 0x4a5c05
lea eax, [ebp - 0x78]
push eax
push esi
call fcn.004a46a0
mov byte [ebp - 4], 0x14
push eax
lea ecx, [ebp - 0x8c]
push ecx
mov ebx, 0x692fe8
call fcn.004176f0
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 0x15
mov edi, dword [ebp - 0x74]
lea esi, [ebp - 0xb4]
call fcn.0048df70
add eax, 4
push eax
lea edx, [ebp - 0xbc]
push edx
call fcn.0041c9d0
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0xb8]
push eax
mov ebx, 0x6994ac
call fcn.004176f0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0xc0]
push edx
mov ebx, eax
call fcn.0041c9d0
add esp, 0x18
mov byte [ebp - 4], 0x18
mov ebx, eax
mov edi, dword [ebp - 0x9c]
call fcn.0041ce00
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0xc0]
call fcn.0040b950
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xb8]
call fcn.0040b950
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xbc]
call fcn.0040b950
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x8c]
call fcn.0040b950
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x78]
call fcn.0040b950
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x5c]
call fcn.0040b950
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x54]
call fcn.0040b950
mov byte [ebp - 4], 0x10
lea esi, [ebp - 0x34]
call fcn.00440d90
mov byte [ebp - 4], 2
lea esi, [ebp - 0x50]
call fcn.00440d90
inc dword [ebp - 0x80]
jmp 0x4a59f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb4]
push ecx
call fcn.004a62c0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0059393a
mov esp, ebp
pop ebp
ret