Function at 0x412ae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d718
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4376f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x74], eax
xor eax, eax
mov dword [ebp - 4], eax
push ecx
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 2
mov dword [ebp - 0x70], esp
push 0xffffffffffffffff
push eax
lea edx, [ebp + 0xc]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], eax
push edx
lea esi, [ebp - 0x6c]
mov byte [ecx], al
call fcn.00401b70
mov ebx, dword [ebp + 8]
mov ecx, esi
call fcn.00412900
xor ebx, ebx
add esp, 0x20
cmp eax, ebx
jne 0x412de4
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x28]
call fcn.00415490
add esp, 4
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x30]
mov esi, 8
cmp dword [ebp - 0x1c], esi
jae 0x412b7b
lea edi, [ebp - 0x30]
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x78]
push ecx
push ebx
lea edx, [ebp - 0x7c]
push edx
push ebx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x412c37
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x38], ebx
jne 0x412c11
mov ecx, dword [ebp - 0x74]
push ebx
push 0x432109
call fcn.00401980
cmp dword [ebp - 0x1c], esi
jb 0x412bc6
mov edx, dword [ebp - 0x30]
push edx
call fcn.004185a3
add esp, 4
xor eax, eax
mov esi, 0x10
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
cmp dword [ebp + 0x20], esi
jb 0x412bec
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004185a3
add esp, 4
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], esi
jb 0x412c0a
mov edx, dword [ebp + 0x28]
push edx
call fcn.004185a3
add esp, 4
mov al, 1
jmp 0x412e1a
cmp dword [ebp - 0x1c], esi
jb 0x412c22
mov eax, dword [ebp - 0x30]
push eax
call fcn.004185a3
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
jmp 0x412de4
cmp dword [ebp - 0x7c], 1
je 0x412c9d
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], esi
jb 0x412c58
mov edx, dword [ebp - 0x30]
push edx
call fcn.004185a3
add esp, 4
xor eax, eax
mov esi, 0x10
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
cmp dword [ebp + 0x20], esi
jb 0x412c7e
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004185a3
add esp, 4
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], esi
jb 0x412e18
mov edx, dword [ebp + 0x28]
push edx
jmp 0x412e10
mov eax, dword [ebp - 0x78]
shr eax, 1
mov dword [ebp - 0x3c], ebx
xor ecx, ecx
mov ebx, eax
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], cx
call fcn.00413640
mov byte [ebp - 4], 4
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x412ccb
mov eax, esi
lea edx, [ebp - 0x78]
push edx
push eax
mov eax, dword [ebp - 0x6c]
xor ebx, ebx
push ebx
push ebx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x412d12
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebp - 0x4c]
call fcn.0040a290
lea esi, [ebp - 0x30]
call fcn.0040a290
lea ecx, [ebp + 0xc]
call fcn.00401720
lea ecx, [ebp + 0x28]
call fcn.00401720
jmp 0x412e18
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov dword [ebp - 0x70], ebx
call fcn.00413700
mov ecx, eax
cmp ecx, 0xffffffff
je 0x412d57
mov eax, dword [ebp - 0x3c]
cmp ecx, eax
ja 0x412d49
or eax, 0xffffffff
lea esi, [ebp - 0x4c]
call fcn.0040a480
jmp 0x412d57
mov ebx, ecx
sub ebx, eax
lea edi, [ebp - 0x4c]
call fcn.004137c0
xor ebx, ebx
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x4c]
cmp ecx, 8
jae 0x412d65
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x3c]
cmp ecx, 8
mov ecx, dword [ebp - 0x4c]
lea eax, [eax + edx*2]
jae 0x412d76
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp - 0x70]
push edx
push eax
push ecx
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
call fcn.00413860
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [ebp - 0x74]
mov byte [ebp - 4], 5
call fcn.00401b70
lea ecx, [ebp - 0x68]
call fcn.00401720
lea esi, [ebp - 0x4c]
call fcn.0040a290
lea esi, [ebp - 0x30]
call fcn.0040a290
lea ecx, [ebp + 0xc]
call fcn.00401720
lea ecx, [ebp + 0x28]
call fcn.00401720
mov al, 1
jmp 0x412e1a
mov esi, 0x10
cmp dword [ebp + 0x20], esi
jb 0x412dfa
mov edx, dword [ebp + 0xc]
push edx
call fcn.004185a3
add esp, 4
mov byte [ebp + 0xc], bl
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], 0xf
cmp dword [ebp + 0x3c], esi
jb 0x412e18
mov eax, dword [ebp + 0x28]
push eax
call fcn.004185a3
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041836d
mov esp, ebp
pop ebp
ret