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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d17b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x41207c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, edx
mov dword [ebp - 0x2bc], ebx
mov dword [ebp - 0x2b8], edi
call fcn.00401040
xor eax, eax
mov word [ebp - 0x284], ax
lea esi, [eax + 8]
lea eax, [ebp - 0x284]
mov dword [ebp - 0x270], 7
mov dword [ebp - 0x274], 0
call fcn.00402040
mov dword [ebp - 4], 0
cmp dword [ebp - 0x274], 0
jbe 0x401f56
call fcn.00401040
lea ecx, [ebp - 0x28c]
push ecx
push 0xf003f
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401c59
cmp dword [ebp - 0x270], esi
jb 0x401f6d
mov edx, dword [ebp - 0x284]
push edx
jmp 0x401f65
push 0
push 0
lea eax, [ebp - 0x2d4]
push eax
lea ecx, [ebp - 0x2cc]
push ecx
lea edx, [ebp - 0x2c0]
push edx
mov edx, dword [ebp - 0x28c]
push 0
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x2a8]
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x401f56
mov eax, dword [ebp - 0x298]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040247c
add esp, 4
cmp dword [ebp - 0x2a8], 0
mov edi, eax
mov dword [ebp - 0x2a4], edi
mov dword [ebp - 0x288], 0
ja 0x401d16
push edi
call fcn.004026b9
mov ecx, dword [ebp - 0x28c]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x270], 8
jb 0x401f6d
mov edx, dword [ebp - 0x284]
push edx
jmp 0x401f65
mov ebx, dword [ebp - 0x2bc]
mov eax, dword [ebp - 0x298]
lea ecx, [eax + eax + 2]
push ecx
push 0
push edi
call fcn.00408490
mov edx, dword [ebp - 0x298]
mov ecx, dword [ebp - 0x288]
add esp, 0xc
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2ac]
push eax
inc edx
push edi
mov dword [ebp - 0x2ac], edx
mov edx, dword [ebp - 0x28c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x401cd8
push 0x256
push eax
lea ecx, [ebp - 0x266]
push ecx
mov word [ebp - 0x268], ax
call fcn.00408490
mov edx, dword [ebp - 0x2b8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
add esp, 0xc
push edx
lea eax, [ebp - 0x268]
push eax
call esi
push 0x41048c
lea ecx, [ebp - 0x268]
push ecx
call esi
push edi
lea edx, [ebp - 0x268]
push edx
call esi
lea eax, [ebp - 0x290]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x268]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401cd8
push eax
push eax
lea edx, [ebp - 0x294]
push edx
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x2a0]
push ecx
mov ecx, dword [ebp - 0x290]
push 0
lea edx, [ebp - 0x2c8]
push edx
lea eax, [ebp - 0x2d0]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x401cd8
mov eax, dword [ebp - 0x29c]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040247c
mov edi, eax
mov eax, dword [ebp - 0x294]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040247c
xor ebx, ebx
add esp, 8
mov esi, eax
cmp dword [ebp - 0x2a0], ebx
jbe 0x401ef7
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x2b4], eax
mov eax, dword [ebp - 0x29c]
lea edx, [eax + eax + 2]
push edx
lea ecx, [eax + 1]
push 0
push edi
mov dword [ebp - 0x2b0], ecx
call fcn.00408490
mov eax, dword [ebp - 0x294]
push eax
push 0
push esi
call fcn.00408490
add esp, 0x18
lea ecx, [ebp - 0x2b4]
push ecx
mov ecx, dword [ebp - 0x290]
push esi
lea edx, [ebp - 0x2c4]
push edx
push 0
lea eax, [ebp - 0x2b0]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x401ef7
push 0x410490
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401eea
push str.52Wan
push esi
call fcn.00402cdb
add esp, 8
test eax, eax
jne 0x401f37
inc ebx
cmp ebx, dword [ebp - 0x2a0]
jb 0x401e63
push edi
call fcn.004026b9
push esi
call fcn.004026b9
mov edx, dword [ebp - 0x290]
add esp, 8
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x288]
mov edi, dword [ebp - 0x2a4]
inc eax
mov dword [ebp - 0x288], eax
cmp eax, dword [ebp - 0x2a8]
jb 0x401d10
jmp 0x401cd8
cmp dword [ebp - 0x270], 8
jb 0x401f4f
mov eax, dword [ebp - 0x284]
push eax
call fcn.004026ae
add esp, 4
mov eax, 1
jmp 0x401f6f
cmp dword [ebp - 0x270], esi
jb 0x401f6d
mov eax, dword [ebp - 0x284]
push eax
call fcn.004026ae
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402564
mov esp, ebp
pop ebp
ret