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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf382
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.004978d0
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]
push 0x69150c
call fcn.0042b6fd
cmp eax, 0xffffffff
jne 0x499e4c
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 0x49a1b3
cmp dword [ebp - 0x70], eax
je 0x49a1b3
push ecx
mov eax, esp
mov dword [ebp - 0x88], esp
push esi
push eax
call fcn.00408586
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.0049b1b0
add esp, 0xc
mov byte [ebp - 4], 5
mov ebx, eax
lea edi, [ebp - 0xd0]
call fcn.0049ad10
mov byte [ebp - 4], 3
lea eax, [ebp - 0xa4]
push eax
call fcn.0049a5e0
jmp 0x49a1b3
push 0x5c
call fcn.0042b71b
mov edi, eax
cmp edi, 0xffffffff
je 0x49a1b3
lea ecx, [ebp - 0x80]
push ecx
push esi
mov ecx, edi
call fcn.0042b91b
mov byte [ebp - 4], 6
lea ecx, [edi + 1]
lea edx, [ebp - 0x70]
push edx
mov edx, esi
call fcn.0042b7fa
mov byte [ebp - 4], 7
lea eax, [ebp - 0x70]
call fcn.00408807
push 0x69150c
lea esi, [ebp - 0x70]
call fcn.0042b6fd
cmp eax, 0xffffffff
je 0x49a19b
mov dword [ebp - 0x7c], 0
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x80]
lea esi, [ebp - 0x7c]
call fcn.00409590
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 0x49a189
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x49a189
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 0x49a189
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x49a189
cmp eax, 0x2710
jae 0x49a189
cmp dword [ebp - 0x94], ebx
je 0x49a189
mov dword [ebp - 0xb8], ebx
cmp ebx, eax
jae 0x49a189
mov eax, dword [ebp - 0x94]
inc eax
push eax
lea esi, [ebp - 0x34]
call fcn.0042b233
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.0042b255
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x49a130
lea eax, [ebp - 0x34]
call fcn.0042b255
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x499f90
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x20]
cmp eax, edx
ja 0x499fb4
push 0xffffffffffffffff
mov edi, eax
lea esi, [ebp - 0x34]
call fcn.00408285
jmp 0x49a01d
sub eax, edx
mov edi, eax
or eax, 0xffffffff
sub eax, edx
cmp eax, edi
ja 0x499fc9
call fcn.0058070b
mov edx, dword [ebp - 0x20]
test edi, edi
jbe 0x49a01d
lea esi, [edx + edi]
cmp esi, 0x7ffffffe
jbe 0x499fe0
call fcn.0058070b
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp eax, esi
jae 0x49a169
push edx
push esi
lea ecx, [ebp - 0x34]
push ecx
call fcn.0040cbd6
mov edx, dword [ebp - 0x20]
test esi, esi
jbe 0x49a01d
push edi
xor eax, eax
lea ecx, [ebp - 0x34]
call fcn.0042eaa1
mov dword [ebp - 0x20], esi
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x49a017
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 0x49a02d
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x74]
push edx
call fcn.004085b5
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x74]
call fcn.00408807
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x70]
call fcn.0049aab0
test eax, eax
je 0x49a124
mov dword [ebp - 0x8c], 0
cmp dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x30]
jae 0x49a06b
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 0x49a124
cmp dword [ebp - 0x8c], eax
je 0x49a124
push 0x6810d0
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x80]
call fcn.004116ea
add esp, 8
mov bl, 0xb
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1c], esi
mov ecx, dword [ebp - 0x30]
jae 0x49a0bc
lea ecx, [ebp - 0x30]
push ecx
mov edx, esp
mov dword [ebp - 0x88], esp
push ecx
push edx
mov ecx, eax
call fcn.004116ea
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.0049b1b0
add esp, 0xc
mov byte [ebp - 4], 0xd
mov ebx, eax
lea edi, [ebp - 0xd0]
call fcn.0049ad10
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0xa4]
push edx
call fcn.0049a5e0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x98]
call fcn.004085f6
mov ebx, dword [ebp - 0xb8]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x74]
call fcn.004085f6
mov byte [ebp - 4], 8
cmp dword [ebp - 0x1c], 8
jb 0x49a146
mov eax, dword [ebp - 0x30]
push eax
call fcn.0058125d
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 0x499f40
test esi, esi
jne 0x499ffb
mov dword [ebp - 0x20], esi
cmp eax, 8
mov eax, dword [ebp - 0x30]
jae 0x49a17f
lea eax, [ebp - 0x30]
xor edx, edx
mov word [eax], dx
jmp 0x49a01d
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x49a19b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.004085f6
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.004085f6
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 0x49a591
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 8]
cmp dword [ecx - 0xc], ebx
jne 0x49a29e
mov edx, dword [eax + 0xc]
cmp dword [edx - 0xc], ebx
jne 0x49a29e
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.00498730
mov byte [ebp - 4], 0xe
push 0x6810d0
lea edx, [ebp - 0x94]
push edx
mov ecx, eax
call fcn.004116ea
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 0xf
lea esi, [ebp - 0xd0]
call fcn.0049acf0
add eax, 4
push eax
lea eax, [ebp - 0x8c]
push eax
mov esi, ebx
call fcn.0041691a
add esp, 8
mov byte [ebp - 4], 0x10
push eax
mov eax, dword [ebp - 0xb0]
call fcn.00416ae3
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x8c]
call fcn.004085f6
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x94]
call fcn.004085f6
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.004085f6
mov edi, dword [ebp - 0x84]
lea esi, [ebp - 0xd0]
call fcn.0049acf0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
xor ebx, ebx
jmp 0x49a1b7
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0xb4], ebx
lea esi, [ebp - 0xd0]
call fcn.0049acf0
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 0x49a282
cmp dword [ebp - 0x80], eax
je 0x49a282
cmp dword [ebp - 0x74], eax
je 0x49a282
xor ebx, ebx
mov dword [ebp - 0xac], ebx
cmp ebx, dword [ebp - 0x80]
jae 0x49a27c
mov eax, dword [ebp - 0x74]
inc eax
push eax
lea esi, [ebp - 0x6c]
call fcn.0042b233
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.0042b233
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.0049acf0
mov esi, eax
lea edx, [ebp - 0x98]
push edx
xor edi, edi
lea eax, [ebp - 0x50]
call fcn.0042b255
push eax
lea eax, [ebp - 0xa8]
push eax
push edi
lea ecx, [ebp - 0x9c]
push ecx
lea eax, [ebp - 0x6c]
call fcn.0042b255
push eax
push ebx
mov edx, dword [esi]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x49a537
cmp dword [ebp - 0xa8], 1
jne 0x49a537
mov edi, dword [ebp - 0x9c]
lea eax, [ebp - 0x6c]
call fcn.0042b255
xor ecx, ecx
mov word [eax], cx
mov edi, dword [ebp - 0x98]
shr edi, 1
lea eax, [ebp - 0x50]
call fcn.0042b255
xor edx, edx
mov word [eax], dx
mov edi, 8
cmp dword [ebp - 0x54], edi
mov eax, dword [ebp - 0x68]
jae 0x49a3cc
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004085b5
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x4c]
jae 0x49a3e5
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.004085b5
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x70]
call fcn.00408807
lea eax, [ebp - 0x78]
call fcn.00408807
mov esi, dword [ebp - 0x90]
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x70]
call fcn.0049aab0
test eax, eax
je 0x49a51d
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
je 0x49a435
mov ecx, dword [ebp - 0x78]
call fcn.0049aab0
test eax, eax
je 0x49a51d
lea edx, [ebp - 0x88]
push edx
mov eax, esi
push eax
call fcn.00498730
mov byte [ebp - 4], 0x15
push 0x6810d0
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.004116ea
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 0x16
mov edi, dword [ebp - 0x84]
lea esi, [ebp - 0xd0]
call fcn.0049acf0
add eax, 4
push eax
lea edx, [ebp - 0xd8]
push edx
mov esi, ebx
call fcn.0041691a
mov byte [ebp - 4], 0x17
push 0x687e90
lea ecx, [ebp - 0xdc]
push ecx
mov ecx, eax
call fcn.004116ea
mov byte [ebp - 4], 0x18
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp - 0xd4]
push ecx
mov esi, eax
call fcn.0041691a
add esp, 0x18
mov byte [ebp - 4], 0x19
push eax
mov eax, dword [ebp - 0xb0]
call fcn.00416ae3
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0xd4]
call fcn.004085f6
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0xdc]
call fcn.004085f6
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xd8]
call fcn.004085f6
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xa0]
call fcn.004085f6
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x88]
call fcn.004085f6
mov ebx, dword [ebp - 0xac]
mov edi, 8
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x78]
call fcn.004085f6
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x70]
call fcn.004085f6
jmp 0x49a53c
mov edi, 8
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x38], edi
jb 0x49a551
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0058125d
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 0x49a57b
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.0058125d
add esp, 4
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], 0
xor edx, edx
mov word [ebp - 0x68], dx
inc ebx
jmp 0x49a2e5
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd0]
push ecx
call fcn.0049ac70
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.00581268
mov esp, ebp
pop ebp
ret