Function at 0x41c4ea
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x23c
mov eax, 0x424256
call fcn.0042193f
mov edi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x248]
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x234], 0
push ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x23c], eax
call dword [sym.imp.MFC42u.dll_CString::CString_1]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.0041b9cc
test eax, eax
jne 0x41c60d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41c54d
movzx esi, si
or esi, 0x80070000
lea ecx, [ebp - 0x224]
call dword [0x42e21c]
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call dword [0x42e21c]
push 0x18f
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
call dword [sym.imp.MFC42u.dll_CString::LoadStringW]
push 0x75
lea ecx, [ebp - 0x234]
call dword [sym.imp.MFC42u.dll_CString::LoadStringW]
test esi, esi
je 0x41c5d5
push 0x802
call fcn.004210e7
mov ebx, eax
pop ecx
test ebx, ebx
je 0x41c5b5
push 0
push 0x400
push ebx
push 0
push esi
push edi
call fcn.0041cd1b
add esp, 0x18
push 0x408240
lea ecx, [ebp - 0x224]
call dword [0x42e318]
push ebx
lea ecx, [ebp - 0x224]
call dword [0x42e318]
jmp 0x41c5d8
push 2
pop esi
mov eax, dword [ebp - 0x224]
cmp dword [eax - 8], 0
je 0x41c5f6
push 0
push dword [ebp - 0x234]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x234]
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x224]
jmp 0x41cbed
cmp dword [edi + 0x20], 0
je 0x41c649
push 4
lea eax, [ebp - 0x238]
push eax
lea ecx, [edi + 0xc]
call dword [sym.imp.MFC42u.dll_CString::Right]
mov dword [ebp - 0x234], 1
push 0x408248
push dword [eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
mov byte [ebp - 0x225], 1
pop ecx
pop ecx
test eax, eax
je 0x41c650
mov byte [ebp - 0x225], 0
test byte [ebp - 0x234], 1
je 0x41c665
lea ecx, [ebp - 0x238]
call dword [sym.imp.MFC42u.dll_CString::CString]
cmp byte [ebp - 0x225], 0
je 0x41c675
mov ecx, edi
call fcn.0041cc86
mov eax, dword [edi + 0x20]
mov esi, dword [0x42b748]
mov dword [ebp - 0x240], eax
call dword [sym.imp.MFC42u.dll_AfxGetModuleState]
push 0x408254
mov dword [eax + 0xc], esi
mov eax, dword [ebp - 0x23c]
lea esi, [ebx + eax*2]
push esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x41c84f
push ebx
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC42u.dll_CString::CString_1]
lea eax, [ebp - 0x21c]
push eax
call fcn.0041dc5c
lea ecx, [ebp - 0x21c]
mov esi, eax
call dword [sym.imp.MFC42u.dll_CString::CString]
test esi, esi
je 0x41c6e9
push ecx
push 0x18e
mov ecx, edi
call fcn.0041cd9c
jmp 0x41c7de
xor eax, eax
push eax
push eax
push 3
push eax
push 1
push SysReAllocStringLen
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x23c], esi
cmp esi, 0xffffffff
jne 0x41c713
push ecx
push 0x4d8
jmp 0x41c6dd
push 0xc
call dword [sym.imp.MFC42u.dll_operatornew]
mov ebx, eax
mov dword [ebp - 0x244], ebx
pop ecx
test ebx, ebx
je 0x41c738
and dword [ebx + 4], 0
and dword [ebx + 8], 0
mov dword [ebx], 0x401038
jmp 0x41c73a
xor ebx, ebx
test ebx, ebx
je 0x41c794
push dword [ebp - 0x224]
and dword [ebp - 0x21c], 0
lea edx, [ebp - 0x21c]
mov ecx, esi
call fcn.00412fc6
mov esi, eax
mov dword [ebp - 0x220], esi
test esi, esi
js 0x41c775
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x41c771
mov dword [ebx + 4], eax
test esi, esi
jns 0x41c78f
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x42e58c]
mov ecx, ebx
call esi
mov esi, dword [ebp - 0x220]
jmp 0x41c79f
mov dword [edi + 0x20], ebx
jmp 0x41c79f
mov esi, 0x80004005
mov dword [ebp - 0x220], esi
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jns 0x41cc3f
push 0xc
call dword [sym.imp.MFC42u.dll_operatornew]
mov ebx, eax
mov dword [ebp - 0x244], ebx
pop ecx
test ebx, ebx
je 0x41c7d8
and dword [ebx + 4], 0
and dword [ebx + 8], 0
mov dword [ebx], 0x40102c
jmp 0x41c7da
xor ebx, ebx
test ebx, ebx
jne 0x41c7e8
mov esi, 0x80004005
jmp 0x41cc70
mov edx, dword [ebp - 0x224]
lea ecx, [ebp - 0x21c]
and dword [ebp - 0x21c], 0
call fcn.00411f9a
mov esi, eax
mov dword [ebp - 0x220], esi
test esi, esi
js 0x41c81d
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x41c819
mov dword [ebx + 4], eax
test esi, esi
jns 0x41c847
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x42e58c]
mov ecx, ebx
call esi
push ecx
push 0x4d8
mov ecx, edi
call fcn.0041cd9c
mov esi, dword [ebp - 0x220]
jmp 0x41cc3b
mov dword [edi + 0x20], ebx
jmp 0x41cc3b
push 0x40825c
push esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x41cc23
lea ecx, [ebp - 0x230]
call dword [0x42e21c]
push 0x4021f0
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call dword [sym.imp.MFC42u.dll_CString::CString_1]
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x230]
call fcn.0041b3ad
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call dword [sym.imp.MFC42u.dll_CString::CString]
mov eax, dword [ebp - 0x230]
cmp dword [eax - 8], 0
je 0x41cc11
push ebx
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC42u.dll_CString::CString_1]
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 5
push eax
mov ecx, 0x42cca0
call dword [0x42e224]
xor ebx, ebx
push ebx
push 0x41a950
push ebx
push dword [ebp - 0x21c]
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
neg eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x21c]
sbb esi, esi
call dword [sym.imp.MFC42u.dll_CString::CString]
neg esi
je 0x41cc11
lea ecx, [ebp - 0x22c]
call dword [0x42e21c]
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 6
call dword [0x42e21c]
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 7
push eax
push 1
push ebx
mov esi, 0x408268
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41ca89
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x244]
push eax
push 0x1000ffff
push 0x4082b8
push ebx
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x41c9e7
cmp dword [ebp - 0x244], 1
mov word [ebp - 0x12], ax
jne 0x41c9b2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call dword [0x42e228]
jmp 0x41ca7d
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x22c]
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x230]
call dword [sym.imp.MFC42u.dll_CString::CString]
jmp 0x41c7de
cmp eax, 2
jne 0x41ca7d
lea eax, [ebp - 0x234]
push eax
push 2
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41ca7d
push 0x4082dc
lea ecx, [ebp - 0x224]
call dword [sym.imp.MFC42u.dll_CString::CString_1]
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax - 8]
lea eax, [ecx + ecx]
push eax
push ecx
lea ecx, [ebp - 0x224]
call dword [sym.imp.MFC42u.dll_CString::GetBuffer]
push eax
push 1
push ebx
push 0x4082b8
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x220]
call dword [0x42e224]
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 7
call dword [sym.imp.MFC42u.dll_CString::CString]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
lea eax, [ebp - 0x220]
mov dword [ebp - 0x240], esp
mov ecx, esp
push eax
call dword [sym.imp.MFC42u.dll_CString::CString_2]
push ecx
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 9
mov ecx, esp
push eax
call dword [sym.imp.MFC42u.dll_CString::CString_2]
mov byte [ebp - 4], 7
call fcn.0041a9d4
test eax, eax
je 0x41cb80
push 0x4082f8
lea ecx, [ebp - 0x238]
call dword [sym.imp.MFC42u.dll_CString::CString_3]
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.MFC42u.dll_operator]
push eax
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0xb
call dword [0x42e224]
lea ecx, [ebp - 0x240]
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 7
call dword [sym.imp.MFC42u.dll_CString::CString]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x22c]
call dword [sym.imp.MFC42u.dll_CString::operator_1]
mov esi, dword [ebp - 0x22c]
lea ecx, [ebp - 0x22c]
push 0x408248
call dword [sym.imp.MFC42u.dll_CString::Find_1]
inc eax
mov ecx, edi
push eax
push esi
call fcn.0041c4ea
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x22c]
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x230]
call dword [sym.imp.MFC42u.dll_CString::CString]
mov esi, ebx
jmp 0x41cc70
lea edx, [ebp - 0x22c]
lea ecx, [ebp - 0x230]
call fcn.0041aa32
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x41cbf5
sub ecx, 1
je 0x41cbf5
test ecx, ecx
js 0x41cbb2
cmp ecx, dword [eax - 8]
jge 0x41cbb2
movzx edx, word [eax + ecx*2]
jmp 0x41cbb4
mov edx, ebx
cmp dx, 0x2e
je 0x41cbbf
sub ecx, 1
jne 0x41cba3
test ecx, ecx
je 0x41cbf5
inc ecx
push ecx
push eax
mov ecx, edi
call fcn.0041c4ea
lea ecx, [ebp - 0x220]
mov esi, eax
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x22c]
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x230]
call dword [sym.imp.MFC42u.dll_CString::CString]
jmp 0x41cc70
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 3
call dword [sym.imp.MFC42u.dll_CString::CString]
push ecx
push 0x15e
mov ecx, edi
call fcn.0041cd9c
jmp 0x41c9d6
push ecx
push 0x166
mov ecx, edi
call fcn.0041cd9c
mov esi, 0x80004005
mov dword [ebp - 0x220], esi
test esi, esi
js 0x41cc70
mov ebx, dword [ebp - 0x240]
test ebx, ebx
je 0x41cc60
cmp ebx, dword [edi + 0x20]
je 0x41cc60
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x42e58c]
mov ecx, ebx
call esi
push dword [edi + 0x20]
mov ecx, edi
call fcn.0041d669
mov esi, dword [ebp - 0x220]
lea ecx, [ebp - 0x248]
call dword [sym.imp.MFC42u.dll_CString::CString]
mov eax, esi
call fcn.0042190c
ret 8