Function at 0x405fb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0xffffffffffffffff
push 0x43e4b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x4c], 0
cmp edx, 0x12
jne 0x406189
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx]
cmp al, 0x53
jne 0x406189
je 0x406006
cmp al, 0x41
je 0x406006
cmp al, 0x4d
jne 0x406189
mov dl, byte [ecx + 4]
mov bl, byte [ecx + 5]
movsx eax, dl
movsx esi, bl
lea eax, [eax + eax*4]
lea esi, [esi + eax*2 - 0x210]
mov al, byte [ecx + 6]
mov byte [esp + 0x13], al
mov al, byte [ecx + 7]
mov byte [esp + 0x12], al
movsx eax, byte [esp + 0x13]
movsx edi, byte [esp + 0x12]
lea eax, [eax + eax*4]
lea edi, [edi + eax*2 - 0x210]
mov eax, dword [0x45ed98]
cmp eax, esi
je 0x4060a9
movsx ecx, bl
movsx edx, dl
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 [0x490c00]
call fcn.00439d10
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 eax, dword [0x45ed9c]
xor edx, edx
mov esi, 0xa
div esi
cmp edx, edi
je 0x406121
movsx eax, byte [esp + 0x12]
movsx ecx, byte [esp + 0x13]
push eax
push ecx
push edx
lea edx, [esp + 0x20]
push str.Different:_year_is__02d_but_barcode_7_8_digit._were__c_c
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [esp + 0x14]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x490c00]
call fcn.00439d10
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
lea edx, [esp + 0x1c]
lea eax, [ecx + 0x11]
mov esi, 8
mov cl, byte [eax]
add edx, 4
mov byte [esp + 0x18], cl
mov ecx, dword [esp + 0x18]
and ecx, 0xff
sub ecx, 0x30
dec eax
mov dword [edx - 4], ecx
dec esi
jne 0x40612d
xor edx, edx
lea eax, [esp + 0x1c]
mov dword [esp + 0x3c], edx
push eax
mov ecx, ebp
mov dword [esp + 0x44], edx
call fcn.00407d90
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
cmp edx, 0xe
jne 0x4061cc
mov ecx, ebp
call fcn.00406740
mov esi, eax
cmp esi, 1
jne 0x4061a6
mov dword [0x464d7c], 0x17
lea ecx, [esp + 0x14]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
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