Function at 0x406bc0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4173f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push ebp
push esi
push edi
mov eax, dword [str.ATESLP0_r]
mov ecx, dword [0x41c9d0]
mov dx, word [0x41c9d4]
mov dword [esp + 0x2c], eax
mov al, byte [0x41c9d6]
mov dword [esp + 0x30], ecx
mov byte [esp + 0x36], al
mov ecx, 0x3d
xor eax, eax
lea edi, [esp + 0x37]
mov word [esp + 0x34], dx
mov byte [esp + 0x12c], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x12d]
mov dword [esp + 0x234], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x234], 1
call sub.MFC42.DLL_CString::CString_2
mov ebx, dword [esp + 0x244]
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
mov byte [esp + 0x238], 2
call fcn.00407cf0
push str.MTK_IMEI_Log.txt
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x240], 3
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x28]
mov byte [esp + 0x234], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x23c]
test eax, eax
lea eax, [esp + 0x240]
push eax
je 0x406d04
lea ecx, [esp + 0x28]
push str.ATEGMR1_10__
push ecx
call sub.MFC42.DLL_operator_1
push 0x41c9b8
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x240], 6
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x238], 7
call fcn.00416694
lea ecx, [esp + 0x20]
mov byte [esp + 0x234], 6
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x234], 5
lea ecx, [esp + 0x24]
jmp 0x406d5a
lea ecx, [esp + 0x24]
push str.ATEGMR1_7__
push ecx
call sub.MFC42.DLL_operator_1
push 0x41c9b8
lea edx, [esp + 0x28]
push eax
push edx
mov byte [esp + 0x240], 8
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x238], 9
call fcn.00416694
lea ecx, [esp + 0x24]
mov byte [esp + 0x234], 8
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x234], 5
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [ebx + 0x224]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebp
call fcn.004084c0
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push 0x41c99c
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.004166b2
call fcn.004086b0
add esp, 0xc
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x12c]
push pe_nt_image_headers32
push ecx
mov ecx, ebp
call fcn.00408480
lea edx, [esp + 0x12c]
lea eax, [esp + 0x10]
push edx
push 0x41b080
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeLower
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0x41c990
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.004166b2
call fcn.004086b0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0
push 0x41c98c
call sub.MFC42.DLL_CString::Find
test eax, eax
jge 0x406e7d
mov eax, dword [esp + 0x23c]
mov dword [ebx + 0x220], 2
test eax, eax
mov eax, 0x41c974
jne 0x406e60
mov eax, 0x41c95c
push eax
mov ecx, 0x420340
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [0x420340]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
jmp 0x406ffc
mov eax, dword [esp + 0x23c]
lea edx, [esp + 0x2c]
test eax, eax
mov edi, str.ATEGMR0_10_r
jne 0x406e96
mov edi, str.ATEGMR0_7_r
or ecx, 0xffffffff
xor eax, eax
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebp
call fcn.004084c0
lea edx, [esp + 0x2c]
lea eax, [esp + 0x14]
push edx
push 0x41c99c
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.004166b2
call fcn.004086b0
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x12c]
push pe_nt_image_headers32
push ecx
mov ecx, ebp
call fcn.00408480
lea edx, [esp + 0x12c]
lea eax, [esp + 0x10]
push edx
push 0x41b080
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeLower
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0x41c990
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.004166b2
call fcn.004086b0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0
push 0x41c98c
call sub.MFC42.DLL_CString::Find
test eax, eax
jge 0x406fa0
mov eax, dword [esp + 0x23c]
mov dword [ebx + 0x220], 2
test eax, eax
mov eax, 0x41c924
jne 0x406f86
mov eax, 0x41c90c
push eax
mov ecx, 0x420340
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [0x420340]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
jmp 0x406ffc
mov esi, dword [esp + 0x23c]
mov eax, 0x420338
test esi, esi
jne 0x406fb5
mov eax, 0x42033c
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
test eax, eax
jge 0x407076
test esi, esi
mov dword [ebx + 0x220], 2
mov eax, 0x41c8f4
jne 0x406fe3
mov eax, 0x41c8dc
push eax
mov ecx, 0x420340
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [0x420340]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
lea edx, [esp + 0x1c]
push edx
call fcn.004166b2
call fcn.004086b0
mov eax, dword [ebx + 0x20]
add esp, 8
push 0
push 1
push 0x466
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, ebp
call fcn.00408450
lea ecx, [esp + 0x14]
mov byte [esp + 0x234], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x234], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x240]
mov dword [esp + 0x234], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4070c5
lea ecx, [esp + 0x14]
mov byte [esp + 0x234], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x234], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x240]
mov dword [esp + 0x234], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x228
ret