Function at 0x424d20
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x433f99
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0xa
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], edi
call fcn.0040aab0
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], edi
call dword [sym.imp.PrtEnv.dll_public:_int___thiscall_NPrtEnv::CPrinterList::Open_void_]
test eax, eax
jne 0x424d86
lea eax, [esp + 0x60]
push str.Unable_to_make_unique_printer_name_because_fail_to_get_printer_list
push eax
call fcn.004265c0
mov cl, byte [eax]
add esp, 8
lea edx, [esp + 0x5c]
mov byte [esp + 0x5c], cl
push 0x43e408
push edx
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x58]
mov byte [esp + 0x50], 2
cmp esi, edi
je 0x424e43
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x424dbf
mov ecx, dword [eax + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x424dc1
xor eax, eax
push eax
lea ecx, [esp + 0x18]
call fcn.0042ec02
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 8], edi
je 0x424e38
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x424e06
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx]
call dword [edx + 0x28]
mov esi, eax
cmp esi, edi
je 0x424e06
cmp byte [esi], 0
je 0x424e06
push 0x4475c8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
push esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
mov esi, dword [esp + 0x5c]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0xc]
cmp eax, 2
jne 0x424e21
push str.__FAX_
lea ecx, [esp + 0x1c]
jmp 0x424e51
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
cmp eax, 3
jne 0x424e56
push str.__PS_
lea ecx, [esp + 0x1c]
jmp 0x424e51
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x424e4c
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
call dword [edx + 4]
push eax
lea ecx, [esp + 0x18]
call fcn.0042ec02
call fcn.00428bf0
mov ecx, dword [eax + 0x14]
mov esi, 0x4475b4
cmp ecx, 2
sete bl
test bl, bl
mov byte [esp + 0x5c], bl
jne 0x424e76
mov esi, str.__
mov al, byte [esi]
test al, al
je 0x424e90
push 0x20
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Replace
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x424e7c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
neg bl
sbb ebx, ebx
push eax
and ebx, 0xbc
lea ecx, [esp + 0x14]
add ebx, 0x1f
mov byte [esp + 0x54], 3
mov dword [esp + 0x5c], eax
mov esi, ebx
call fcn.0042ec02
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebp
mov ebx, eax
mov eax, dword [esp + 0x58]
push eax
call ebp
add eax, ebx
cmp eax, esi
jle 0x424f40
sub esi, ebx
lea ecx, [esp + 0x10]
push esi
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.00424c90
add esp, 0xc
push edi
push eax
lea eax, [esp + 0x60]
mov bl, 4
push eax
mov byte [esp + 0x5c], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 5
call fcn.0042ec56
lea ecx, [esp + 0x58]
mov byte [esp + 0x50], bl
call fcn.0042ebf6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 3
call fcn.0042ebf6
jmp 0x424f4a
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x2c]
call dword [sym.imp.PrtEnv.dll_public:_int___thiscall_NPrtEnv::CPrinterList::IsExist_char_const__const]
test eax, eax
jne 0x424fe7
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x10]
push edx
call fcn.0042ec56
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 2
call fcn.0042ebf6
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 1
call fcn.0042ebf6
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0
call fcn.0042ebf6
mov eax, dword [esp + 0x28]
mov dword [esp + 0x50], 6
test eax, eax
je 0x424fb3
lea ecx, [esp + 0x28]
call dword [sym.imp.PrtEnv.dll_public:_void___thiscall_NPrtEnv::CPrinterList::Close_void_]
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x436ed4
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x50], 7
call fcn.0040acd0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret
mov dword [esp + 0x1c], 1
jmp 0x424ff7
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x60]
push str._s___d_
push eax
mov byte [esp + 0x60], 8
call sub.MFC42.DLL_CString::Format
mov cl, byte [esp + 0x6c]
add esp, 0x10
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x58]
neg cl
sbb ecx, ecx
push eax
and ecx, 0xbc
mov ebx, eax
add ecx, 0x1f
mov esi, ecx
lea ecx, [esp + 0x14]
call fcn.0042ec02
push edi
call ebp
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, ebp
cmp eax, esi
jle 0x4250ad
sub esi, ebp
lea edx, [esp + 0x10]
push esi
lea eax, [esp + 0x28]
push edx
push eax
call fcn.00424c90
add esp, 0xc
push edi
lea ecx, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x5c], 9
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 0xa
call fcn.0042ec56
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 9
call fcn.0042ebf6
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 8
call fcn.0042ebf6
jmp 0x4250b7
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push edx
call dword [sym.imp.PrtEnv.dll_public:_int___thiscall_NPrtEnv::CPrinterList::IsExist_char_const__const]
test eax, eax
je 0x425111
lea ecx, [esp + 0x58]
mov byte [esp + 0x50], 3
call fcn.0042ebf6
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0x64
mov dword [esp + 0x1c], eax
jl 0x424ff1
lea eax, [esp + 0x60]
push str.Fail_to_make_unique_printer_name
push eax
call fcn.004265c0
mov cl, byte [eax]
add esp, 8
lea edx, [esp + 0x5c]
mov byte [esp + 0x5c], cl
push 0x43e408
push edx
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x10]
push eax
call fcn.0042ec56
lea ecx, [esp + 0x58]
mov byte [esp + 0x50], 3
call fcn.0042ebf6
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 2
call fcn.0042ebf6
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 1
call fcn.0042ebf6
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0
call fcn.0042ebf6
mov eax, dword [esp + 0x28]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x50], 0xb
je 0x425173
lea ecx, [esp + 0x28]
call dword [sym.imp.PrtEnv.dll_public:_void___thiscall_NPrtEnv::CPrinterList::Close_void_]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x436ed4
mov dword [esp + 0x5c], ecx
mov esi, dword [esp + 0x30]
mov dword [esp + 0x50], 0xc
cmp esi, edi
je 0x4251a4
lea edx, [esi + 8]
push 1
push edx
call sub.MFC42.DLL_DestructElements
mov esi, dword [esi]
cmp esi, edi
jne 0x425193
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
call sub.MFC42.DLL_CPlex::FreeDataChain
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret