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

Disassembly:
push 0x240
mov eax, 0x101c952
call fcn.01019f16
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], ebx
call sub.MFC42u.dll_CString::CString_1
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 4], ebx
call fcn.010147e3
test eax, eax
jne 0x1017a5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x101797d
and eax, 0xffff
or eax, 0x80070000
lea ecx, [ebp - 0x21c]
mov esi, eax
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
push 0x18f
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call sub.MFC42u.dll_CString::LoadStringW
push 0x75
lea ecx, [ebp - 0x224]
call sub.MFC42u.dll_CString::LoadStringW
cmp esi, ebx
je 0x1017a08
push 0x802
call fcn.01019a30
pop ecx
mov dword [ebp - 0x238], eax
cmp eax, ebx
je 0x10179e5
push ebx
push 0x400
push eax
push ebx
push esi
push edi
call fcn.0101499e
add esp, 0x18
push 0x1007370
lea ecx, [ebp - 0x21c]
call sub.MFC42u.dll_CString::operator_2
push dword [ebp - 0x238]
lea ecx, [ebp - 0x21c]
call sub.MFC42u.dll_CString::operator_2
jmp 0x1017a0b
push 2
pop esi
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 8], ebx
je 0x1017a27
push ebx
push dword [ebp - 0x224]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.010194b4
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], bl
call fcn.010194b4
mov ebx, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.010194b4
mov eax, ebx
call fcn.01019fa8
ret 8
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
cmp dword [edi + 0x20], ebx
je 0x1017a9b
push 4
lea eax, [ebp - 0x238]
push eax
lea ecx, [edi + 0xc]
call sub.MFC42u.dll_CString::Right
push 0x10072c0
push dword [eax]
mov dword [ebp - 0x220], 1
call esi
pop ecx
pop ecx
mov byte [ebp - 0x229], 1
test eax, eax
je 0x1017aa1
mov byte [ebp - 0x229], bl
test byte [ebp - 0x220], 1
je 0x1017ab5
lea ecx, [ebp - 0x238]
call fcn.010194b4
cmp byte [ebp - 0x229], bl
je 0x1017ac4
mov ecx, edi
call fcn.01017646
mov eax, dword [edi + 0x20]
push dword [0x1026830]
mov dword [ebp - 0x23c], eax
call fcn.010092f2
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x21c]
lea edi, [ecx + eax*2]
push 0x1007368
push edi
call esi
pop ecx
pop ecx
test eax, eax
jne 0x1017c57
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x220]
call sub.MFC42u.dll_CString::CString_1
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x220]
push eax
call fcn.01014f50
lea ecx, [ebp - 0x220]
mov esi, eax
call fcn.010194b4
cmp esi, ebx
je 0x1017b46
push 0x75
push 0x18e
mov ecx, dword [ebp - 0x224]
call fcn.01014a23
mov ebx, 0x80004005
jmp 0x1017a46
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x220], eax
cmp eax, 0xffffffff
jne 0x1017b72
push 0x75
push 0x4d8
jmp 0x1017b31
push 0xc
call sub.MFC42u.dll_operatornew
pop ecx
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x1017b93
mov ecx, eax
call fcn.01008f08
mov esi, eax
jmp 0x1017b95
xor esi, esi
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x1017bca
push dword [ebp - 0x21c]
mov ecx, esi
push dword [ebp - 0x220]
call fcn.01008df7
mov edi, eax
cmp edi, ebx
jge 0x1017bbf
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x1017bcf
mov eax, dword [ebp - 0x224]
mov dword [eax + 0x20], esi
jmp 0x1017bcf
mov edi, 0x80004005
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jge 0x1018045
push 0xc
call sub.MFC42u.dll_operatornew
pop ecx
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x1017c04
mov ecx, eax
call fcn.01008f1e
mov esi, eax
jmp 0x1017c06
xor esi, esi
mov byte [ebp - 4], bl
cmp esi, ebx
jne 0x1017c17
mov edi, 0x80004005
jmp 0x101806a
push dword [ebp - 0x21c]
mov ecx, esi
call fcn.01008e2b
mov edi, eax
cmp edi, ebx
jge 0x1017c49
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [ebp - 0x224]
push 0x75
push 0x4d8
call fcn.01014a23
jmp 0x1018041
mov eax, dword [ebp - 0x224]
mov dword [eax + 0x20], esi
jmp 0x1018041
push 0x1007360
push edi
call esi
pop ecx
pop ecx
test eax, eax
jne 0x101802a
lea ecx, [ebp - 0x230]
call sub.MFC42u.dll_CString::CString
push 0x10016f0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 5
call sub.MFC42u.dll_CString::CString_1
lea eax, [ebp - 0x220]
push eax
push 1
lea eax, [ebp - 0x230]
push eax
mov byte [ebp - 4], 6
call fcn.01013f95
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 5
call fcn.010194b4
mov eax, dword [ebp - 0x230]
cmp dword [eax - 8], ebx
je 0x1018013
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x220]
call sub.MFC42u.dll_CString::CString_1
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], 7
call fcn.0101312f
lea ecx, [ebp - 0x220]
mov esi, eax
mov byte [ebp - 4], 5
call fcn.010194b4
cmp esi, ebx
je 0x1018013
lea ecx, [ebp - 0x228]
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 8
call sub.MFC42u.dll_CString::CString
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x240]
push eax
push 1
push ebx
push 0x1007310
mov edi, 0x80000002
push edi
mov byte [ebp - 4], 9
call esi
test eax, eax
jne 0x1017e7a
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x244]
push eax
push 0x1000ffff
push 0x10072ec
push ebx
push dword [ebp - 0x240]
mov dword [ebp - 0x24c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp eax, ebx
jne 0x1017de0
xor eax, eax
cmp dword [ebp - 0x244], 1
mov word [ebp - 0x12], ax
jne 0x1017da3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.01019484
jmp 0x1017e6e
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 8
call fcn.010194b4
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.010194b4
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], bl
call fcn.010194b4
jmp 0x1017b3c
cmp eax, 2
jne 0x1017e6e
lea eax, [ebp - 0x220]
push eax
push 2
push ebx
push 0x1007310
push edi
call esi
test eax, eax
jne 0x1017e6e
push 0x10072d0
lea ecx, [ebp - 0x21c]
call sub.MFC42u.dll_CString::CString_1
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax - 8]
lea ecx, [eax + eax]
push ecx
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0xa
call sub.MFC42u.dll_CString::GetBuffer
push eax
push 1
push ebx
push 0x10072ec
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.01019490
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 9
call fcn.010194b4
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
lea eax, [ebp - 0x234]
mov ecx, esp
mov dword [ebp - 0x23c], esp
push eax
call sub.MFC42u.dll_CString::CString_2
push ecx
lea eax, [ebp - 0x230]
mov ecx, esp
mov dword [ebp - 0x238], esp
push eax
mov byte [ebp - 4], 0xb
call sub.MFC42u.dll_CString::CString_2
mov byte [ebp - 4], 9
call fcn.010138b4
cmp eax, ebx
je 0x1017f7c
push 0x10072cc
lea ecx, [ebp - 0x238]
call sub.MFC42u.dll_CString::CString_3
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x23c]
push eax
mov byte [ebp - 4], 0xc
call sub.MFC42u.dll_operator
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xd
call fcn.01019490
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0xc
call fcn.010194b4
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 9
call fcn.010194b4
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x228]
call sub.MFC42u.dll_CString::operator
mov esi, dword [ebp - 0x228]
push 0x10072c0
lea ecx, [ebp - 0x228]
call sub.MFC42u.dll_CString::Find_1
mov ecx, dword [ebp - 0x224]
inc eax
push eax
push esi
call fcn.0101791e
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 8
call fcn.010194b4
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.010194b4
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], bl
call fcn.010194b4
jmp 0x1017a46
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.01013921
mov edi, dword [ebp - 0x228]
mov eax, dword [edi - 8]
cmp eax, ebx
je 0x1017ff5
lea esi, [eax - 1]
cmp esi, ebx
je 0x1017ff5
push esi
lea ecx, [ebp - 0x228]
call fcn.0100b7d7
cmp ax, 0x2e
je 0x1017fb8
dec esi
jne 0x1017fa3
cmp esi, ebx
je 0x1017ff5
mov ecx, dword [ebp - 0x224]
inc esi
push esi
push edi
call fcn.0101791e
lea ecx, [ebp - 0x234]
mov esi, eax
mov byte [ebp - 4], 8
call fcn.010194b4
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.010194b4
lea ecx, [ebp - 0x230]
jmp 0x1017a3c
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 8
call fcn.010194b4
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.010194b4
mov ecx, dword [ebp - 0x224]
push 0x75
push 0x15e
call fcn.01014a23
jmp 0x1017dcd
mov ecx, dword [ebp - 0x224]
push 0x75
push 0x166
call fcn.01014a23
mov edi, 0x80004005
cmp edi, ebx
jl 0x101806a
mov ecx, dword [ebp - 0x23c]
mov esi, dword [ebp - 0x224]
cmp ecx, ebx
je 0x1018060
cmp ecx, dword [esi + 0x20]
je 0x1018060
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [esi + 0x20]
mov ecx, esi
call fcn.01016a70
mov ebx, edi
jmp 0x1017a46