Function at 0x10005030
Capabilities:
Get common file path
Get number of processors
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x1000bc55
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c0
mov eax, dword [esp + 0x8d0]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x5223
mov dword [esp + 0x34], esi
call fcn.1000aa3c
lea edi, [esi + 0x64]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x8d8], ebx
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x1000ddd4
lea edi, [esi + 0xa4]
mov byte [esp + 0x8d8], 1
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x1000ddd4
lea edi, [esi + 0xe4]
mov byte [esp + 0x8d8], 2
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x1000dd14
lea edi, [esi + 0x124]
mov byte [esp + 0x8d8], 3
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x1000dd14
lea edi, [esi + 0x164]
mov byte [esp + 0x8d8], 4
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x1000dc54
lea edi, [esi + 0x1a4]
mov byte [esp + 0x8d8], 5
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x1000dc54
lea edi, [esi + 0x1e4]
mov byte [esp + 0x8d8], 6
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x1000db94
lea edi, [esi + 0x224]
mov byte [esp + 0x8d8], 7
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x1000db94
lea ebp, [esi + 0x280]
mov byte [esp + 0x8d8], 8
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_1
mov dword [esi + 0x298], ebx
mov dword [esi + 0x294], 0x1000db80
push str.EoRezo
lea ecx, [esp + 0x20]
mov byte [esp + 0x8dc], 0xa
mov dword [esi], sym.EoPhoto.dll_GetDlgOption
call fcn.1000aa48
push 0x100120e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8dc], 0xb
call fcn.1000aa48
mov byte [esp + 0x8d8], 0xc
lea ecx, [esp + 0x30]
call sym.EoPhoto.dll_public:_void___thiscall_CXmlPhoto::constructor_void_
lea ecx, [esp + 0x14]
mov byte [esp + 0x8d8], 0xd
call sub.MFC42.DLL_CString::CString_1
push 1
lea ecx, [esp + 0xd4]
push 0x1a
mov bl, 0xe
push ecx
push 0
mov byte [esp + 0x8e8], bl
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push 0x100122b8
push eax
call sub.MFC42.DLL_operator_2
push 0x10012150
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x8e4], 0xf
call sub.MFC42.DLL_operator_1
lea edx, [esp + 0x18]
mov byte [esp + 0x8d8], 0x10
push edx
push eax
lea eax, [esp + 0x28]
push eax
call sub.MFC42.DLL_operator
push str..cfg
lea ecx, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x8e4], 0x11
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
lea edx, [esp + 0xd0]
push edx
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x8e0], 0x12
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x8d8], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x8d8], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x8d8], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x8d8], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x34]
call sym.EoPhoto.dll_public:_bool___thiscall_CXmlPhoto::Load_XML_Document_char_const__
and eax, 0xff
mov dword [esp + 0x10], eax
je 0x10005370
mov ecx, dword [esp + 0xc0]
test ecx, ecx
mov edi, ecx
je 0x10005370
lea edx, [esp + 0x10]
push edx
call sym.EoPhoto.dll_public:_class_CString___thiscall_CCfgPhoto::GetCurrentDirectoryA_void_
push eax
mov ecx, ebp
mov byte [esp + 0x8dc], 0x13
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x8d8], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi + 0x48]
test eax, eax
mov dword [esi + 0x28c], eax
jne 0x10005301
mov dword [esi + 0x28c], 0x14
mov eax, dword [edi + 0x4c]
test eax, eax
mov dword [esi + 0x290], eax
jne 0x10005318
mov dword [esi + 0x290], 5
mov eax, dword [edi + 0x3c]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi + 0x284], ecx
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x288], eax
mov eax, dword [edi + 0x54]
mov dword [esi + 0x27c], eax
mov eax, dword [edi + 0x58]
mov dword [esi + 0x278], eax
mov eax, dword [edi + 0x60]
mov dword [esi + 0x26c], eax
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x274], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 0x270], eax
mov eax, dword [edi + 0x68]
mov dword [esi + 0x264], eax
mov edi, dword [edi + 0x6c]
mov dword [esi + 0x268], edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x8d8], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x8d8], 0xc
call sym.EoPhoto.dll_public_virtual:_void___thiscall_CXmlPhoto::destructor_void_
lea ecx, [esp + 0x18]
mov byte [esp + 0x8d8], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8d8], 0xa
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x8d0]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8cc
ret 4