Function at 0x406200
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0xffffffffffffffff
push 0x43e4d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x4c], 0
cmp ecx, 9
jne 0x406402
mov eax, dword [edi + 0xc]
cmp byte [eax + 3], 0x45
jne 0x406402
mov bl, byte [eax + 1]
mov dl, byte [eax + 2]
movsx ecx, bl
mov byte [esp + 0x13], dl
mov ebp, 0xa
movsx edx, dl
lea ecx, [ecx + ecx*4]
lea esi, [edx + ecx*2 - 0x210]
mov cl, byte [eax]
mov eax, dword [0x45ed9c]
xor edx, edx
div ebp
movsx eax, cl
sub eax, 0x30
cmp edx, eax
je 0x4062da
movsx ecx, cl
push ecx
push edx
lea edx, [esp + 0x1c]
push str.Different:_year_is__d_but_barcode_1_digit._was__c
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
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
xor eax, eax
mov ax, word [0x45c282]
cmp eax, esi
je 0x40634a
movsx ecx, byte [esp + 0x13]
movsx edx, bl
push ecx
push edx
push eax
lea eax, [esp + 0x20]
push str.Different:_month_is__02d_but_barcode_2_3_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 ecx, edi
call fcn.0040a2e0
test al, al
jne 0x40637e
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 + 0xc]
lea ecx, [esp + 0x1c]
add eax, 8
mov esi, 5
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 0x40638d
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.00407d90
mov edx, dword [edi + 0x10]
push 0
push edx
mov ecx, edi
call fcn.00407c50
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 ecx, 0xe
jne 0x406445
mov ecx, edi
call fcn.00406740
mov esi, eax
cmp esi, 1
jne 0x40641f
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