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

Disassembly:
push 0xffffffffffffffff
push 0x4087d2
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 0x4029e3
lea ecx, [esp + 0x10]
push 0x40a208
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 0x402a1e
lea edx, [esp + 0x44]
push edx
push ebx
jmp 0x402a24
lea eax, [esp + 0x44]
push eax
push esi
mov ecx, ebp
call fcn.00404c20
mov ecx, dword [esp + 0x44]
cmp ecx, ebx
jne 0x402a39
mov dword [esp + 0x14], ebx
jmp 0x402a46
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.00405730
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
jne 0x402a61
mov dword [esp + 0x3c], ebx
jmp 0x402a6e
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 0x402b48
jmp 0x402a8b
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x40]
jge 0x402ac2
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 0x402aeb
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.00404ed0
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.00404d80
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.00405fd0
cmp ebx, dword [esp + 0x18]
jl 0x402a83
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.004054f0
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.00407f86
lea ecx, [esp + 0x60]
mov byte [esp + 0x288], 3
call fcn.00407faa
lea ecx, [esp + 0x58]
mov byte [esp + 0x288], 2
call fcn.00407f86
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
cmp esi, eax
mov byte [esp + 0x288], 1
mov edi, eax
je 0x402bcf
lea ecx, [esi + 4]
call fcn.00407f86
add esi, 8
cmp esi, edi
jne 0x402bbc
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 0x402c0c
mov ecx, esi
call fcn.00407f86
add esi, 4
cmp esi, edi
jne 0x402bfa
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 0x402c4c
mov ecx, esi
call fcn.00407f86
add esi, 4
cmp esi, edi
jne 0x402c3a
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