Function at 0x1001937
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x100290a
call fcn.010026b8
push ecx
push 8
call sub.MFC42u.dll_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x100172f
call sub.MFC42u.dll_CException::CException
jmp 0x1001731
xor eax, eax
or dword [ebp - 4], 0xffffffff
test eax, eax
mov dword [0x1004178], eax
jne 0x1001743
jmp sub.MFC42u.dll_AfxThrowMemoryException
mov dword [ebp - 0x10], eax
push 0x1002ae4
lea eax, [ebp - 0x10]
push eax
call sub.msvcrt.dll__CxxThrowException
int3
mov eax, 0x10029a4
call fcn.010026b8
sub esp, 0x43c
mov eax, dword [0x1004100]
push ebx
mov ebx, ecx
mov ecx, dword [ebx]
push esi
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x430], ebx
call sub.MFC42u.dll_CString::Empty
mov esi, dword [sym.imp.msvcrt.dll__waccess]
push 4
mov edi, 0x1001210
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1001996
mov ecx, dword [ebx]
push edi
call fcn.01002340
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01001f44
leave
ret
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push 0
push 0x10012b0
mov ebx, 0x80000002
push ebx
call edi
test eax, eax
jne 0x1001a37
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x438]
push eax
push 0
push 0x100143c
push dword [ebp - 0x42c]
mov dword [ebp - 0x428], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001a2b
and word [ebp - 0x14], ax
lea eax, [ebp - 0x21c]
push 4
push eax
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1001a2b
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x430]
mov ecx, dword [eax]
call fcn.01002340
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100197f
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push 0
push 0x1001250
push ebx
call edi
xor edi, edi
test eax, eax
jne 0x1001b8c
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x448]
push eax
push edi
push 0x100122c
push dword [ebp - 0x42c]
mov dword [ebp - 0x440], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001b80
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x428]
mov word [ebp - 0x14], di
call sub.MFC42u.dll_CString::CString_1
push 0x10013f0
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], edi
call sub.MFC42u.dll_CString::operator
push 4
push dword [ebp - 0x428]
call esi
test eax, eax
pop ecx
pop ecx
je 0x1001b46
push 0xa
lea ecx, [ebp - 0x428]
call sub.MFC42u.dll_CString::LoadStringW
test eax, eax
je 0x1001b71
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x438]
call sub.MFC42u.dll_CString::CString_1
lea ecx, [ebp - 0x428]
push ecx
push eax
lea eax, [ebp - 0x444]
push eax
mov byte [ebp - 4], 1
call sub.MFC42u.dll_operator
push eax
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 2
call sub.MFC42u.dll_CString::operator_1
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0
call sub.MFC42u.dll_CString::CString
push 4
push dword [ebp - 0x428]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1001b71
lea eax, [ebp - 0x428]
push eax
mov eax, dword [ebp - 0x430]
mov ecx, dword [eax]
call sub.MFC42u.dll_CString::operator_1
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x428]
jmp 0x1001bf6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call sub.MFC42u.dll_CString::CString
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x434]
call fcn.0100234c
push 0xb
lea ecx, [ebp - 0x434]
mov dword [ebp - 4], 3
call sub.MFC42u.dll_CString::LoadStringW
test eax, eax
je 0x1001c04
push 0x104
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x434]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1001c04
lea eax, [ebp - 0x424]
push 4
push eax
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1001c04
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 0x430]
mov ecx, dword [eax]
call fcn.01002340
lea ecx, [ebp - 0x434]
or dword [ebp - 4], 0xffffffff
call sub.MFC42u.dll_CString::CString
jmp 0x100197f
lea ecx, [ebp - 0x43c]
call fcn.0100234c
push 8
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 4
call sub.MFC42u.dll_CString::LoadStringW
push edi
push edi
push dword [ebp - 0x43c]
call sub.MFC42u.dll_AfxMessageBox
jmp 0x1001708