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

Disassembly:
push 0xffffffffffffffff
push 0x5b225c
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x64c]
mov dword fs:[0], eax
cmp dword [esp + 0x664], 0
mov dword [esp + 0x654], 1
mov esi, 0x200
mov dword [esp + 0x2c], 0x400
je 0x41f782
mov esi, 0x100
call fcn.005759db
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41f79c
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x654], 2
call fcn.005759db
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41f7ce
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov edx, dword [esp + 0x65c]
mov ebp, esi
lea ecx, [esp + 0x1c]
push ecx
or ebp, 0xf003f
push ebp
xor esi, esi
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41fae7
push 0x206
push eax
lea ecx, [esp + 0x46]
push ecx
mov dword [esp + 0x34], esi
mov word [esp + 0x48], ax
call fcn.00587fb0
push 0x3ff
lea edx, [esp + 0x255]
push esi
push edx
mov byte [esp + 0x25c], 0
call fcn.00587fb0
mov ecx, dword [esp + 0x34]
add esp, 0x18
push 0x103
lea eax, [esp + 0x40]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x41fadc
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
inc esi
mov dword [esp + 0x30], esi
lea edx, [esp + 0x65c]
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x658], 4
call fcn.00401a80
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f890
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
call fcn.00407850
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ecx
push ebp
push 0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41fab8
push 0x400
push eax
lea edx, [esp + 0x24c]
push edx
mov dword [esp + 0x38], 0x400
call fcn.00587fb0
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x248]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push str.DisplayName
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x41fa40
cmp dword [esp + 0x28], 1
jne 0x41fa40
lea eax, [esp + 0x244]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f930
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x248]
push ecx
lea ecx, [esp + 0x28]
call fcn.00401960
mov eax, dword [esp + 0x660]
mov edi, dword [esp + 0x20]
test eax, eax
je 0x41faa7
cmp dword [edi - 0xc], 0
jl 0x41faa7
push eax
push edi
call fcn.00584472
add esp, 8
test eax, eax
je 0x41faa7
sub eax, edi
sar eax, 1
js 0x41faa7
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov byte [esp + 0x654], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f9b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x654], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f9dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x654], 0
mov eax, dword [esp + 0x65c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fa08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x654], 0xffffffff
mov eax, dword [esp + 0x660]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fa36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41fb8a
call fcn.005759db
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41f792
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
lea ecx, [esp + 0x1c]
push str._terror:_d
push ecx
mov byte [esp + 0x660], 5
call fcn.00407c30
mov byte [esp + 0x660], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41faa7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x30]
jmp 0x41fabe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x1c]
push 0x103
lea edx, [esp + 0x40]
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x41f867
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov byte [esp + 0x654], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41fb0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x654], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fb2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x654], 0
mov eax, dword [esp + 0x65c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fb5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x654], 0xffffffff
mov eax, dword [esp + 0x660]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fb88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x64c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.005832f8
add esp, 0x644
ret