Function at 0x41b8d5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
mov eax, 0x421356
call fcn.0041f3e2
xor ebx, ebx
push 0x7f02
push ebx
mov dword [ebp - 0x24], ebx
mov edi, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41b938
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
jmp 0x41bbc6
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
mov ebx, dword [ebp + 0x10]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x41b967
cmp esi, 0x7a
je 0x41b967
cmp esi, 2
je 0x41b970
jmp 0x41baa1
cmp esi, 2
jne 0x41ba8f
push 0x14
call fcn.0041de06
pop ecx
mov dword [ebp - 0x20], eax
and dword [ebp - 4], 0
test eax, eax
je 0x41b98e
mov ecx, eax
call fcn.0041c5b7
mov edi, eax
jmp 0x41b990
xor edi, edi
or dword [ebp - 4], 0xffffffff
test edi, edi
jne 0x41b9c4
push 0x4022d8
lea ecx, [ebp - 0x14]
call sub.MFC42u.dll_CString::CString_1
mov dword [ebp - 4], 1
push 8
lea eax, [ebp - 0x14]
push eax
call fcn.0041d91d
lea ecx, [ebp - 0x14]
call sub.MFC42u.dll_CString::CString
jmp 0x41ba9f
push 0
mov ecx, edi
call fcn.0041cdeb
mov esi, eax
mov ecx, edi
test esi, esi
jns 0x41b9f9
call fcn.0041c5ca
push edi
call fcn.0041de2f
lea ecx, [ebp - 0x14]
mov dword [esp], 0x402318
call sub.MFC42u.dll_CString::CString_1
mov dword [ebp - 4], 2
push esi
jmp 0x41b9ae
xor esi, esi
inc esi
push esi
push 0x402368
call fcn.0041c7bb
push 0x403428
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41ba27
push 0x403eec
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41ba41
push esi
push 0x403f10
mov ecx, edi
call fcn.0041c7bb
push esi
push 0x403f30
mov ecx, edi
call fcn.0041c7bb
push 0x403214
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41ba61
push 0x4022b0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41ba75
lea eax, [ebp - 0x1c]
push eax
call fcn.0041c8a3
push esi
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.0041c76c
mov ebx, dword [edi]
push 0x2c
call fcn.0041de06
mov dword [ebp - 0x20], eax
pop ecx
test eax, eax
je 0x41bae2
mov ecx, eax
call fcn.0041b830
jmp 0x41bae4
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x41bab1
xor esi, esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41bbc6
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41ba77
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x41b931
xor eax, eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41bb88
cmp dword [0x4239d4], 0
je 0x41bb74
mov esi, dword [eax]
lea ecx, [ebp - 0x20]
and dword [ebp - 0x20], 0
push ecx
push 0x405ef0
mov ecx, dword [esi]
push eax
call dword [0x42486c]
call dword [esi]
test eax, eax
jne 0x41bb71
push dword [ebp + 0x20]
mov ecx, dword [ebp - 0x14]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
mov esi, dword [ecx]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push ebx
push ecx
mov ecx, dword [esi + 0x2c]
call dword [0x42486c]
call dword [esi + 0x2c]
call fcn.0040b421
test eax, eax
je 0x41bb47
mov eax, dword [eax + 0x20]
push dword [ebp - 0x20]
mov esi, dword [0x4239d4]
mov ecx, esi
push eax
call dword [0x42486c]
call esi
mov ecx, dword [ebp - 0x20]
push ecx
mov dword [ebp - 0x28], eax
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x42486c]
call esi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push 1
mov esi, dword [eax + 0x28]
mov ecx, esi
call dword [0x42486c]
mov ecx, dword [ebp - 0x14]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
test edi, edi
je 0x41bbb3
cmp dword [edi], 0
je 0x41bba5
and dword [edi], 0
mov ecx, edi
call fcn.0041c5ca
push edi
call fcn.0041de2f
pop ecx
cmp dword [ebp - 0x1c], 0
je 0x41bbc3
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 0x28]
call fcn.0041f3b0
ret 0x1c