Function at 0x650e30
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7264f0
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x60], edi
xor esi, esi
mov dword [ebp - 0x18], 0
mov eax, 0x10
mov ecx, 4
cmp dword [edi + 0x248], eax
push 2
cmovge esi, eax
xor eax, eax
cmp dword [edi + 0x90], ecx
cmovl eax, ecx
mov ecx, edi
add esi, eax
call fcn.00651380
push 3
mov ecx, edi
mov dword [ebp - 0x1c], eax
call fcn.00651380
push 0
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.00651380
add esi, eax
cmp dword [edi + 0x3ac], 0
mov dword [ebp - 0x20], esi
je 0x650ee5
cmp dword [edi + 0x25c], 0
je 0x650ee5
push 1
mov ecx, edi
call fcn.00467cf0
mov eax, dword [edi + 0x25c]
cmp dword [eax + 0x10c], 0
jne 0x650ee5
mov eax, dword [eax + 0x120]
sub dword [ebp - 0x18], eax
mov eax, dword [edi + 0x658]
mov ecx, edi
movdqu xmm0, xmmword [ebp - 0x20]
dec eax
push eax
movdqu xmmword [edi + 0x1f0], xmm0
call fcn.004657c0
push dword [ebp + 8]
mov ecx, edi
call fcn.00466bf0
cmp dword [edi + 0x118], 0
je 0x6512eb
cmp dword [edi + 0x248], 0
je 0x6512eb
mov eax, dword [edi + 0x204]
test eax, eax
je 0x6512eb
cmp dword [eax + 0x20], 0
je 0x6512eb
mov esi, dword [edi + 0x2a4]
mov ecx, edi
push 1
call fcn.00466b30
push edi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x24], eax
call fcn.00544660
push edi
lea ecx, [ebp - 0x54]
call fcn.00544660
push edi
lea ecx, [ebp - 0x4c]
call fcn.00544660
push edi
lea ecx, [ebp - 0x58]
call fcn.00544660
lea eax, [ebp - 0x20]
push eax
push edi
lea ecx, [ebp - 0x98]
call fcn.00435cd0
cmp dword [edi + 0x24c], 0
jl 0x6512eb
mov ecx, edi
call fcn.0064f130
mov ebx, dword [edi + 0x24c]
mov eax, dword [ebp - 0x24]
add eax, ebx
mov dword [ebp - 0x48], ebx
cmp esi, eax
cmovl eax, esi
mov dword [ebp - 0x50], eax
cmp ebx, eax
jge 0x6512eb
mov dword [ebp - 0x44], 0
lea esp, [esp]
push ebx
mov ecx, edi
call fcn.00466790
cmp eax, 1
je 0x6512db
push 4
push ebx
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.0064ff10
push 6
push ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.0064ff10
push 5
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.0064ff10
push 7
push ebx
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.0064ff10
mov esi, dword [edi + 0x248]
mov ecx, esi
mov edx, dword [edi + 0x250]
mov eax, edx
imul ecx, dword [ebp - 0x44]
neg eax
add eax, eax
mov dword [ebp - 0x70], edx
sub eax, dword [edi + 0x258]
add eax, dword [edi + 0x28]
sub eax, dword [edi + 0x20]
add ecx, dword [edi + 0x2dc]
add eax, edx
add ecx, dword [edi + 0x254]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 3
lea eax, [esi + ecx]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x64], eax
lea eax, [esi - 0x30]
cdq
sub eax, edx
mov dword [ebp - 0x6c], ecx
mov esi, eax
sar esi, 1
cmp dword [edi + 0x658], 3
jne 0x651093
mov eax, dword [edi + 0x250]
add ecx, esi
push 0x30
push 0x30
push ecx
add eax, 4
lea ecx, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0064e9b0
cmp dword [edi + 0x248], 0x10
jl 0x6510d4
cmp dword [edi + 0x658], 3
jne 0x6510af
mov ecx, 0x20
add esi, 0x1c
jmp 0x6510c1
mov eax, dword [ebp - 0x24]
mov ecx, 4
add eax, 0xfffffff0
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov eax, dword [ebp - 0x34]
add eax, esi
push eax
push ecx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x54]
call fcn.0064e690
push ebx
mov ecx, edi
call fcn.00466ac0
mov edx, eax
mov eax, dword [edi + 0x268]
mov esi, edx
mov dword [ebp - 0x30], eax
and esi, 2
je 0x6510f6
mov eax, dword [edi + 0x278]
jmp 0x651101
test dl, 1
je 0x651104
mov eax, dword [edi + 0x270]
mov dword [ebp - 0x30], eax
mov ecx, dword [edi + 0x140]
mov dword [ebp - 0x2c], ecx
test dl, 1
je 0x651121
mov eax, dword [edi + 0x398]
test eax, eax
je 0x651121
mov dword [ebp - 0x2c], eax
jmp 0x651133
test esi, esi
je 0x651133
mov eax, dword [edi + 0x394]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [edi + 0x658]
mov ebx, dword [ebp - 0x34]
movdqu xmm0, xmmword [ebp - 0x70]
mov dword [ebp - 0x24], eax
add ebx, 0xfffffffe
lea ecx, [eax + eax]
mov eax, 2
sub eax, ecx
add ebx, ecx
movdqu xmmword [ebp - 0xa8], xmm0
mov ecx, dword [ebp - 0x9c]
add ecx, eax
mov esi, dword [ebp - 0xa0]
mov eax, dword [edi + 0x1f0]
sub esi, 0xa
add eax, dword [edi + 0x90]
mov edi, dword [ebp - 0xa8]
add edi, eax
mov dword [ebp - 0x34], ecx
mov eax, ecx
mov dword [ebp - 0x80], edi
sub eax, ebx
mov dword [ebp - 0x78], esi
cdq
idiv dword [ebp - 0x24]
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x88], esi
lea ecx, [eax + ebx]
add eax, ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x74], eax
inc eax
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x24]
cmp eax, 2
jne 0x6511dd
movsd xmm0, qword [0x792088]
sub esp, 8
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
movsd qword [esp], xmm0
movdqu xmm0, xmmword [ebp - 0x80]
jmp 0x65122c
cmp eax, 3
jne 0x65124c
movsd xmm0, qword [0x792088]
lea ecx, [ebp - 0x58]
mov edi, dword [ebp - 0x30]
sub esp, 8
mov esi, dword [ebp - 0x2c]
movsd qword [esp], xmm0
movdqu xmm0, xmmword [ebp - 0x80]
push edi
push esi
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
lea eax, [ebp - 0x40]
push eax
call fcn.0064eed0
movsd xmm0, qword [0x792088]
sub esp, 8
movsd qword [esp], xmm0
movdqu xmm0, xmmword [ebp - 0x90]
push edi
push esi
sub esp, 0x10
lea ecx, [ebp - 0x4c]
mov eax, esp
movdqu xmmword [eax], xmm0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0064e4b0
movdqu xmm0, xmmword [ebp - 0x70]
mov edi, dword [ebp - 0x60]
cmp dword [edi + 0x644], 0
jg 0x651290
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00428810
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00428810
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00428810
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00428810
mov ebx, dword [ebp - 0x48]
jmp 0x6512db
mov ebx, dword [ebp - 0x48]
lea ecx, [ebp - 0x98]
sub esp, 0x10
mov eax, esp
push ebx
movdqu xmmword [eax], xmm0
call fcn.0064e870
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00428810
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00428810
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00428810
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00428810
inc dword [ebp - 0x44]
inc ebx
mov dword [ebp - 0x48], ebx
cmp ebx, dword [ebp - 0x50]
jl 0x650fc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret 4