Function at 0x405b20
Capabilities:
Access peb ldr_data
Validate payment card number using luhn algorithm

Disassembly:
push 0xffffffffffffffff
push 0x43e478
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x30], 0
cmp byte [ecx], 0x53
jne 0x405d7a
mov edx, dword [esi + 0x10]
cmp edx, 9
jne 0x405d7a
mov eax, 5
cmp byte [ecx + eax], 0x47
jg 0x405db9
inc eax
cmp eax, edx
jl 0x405b6c
mov dword [0x464d7c], 0x11
mov eax, dword [esi + 0xc]
mov dl, byte [eax + 3]
mov bl, byte [eax + 4]
movsx ecx, dl
movsx edi, bl
lea ecx, [ecx + ecx*4]
lea ecx, [edi + ecx*2 - 0x210]
mov edi, dword [0x45ed98]
cmp edi, ecx
je 0x405c0a
movsx eax, bl
movsx ecx, dl
push eax
push ecx
push edi
lea edx, [esp + 0x1c]
push str.Different:_week_is__02d_but_barcode_4_5_digit._were__c_c
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [esp + 0x10]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x490c00]
call fcn.00439d10
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xffffffee
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov cl, byte [eax + 2]
mov eax, dword [0x45ed9c]
xor edx, edx
mov edi, 0xa
div edi
movsx eax, cl
sub eax, 0x30
cmp edx, eax
je 0x405c83
movsx ecx, cl
push ecx
push edx
lea edx, [esp + 0x18]
push str.Different:_year_is__d_but_barcode_3digit._was__c
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0x10]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x490c00]
call fcn.00439d10
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xffffffed
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov ecx, esi
call fcn.00409c20
test al, al
jne 0x405cb7
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xfffffffb
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov ebx, dword [esi + 0x10]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov edx, 5
mov dword [esp + 0x1c], ecx
cmp ebx, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
jle 0x405d02
mov ebp, dword [esi + 0xc]
lea edi, [esp + 0x18]
lea ecx, [ebx - 5]
mov al, byte [edx + ebp]
cmp al, 0x30
jl 0x405cf2
cmp al, 0x39
jg 0x405cf2
movsx eax, al
sub eax, 0x30
jmp 0x405cf8
movsx eax, al
sub eax, 0x37
mov dword [edi], eax
inc edx
add edi, 4
cmp edx, ebx
jl 0x405cdf
mov edi, dword [esp + ecx*4 + 0x14]
dec ecx
and edi, 0xf
dec ecx
mov edx, dword [esi + 0xc]
mov eax, dword [esp + ecx*4 + 0x18]
mov ebp, dword [esp + ecx*4 + 0x14]
and eax, 0xf
mov dl, byte [edx + 1]
shl eax, 4
dec ecx
and ebp, 0xf
and edx, 0xff
or eax, edi
mov ecx, dword [esp + ecx*4 + 0x14]
push edx
and ecx, 0xf
push 0
shl ecx, 4
or ecx, ebp
push ecx
push eax
mov ecx, esi
call fcn.00407c00
mov eax, dword [esi + 0x10]
push 1
dec eax
mov ecx, esi
push eax
call fcn.00407c50
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
cmp dword [esi + 0x10], 0xa
jne 0x405db9
mov ecx, esi
mov dword [0x464d7c], 8
call fcn.00406ca0
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 0xfffffff6
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret