Function at 0x4011cc
Capabilities:
Get common file path
Get number of processors
Set current directory

Disassembly:
jmp 0x4038e0
push 0xffffffffffffffff
push 0x40c532
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x270
mov al, byte [esp + 3]
push ebx
xor ebx, ebx
push ebp
push esi
mov ebp, ecx
mov byte [esp + 0x40], al
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov cl, byte [esp + 0xf]
mov dword [esp + 0x284], ebx
mov byte [esp + 0x18], cl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dl, byte [esp + 0xf]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x28], dl
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
lea ecx, [esp + 0x54]
mov byte [esp + 0x284], 2
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x178]
mov byte [esp + 0x284], 3
push eax
push 0x104
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [esp + 0x28c]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp eax, 0xffffffff
jne 0x4039a3
lea ecx, [esp + 0x10]
push 0x40f200
push ecx
mov dword [esp + 0x18], 8
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x58]
mov byte [esp + 0x284], 4
call sub.MFC42.DLL_CString::CString
push ebx
push esi
lea ecx, [esp + 0x64]
mov byte [esp + 0x28c], 5
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
push 1
jne 0x4039de
lea edx, [esp + 0x44]
push edx
push ebx
jmp 0x4039e4
lea eax, [esp + 0x44]
push eax
push esi
mov ecx, ebp
call fcn.004011ae
mov ecx, dword [esp + 0x44]
cmp ecx, ebx
jne 0x4039f9
mov dword [esp + 0x14], ebx
jmp 0x403a06
mov eax, dword [esp + 0x48]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
push ecx
push esi
mov ecx, ebp
call fcn.00401023
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
jne 0x403a21
mov dword [esp + 0x3c], ebx
jmp 0x403a2e
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
xor edx, edx
cmp eax, ebx
push edi
mov dword [esp + 0x14], edx
jle 0x403b08
jmp 0x403a4b
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x40]
jge 0x403a82
mov edi, dword [ecx + edx*4]
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x14], edx
jmp 0x403aab
mov ecx, dword [esp + 0x48]
xor eax, eax
lea edx, [esp + 0x7c]
mov edi, dword [ecx + ebx*4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x7c]
push 0x5c
push ecx
mov ecx, ebp
call fcn.004013b1
mov edx, dword [ebp + 0x40]
mov dword [esp + 0x54], eax
push eax
add edx, 0x64
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x84]
push eax
push ecx
mov ecx, ebp
call fcn.0040131b
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x58]
push edx
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x54]
push eax
push 1
push ecx
lea ecx, [esp + 0x38]
call fcn.00401258
cmp ebx, dword [esp + 0x18]
jl 0x403a43
xor ebx, ebx
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x294]
push 4
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, ebp
call fcn.00401325
lea edx, [esp + 0x17c]
mov ebp, eax
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x288], 4
call fcn.0040a95a
lea ecx, [esp + 0x60]
mov byte [esp + 0x288], 3
call fcn.0040a97e
lea ecx, [esp + 0x58]
mov byte [esp + 0x288], 2
call fcn.0040a95a
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
cmp esi, eax
mov byte [esp + 0x288], 1
mov edi, eax
je 0x403b8f
lea ecx, [esi + 4]
call fcn.0040a95a
add esi, 8
cmp esi, edi
jne 0x403b7c
mov esi, dword [esp + 0x30]
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
add esp, 4
cmp esi, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x288], 0
mov edi, eax
je 0x403bcc
mov ecx, esi
call fcn.0040a95a
add esi, 4
cmp esi, edi
jne 0x403bba
mov esi, dword [esp + 0x20]
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
add esp, 4
cmp esi, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x288], 0xffffffff
mov edi, eax
je 0x403c0c
mov ecx, esi
call fcn.0040a95a
add esi, 4
cmp esi, edi
jne 0x403bfa
mov esi, dword [esp + 0x48]
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x284]
add esp, 4
mov eax, ebp
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x27c
ret 8