Function at 0x10241cb
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1036a6e
call fcn.01034e28
sub esp, 0x40
mov eax, dword [0x103e6bc]
push ebx
push esi
push edi
push 4
mov dword [ebp - 0x10], eax
mov ebx, ecx
call sub.MFC42u.DLL_CWinApp::LoadStdProfileSettings
xor edi, edi
push edi
push str.NoStretching
mov esi, str.View
push esi
mov ecx, ebx
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
xor ecx, ecx
cmp eax, edi
sete cl
push edi
push str.ShowThumbnail
push esi
mov dword [0x103d6f0], ecx
mov ecx, ebx
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
push edi
push str.ShowAllFiles
push esi
mov ecx, ebx
mov dword [ebx + 0x128], eax
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
push edi
push str.BMPWidth
push esi
mov ecx, ebx
mov dword [0x103ee00], eax
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
push edi
push str.BMPHeight
push esi
mov ecx, ebx
mov dword [ebp - 0x34], eax
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
cmp dword [ebp - 0x34], edi
je 0x102425d
cmp eax, edi
jne 0x1024262
mov dword [ebp - 0x34], edi
xor eax, eax
mov ecx, dword [ebp - 0x34]
mov dword [ebx + 0x200], eax
lea eax, [ebp - 0x3c]
push eax
push esi
mov dword [ebx + 0x1fc], ecx
call fcn.010240f4
cmp dword [ebp - 0x3c], edi
je 0x10242d4
lea ecx, [ebp - 0x38]
push ecx
lea eax, [ebx + 0x1d0]
push eax
lea eax, [ebp - 0x34]
push eax
push edi
push str.WindowPlacement
push dword [ebp - 0x3c]
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x38], 0x2c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10242bc
cmp dword [ebp - 0x34], 3
jne 0x10242bc
cmp dword [ebp - 0x38], 0x2c
je 0x10242cb
push 0xb
xor eax, eax
pop ecx
lea edi, [ebx + 0x1d0]
rep stosd dword es:[edi], eax
xor edi, edi
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push str.ThumbXPos
push esi
mov ecx, ebx
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
push edi
push str.ThumbYPos
push esi
mov ecx, ebx
mov dword [ebp - 0x34], eax
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
push edi
push str.ThumbWidth
push esi
mov ecx, ebx
mov dword [ebp - 0x38], eax
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
push edi
push str.ThumbHeight
push esi
mov ecx, ebx
mov dword [ebp - 0x40], eax
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
cmp dword [ebp - 0x34], edi
je 0x102436b
cmp dword [ebp - 0x38], edi
je 0x102436b
mov ecx, dword [ebp - 0x40]
cmp ecx, edi
je 0x102436b
cmp eax, edi
je 0x102436b
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x38]
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
mov dword [ebp - 0x4c], ecx
push eax
mov ecx, ebx
call fcn.0101f14c
push dword [ebp - 0x48]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x4c]
push dword [eax + 4]
push dword [eax]
call fcn.01010496
lea edi, [ebx + 0x198]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, str.View
xor edi, edi
push edi
push str.UnitSetting
push esi
mov ecx, ebx
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
push 1
push str.ShowTextTool
mov edi, str.Text
push edi
mov ecx, ebx
mov dword [ebx + 0x174], eax
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
push 0
push str.PointSize
push edi
mov ecx, ebx
mov dword [ebx + 0x12c], eax
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
push 0
push str.Bold
push edi
mov ecx, ebx
mov dword [ebx + 0x204], eax
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
push 0
push str.Underline
push edi
mov ecx, ebx
mov dword [ebx + 0x210], eax
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
push 0
push str.Italic
push edi
mov ecx, ebx
mov dword [ebx + 0x214], eax
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
push 0xffffffffffffffff
push str.VerticalEdit
push edi
mov ecx, ebx
mov dword [ebx + 0x218], eax
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
push 0
push str.PositionX
push edi
mov ecx, ebx
mov dword [ebx + 0x21c], eax
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
push 0
push str.PositionY
push edi
mov ecx, ebx
mov dword [ebx + 0x208], eax
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
push 0
push str.TypeFaceName
mov dword [ebx + 0x20c], eax
push edi
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call sub.MFC42u.DLL_CWinApp::GetProfileStringW
and dword [ebp - 4], 0
push eax
lea ecx, [ebx + 0x224]
call sub.MFC42u.DLL_CString::operator
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call sub.MFC42u.DLL_CString::CString
push 0xffffffffffffffff
push str.CharSet
push edi
mov ecx, ebx
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
cmp eax, 0xffffffff
mov dword [ebx + 0x228], eax
jne 0x1024495
push 2
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x102448f
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x228], eax
push 0
push str.TextPen
push edi
mov ecx, ebx
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
push 0
push str.SnapToGrid
push esi
mov ecx, ebx
mov dword [ebx + 0x220], eax
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
push 1
push str.GridExtent
push esi
mov ecx, ebx
mov dword [ebx + 0x22c], eax
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
push 0x40
mov dword [ebx + 0x230], eax
call sub.MFC42u.DLL_operatornew
test eax, eax
pop ecx
mov dword [ebx + 0x178], eax
je 0x1024536
push 0
push str.NumberOfColors
mov edi, str.Colors
push edi
mov ecx, ebx
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
xor esi, esi
test eax, eax
mov dword [ebp - 0x40], eax
jle 0x1024530
push 0xa
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.msvcrt.dll__itow]
add esp, 0xc
push 0
lea eax, [ebp - 0x20]
push eax
push edi
mov ecx, ebx
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
mov ecx, dword [ebx + 0x178]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0x40]
jl 0x1024503
mov dword [ebx + 0x17c], esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01032f6b
leave
ret