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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40da0b
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.00402680
mov dword [ebp - 4], 0
cmp dword [ebp - 0x274], 0
jbe 0x402436
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 0x402139
cmp dword [ebp - 0x270], esi
jb 0x40244d
mov edx, dword [ebp - 0x284]
push edx
jmp 0x402445
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 0x402436
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.00402a0c
add esp, 4
cmp dword [ebp - 0x2a8], 0
mov edi, eax
mov dword [ebp - 0x2a4], edi
mov dword [ebp - 0x288], 0
ja 0x4021f6
push edi
call fcn.00402c49
mov ecx, dword [ebp - 0x28c]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x270], 8
jb 0x40244d
mov edx, dword [ebp - 0x284]
push edx
jmp 0x402445
mov ebx, dword [ebp - 0x2bc]
mov eax, dword [ebp - 0x298]
lea ecx, [eax + eax + 2]
push ecx
push 0
push edi
call fcn.00409110
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 0x4021b8
push 0x256
push eax
lea ecx, [ebp - 0x266]
push ecx
mov word [ebp - 0x268], ax
call fcn.00409110
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 0x410580
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 0x4021b8
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 0x4021b8
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.00402a0c
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.00402a0c
xor ebx, ebx
add esp, 8
mov esi, eax
cmp dword [ebp - 0x2a0], ebx
jbe 0x4023d7
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.00409110
mov eax, dword [ebp - 0x294]
push eax
push 0
push esi
call fcn.00409110
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 0x4023d7
push 0x410584
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4023ca
push str.59Wan
push esi
call fcn.0040333c
add esp, 8
test eax, eax
jne 0x402417
inc ebx
cmp ebx, dword [ebp - 0x2a0]
jb 0x402343
push edi
call fcn.00402c49
push esi
call fcn.00402c49
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 0x4021f0
jmp 0x4021b8
cmp dword [ebp - 0x270], 8
jb 0x40242f
mov eax, dword [ebp - 0x284]
push eax
call fcn.00402c3e
add esp, 4
mov eax, 1
jmp 0x40244f
cmp dword [ebp - 0x270], esi
jb 0x40244d
mov eax, dword [ebp - 0x284]
push eax
call fcn.00402c3e
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.00402af4
mov esp, ebp
pop ebp
ret