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

Disassembly:
push 0xffffffffffffffff
push 0x44e1e0
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x47b018]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b018]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
mov eax, dword [esp + 0x254]
xor ebx, ebx
push 0x204
lea ecx, [esp + 0x3c]
push ebx
push ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 0x38]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40197e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetModuleFileName_failed___d__n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x401bf2
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x20]
call dword [0x450488]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
mov edi, str.SupportList.ini
mov dword [esp + 0x254], ebx
call fcn.0040a6b0
add esp, 8
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [esp + 0x20]
mov byte [esp + 0x24c], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esp + 0x1c]
push ebx
push 0x80
push 4
push ebx
push ebx
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401be8
lea edx, [esp + 0x30]
push edx
push esi
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new__
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0x1c]
push eax
push ebx
push ebp
push 0
push 0
push str.SupportList
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, eax
mov eax, ebp
mov dword [esp + 0x2c], edx
mov esi, ebp
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401a60
sub eax, edi
sar eax, 1
mov dword [esp + 0x20], eax
cmp eax, edx
jae 0x401b21
mov ecx, dword [esp + 0x24]
add ecx, 0x4c
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
call dword [0x450480]
mov byte [esp + 0x24c], 2
mov edx, dword [esp + 0x1c]
push edx
push 0x104
push 0x104
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
push 0
push esi
push str.SupportList
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
call fcn.0040a7c0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401ad3
sub eax, edx
sar eax, 1
inc eax
lea ecx, [esp + 0x18]
cmp eax, 1
je 0x401b13
mov edi, dword [esp + 0x20]
add edi, eax
lea esi, [esi + eax*2]
mov dword [esp + 0x20], edi
mov byte [esp + 0x24c], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp edi, dword [esp + 0x2c]
jb 0x401a86
jmp 0x401b21
mov byte [esp + 0x24c], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push ebp
push 0
push 0
push str.ProjectList
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
mov eax, ebp
mov esi, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401b40
sub eax, edx
sar eax, 1
mov ebp, eax
cmp ebp, ebx
jae 0x401be8
mov edi, dword [esp + 0x24]
add edi, 0x64
lea ecx, [esp + 0x18]
call dword [0x450480]
mov byte [esp + 0x24c], 3
mov edx, dword [esp + 0x1c]
push edx
push 0x104
push 0x104
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
push 0
push esi
push str.ProjectList
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x18]
push eax
call fcn.0040a7c0
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401bb0
sub eax, edx
sar eax, 1
inc eax
lea ecx, [esp + 0x18]
cmp eax, 1
je 0x401be2
lea esi, [esi + eax*2]
add ebp, eax
mov byte [esp + 0x24c], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp ebp, ebx
jb 0x401b60
jmp 0x401be8
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0041d40a
add esp, 0x23c
ret 4