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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2cc2
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x6b06f8]
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.0048fe80
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.004263b6
cmp eax, 0xffffffff
jne 0x481647
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 0x4819a3
cmp dword [ebp - 0x70], eax
je 0x4819a3
push ecx
mov eax, esp
mov dword [ebp - 0x88], esp
push esi
push eax
call fcn.00408532
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.00482980
add esp, 0xc
mov byte [ebp - 4], 5
mov ebx, eax
lea edi, [ebp - 0xd0]
call fcn.004824f0
mov byte [ebp - 4], 3
lea eax, [ebp - 0xa4]
push eax
call fcn.00481dd0
jmp 0x4819a3
push 0x5c
call fcn.004263d2
mov edi, eax
cmp edi, 0xffffffff
je 0x4819a3
lea ecx, [ebp - 0x80]
push ecx
push esi
mov ecx, edi
call fcn.004265d2
mov byte [ebp - 4], 6
lea ecx, [edi + 1]
lea edx, [ebp - 0x70]
push edx
mov edx, esi
call fcn.004264b1
mov byte [ebp - 4], 7
lea eax, [ebp - 0x70]
call fcn.004087b3
lea esi, [ebp - 0x70]
call fcn.004263b6
cmp eax, 0xffffffff
je 0x48198b
mov dword [ebp - 0x7c], 0
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x80]
lea esi, [ebp - 0x7c]
call fcn.00409535
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 0x481979
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x481979
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 0x481979
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x481979
cmp eax, 0x2710
jae 0x481979
cmp dword [ebp - 0x94], ebx
je 0x481979
mov dword [ebp - 0xb8], ebx
cmp ebx, eax
jae 0x481979
mov eax, dword [ebp - 0x94]
inc eax
push eax
lea esi, [ebp - 0x34]
call fcn.0042b336
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.004260b2
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x481920
lea eax, [ebp - 0x34]
call fcn.004260b2
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x481780
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x20]
cmp eax, edx
ja 0x4817a4
push 0xffffffffffffffff
mov edi, eax
lea esi, [ebp - 0x34]
call fcn.00408231
jmp 0x48180d
sub eax, edx
mov edi, eax
or eax, 0xffffffff
sub eax, edx
cmp eax, edi
ja 0x4817b9
call fcn.00572631
mov edx, dword [ebp - 0x20]
test edi, edi
jbe 0x48180d
lea esi, [edx + edi]
cmp esi, 0x7ffffffe
jbe 0x4817d0
call fcn.00572631
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp eax, esi
jae 0x481959
push edx
push esi
lea ecx, [ebp - 0x34]
push ecx
call fcn.0040cc51
mov edx, dword [ebp - 0x20]
test esi, esi
jbe 0x48180d
push edi
xor eax, eax
lea ecx, [ebp - 0x34]
call fcn.00428e04
mov dword [ebp - 0x20], esi
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x481807
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 0x48181d
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x74]
push edx
call fcn.00408561
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x74]
call fcn.004087b3
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x70]
call fcn.00482290
test eax, eax
je 0x481914
mov dword [ebp - 0x8c], 0
cmp dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x30]
jae 0x48185b
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 0x481914
cmp dword [ebp - 0x8c], eax
je 0x481914
push 0x670fe8
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x80]
call fcn.0040fc53
add esp, 8
mov bl, 0xb
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1c], esi
mov ecx, dword [ebp - 0x30]
jae 0x4818ac
lea ecx, [ebp - 0x30]
push ecx
mov edx, esp
mov dword [ebp - 0x88], esp
push ecx
push edx
mov ecx, eax
call fcn.0040fc53
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.00482980
add esp, 0xc
mov byte [ebp - 4], 0xd
mov ebx, eax
lea edi, [ebp - 0xd0]
call fcn.004824f0
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0xa4]
push edx
call fcn.00481dd0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x98]
call fcn.004085a2
mov ebx, dword [ebp - 0xb8]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x74]
call fcn.004085a2
mov byte [ebp - 4], 8
cmp dword [ebp - 0x1c], 8
jb 0x481936
mov eax, dword [ebp - 0x30]
push eax
call fcn.00573721
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 0x481736
test esi, esi
jne 0x4817eb
mov dword [ebp - 0x20], esi
cmp eax, 8
mov eax, dword [ebp - 0x30]
jae 0x48196f
lea eax, [ebp - 0x30]
xor edx, edx
mov word [eax], dx
jmp 0x48180d
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x48198b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.004085a2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.004085a2
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 0x481d81
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 8]
cmp dword [ecx - 0xc], ebx
jne 0x481a8e
mov edx, dword [eax + 0xc]
cmp dword [edx - 0xc], ebx
jne 0x481a8e
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.0047ff30
mov byte [ebp - 4], 0xe
push 0x670fe8
lea edx, [ebp - 0x94]
push edx
mov ecx, eax
call fcn.0040fc53
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 0xf
lea esi, [ebp - 0xd0]
call fcn.004824d0
add eax, 4
push eax
lea eax, [ebp - 0x8c]
push eax
mov esi, ebx
call fcn.004136d2
add esp, 8
mov byte [ebp - 4], 0x10
push eax
mov eax, dword [ebp - 0xb0]
call fcn.0041395f
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x8c]
call fcn.004085a2
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x94]
call fcn.004085a2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.004085a2
mov edi, dword [ebp - 0x84]
lea esi, [ebp - 0xd0]
call fcn.004824d0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
xor ebx, ebx
jmp 0x4819a7
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0xb4], ebx
lea esi, [ebp - 0xd0]
call fcn.004824d0
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 0x481a72
cmp dword [ebp - 0x80], eax
je 0x481a72
cmp dword [ebp - 0x74], eax
je 0x481a72
xor ebx, ebx
mov dword [ebp - 0xac], ebx
cmp ebx, dword [ebp - 0x80]
jae 0x481a6c
mov eax, dword [ebp - 0x74]
inc eax
push eax
lea esi, [ebp - 0x6c]
call fcn.0042b336
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.0042b336
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.004824d0
mov esi, eax
lea edx, [ebp - 0x98]
push edx
xor edi, edi
lea eax, [ebp - 0x50]
call fcn.004260b2
push eax
lea eax, [ebp - 0xa8]
push eax
push edi
lea ecx, [ebp - 0x9c]
push ecx
lea eax, [ebp - 0x6c]
call fcn.004260b2
push eax
push ebx
mov edx, dword [esi]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x481d27
cmp dword [ebp - 0xa8], 1
jne 0x481d27
mov edi, dword [ebp - 0x9c]
lea eax, [ebp - 0x6c]
call fcn.004260b2
xor ecx, ecx
mov word [eax], cx
mov edi, dword [ebp - 0x98]
shr edi, 1
lea eax, [ebp - 0x50]
call fcn.004260b2
xor edx, edx
mov word [eax], dx
mov edi, 8
cmp dword [ebp - 0x54], edi
mov eax, dword [ebp - 0x68]
jae 0x481bbc
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00408561
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x4c]
jae 0x481bd5
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.00408561
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x70]
call fcn.004087b3
lea eax, [ebp - 0x78]
call fcn.004087b3
mov esi, dword [ebp - 0x90]
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x70]
call fcn.00482290
test eax, eax
je 0x481d0d
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
je 0x481c25
mov ecx, dword [ebp - 0x78]
call fcn.00482290
test eax, eax
je 0x481d0d
lea edx, [ebp - 0x88]
push edx
mov eax, esi
push eax
call fcn.0047ff30
mov byte [ebp - 4], 0x15
push 0x670fe8
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.0040fc53
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 0x16
mov edi, dword [ebp - 0x84]
lea esi, [ebp - 0xd0]
call fcn.004824d0
add eax, 4
push eax
lea edx, [ebp - 0xd8]
push edx
mov esi, ebx
call fcn.004136d2
mov byte [ebp - 4], 0x17
push 0x6774a4
lea ecx, [ebp - 0xdc]
push ecx
mov ecx, eax
call fcn.0040fc53
mov byte [ebp - 4], 0x18
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp - 0xd4]
push ecx
mov esi, eax
call fcn.004136d2
add esp, 0x18
mov byte [ebp - 4], 0x19
push eax
mov eax, dword [ebp - 0xb0]
call fcn.0041395f
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0xd4]
call fcn.004085a2
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0xdc]
call fcn.004085a2
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xd8]
call fcn.004085a2
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xa0]
call fcn.004085a2
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x88]
call fcn.004085a2
mov ebx, dword [ebp - 0xac]
mov edi, 8
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x78]
call fcn.004085a2
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x70]
call fcn.004085a2
jmp 0x481d2c
mov edi, 8
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x38], edi
jb 0x481d41
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00573721
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 0x481d6b
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00573721
add esp, 4
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], 0
xor edx, edx
mov word [ebp - 0x68], dx
inc ebx
jmp 0x481ad5
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd0]
push ecx
call fcn.00482450
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.0057372c
mov esp, ebp
pop ebp
ret