Function at 0x406a80
Capabilities:
Encrypt data using rc4 ksa
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x43d6f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], esi
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esi + 0x10]
mov dword [esp + 0x4c], 0
cmp eax, 0xc
jne 0x406cc6
mov eax, dword [esi + 0xc]
cmp byte [eax + 0xb], 0x52
jne 0x406cc6
cmp byte [eax], 0x53
jne 0x406cc6
cmp byte [eax + 1], 0x41
jne 0x406cc6
mov cl, byte [eax + 4]
mov dl, byte [eax + 5]
mov byte [esp + 0x13], cl
mov byte [esp + 0x12], dl
movsx ecx, cl
mov bl, byte [eax + 3]
mov ebp, 0x64
movsx edx, dl
lea ecx, [ecx + ecx*4]
lea edi, [edx + ecx*2 - 0x210]
mov cl, byte [eax + 2]
movsx eax, cl
movsx edx, bl
lea eax, [eax + eax*4]
lea esi, [edx + eax*2 - 0x210]
mov eax, dword [0x45db64]
add eax, 0x5a
xor edx, edx
div ebp
cmp edx, esi
je 0x406b97
movsx eax, bl
movsx ecx, cl
push eax
push ecx
push edx
mov edx, dword [0x45b048]
and edx, 0xffff
lea eax, [esp + 0x20]
push edx
push str.Different:__d_year_is__02d_but_barcode_3_4_digit._were__c_c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea edx, [esp + 0x14]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x48f9c8]
call fcn.00439080
lea ecx, [esp + 0x14]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xffffffed
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov eax, dword [0x45db60]
cmp eax, edi
je 0x406c06
movsx ecx, byte [esp + 0x12]
movsx edx, byte [esp + 0x13]
push ecx
push edx
push eax
lea eax, [esp + 0x20]
push str.Different:_week_is__02d_but_barcode_5_6_digit._were__c_c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea edx, [esp + 0x14]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x48f9c8]
call fcn.00439080
lea ecx, [esp + 0x14]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xffffffee
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.00409d80
test al, al
jne 0x406c3e
lea ecx, [esp + 0x14]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xfffffffb
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
lea ecx, [esp + 0x1c]
mov esi, 5
lea eax, [eax + edx - 2]
mov dl, byte [eax]
add ecx, 4
mov byte [esp + 0x18], dl
mov edx, dword [esp + 0x18]
and edx, 0xff
sub edx, 0x30
dec eax
mov dword [ecx - 4], edx
dec esi
jne 0x406c51
xor eax, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], eax
push ecx
mov dword [esp + 0x38], eax
mov ecx, edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.004075d0
mov edx, dword [edi + 0x10]
push 0
push edx
mov ecx, edi
call fcn.00407490
lea ecx, [esp + 0x14]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
lea ecx, [esp + 0x14]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov eax, 0xfffffff6
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret