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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b29b2
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x6bd6f8]
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.00474a50
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.004260c3
cmp eax, 0xffffffff
jne 0x481177
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 0x4814d3
cmp dword [ebp - 0x70], eax
je 0x4814d3
push ecx
mov eax, esp
mov dword [ebp - 0x88], esp
push esi
push eax
call fcn.004084fe
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.004824d0
add esp, 0xc
mov byte [ebp - 4], 5
mov ebx, eax
lea edi, [ebp - 0xd0]
call fcn.00482030
mov byte [ebp - 4], 3
lea eax, [ebp - 0xa4]
push eax
call fcn.00482c40
jmp 0x4814d3
push 0x5c
call fcn.004260df
mov edi, eax
cmp edi, 0xffffffff
je 0x4814d3
lea ecx, [ebp - 0x80]
push ecx
push esi
mov ecx, edi
call fcn.004262df
mov byte [ebp - 4], 6
lea ecx, [edi + 1]
lea edx, [ebp - 0x70]
push edx
mov edx, esi
call fcn.004261be
mov byte [ebp - 4], 7
lea eax, [ebp - 0x70]
call fcn.0040877f
lea esi, [ebp - 0x70]
call fcn.004260c3
cmp eax, 0xffffffff
je 0x4814bb
mov dword [ebp - 0x7c], 0
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x80]
lea esi, [ebp - 0x7c]
call fcn.00409508
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 0x4814a9
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4814a9
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 0x4814a9
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x4814a9
cmp eax, 0x2710
jae 0x4814a9
cmp dword [ebp - 0x94], ebx
je 0x4814a9
mov dword [ebp - 0xb8], ebx
cmp ebx, eax
jae 0x4814a9
mov eax, dword [ebp - 0x94]
inc eax
push eax
lea esi, [ebp - 0x34]
call fcn.00425d9d
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.00425dbf
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x481450
lea eax, [ebp - 0x34]
call fcn.00425dbf
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4812b0
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x20]
cmp eax, edx
ja 0x4812d4
push 0xffffffffffffffff
mov edi, eax
lea esi, [ebp - 0x34]
call fcn.004081fd
jmp 0x48133d
sub eax, edx
mov edi, eax
or eax, 0xffffffff
sub eax, edx
cmp eax, edi
ja 0x4812e9
call fcn.00572321
mov edx, dword [ebp - 0x20]
test edi, edi
jbe 0x48133d
lea esi, [edx + edi]
cmp esi, 0x7ffffffe
jbe 0x481300
call fcn.00572321
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp eax, esi
jae 0x481489
push edx
push esi
lea ecx, [ebp - 0x34]
push ecx
call fcn.0040cbe9
mov edx, dword [ebp - 0x20]
test esi, esi
jbe 0x48133d
push edi
xor eax, eax
lea ecx, [ebp - 0x34]
call fcn.00428c72
mov dword [ebp - 0x20], esi
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x481337
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 0x48134d
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x74]
push edx
call fcn.0040852d
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x74]
call fcn.0040877f
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x70]
call fcn.00481d50
test eax, eax
je 0x481444
mov dword [ebp - 0x8c], 0
cmp dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x30]
jae 0x48138b
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 0x481444
cmp dword [ebp - 0x8c], eax
je 0x481444
push 0x68a9a4
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x80]
call fcn.0040fc0a
add esp, 8
mov bl, 0xb
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1c], esi
mov ecx, dword [ebp - 0x30]
jae 0x4813dc
lea ecx, [ebp - 0x30]
push ecx
mov edx, esp
mov dword [ebp - 0x88], esp
push ecx
push edx
mov ecx, eax
call fcn.0040fc0a
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.004824d0
add esp, 0xc
mov byte [ebp - 4], 0xd
mov ebx, eax
lea edi, [ebp - 0xd0]
call fcn.00482030
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0xa4]
push edx
call fcn.00482c40
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x98]
call fcn.0040856e
mov ebx, dword [ebp - 0xb8]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x74]
call fcn.0040856e
mov byte [ebp - 4], 8
cmp dword [ebp - 0x1c], 8
jb 0x481466
mov eax, dword [ebp - 0x30]
push eax
call fcn.00573401
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 0x481266
test esi, esi
jne 0x48131b
mov dword [ebp - 0x20], esi
cmp eax, 8
mov eax, dword [ebp - 0x30]
jae 0x48149f
lea eax, [ebp - 0x30]
xor edx, edx
mov word [eax], dx
jmp 0x48133d
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4814bb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.0040856e
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.0040856e
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 0x4818b1
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 8]
cmp dword [ecx - 0xc], ebx
jne 0x4815be
mov edx, dword [eax + 0xc]
cmp dword [edx - 0xc], ebx
jne 0x4815be
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.0047fa60
mov byte [ebp - 4], 0xe
push 0x68a9a4
lea edx, [ebp - 0x94]
push edx
mov ecx, eax
call fcn.0040fc0a
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 0xf
lea esi, [ebp - 0xd0]
call fcn.00482010
add eax, 4
push eax
lea eax, [ebp - 0x8c]
push eax
mov esi, ebx
call fcn.004136c3
add esp, 8
mov byte [ebp - 4], 0x10
push eax
mov eax, dword [ebp - 0xb0]
call fcn.004138ba
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x8c]
call fcn.0040856e
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x94]
call fcn.0040856e
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.0040856e
mov edi, dword [ebp - 0x84]
lea esi, [ebp - 0xd0]
call fcn.00482010
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
xor ebx, ebx
jmp 0x4814d7
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0xb4], ebx
lea esi, [ebp - 0xd0]
call fcn.00482010
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 0x4815a2
cmp dword [ebp - 0x80], eax
je 0x4815a2
cmp dword [ebp - 0x74], eax
je 0x4815a2
xor ebx, ebx
mov dword [ebp - 0xac], ebx
cmp ebx, dword [ebp - 0x80]
jae 0x48159c
mov eax, dword [ebp - 0x74]
inc eax
push eax
lea esi, [ebp - 0x6c]
call fcn.00425d9d
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.00425d9d
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.00482010
mov esi, eax
lea edx, [ebp - 0x98]
push edx
xor edi, edi
lea eax, [ebp - 0x50]
call fcn.00425dbf
push eax
lea eax, [ebp - 0xa8]
push eax
push edi
lea ecx, [ebp - 0x9c]
push ecx
lea eax, [ebp - 0x6c]
call fcn.00425dbf
push eax
push ebx
mov edx, dword [esi]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x481857
cmp dword [ebp - 0xa8], 1
jne 0x481857
mov edi, dword [ebp - 0x9c]
lea eax, [ebp - 0x6c]
call fcn.00425dbf
xor ecx, ecx
mov word [eax], cx
mov edi, dword [ebp - 0x98]
shr edi, 1
lea eax, [ebp - 0x50]
call fcn.00425dbf
xor edx, edx
mov word [eax], dx
mov edi, 8
cmp dword [ebp - 0x54], edi
mov eax, dword [ebp - 0x68]
jae 0x4816ec
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040852d
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x4c]
jae 0x481705
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.0040852d
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x70]
call fcn.0040877f
lea eax, [ebp - 0x78]
call fcn.0040877f
mov esi, dword [ebp - 0x90]
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x70]
call fcn.00481d50
test eax, eax
je 0x48183d
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
je 0x481755
mov ecx, dword [ebp - 0x78]
call fcn.00481d50
test eax, eax
je 0x48183d
lea edx, [ebp - 0x88]
push edx
mov eax, esi
push eax
call fcn.0047fa60
mov byte [ebp - 4], 0x15
push 0x68a9a4
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.0040fc0a
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 0x16
mov edi, dword [ebp - 0x84]
lea esi, [ebp - 0xd0]
call fcn.00482010
add eax, 4
push eax
lea edx, [ebp - 0xd8]
push edx
mov esi, ebx
call fcn.004136c3
mov byte [ebp - 4], 0x17
push 0x68c214
lea ecx, [ebp - 0xdc]
push ecx
mov ecx, eax
call fcn.0040fc0a
mov byte [ebp - 4], 0x18
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp - 0xd4]
push ecx
mov esi, eax
call fcn.004136c3
add esp, 0x18
mov byte [ebp - 4], 0x19
push eax
mov eax, dword [ebp - 0xb0]
call fcn.004138ba
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0xd4]
call fcn.0040856e
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0xdc]
call fcn.0040856e
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xd8]
call fcn.0040856e
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xa0]
call fcn.0040856e
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x88]
call fcn.0040856e
mov ebx, dword [ebp - 0xac]
mov edi, 8
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x78]
call fcn.0040856e
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x70]
call fcn.0040856e
jmp 0x48185c
mov edi, 8
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x38], edi
jb 0x481871
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00573401
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 0x48189b
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00573401
add esp, 4
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], 0
xor edx, edx
mov word [ebp - 0x68], dx
inc ebx
jmp 0x481605
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd0]
push ecx
call fcn.00481f90
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.0057340c
mov esp, ebp
pop ebp
ret