Function at 0x1012642
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1017ba6
call sub.MSVCRT.dll__EH_prolog
sub esp, 0xb3c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x34], edi
mov eax, dword [edi + 0xa0]
mov dword [ebp - 0x10], ebx
mov esi, dword [eax + 0x40]
mov dword [ebp - 0x24], esi
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
push ebx
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0xb
push dword [edi + 0x80]
call ebx
push 0xffff0000
push 0
push 0x1101
push dword [edi + 0x80]
call ebx
push 0x10029ec
push dword [esi + 0x54]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x10126ff
lea eax, [ebp - 0x1c]
mov esi, 0x1003484
push eax
push 0x20019
push 0
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1013428
push esi
lea ecx, [ebp - 0x18]
call fcn.01016118
push 0xffff0000
and dword [ebp - 4], 0
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
lea eax, [edi + 0x60]
push eax
call fcn.01013b36
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
jmp 0x1013b28
mov eax, dword [esi + 0x6c]
cmp eax, 8
jne 0x1012876
mov esi, 0x1003484
lea eax, [ebp - 0xb48]
push esi
push 0x10047dc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
and dword [ebp - 0x94], 0
add esp, 0xc
lea eax, [ebp - 0xb48]
mov dword [ebp - 0xa8], 0xffff0000
push 0x14
mov dword [ebp - 0xa4], 0xffff0002
mov dword [ebp - 0xa0], 5
mov dword [ebp - 0x90], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
mov dword [ebp - 4], 1
je 0x10127ad
lea eax, [ebp - 0x744]
lea ecx, [ebp - 0x40]
push eax
call fcn.01016118
mov dword [ebp - 0x10], 1
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.01016118
push 3
pop esi
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], esi
call fcn.01012398
mov esi, eax
jmp 0x10127af
xor esi, esi
test byte [ebp - 0x10], 2
mov dword [ebp - 4], 2
je 0x10127c8
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
test byte [ebp - 0x10], 1
mov dword [ebp - 4], 1
je 0x10127dd
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xa8]
push eax
push 0
push 0x1100
mov dword [ebp - 0x7c], esi
push dword [edi + 0x80]
call ebx
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x744]
push dword [esi + 0x68]
push 0x1004678
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push 0x20019
lea eax, [ebp - 0x744]
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1013428
push dword [esi + 0x68]
lea ecx, [ebp - 0x18]
call fcn.01016118
push dword [ebp - 0x40]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 4
push dword [ebp - 0x1c]
push eax
lea eax, [edi + 0x60]
push eax
call fcn.01013b36
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x40]
jmp 0x1013b19
mov ecx, dword [ebp - 0x24]
push 0x10
mov edi, 0x1007410
xor edx, edx
lea esi, [ecx + 0x58]
pop ecx
mov dword [ebp - 0x40], esi
repe cmpsb byte [esi], byte es:[edi]
jne 0x1012906
cmp eax, 6
jne 0x10128ee
lea eax, [ebp - 0x1c]
mov edi, 0x100299c
push eax
push 0x20019
push edx
push edi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10128ee
push edi
lea ecx, [ebp - 0x18]
call fcn.01016118
push 0xffff0000
lea eax, [ebp - 0x18]
push dword [ebp - 0x1c]
mov dword [ebp - 4], 5
push eax
mov eax, dword [ebp - 0x34]
add eax, 0x60
push eax
call fcn.01013b36
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x34]
push 0
push 1
push 0xb
push dword [esi + 0x80]
call ebx
mov ecx, esi
jmp 0x1013438
lea eax, [ebp - 0x540]
push 0x40
push eax
push dword [ebp - 0x40]
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x540]
push 3
test eax, eax
pop esi
jne 0x101292a
and dword [ebp - 0x38], eax
jmp 0x1012959
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, esi
and al, 0xfc
call fcn.01016a50
mov eax, esp
lea ecx, [ebp - 0x540]
push edi
push ecx
push eax
call sub.MFC42.DLL_AfxW2AHelper
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x24]
and dword [ebp - 0x64], 0
push 5
mov dword [ebp - 0x78], 0xffff0000
pop ecx
mov dword [ebp - 0x74], 0xffff0002
mov dword [ebp - 0x70], ecx
mov eax, dword [eax + 0x6c]
cmp eax, 7
jne 0x1012b3e
lea eax, [ebp - 0x1c]
xor esi, esi
push eax
push 0x20019
mov edi, 0x100299c
push esi
push edi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1013425
and byte [ebp - 0x2bc], al
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2bc]
push eax
push esi
push esi
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x28], 0x204
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [ebp - 0x2bc], 0
mov dword [ebp - 0x78], 0xffff0000
je 0x10129f8
lea eax, [ebp - 0x2bc]
push eax
push edi
lea eax, [ebp - 0x4c0]
push 0x1004ac8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x1012a0e
push edi
lea eax, [ebp - 0x4c0]
push 0x10047dc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x4c0]
push 0x14
mov dword [ebp - 0x60], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x14], eax
push 6
pop esi
test eax, eax
mov dword [ebp - 4], esi
je 0x1012a71
lea eax, [ebp - 0x2bc]
lea ecx, [ebp - 0x24]
push eax
call fcn.01016118
mov dword [ebp - 0x10], 4
push edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.01016118
mov dword [ebp - 0x10], 0xc
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 8
call fcn.01012398
mov edi, eax
jmp 0x1012a73
xor edi, edi
test byte [ebp - 0x10], 8
mov dword [ebp - 4], 7
je 0x1012a8c
and dword [ebp - 0x10], 0xfffffff7
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
test byte [ebp - 0x10], 4
mov dword [ebp - 4], esi
je 0x1012a9d
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x78]
mov dword [ebp - 0x4c], edi
mov edi, dword [ebp - 0x34]
push eax
push 0
push 0x1100
push dword [edi + 0x80]
call ebx
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], eax
call esi
push dword [ebp - 0x38]
lea eax, [ebp - 0x2bc]
push 0x1001ae8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push 0x20019
lea eax, [ebp - 0x2bc]
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1013428
push dword [ebp - 0x38]
lea ecx, [ebp - 0x18]
call fcn.01016118
push dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 9
push dword [ebp - 0x1c]
push eax
lea eax, [edi + 0x60]
push eax
call fcn.01013b36
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x24]
jmp 0x1012d04
cmp eax, esi
jne 0x1012d1d
lea eax, [ebp - 0x1c]
xor edi, edi
push eax
push 0x20019
mov esi, 0x1004690
push edi
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1013425
and byte [ebp - 0x2bc], al
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2bc]
push eax
push edi
push edi
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x28], 0x204
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [ebp - 0x2bc], 0
mov dword [ebp - 0x78], 0xffff0000
je 0x1012bbe
lea eax, [ebp - 0x2bc]
push eax
push esi
lea eax, [ebp - 0x4c0]
push 0x1004ac8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x1012bd4
push esi
lea eax, [ebp - 0x4c0]
push 0x10047dc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x4c0]
push 0x14
mov dword [ebp - 0x60], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, edi
mov dword [ebp - 4], 0xa
je 0x1012c38
lea eax, [ebp - 0x2bc]
lea ecx, [ebp - 0x24]
push eax
call fcn.01016118
mov dword [ebp - 0x10], 0x10
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call fcn.01016118
mov dword [ebp - 0x10], 0x30
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 0xc
call fcn.01012398
mov esi, eax
jmp 0x1012c3a
xor esi, esi
test byte [ebp - 0x10], 0x20
mov dword [ebp - 4], 0xb
je 0x1012c53
and dword [ebp - 0x10], 0xffffffdf
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
test byte [ebp - 0x10], 0x10
mov dword [ebp - 4], 0xa
je 0x1012c68
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
mov edi, dword [ebp - 0x34]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x78]
mov dword [ebp - 0x4c], esi
push eax
push 0
push 0x1100
push dword [edi + 0x80]
call ebx
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], eax
call esi
push dword [ebp - 0x38]
lea eax, [ebp - 0x2bc]
push 0x1004abc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push 0x20019
lea eax, [ebp - 0x2bc]
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1013428
push dword [ebp - 0x38]
lea ecx, [ebp - 0x18]
call fcn.01016118
push dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0xd
push dword [ebp - 0x1c]
push eax
lea eax, [edi + 0x60]
push eax
call fcn.01013b36
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x24]
push 2
push 0x1102
push dword [edi + 0x80]
call ebx
push dword [ebp - 0x1c]
call esi
jmp 0x1013428
cmp eax, 4
je 0x1013452
cmp eax, ecx
je 0x1013452
and byte [ebp - 0x2bc], 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2bc]
mov esi, 0x1002490
push eax
push esi
push 0x80000000
mov dword [ebp - 0x44], 0x204
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x2bc]
push eax
push esi
lea eax, [ebp - 0x4c0]
push 0x1004ac8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x4c0]
mov dword [ebp - 0x60], eax
push 0x14
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x14], eax
push 0x20
pop edi
test eax, eax
mov dword [ebp - 4], edi
je 0x1012dd8
lea eax, [ebp - 0x2bc]
lea ecx, [ebp - 0x24]
push eax
call fcn.01016118
mov dword [ebp - 0x10], 0x1000
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x21
call fcn.01016118
mov dword [ebp - 0x10], 0x3000
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 0x22
call fcn.01012398
mov esi, eax
jmp 0x1012dda
xor esi, esi
test byte [ebp - 0xf], 0x20
mov dword [ebp - 4], 0x21
je 0x1012df3
and byte [ebp - 0xf], 0xdf
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
test byte [ebp - 0xf], 0x10
mov dword [ebp - 4], edi
je 0x1012e08
and byte [ebp - 0xf], 0xef
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
mov edi, dword [ebp - 0x34]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x78]
mov dword [ebp - 0x4c], esi
push eax
push 0
push 0x1100
push dword [edi + 0x80]
call ebx
push dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x4c0]
push 0x1001b18
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push 0x20019
lea eax, [ebp - 0x4c0]
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1013428
push dword [ebp - 0x38]
lea ecx, [ebp - 0x20]
call fcn.01016118
push dword [ebp - 0x18]
mov esi, edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0x23
push dword [ebp - 0x1c]
lea eax, [esi + 0x60]
mov dword [ebp - 0x24], eax
push ecx
push eax
call fcn.01013b36
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x18]
push 2
push 0x1102
push dword [esi + 0x80]
call ebx
mov esi, dword [ebp - 0x40]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0101557f
test eax, eax
je 0x101303b
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x844]
push eax
push 0x1001fa4
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0101550a
lea eax, [ebp - 0x3c]
push eax
push 0x20019
lea eax, [ebp - 0x844]
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101303b
mov esi, 0x1003484
push 0x14
mov dword [ebp - 0x78], 0xffff0000
mov dword [ebp - 0x60], esi
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x48], eax
test eax, eax
mov dword [ebp - 4], 0x24
je 0x1012f6c
lea eax, [ebp - 0x844]
lea ecx, [ebp - 0x14]
push eax
call fcn.01016118
or byte [ebp - 0xf], 0x40
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x25
call fcn.01016118
or byte [ebp - 0xf], 0x80
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 4], 0x26
call fcn.01012398
mov edi, eax
jmp 0x1012f6e
xor edi, edi
test byte [ebp - 0xf], 0x80
mov dword [ebp - 4], 0x25
je 0x1012f87
and byte [ebp - 0xf], 0x7f
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
test byte [ebp - 0xf], 0x40
mov dword [ebp - 4], 0x24
je 0x1012fa0
and byte [ebp - 0xf], 0xbf
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x34]
push 0
push 0x1100
push dword [eax + 0x80]
mov dword [ebp - 0x4c], edi
call ebx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x944]
push eax
push esi
mov esi, dword [ebp - 0x40]
push 0x1001fa4
sub esp, 0x10
mov dword [ebp - 0x2c], 0xff
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.010157d4
lea eax, [ebp - 0x944]
lea ecx, [ebp - 0x14]
push eax
call fcn.01016118
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0x27
push dword [ebp - 0x3c]
push eax
push dword [ebp - 0x24]
call fcn.01013b36
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
push 2
push 0x1102
push dword [eax + 0x80]
call ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x44]
mov esi, 0x204
push eax
lea eax, [ebp - 0x744]
push eax
push 0x1004250
push dword [ebp - 0x1c]
mov dword [ebp - 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x1013067
and byte [ebp - 0x744], 0
cmp byte [ebp - 0x744], 0
je 0x10130d6
lea eax, [ebp - 0x3c]
mov edi, 0x80000000
push eax
push 0x20019
lea eax, [ebp - 0x744]
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10130db
lea eax, [ebp - 0x744]
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp - 0x44], esi
call fcn.01016118
push 0xffff0000
lea eax, [ebp - 0x14]
push dword [ebp - 0x3c]
mov dword [ebp - 4], 0x28
push eax
push dword [ebp - 0x24]
call fcn.01013b36
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10130db
mov edi, 0x80000000
push dword [ebp - 0x38]
lea eax, [ebp - 0x2bc]
push 0x1004ab0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp - 0x38], 0
je 0x1013260
lea eax, [ebp - 0x3c]
push eax
push 0x20019
lea eax, [ebp - 0x2bc]
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1013260
and byte [ebp - 0x2bc], al
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x2bc]
mov esi, 0x1004aa4
push eax
push esi
push edi
mov dword [ebp - 0x78], 0xffff0000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x2bc]
push eax
push esi
lea eax, [ebp - 0x4c0]
push 0x1004ac8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x4c0]
mov dword [ebp - 0x60], eax
push 0x14
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x2c], eax
test eax, eax
mov dword [ebp - 4], 0x29
mov edi, 0x20000
je 0x10131c5
lea eax, [ebp - 0x2bc]
lea ecx, [ebp - 0x20]
push eax
call fcn.01016118
or byte [ebp - 0xe], 1
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x2a
call fcn.01016118
or dword [ebp - 0x10], edi
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 0x2b
call fcn.01012398
mov esi, eax
jmp 0x10131c7
xor esi, esi
test dword [ebp - 0x10], edi
mov dword [ebp - 4], 0x2a
je 0x10131df
and byte [ebp - 0xe], 0xfd
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
test byte [ebp - 0xe], 1
mov dword [ebp - 4], 0x29
je 0x10131f8
and byte [ebp - 0xe], 0xfe
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov edi, dword [ebp - 0x34]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x78]
mov dword [ebp - 0x4c], esi
push eax
push 0
push 0x1100
push dword [edi + 0x80]
call ebx
push dword [ebp - 0x38]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.01016118
push esi
lea eax, [ebp - 0x14]
push dword [ebp - 0x3c]
mov dword [ebp - 4], 0x2c
push eax
push dword [ebp - 0x24]
call fcn.01013b36
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push esi
push 2
push 0x1102
push dword [edi + 0x80]
call ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1013263
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x44]
mov esi, 0x1004690
push eax
lea eax, [ebp - 0x744]
push eax
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x44], 0x204
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x101340a
lea eax, [ebp - 0x744]
push eax
lea eax, [ebp - 0x2bc]
push 0x1004abc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push 0x20019
lea eax, [ebp - 0x2bc]
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101340a
and byte [ebp - 0x2bc], al
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2bc]
push eax
push esi
push 0x80000000
mov dword [ebp - 0x78], 0xffff0000
mov dword [ebp - 0x44], 0x204
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x2bc]
push eax
push esi
lea eax, [ebp - 0x4c0]
push 0x1004ac8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x4c0]
mov dword [ebp - 0x60], eax
push 0x14
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x2c], eax
test eax, eax
mov dword [ebp - 4], 0x2d
je 0x1013373
lea eax, [ebp - 0x2bc]
lea ecx, [ebp - 0x20]
push eax
call fcn.01016118
or byte [ebp - 0xe], 4
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x2e
call fcn.01016118
or byte [ebp - 0xe], 8
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 0x2f
call fcn.01012398
mov esi, eax
jmp 0x1013375
xor esi, esi
test byte [ebp - 0xe], 8
mov dword [ebp - 4], 0x2e
je 0x101338e
and byte [ebp - 0xe], 0xf7
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
test byte [ebp - 0xe], 4
mov dword [ebp - 4], 0x2d
je 0x10133a3
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x78]
push eax
push 0
push 0x1100
mov dword [ebp - 0x4c], esi
push dword [edi + 0x80]
call ebx
mov esi, eax
lea eax, [ebp - 0x744]
push eax
lea ecx, [ebp - 0x14]
call fcn.01016118
push esi
lea eax, [ebp - 0x14]
push dword [ebp - 0x3c]
mov dword [ebp - 4], 0x30
push eax
push dword [ebp - 0x24]
call fcn.01013b36
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push esi
push 2
push 0x1102
push dword [edi + 0x80]
call ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
push 0
push 0x1114
push dword [edi + 0x80]
call ebx
mov edi, dword [ebp - 0x34]
push 0
push 1
push 0xb
push dword [edi + 0x80]
call ebx
mov ecx, edi
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0xb54]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x1c]
mov edi, 0x1001aa0
push eax
push 0x20019
push 0
push edi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1013425
and byte [ebp - 0x2bc], al
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2bc]
push eax
xor eax, eax
push eax
push eax
push eax
mov dword [ebp - 0x28], 0x204
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x2bc]
push eax
push edi
lea eax, [ebp - 0x4c0]
push 0x1004ac8
push eax
mov dword [ebp - 0x78], 0xffff0000
call esi
add esp, 0x10
lea eax, [ebp - 0x4c0]
mov dword [ebp - 0x60], eax
push 0x14
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x2c], eax
test eax, eax
mov dword [ebp - 4], 0xe
je 0x1013522
lea eax, [ebp - 0x2bc]
lea ecx, [ebp - 0x20]
push eax
call fcn.01016118
mov dword [ebp - 0x10], 0x40
push edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xf
call fcn.01016118
mov dword [ebp - 0x10], 0xc0
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 0x10
call fcn.01012398
mov edi, eax
jmp 0x1013524
xor edi, edi
test byte [ebp - 0x10], 0x80
mov dword [ebp - 4], 0xf
je 0x101353d
and byte [ebp - 0x10], 0x7f
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
test byte [ebp - 0x10], 0x40
mov dword [ebp - 4], 0xe
je 0x1013556
and dword [ebp - 0x10], 0xffffffbf
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x78]
mov dword [ebp - 0x4c], edi
mov edi, dword [ebp - 0x34]
push eax
push 0
push 0x1100
push dword [edi + 0x80]
call ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x38]
lea eax, [ebp - 0x2bc]
push 0x1004a94
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push 0x20019
lea eax, [ebp - 0x2bc]
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1013428
push dword [ebp - 0x38]
lea ecx, [ebp - 0x14]
call fcn.01016118
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
lea eax, [edi + 0x60]
mov dword [ebp - 4], 0x11
push dword [ebp - 0x1c]
push ecx
push eax
call fcn.01013b36
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x18]
push 2
push 0x1102
push dword [edi + 0x80]
call ebx
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push eax
lea eax, [ebp - 0x2bc]
push eax
push 0x1004a84
push dword [ebp - 0x1c]
mov dword [ebp - 0x28], 0x204
call esi
test eax, eax
jne 0x10136d6
cmp byte [ebp - 0x2bc], al
je 0x10136d6
push 0x1004a78
lea ecx, [ebp - 0x48]
call fcn.01016118
lea ecx, [ebp - 0x2bc]
mov dword [ebp - 4], 0x12
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.MFC42.DLL_operator
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x13
push ecx
push 0x20019
push 0
push dword [eax]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x2c]
inc eax
mov byte [ebp - 4], 0x12
mov byte [ebp - 0x2d], al
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::CString
cmp byte [ebp - 0x2d], 0
je 0x10136d6
lea eax, [ebp - 0x2bc]
lea ecx, [ebp - 0x14]
push eax
call fcn.01016118
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0x14
push dword [ebp - 0x20]
push eax
lea eax, [edi + 0x60]
push eax
call fcn.01013b36
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x204
push eax
lea eax, [ebp - 0x2bc]
push eax
push 0x1004a64
push dword [ebp - 0x1c]
call esi
test eax, eax
je 0x1013713
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2bc]
push eax
push 0x1004a54
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x1013961
and byte [ebp - 0x2bc], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2bc]
mov esi, 0x1002490
push eax
push esi
push 0x80000000
mov dword [ebp - 0x28], 0x204
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x2bc]
push eax
push esi
lea eax, [ebp - 0x4c0]
push 0x1004ac8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x4c0]
mov dword [ebp - 0x60], eax
push 0x14
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x2c], eax
test eax, eax
mov dword [ebp - 4], 0x15
je 0x10137b9
lea eax, [ebp - 0x2bc]
lea ecx, [ebp - 0x20]
push eax
call fcn.01016118
or byte [ebp - 0xf], 1
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x16
call fcn.01016118
or byte [ebp - 0xf], 2
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 0x17
call fcn.01012398
mov dword [ebp - 0x24], eax
jmp 0x10137bd
and dword [ebp - 0x24], 0
test byte [ebp - 0xf], 2
mov dword [ebp - 4], 0x16
je 0x10137d6
and byte [ebp - 0xf], 0xfd
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
test byte [ebp - 0xf], 1
mov dword [ebp - 4], 0x15
je 0x10137ef
and byte [ebp - 0xf], 0xfe
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0x1100
push dword [edi + 0x80]
call ebx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101394f
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push eax
lea eax, [ebp - 0x2bc]
push eax
push 0x1004a64
push dword [ebp - 0x1c]
mov dword [ebp - 0x28], 0x204
call esi
test eax, eax
jne 0x10138b1
lea eax, [ebp - 0x20]
push eax
push 0x20019
lea eax, [ebp - 0x2bc]
push 0
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10138a8
lea eax, [ebp - 0x2bc]
lea ecx, [ebp - 0x14]
push eax
call fcn.01016118
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0x18
push dword [ebp - 0x20]
push eax
lea eax, [edi + 0x60]
push eax
call fcn.01013b36
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x204
push eax
lea eax, [ebp - 0x4c0]
push eax
push 0x1004a54
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x1013946
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x4c0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1013946
lea eax, [ebp - 0x20]
push eax
push 0x20019
lea eax, [ebp - 0x4c0]
push 0
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101393d
lea eax, [ebp - 0x4c0]
lea ecx, [ebp - 0x14]
push eax
call fcn.01016118
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0x19
push dword [ebp - 0x20]
push eax
lea eax, [edi + 0x60]
push eax
call fcn.01013b36
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x24]
push 2
push 0x1102
push dword [edi + 0x80]
call ebx
lea eax, [ebp - 0x28]
mov esi, 0x1004690
push eax
lea eax, [ebp - 0xb8]
push eax
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x28], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x1013b28
and byte [ebp - 0x2bc], al
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2bc]
push eax
push esi
push 0x80000000
mov dword [ebp - 0x28], 0x204
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x2bc]
push eax
push esi
lea eax, [ebp - 0x4c0]
push 0x1004ac8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x4c0]
mov dword [ebp - 0x60], eax
push 0x14
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x2c], eax
test eax, eax
mov dword [ebp - 4], 0x1a
je 0x1013a29
lea eax, [ebp - 0x2bc]
lea ecx, [ebp - 0x20]
push eax
call fcn.01016118
or byte [ebp - 0xf], 4
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x1b
call fcn.01016118
or byte [ebp - 0xf], 8
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 0x1c
call fcn.01012398
mov esi, eax
jmp 0x1013a2b
xor esi, esi
test byte [ebp - 0xf], 8
mov dword [ebp - 4], 0x1b
je 0x1013a44
and byte [ebp - 0xf], 0xf7
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
test byte [ebp - 0xf], 4
mov dword [ebp - 4], 0x1a
je 0x1013a59
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x78]
push eax
push 0
push 0x1100
mov dword [ebp - 0x4c], esi
push dword [edi + 0x80]
call ebx
push 0x1004a48
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.01016118
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 0x1d
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.MFC42.DLL_operator
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x1e
push ecx
push 0x20019
push 0
push dword [eax]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x2c]
inc eax
mov byte [ebp - 4], 0x1d
mov byte [ebp - 0x2d], al
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::CString
cmp byte [ebp - 0x2d], 0
je 0x1013b18
lea eax, [ebp - 0xb8]
lea ecx, [ebp - 0x14]
push eax
call fcn.01016118
push esi
lea eax, [ebp - 0x14]
push dword [ebp - 0x18]
mov dword [ebp - 4], 0x1f
push eax
lea eax, [edi + 0x60]
push eax
call fcn.01013b36
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 2
push 0x1102
push dword [edi + 0x80]
call ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1013428