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

Disassembly:
push 0x240
mov eax, 0x101c944
call fcn.01019f0c
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.010147f3
test eax, eax
jne 0x1017a6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x101798d
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 0x1017a18
push 0x802
call fcn.01019a26
pop ecx
mov dword [ebp - 0x238], eax
cmp eax, ebx
je 0x10179f5
push ebx
push 0x400
push eax
push ebx
push esi
push edi
call fcn.010149ae
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 0x1017a1b
push 2
pop esi
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 8], ebx
je 0x1017a37
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.010194aa
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], bl
call fcn.010194aa
mov ebx, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.010194aa
mov eax, ebx
call fcn.01019f9e
ret 8
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
cmp dword [edi + 0x20], ebx
je 0x1017aab
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 0x1017ab1
mov byte [ebp - 0x229], bl
test byte [ebp - 0x220], 1
je 0x1017ac5
lea ecx, [ebp - 0x238]
call fcn.010194aa
cmp byte [ebp - 0x229], bl
je 0x1017ad4
mov ecx, edi
call fcn.01017656
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 0x1017c67
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.01014f60
lea ecx, [ebp - 0x220]
mov esi, eax
call fcn.010194aa
cmp esi, ebx
je 0x1017b56
push 0x75
push 0x18e
mov ecx, dword [ebp - 0x224]
call fcn.01014a33
mov ebx, 0x80004005
jmp 0x1017a56
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 0x1017b82
push 0x75
push 0x4d8
jmp 0x1017b41
push 0xc
call sub.MFC42u.dll_operatornew
pop ecx
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x1017ba3
mov ecx, eax
call fcn.01008f08
mov esi, eax
jmp 0x1017ba5
xor esi, esi
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x1017bda
push dword [ebp - 0x21c]
mov ecx, esi
push dword [ebp - 0x220]
call fcn.01008df7
mov edi, eax
cmp edi, ebx
jge 0x1017bcf
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x1017bdf
mov eax, dword [ebp - 0x224]
mov dword [eax + 0x20], esi
jmp 0x1017bdf
mov edi, 0x80004005
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jge 0x1018055
push 0xc
call sub.MFC42u.dll_operatornew
pop ecx
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x1017c14
mov ecx, eax
call fcn.01008f1e
mov esi, eax
jmp 0x1017c16
xor esi, esi
mov byte [ebp - 4], bl
cmp esi, ebx
jne 0x1017c27
mov edi, 0x80004005
jmp 0x101807a
push dword [ebp - 0x21c]
mov ecx, esi
call fcn.01008e2b
mov edi, eax
cmp edi, ebx
jge 0x1017c59
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [ebp - 0x224]
push 0x75
push 0x4d8
call fcn.01014a33
jmp 0x1018051
mov eax, dword [ebp - 0x224]
mov dword [eax + 0x20], esi
jmp 0x1018051
push 0x1007360
push edi
call esi
pop ecx
pop ecx
test eax, eax
jne 0x101803a
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.01013fa5
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 5
call fcn.010194aa
mov eax, dword [ebp - 0x230]
cmp dword [eax - 8], ebx
je 0x1018023
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.0101313f
lea ecx, [ebp - 0x220]
mov esi, eax
mov byte [ebp - 4], 5
call fcn.010194aa
cmp esi, ebx
je 0x1018023
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 0x1017e8a
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 0x1017df0
xor eax, eax
cmp dword [ebp - 0x244], 1
mov word [ebp - 0x12], ax
jne 0x1017db3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.0101947a
jmp 0x1017e7e
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 8
call fcn.010194aa
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.010194aa
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], bl
call fcn.010194aa
jmp 0x1017b4c
cmp eax, 2
jne 0x1017e7e
lea eax, [ebp - 0x220]
push eax
push 2
push ebx
push 0x1007310
push edi
call esi
test eax, eax
jne 0x1017e7e
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.01019486
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 9
call fcn.010194aa
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.010138c4
cmp eax, ebx
je 0x1017f8c
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.01019486
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0xc
call fcn.010194aa
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 9
call fcn.010194aa
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.0101792e
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 8
call fcn.010194aa
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.010194aa
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], bl
call fcn.010194aa
jmp 0x1017a56
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.01013931
mov edi, dword [ebp - 0x228]
mov eax, dword [edi - 8]
cmp eax, ebx
je 0x1018005
lea esi, [eax - 1]
cmp esi, ebx
je 0x1018005
push esi
lea ecx, [ebp - 0x228]
call fcn.0100b7e8
cmp ax, 0x2e
je 0x1017fc8
dec esi
jne 0x1017fb3
cmp esi, ebx
je 0x1018005
mov ecx, dword [ebp - 0x224]
inc esi
push esi
push edi
call fcn.0101792e
lea ecx, [ebp - 0x234]
mov esi, eax
mov byte [ebp - 4], 8
call fcn.010194aa
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.010194aa
lea ecx, [ebp - 0x230]
jmp 0x1017a4c
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 8
call fcn.010194aa
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.010194aa
mov ecx, dword [ebp - 0x224]
push 0x75
push 0x15e
call fcn.01014a33
jmp 0x1017ddd
mov ecx, dword [ebp - 0x224]
push 0x75
push 0x166
call fcn.01014a33
mov edi, 0x80004005
cmp edi, ebx
jl 0x101807a
mov ecx, dword [ebp - 0x23c]
mov esi, dword [ebp - 0x224]
cmp ecx, ebx
je 0x1018070
cmp ecx, dword [esi + 0x20]
je 0x1018070
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [esi + 0x20]
mov ecx, esi
call fcn.01016a80
mov ebx, edi
jmp 0x1017a56