Function at 0x41f440
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x447000
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov esi, 1
mov dword [esp + 0x28], esi
mov ebx, dword [esp + 0x34]
cmp dword [ebx - 4], esi
jle 0x41f48d
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00401c30
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x14]
push edx
push esi
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41f504
lea eax, [ebx - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f4c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f4ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 0
cmp dword [ebp - 4], esi
jle 0x41f52b
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00401c30
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0x24]
push ecx
push 0
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x41f587
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebx - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f577
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
lea eax, [ebp - 0x10]
jmp 0x41f4d5
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x41f5ea
shr eax, 1
mov ecx, eax
mov eax, dword [edi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, ecx
or eax, edx
jge 0x41f5b0
mov eax, edi
call fcn.00401b80
cmp dword [ebp - 4], 1
mov esi, dword [edi]
jle 0x41f5ca
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00401c30
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
push 0
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
call fcn.00420730
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
test esi, esi
sete cl
lea eax, [ebx - 0x10]
mov byte [esp + 0x28], 0
lea edx, [eax + 0xc]
mov esi, ecx
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f61f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f643
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret