Function at 0x100830a
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1016bf9
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x580
push ebx
push esi
push edi
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
push 4
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::LoadStringA
cmp dword [ebp + 0xc], 1
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x10083e9
lea eax, [ebp - 0x74]
push 0x40
push eax
push 0x1001890
mov dword [ebp + 0xc], 0x80
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x74]
test eax, eax
je 0x1008386
lea eax, [ebp - 0x74]
push eax
call edi
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.01016a50
mov eax, esp
lea ecx, [ebp - 0x74]
push esi
push ecx
push eax
call sub.MFC42.DLL_AfxW2AHelper
push eax
lea eax, [ebp - 0x108]
push 0x1001ae8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x384]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x10083e9
push ebx
push 0x1001ae0
push dword [ebp - 0x1c]
mov ecx, 0x101b710
call sub.MFC42.DLL_CWinApp::GetProfileIntA
cmp eax, 0x36
jl 0x10083e9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
jmp 0x1008771
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x58c]
push 0x208
push eax
push ebx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x58c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
inc eax
pop ecx
push 0x1001ad0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x58c]
lea ecx, [ebp - 0x20]
push eax
call fcn.01016118
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov byte [ebp - 4], 3
mov dword [ebp + 0xc], ebx
call esi
mov ebx, eax
cmp ebx, 0x20
ja 0x1008530
push 0x12
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::LoadStringA
push 0x13
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::LoadStringA
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::operator
push 0x15
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::LoadStringA
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::operator
push 0
push 4
push dword [ebp - 0x10]
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 6
jne 0x10085a6
push dword [ebp + 8]
lea ecx, [ebp - 0x304]
push 0x101b020
push 0x1804
push 0
push 0x1001ac0
push 1
call sub.MFC42.DLL_CFileDialog::CFileDialog
lea ecx, [ebp - 0x304]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 1
jne 0x1008588
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x304]
push eax
call sub.MFC42.DLL_CFileDialog::GetPathName
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x304]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CDialog::CDialog
push dword [ebp - 0x20]
jmp 0x1008451
push 0x1001aac
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
cmp eax, esi
je 0x1008555
call eax
cmp eax, esi
jge 0x100854c
push 0x16
jmp 0x1008557
mov dword [ebp + 0xc], 1
jmp 0x100857f
push 0x14
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::LoadStringA
push 0x13
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::LoadStringA
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::operator
push esi
push esi
push dword [ebp - 0x10]
call sub.MFC42.DLL_AfxMessageBox
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10085a6
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x304]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CDialog::CDialog
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
push 0x1001aa0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1008724
mov ebx, dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x88]
push 0x31
push eax
push 0x10073e0
call ebx
lea eax, [ebp - 0x88]
test eax, eax
je 0x1008612
lea eax, [ebp - 0x88]
push eax
call edi
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.01016a50
mov eax, esp
lea ecx, [ebp - 0x88]
push esi
push ecx
push eax
call sub.MFC42.DLL_AfxW2AHelper
push 0x1001a90
push 0
push eax
push dword [ebp - 0x18]
call fcn.010155c2
lea eax, [ebp - 0x88]
push 0x31
push eax
push 0x10073d0
call ebx
lea eax, [ebp - 0x88]
test eax, eax
je 0x1008665
lea eax, [ebp - 0x88]
push eax
call edi
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.01016a50
mov eax, esp
lea ecx, [ebp - 0x88]
push esi
push ecx
push eax
call sub.MFC42.DLL_AfxW2AHelper
push 0x1001a80
push 0
push eax
push dword [ebp - 0x18]
call fcn.010155c2
lea eax, [ebp - 0x88]
push 0x31
push eax
push 0x10073c0
call ebx
lea eax, [ebp - 0x88]
test eax, eax
je 0x10086b8
lea eax, [ebp - 0x88]
push eax
call edi
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.01016a50
mov eax, esp
lea ecx, [ebp - 0x88]
push esi
push ecx
push eax
call sub.MFC42.DLL_AfxW2AHelper
push 0x1001a74
push 0
push eax
push dword [ebp - 0x18]
call fcn.010155c2
lea eax, [ebp - 0x88]
push 0x31
push eax
push 0x10073b0
call ebx
lea eax, [ebp - 0x88]
test eax, eax
je 0x100870b
lea eax, [ebp - 0x88]
push eax
call edi
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.01016a50
mov eax, esp
lea ecx, [ebp - 0x88]
push esi
push ecx
push eax
call sub.MFC42.DLL_AfxW2AHelper
push 0x1001a68
push 0
push eax
push dword [ebp - 0x18]
call fcn.010155c2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0xc], 1
jne 0x100873e
push 0x36
push 0x1001ae0
push dword [ebp - 0x1c]
mov ecx, 0x101b710
call sub.MFC42.DLL_CWinApp::WriteProfileInt
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x598]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8