Function at 0x401150
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x41727c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
push ebx
push ebp
push esi
mov esi, ecx
push edi
push str.InitBankNoteTypes
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
xor ebp, ebp
push 0x420da8
lea ecx, [esp + 0x14]
mov dword [esp + 0x29c], ebp
call sub.MFC42.DLL_CString::CString
mov dl, byte [0x420da8]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x89]
mov byte [esp + 0x88], dl
mov byte [esp + 0x18c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x18d]
push str.BankNoteType
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esi + 0x168]
mov ecx, 0x97
xor eax, eax
mov dword [esp + 0x70], edi
rep stosd dword es:[edi], eax
lea edi, [esi + 0x64]
lea eax, [esp + 0x8c]
push edi
push str._s_s
push eax
mov byte [esp + 0x2a8], 1
mov dword [esp + 0x30], ebp
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x88]
lea ebx, [esi + 0x60]
push ecx
mov ecx, ebx
mov dword [esp + 0x4c], ebx
call fcn.00412a50
test eax, eax
jne 0x40123a
push str.BankNoteType
push edi
mov ecx, ebx
call fcn.00412af0
jmp 0x401519
lea edx, [esp + 0x20]
lea eax, [esp + 0x88]
push edx
push str.usNumOfNoteTypes
push eax
mov ecx, ebx
call fcn.00412c60
mov eax, dword [esp + 0x20]
cmp eax, ebp
jne 0x401287
lea ecx, [esp + 0x10]
mov byte [esp + 0x298], 0
call fcn.00416d42
lea ecx, [esp + 0x14]
mov dword [esp + 0x298], 0xffffffff
call fcn.00416d42
xor eax, eax
jmp 0x401543
mov cl, byte [0x420da8]
xor edx, edx
mov dword [esp + 0x75], edx
mov edi, eax
mov dword [esp + 0x79], edx
mov byte [esp + 0x74], cl
mov dword [esp + 0x7d], edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x81], edx
mov dword [esp + 0x44], edi
mov word [esp + 0x85], dx
mov byte [esp + 0x87], dl
call sub.MFC42.DLL_CStringArray::CStringArray
xor ecx, ecx
mov al, byte [0x420da8]
mov dword [esp + 0x29], ecx
cmp edi, ebp
mov dword [esp + 0x2d], ecx
mov byte [esp + 0x298], 2
mov dword [esp + 0x31], ecx
mov byte [esp + 0x28], al
mov dword [esp + 0x35], ecx
mov word [esp + 0x39], cx
mov byte [esp + 0x3b], cl
jle 0x401508
mov ebp, dword [sym.imp.MSVCRT.dll_atoi]
add esi, 0x16e
mov dword [esp + 0x18], esi
jmp 0x40130e
mov ebx, dword [esp + 0x48]
lea eax, [ecx + 1]
lea edx, [esp + 0x74]
push eax
push str.NoteType_02d
push edx
mov dword [esp + 0x4c], eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x198]
add esp, 0xc
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18c]
lea ecx, [esp + 0x74]
push eax
lea edx, [esp + 0x8c]
push ecx
push edx
mov ecx, ebx
call fcn.00412d20
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x41f058
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x5c]
lea edx, [esp + 0x194]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x2ac], 3
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x2a8], 2
call fcn.00415360
mov eax, dword [esp + 0x6c]
add esp, 0x10
cmp eax, 4
jl 0x401508
lea eax, [esp + 0x50]
push 0
push eax
lea ecx, [esp + 0x5c]
call fcn.00401cd0
mov eax, dword [eax]
push eax
call ebp
add esp, 4
lea ecx, [esp + 0x50]
mov dword [esp + 0x24], eax
call fcn.00416d42
lea ecx, [esp + 0x4c]
push 1
push ecx
lea ecx, [esp + 0x5c]
call fcn.00401cd0
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x28]
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
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4c]
call fcn.00416d42
lea ecx, [esp + 0x68]
push 2
push ecx
lea ecx, [esp + 0x5c]
call fcn.00401cd0
mov eax, dword [eax]
push eax
call ebp
add esp, 4
lea ecx, [esp + 0x68]
mov esi, eax
call fcn.00416d42
lea edx, [esp + 0x3c]
push 3
push edx
lea ecx, [esp + 0x5c]
call fcn.00401cd0
mov eax, dword [eax]
push 0x41f054
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
sete bl
call fcn.00416d42
xor eax, eax
test bl, bl
setne al
mov ebx, eax
mov eax, dword [esp + 0x5c]
cmp eax, 4
jle 0x401494
lea ecx, [esp + 0x70]
push 4
push ecx
lea ecx, [esp + 0x5c]
call fcn.00401cd0
mov eax, dword [eax]
push eax
call ebp
add esp, 4
lea ecx, [esp + 0x70]
mov dword [esp + 0x1c], eax
call fcn.00416d42
jmp 0x40149c
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x24]
test dx, dx
jbe 0x4014ed
test esi, esi
jbe 0x4014ed
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jne 0x4014ed
mov eax, dword [esp + 0x18]
mov cx, word [esp + 0x28]
mov word [eax - 2], dx
mov edx, eax
mov word [edx], cx
mov cl, byte [esp + 0x2a]
mov byte [edx + 2], cl
mov dx, word [esp + 0x1c]
mov ecx, dword [esp + 0x6c]
mov dword [eax + 6], esi
mov word [eax + 0xa], dx
mov dword [eax + 0xe], ebx
inc word [ecx]
jmp 0x4014f1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
add eax, 0x14
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
cmp ecx, eax
jl 0x40130a
lea ecx, [esp + 0x54]
mov byte [esp + 0x298], 1
call fcn.00416d36
lea ecx, [esp + 0x10]
mov byte [esp + 0x298], 0
call fcn.00416d42
lea ecx, [esp + 0x14]
mov dword [esp + 0x298], 0xffffffff
call fcn.00416d42
mov eax, 1
mov ecx, dword [esp + 0x290]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28c
ret