Function at 0x41f660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8df0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x504e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5049f8]
mov ecx, 0x5049f8
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x1fffff
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 1
je 0x41f6fb
push 0x4c2064
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00402930
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00402500
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f6fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5049f8]
mov ecx, 0x5049f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 3
call fcn.0041e8c0
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 4
call fcn.00402870
add esp, 0x18
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00402500
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f762
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f782
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push esi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41f86b
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 0xc]
push 0
push dword [eax]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0x14]
lea edx, [ecx + 2]
jne 0x41f7cc
inc eax
mov dword [ebp - 0x14], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00495ce0
mov edi, eax
mov eax, dword [ebp - 0x14]
add esp, 4
add eax, eax
push eax
push 0
push edi
call fcn.004980c0
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 0xc]
push 0
push dword [eax]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x41f849
mov ecx, dword [ebp - 0x14]
mov word [edi + ecx*2], ax
test edi, edi
jne 0x41f828
xor ecx, ecx
jmp 0x41f83f
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f830
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.00407df0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00497933
add esp, 4
cmp dword [ebp - 0x30], 0
jne 0x41f86b
cmp dword [ebp - 0x24], 1
mov byte [ebp - 0xd], 1
je 0x41f86f
mov byte [ebp - 0xd], 0
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f88c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f8ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x18]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x41f8cd
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret