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

Disassembly:
push 0xffffffffffffffff
push 0x5519b6
mov eax, dword fs:[0]
push eax
sub esp, 0xc58
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0xc54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0xc6c]
mov dword fs:[0], eax
mov edx, dword [esp + 0xc8c]
mov ecx, dword [esp + 0xc88]
mov eax, dword [esp + 0xc7c]
mov ebp, dword [esp + 0xc80]
mov ebx, dword [esp + 0xc84]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x18]
push edx
push 9
xor esi, esi
push esi
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0xc9c]
push ebp
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x60], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x41dd8b
sub eax, 2
neg eax
sbb eax, eax
jmp 0x41e0c1
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x38]
call fcn.0049eff0
mov dword [esp + 0x30], vtable.cWCStr.0
mov edi, dword [esp + 0xc94]
mov dword [esp + 0xc74], esi
test edi, edi
jle 0x41ddc2
push 0x3e
push esi
lea ecx, [esp + 0x38]
call fcn.0049eaf0
inc esi
cmp esi, edi
jl 0x41ddb1
xor eax, eax
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x60]
push ecx
push eax
push eax
lea edx, [esp + 0x64]
push edx
push eax
push eax
push eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test edi, edi
je 0x41de00
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41e0a2
test ebx, ebx
sete al
mov byte [esp + 0x17], al
mov dword [esp + 0x1c], 1
test al, al
je 0x41dedd
mov esi, dword [esp + 0x48]
test esi, esi
je 0x41dedd
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x7c]
push eax
dec esi
push esi
push ecx
mov dword [esp + 0x4c], 0x400
call ebx
mov edi, eax
test edi, edi
jne 0x41decd
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x60]
call fcn.0049eff0
mov dword [esp + 0x58], vtable.cWCStr.0
lea edx, [esp + 0x68]
push edx
push ebp
lea eax, [esp + 0x60]
push 0x56be54
push eax
mov byte [esp + 0xc84], 1
call fcn.00401080
mov ecx, dword [esp + 0xca4]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x30]
inc ecx
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x44]
push ecx
push edi
push edx
push eax
call fcn.0041dcf0
add dword [esp + 0x48], eax
add esp, 0x2c
lea ecx, [esp + 0x58]
mov byte [esp + 0xc74], 0
mov dword [esp + 0x58], vtable.cWCS.0
call fcn.0049ee80
test esi, esi
jne 0x41de2b
mov al, byte [esp + 0x17]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x24], 0
test al, al
jne 0x41df03
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41def0
sub eax, edx
sar eax, 1
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x50]
test esi, esi
je 0x41e08b
mov eax, 0x400
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], eax
lea edx, [esp + 0x86c]
push edx
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x7c]
push edx
dec esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test edi, edi
jne 0x41e08b
cmp byte [esp + 0x17], al
jne 0x41df79
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x6c]
push edx
push ebx
call fcn.0051a35a
add esp, 0xc
test eax, eax
je 0x41df79
cmp dword [esp + 0x40], 3
jne 0x41e083
mov eax, dword [esp + 0xc94]
push eax
lea ecx, [esp + 0x34]
call fcn.0049f100
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x34]
push 0x56f170
push edx
call fcn.00408140
add esp, 0xc
cmp dword [esp + 0x40], 1
jne 0x41dfc2
lea eax, [esp + 0x868]
push eax
lea ecx, [esp + 0x34]
push str.____s_
push ecx
call fcn.00408140
add esp, 0xc
mov eax, dword [esp + 0x44]
cmp eax, 1
jne 0x41e05c
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
push 0xffffffffffffffff
push edx
push eax
call fcn.0049ea40
add esp, 0xc
test eax, eax
jne 0x41e083
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
push esi
lea edx, [esp + 0x6c]
push edx
push ebp
push eax
call fcn.0041dc90
add esp, 0x10
mov byte [esp + 0x28], al
test esi, esi
je 0x41e02f
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004b21b0
mov edx, dword [esp + 0x24]
push eax
push edx
lea eax, [esp + 0x74]
push eax
push ebp
push str.Path:__s:_s_tText:__s_tStatus:__s
push esi
call fcn.0042f3c0
add esp, 0x1c
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x30]
mov dword [esp + 0xc74], 0xffffffff
mov dword [esp + 0x30], vtable.cWCS.0
call fcn.0049ee80
mov eax, dword [esp + 0x1c]
jmp 0x41e0c1
test eax, eax
je 0x41e083
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x86c]
push edx
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x2c]
push ebx
push ebp
push edx
push ecx
call eax
add esp, 0x1c
test esi, esi
jne 0x41df0f
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0x103
je 0x41e03a
test edi, edi
je 0x41e03a
lea ecx, [esp + 0x30]
mov dword [esp + 0xc74], 0xffffffff
mov dword [esp + 0x30], vtable.cWCS.0
call fcn.0049ee80
or eax, 0xffffffff
mov ecx, dword [esp + 0xc6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc54]
xor ecx, esp
call fcn.0051916c
add esp, 0xc64