Function at 0x401920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412098
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x418054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
lea eax, [ebp - 0x10]
push eax
push 0x20019
push esi
push ecx
push 0x80000002
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x401aeb
push esi
push esi
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x38], eax
cmp eax, esi
jne 0x401ade
cmp dword [ebp - 0x14], esi
je 0x401ade
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x18]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00404a05
mov edi, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
xor ecx, ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00404a05
add esp, 8
mov ebx, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x14], esi
jbe 0x401ac4
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov word [edi], cx
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x28]
push ebx
mov dword [ebp - 0x30], edx
xor eax, eax
lea edx, [ebp - 0x34]
push edx
push esi
mov word [ebx], ax
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
jne 0x401ab4
mov eax, dword [0x418e20]
mov edx, dword [eax + 0xc]
mov ecx, 0x418e20
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x34]
dec eax
jne 0x401afd
mov esi, dword [ebp + 8]
call fcn.00403960
mov ecx, ebx
lea edi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x401a70
sub ecx, edi
sar ecx, 1
push ebx
mov edi, ecx
mov ebx, eax
call fcn.004035f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401aac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
xor esi, esi
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, dword [ebp - 0x14]
jb 0x401a02
push ebx
mov byte [ebp - 4], 0
call fcn.004044e1
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.004044e1
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401b27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
mov byte [ebp - 4], 0
call fcn.004044e1
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.004044e1
add esp, 8
mov eax, 0xb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret