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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b96b2
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x6c56f8]
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 - 0x90], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb0], eax
xor esi, esi
mov dword [ebp - 4], esi
push ecx
mov dword [ebp - 0x88], esp
mov dword [ebp - 0x88], esp
lea ecx, [ebp - 0xd0]
push ecx
call fcn.00485f70
mov byte [ebp - 4], 1
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xbc], esi
mov byte [ebp - 4], 3
lea esi, [edi + 4]
call fcn.004260da
cmp eax, 0xffffffff
jne 0x4850b7
mov dword [ebp - 0x70], 0
mov eax, dword [esi]
lea edx, [ebp - 0x70]
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 0x485413
cmp dword [ebp - 0x70], eax
je 0x485413
push ecx
mov eax, esp
mov dword [ebp - 0x88], esp
push esi
push eax
call fcn.004084e9
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x70]
push ecx
lea edx, [ebp - 0xa4]
push edx
mov byte [ebp - 4], 3
call fcn.004863d0
add esp, 0xc
mov byte [ebp - 4], 5
mov ebx, eax
lea edi, [ebp - 0xd0]
call fcn.00485e30
mov byte [ebp - 4], 3
lea eax, [ebp - 0xa4]
push eax
call fcn.00485840
jmp 0x485413
push 0x5c
call fcn.004260f6
mov edi, eax
cmp edi, 0xffffffff
je 0x485413
lea ecx, [ebp - 0x80]
push ecx
push esi
mov ecx, edi
call fcn.004262f6
mov byte [ebp - 4], 6
lea ecx, [edi + 1]
lea edx, [ebp - 0x70]
push edx
mov edx, esi
call fcn.004261d5
mov byte [ebp - 4], 7
lea eax, [ebp - 0x70]
call fcn.0040876a
lea esi, [ebp - 0x70]
call fcn.004260da
cmp eax, 0xffffffff
je 0x4853fb
mov dword [ebp - 0x7c], 0
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x80]
lea esi, [ebp - 0x7c]
call fcn.00409488
push eax
movzx eax, bl
neg eax
sbb eax, eax
and eax, 0x100
add eax, 9
push eax
push 0
push edi
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4853e9
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4853e9
xor ebx, ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x94], ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x94]
push ecx
lea edx, [ebp - 0x78]
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4853e9
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x4853e9
cmp eax, 0x2710
jae 0x4853e9
cmp dword [ebp - 0x94], ebx
je 0x4853e9
mov dword [ebp - 0xb8], ebx
cmp ebx, eax
jae 0x4853e9
mov eax, dword [ebp - 0x94]
inc eax
push eax
lea esi, [ebp - 0x34]
call fcn.0042c1b4
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x20]
push ecx
xor edi, edi
lea eax, [ebp - 0x34]
call fcn.00425dd6
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x485390
lea eax, [ebp - 0x34]
call fcn.00425dd6
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4851f0
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x20]
cmp eax, edx
ja 0x485214
push 0xffffffffffffffff
mov edi, eax
lea esi, [ebp - 0x34]
call fcn.004081e8
jmp 0x48527d
sub eax, edx
mov edi, eax
or eax, 0xffffffff
sub eax, edx
cmp eax, edi
ja 0x485229
call fcn.005785f1
mov edx, dword [ebp - 0x20]
test edi, edi
jbe 0x48527d
lea esi, [edx + edi]
cmp esi, 0x7ffffffe
jbe 0x485240
call fcn.005785f1
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp eax, esi
jae 0x4853c9
push edx
push esi
lea ecx, [ebp - 0x34]
push ecx
call fcn.0040cd36
mov edx, dword [ebp - 0x20]
test esi, esi
jbe 0x48527d
push edi
xor eax, eax
lea ecx, [ebp - 0x34]
call fcn.00428f46
mov dword [ebp - 0x20], esi
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x485277
lea eax, [ebp - 0x30]
xor ecx, ecx
mov word [eax + esi*2], cx
mov esi, 8
cmp dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x30]
jae 0x48528d
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x74]
push edx
call fcn.00408518
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x74]
call fcn.0040876a
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x70]
call fcn.00490a10
test eax, eax
je 0x485384
mov dword [ebp - 0x8c], 0
cmp dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x30]
jae 0x4852cb
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x8c]
push ecx
push 1
push 0
push eax
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x485384
cmp dword [ebp - 0x8c], eax
je 0x485384
push 0x69205c
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x80]
call fcn.0040fcd8
add esp, 8
mov bl, 0xb
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1c], esi
mov ecx, dword [ebp - 0x30]
jae 0x48531c
lea ecx, [ebp - 0x30]
push ecx
mov edx, esp
mov dword [ebp - 0x88], esp
push ecx
push edx
mov ecx, eax
call fcn.0040fcd8
add esp, 8
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x8c]
push eax
lea ecx, [ebp - 0xa4]
push ecx
mov byte [ebp - 4], bl
call fcn.004863d0
add esp, 0xc
mov byte [ebp - 4], 0xd
mov ebx, eax
lea edi, [ebp - 0xd0]
call fcn.00485e30
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0xa4]
push edx
call fcn.00485840
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x98]
call fcn.00408559
mov ebx, dword [ebp - 0xb8]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x74]
call fcn.00408559
mov byte [ebp - 4], 8
cmp dword [ebp - 0x1c], 8
jb 0x4853a6
mov eax, dword [ebp - 0x30]
push eax
call fcn.005796d1
add esp, 4
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov word [ebp - 0x30], cx
inc ebx
mov dword [ebp - 0xb8], ebx
mov eax, dword [ebp - 0x78]
jmp 0x4851a6
test esi, esi
jne 0x48525b
mov dword [ebp - 0x20], esi
cmp eax, 8
mov eax, dword [ebp - 0x30]
jae 0x4853df
lea eax, [ebp - 0x30]
xor edx, edx
mov word [eax], dx
jmp 0x48527d
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4853fb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.00408559
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.00408559
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x84], edi
mov edx, dword [ebp - 0xc0]
sub edx, dword [ebp - 0xc4]
sar edx, 3
cmp edi, edx
jae 0x4857f1
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 8]
cmp dword [ecx - 0xc], ebx
jne 0x4854fe
mov edx, dword [eax + 0xc]
cmp dword [edx - 0xc], ebx
jne 0x4854fe
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.004839a0
mov byte [ebp - 4], 0xe
push 0x69205c
lea edx, [ebp - 0x94]
push edx
mov ecx, eax
call fcn.0040fcd8
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 0xf
lea esi, [ebp - 0xd0]
call fcn.00485e10
add eax, 4
push eax
lea eax, [ebp - 0x8c]
push eax
mov esi, ebx
call fcn.00413865
add esp, 8
mov byte [ebp - 4], 0x10
push eax
mov eax, dword [ebp - 0xb0]
call fcn.00413ad9
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x8c]
call fcn.00408559
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x94]
call fcn.00408559
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.00408559
mov edi, dword [ebp - 0x84]
lea esi, [ebp - 0xd0]
call fcn.00485e10
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
xor ebx, ebx
jmp 0x485417
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0xb4], ebx
lea esi, [ebp - 0xd0]
call fcn.00485e10
push ebx
push ebx
lea ecx, [ebp - 0xb4]
push ecx
lea edx, [ebp - 0x74]
push edx
lea ecx, [ebp - 0x80]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov edx, dword [eax]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4854e2
cmp dword [ebp - 0x80], eax
je 0x4854e2
cmp dword [ebp - 0x74], eax
je 0x4854e2
xor ebx, ebx
mov dword [ebp - 0xac], ebx
cmp ebx, dword [ebp - 0x80]
jae 0x4854dc
mov eax, dword [ebp - 0x74]
inc eax
push eax
lea esi, [ebp - 0x6c]
call fcn.0042c1b4
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0xb4]
shr edx, 1
add edx, 2
push edx
lea esi, [ebp - 0x50]
call fcn.0042c1b4
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x3c]
lea ecx, [eax + eax]
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0xa8], 0
mov edi, dword [ebp - 0x84]
lea esi, [ebp - 0xd0]
call fcn.00485e10
mov esi, eax
lea edx, [ebp - 0x98]
push edx
xor edi, edi
lea eax, [ebp - 0x50]
call fcn.00425dd6
push eax
lea eax, [ebp - 0xa8]
push eax
push edi
lea ecx, [ebp - 0x9c]
push ecx
lea eax, [ebp - 0x6c]
call fcn.00425dd6
push eax
push ebx
mov edx, dword [esi]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x485797
cmp dword [ebp - 0xa8], 1
jne 0x485797
mov edi, dword [ebp - 0x9c]
lea eax, [ebp - 0x6c]
call fcn.00425dd6
xor ecx, ecx
mov word [eax], cx
mov edi, dword [ebp - 0x98]
shr edi, 1
lea eax, [ebp - 0x50]
call fcn.00425dd6
xor edx, edx
mov word [eax], dx
mov edi, 8
cmp dword [ebp - 0x54], edi
mov eax, dword [ebp - 0x68]
jae 0x48562c
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00408518
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x4c]
jae 0x485645
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.00408518
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x70]
call fcn.0040876a
lea eax, [ebp - 0x78]
call fcn.0040876a
mov esi, dword [ebp - 0x90]
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x70]
call fcn.00490a10
test eax, eax
je 0x48577d
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
je 0x485695
mov ecx, dword [ebp - 0x78]
call fcn.00490a10
test eax, eax
je 0x48577d
lea edx, [ebp - 0x88]
push edx
mov eax, esi
push eax
call fcn.004839a0
mov byte [ebp - 4], 0x15
push 0x69205c
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.0040fcd8
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 0x16
mov edi, dword [ebp - 0x84]
lea esi, [ebp - 0xd0]
call fcn.00485e10
add eax, 4
push eax
lea edx, [ebp - 0xd8]
push edx
mov esi, ebx
call fcn.00413865
mov byte [ebp - 4], 0x17
push 0x6938c4
lea ecx, [ebp - 0xdc]
push ecx
mov ecx, eax
call fcn.0040fcd8
mov byte [ebp - 4], 0x18
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp - 0xd4]
push ecx
mov esi, eax
call fcn.00413865
add esp, 0x18
mov byte [ebp - 4], 0x19
push eax
mov eax, dword [ebp - 0xb0]
call fcn.00413ad9
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0xd4]
call fcn.00408559
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0xdc]
call fcn.00408559
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xd8]
call fcn.00408559
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xa0]
call fcn.00408559
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x88]
call fcn.00408559
mov ebx, dword [ebp - 0xac]
mov edi, 8
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x78]
call fcn.00408559
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x70]
call fcn.00408559
jmp 0x48579c
mov edi, 8
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x38], edi
jb 0x4857b1
mov edx, dword [ebp - 0x4c]
push edx
call fcn.005796d1
add esp, 4
mov esi, 7
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], 0
xor eax, eax
mov word [ebp - 0x4c], ax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x54], edi
jb 0x4857db
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.005796d1
add esp, 4
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], 0
xor edx, edx
mov word [ebp - 0x68], dx
inc ebx
jmp 0x485545
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd0]
push ecx
call fcn.00486d30
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.005796dc
mov esp, ebp
pop ebp
ret