Function at 0x41f330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f0c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x448178]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea edi, [ebx + 0x18]
push edi
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebp - 0x28], al
test al, al
jne 0x41f37c
mov ecx, ebx
call fcn.0041f880
cmp dword [ebx + 4], 0xffffffff
mov dword [ebp - 4], 0
je 0x41f550
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x18], 0
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
lea ecx, [ebp - 0x10]
push ecx
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push eax
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41f550
cmp dword [ebp - 0x18], 1
push 1
push 0
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
jne 0x41f4b7
call fcn.0041ee90
add esp, 0x10
mov eax, dword [ebp - 0x14]
add eax, 4
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
add edx, 4
mov ecx, dword [edx]
mov ecx, dword [ecx + 4]
add ecx, edx
mov edx, dword [ecx]
call dword [edx + 0x18]
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0
push 0
push eax
push dword [ebx + 4]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov dword [ebp - 0x20], vtable.MA::StringT_wchar_t__char_.0
mov dword [ebp - 0x1c], 0
push 0x7ffffffe
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0040a930
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 3
call fcn.0041ecc0
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], vtable.MA::StringT_wchar_t__char_.0
test ecx, ecx
je 0x41f491
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax + 8]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test eax, eax
je 0x41f54c
mov ecx, dword [eax + 4]
add eax, 4
mov ecx, dword [ecx + 8]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
xor esi, esi
jmp 0x41f555
call fcn.0041ee90
add esp, 0x10
mov eax, dword [ebp - 0x14]
add eax, 4
mov ecx, dword [eax]
mov byte [ebp - 4], 4
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
add edx, 4
mov ecx, dword [edx]
mov ecx, dword [ecx + 4]
add ecx, edx
mov edx, dword [ecx]
call dword [edx + 0x18]
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0
push 0
push eax
push dword [ebx + 4]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call eax
mov edi, dword [ebp - 0x14]
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [edi + 4]
mov esi, eax
mov ecx, dword [ecx + 4]
add ecx, 4
add ecx, edi
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [ebp + 0xc]
push eax
push esi
call fcn.0041fe60
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test eax, eax
je 0x41f549
mov ecx, dword [eax + 4]
add eax, 4
mov ecx, dword [ecx + 8]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [ebx + 0x18]
xor esi, esi
jmp 0x41f555
mov esi, 0x80004005
cmp byte [ebp - 0x28], 0
jne 0x41f571
mov ecx, dword [ebx + 4]
cmp ecx, 0xffffffff
je 0x41f571
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebx + 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8