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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48232b
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x49c0a4]
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 edi, ecx
mov dword [ebp - 0x6c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x9c], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push ecx
mov dword [ebp - 0x74], esp
mov dword [ebp - 0x74], esp
lea esi, [ebp - 0xb4]
call fcn.0040c200
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], ebx
mov byte [ebp - 4], 3
lea esi, [edi + 4]
mov ecx, 0x4923c4
call fcn.0040acc0
cmp eax, 0xffffffff
jne 0x4125fd
mov dword [ebp - 0x54], ebx
mov eax, dword [esi]
lea ecx, [ebp - 0x54]
push ecx
push 1
push ebx
push eax
mov edx, dword [edi]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412890
cmp dword [ebp - 0x54], ebx
je 0x412890
push ecx
mov eax, esp
mov dword [ebp - 0x74], esp
push esi
push eax
call fcn.00402770
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x54]
push ecx
lea edx, [ebp - 0x90]
push edx
mov byte [ebp - 4], 3
call fcn.00413240
add esp, 0xc
mov byte [ebp - 4], 5
mov ebx, eax
lea edi, [ebp - 0xb4]
call fcn.00412d90
mov byte [ebp - 4], 3
lea eax, [ebp - 0x90]
push eax
call fcn.00410970
xor ebx, ebx
jmp 0x41288d
mov ecx, 0x5c
call fcn.0040ace0
mov edi, eax
cmp edi, 0xffffffff
je 0x41288d
lea ecx, [ebp - 0x64]
push ecx
mov ecx, edi
mov edx, esi
call fcn.0040aef0
mov byte [ebp - 4], 6
lea edx, [edi + 1]
lea eax, [ebp - 0x54]
push eax
push esi
call fcn.00412c80
mov byte [ebp - 4], 7
lea edi, [ebp - 0x54]
call fcn.00402920
push 0x4923c4
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.00465f8d
add esp, 8
cmp eax, ebx
je 0x412875
sub eax, dword [ebp - 0x54]
sar eax, 1
cmp eax, 0xffffffff
je 0x412875
mov dword [ebp - 0x58], ebx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x41267b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x58], ebx
lea edx, [ebp - 0x58]
push edx
push 9
push ebx
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412863
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x412863
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x70], ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x68]
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x412863
mov eax, dword [ebp - 0x68]
cmp eax, ebx
je 0x412863
cmp eax, 0x2710
jae 0x412863
cmp dword [ebp - 0x70], ebx
je 0x412863
xor esi, esi
mov dword [ebp - 0x84], esi
cmp esi, eax
jae 0x412863
mov ebx, dword [ebp - 0x70]
inc ebx
lea eax, [ebp - 0x34]
call fcn.00412c50
mov byte [ebp - 4], 9
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x20]
push eax
xor edi, edi
lea eax, [ebp - 0x34]
call fcn.0040a650
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x412841
lea eax, [ebp - 0x34]
call fcn.0040a650
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412737
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x34]
call fcn.0040a680
mov esi, 8
cmp dword [ebp - 0x1c], esi
mov ecx, dword [ebp - 0x30]
jae 0x41275e
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x5c]
push edx
call fcn.004027d0
mov byte [ebp - 4], 0xa
lea edi, [ebp - 0x5c]
call fcn.00402920
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x54]
call fcn.00409410
test eax, eax
je 0x412835
mov dword [ebp - 0x78], 0
cmp dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x30]
jae 0x412798
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x78]
push ecx
push 1
push 0
push eax
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412835
cmp dword [ebp - 0x78], eax
je 0x412835
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x80]
push ecx
mov ebx, 0x492050
call fcn.0040b030
add esp, 8
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x1c], 8
mov ebx, dword [ebp - 0x30]
jae 0x4127dd
lea ebx, [ebp - 0x30]
push ecx
mov edx, esp
mov dword [ebp - 0x74], esp
push eax
push edx
call fcn.0040b030
add esp, 8
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x78]
push eax
lea ecx, [ebp - 0x90]
push ecx
mov byte [ebp - 4], 0xb
call fcn.00413240
add esp, 0xc
mov byte [ebp - 4], 0xd
mov ebx, eax
lea edi, [ebp - 0xb4]
call fcn.00412d90
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x90]
push edx
call fcn.00410970
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x80]
call fcn.00402880
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x5c]
call fcn.00402880
mov byte [ebp - 4], 8
lea esi, [ebp - 0x34]
call fcn.0040a570
inc dword [ebp - 0x84]
mov eax, dword [ebp - 0x68]
xor ebx, ebx
mov esi, dword [ebp - 0x84]
jmp 0x4126f2
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x412875
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x54]
call fcn.00402880
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
call fcn.00402880
mov edi, dword [ebp - 0x6c]
xor eax, eax
mov dword [ebp - 0x60], eax
jmp 0x4128a0
mov ecx, dword [ebp - 0xa4]
sub ecx, dword [ebp - 0xa8]
sar ecx, 3
cmp eax, ecx
jae 0x412c06
mov edx, dword [edi + 8]
cmp dword [edx - 0xc], ebx
jne 0x41296f
mov ecx, dword [edi + 0xc]
cmp dword [ecx - 0xc], ebx
jne 0x41296f
lea edx, [ebp - 0x58]
push edx
push edi
call fcn.00411700
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x70]
push eax
mov ebx, 0x492050
call fcn.0040b030
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 0xf
mov edi, dword [ebp - 0x60]
lea esi, [ebp - 0xb4]
call fcn.00412d70
add eax, 4
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.0040af90
add esp, 8
mov byte [ebp - 4], 0x10
mov ebx, eax
mov edi, dword [ebp - 0x9c]
call fcn.004029e0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x78]
call fcn.00402880
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x70]
call fcn.00402880
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.00402880
xor ebx, ebx
mov edi, dword [ebp - 0x60]
lea esi, [ebp - 0xb4]
call fcn.00412d70
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x60]
mov edi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x60]
jmp 0x4128a0
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x88], ebx
mov edi, eax
lea esi, [ebp - 0xb4]
call fcn.00412d70
push ebx
push ebx
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x64]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov eax, dword [eax]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x41294a
cmp dword [ebp - 0x64], ebx
je 0x41294a
cmp dword [ebp - 0x5c], ebx
je 0x41294a
mov dword [ebp - 0x7c], ebx
lea esp, [esp]
mov ecx, dword [ebp - 0x64]
cmp dword [ebp - 0x7c], ecx
jae 0x41294a
mov ebx, dword [ebp - 0x5c]
inc ebx
lea eax, [ebp - 0x50]
call fcn.00412c50
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x94], edx
mov ebx, dword [ebp - 0x88]
shr ebx, 1
add ebx, 2
lea eax, [ebp - 0x34]
call fcn.00412c50
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x20]
lea ecx, [eax + eax]
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x98], 0
mov edi, dword [ebp - 0x60]
lea esi, [ebp - 0xb4]
call fcn.00412d70
mov esi, eax
lea edx, [ebp - 0x80]
push edx
xor edi, edi
lea eax, [ebp - 0x34]
call fcn.0040a650
push eax
lea eax, [ebp - 0x98]
push eax
push edi
lea ecx, [ebp - 0x94]
push ecx
lea eax, [ebp - 0x50]
call fcn.0040a650
push eax
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x412be4
cmp dword [ebp - 0x98], 1
jne 0x412be4
mov edi, dword [ebp - 0x94]
lea eax, [ebp - 0x50]
call fcn.0040a650
xor ecx, ecx
mov word [eax], cx
mov edi, dword [ebp - 0x80]
shr edi, 1
lea eax, [ebp - 0x34]
call fcn.0040a650
xor edx, edx
mov word [eax], dx
mov esi, 8
cmp dword [ebp - 0x38], esi
mov ecx, dword [ebp - 0x4c]
jae 0x412a99
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x54]
push eax
call fcn.004027d0
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x1c], esi
mov ecx, dword [ebp - 0x30]
jae 0x412ab1
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x68]
push edx
call fcn.004027d0
mov byte [ebp - 4], 0x14
lea edi, [ebp - 0x54]
call fcn.00402920
lea edi, [ebp - 0x68]
call fcn.00402920
mov esi, dword [ebp - 0x6c]
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x54]
call fcn.00409410
test eax, eax
je 0x412bcc
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
je 0x412afd
mov ecx, dword [ebp - 0x68]
call fcn.00409410
test eax, eax
je 0x412bcc
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.00411700
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x8c]
push ecx
mov ebx, 0x492050
call fcn.0040b030
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 0x16
mov edi, dword [ebp - 0x60]
lea esi, [ebp - 0xb4]
call fcn.00412d70
add eax, 4
push eax
lea edx, [ebp - 0xbc]
push edx
call fcn.0040af90
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0xb8]
push eax
mov ebx, 0x49249c
call fcn.0040b030
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0xc0]
push edx
mov ebx, eax
call fcn.0040af90
add esp, 0x18
mov byte [ebp - 4], 0x19
mov ebx, eax
mov edi, dword [ebp - 0x9c]
call fcn.004029e0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0xc0]
call fcn.00402880
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0xb8]
call fcn.00402880
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xbc]
call fcn.00402880
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x8c]
call fcn.00402880
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x74]
call fcn.00402880
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x68]
call fcn.00402880
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x54]
call fcn.00402880
mov byte [ebp - 4], 0x11
lea esi, [ebp - 0x34]
call fcn.0040a570
mov byte [ebp - 4], 3
lea esi, [ebp - 0x50]
call fcn.0040a570
inc dword [ebp - 0x7c]
xor ebx, ebx
jmp 0x4129c0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xb4]
push ecx
call fcn.00412cf0
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.00464c90
mov esp, ebp
pop ebp
ret