Function at 0x404da0
Capabilities:
Get number of processors
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40fee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x41646c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
push 0x41646c
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], 0
call sub.MFC42.DLL_CString::CString_1
push 0x41b
mov ecx, esi
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CWnd::GetDlgItem
push 0x42c
mov ecx, esi
mov edi, eax
call sub.MFC42.DLL_CWnd::GetDlgItem
push 0x427
mov ecx, esi
mov ebp, eax
call sub.MFC42.DLL_CWnd::GetDlgItem
push 0x428
mov ecx, esi
mov ebx, eax
call sub.MFC42.DLL_CWnd::GetDlgItem
push 0x429
mov ecx, esi
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_CWnd::GetDlgItem
push 0x42a
mov ecx, esi
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 5
push 1
mov ecx, edi
mov dword [esp + 0x28], eax
call sub.MFC42.DLL_CSliderCtrl::SetRange
push 1
push 5
push 1
mov ecx, ebp
call sub.MFC42.DLL_CSliderCtrl::SetRange
lea eax, [esp + 0x14]
mov ecx, esi
push eax
push 0x419
call sub.MFC42.DLL_CWnd::GetDlgItemTextA
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esi + 0x64]
call fcn.004099e0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 1
call fcn.0040f2ca
lea edx, [esp + 0x10]
push 0x4161ec
lea eax, [esp + 0x3c]
push edx
push eax
call sub.MFC42.DLL_operator
push 0x4165d4
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x50], 3
call sub.MFC42.DLL_operator_1
mov byte [esp + 0x44], 4
push str.KM_TWAIN_
lea edx, [esp + 0x34]
push eax
push edx
call sub.MFC42.DLL_operator
push 0x4161d4
push eax
lea eax, [esp + 0x34]
mov byte [esp + 0x4c], 5
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
push eax
push edx
mov byte [esp + 0x50], 6
call sub.MFC42.DLL_operator_1
push str..ini
push eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x4c], 7
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 7
call fcn.0040f2ca
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 6
call fcn.0040f2ca
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 5
call fcn.0040f2ca
lea ecx, [esp + 0x30]
mov byte [esp + 0x44], 4
call fcn.0040f2ca
lea ecx, [esp + 0x34]
mov byte [esp + 0x44], 3
call fcn.0040f2ca
lea ecx, [esp + 0x38]
mov byte [esp + 0x44], 1
call fcn.0040f2ca
mov ecx, dword [esp + 0x10]
push ecx
push 0
push str.Compression
push str.Contents
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
test edi, edi
jne 0x404ff7
mov edx, dword [ebx + 0x20]
push 0
push 0
push 0xf1
push edx
call ebp
mov eax, dword [esp + 0x18]
push 0
push 1
push 0xf1
mov ecx, dword [eax + 0x20]
push ecx
call ebp
push 1
push 3
push 0x41c
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetDlgItemInt
push 0
push 0x41c
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 0
push 0x41b
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
jmp 0x40505b
test edi, edi
jle 0x40505b
cmp edi, 6
jg 0x40505b
mov edx, dword [ebx + 0x20]
push 0
push 1
push 0xf1
push edx
call ebp
mov eax, dword [esp + 0x18]
push 0
push 0
push 0xf1
mov ecx, dword [eax + 0x20]
push ecx
call ebp
push 1
push 0x41c
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 1
push 0x41b
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 1
push edi
push 0x41c
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetDlgItemInt
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edx
push 0
push str.CompressionGray
push str.Contents
call edi
test eax, eax
jle 0x40508c
cmp eax, 6
jg 0x40508c
push 1
push eax
push 0x42b
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetDlgItemInt
mov eax, dword [esp + 0x10]
push eax
push 0
push str.Unit
push str.Contents
call edi
test eax, eax
push 0
jne 0x4050c9
mov ecx, dword [esp + 0x20]
push 0
push 0xf1
mov edx, dword [ecx + 0x20]
push edx
call ebp
mov eax, dword [esp + 0x20]
push 0
push 1
push 0xf1
mov ecx, dword [eax + 0x20]
push ecx
jmp 0x4050eb
mov edx, dword [esp + 0x20]
push 1
push 0xf1
mov eax, dword [edx + 0x20]
push eax
call ebp
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0xf1
mov edx, dword [ecx + 0x20]
push edx
call ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 0
call fcn.0040f2ca
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
call fcn.0040f2ca
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret