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

Disassembly:
sub esp, 0x48
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push ebp
xor ebp, ebp
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x14], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], ebp
mov dword [esp + 4], ebp
push edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0x20], edi
test eax, eax
je 0x6e16fa
mov ecx, dword [eax]
test ecx, ecx
je 0x6e16fa
mov eax, dword [eax + 4]
push esi
lea esi, [eax + ecx]
cmp eax, 0xa
jl 0x6e16d8
xorps xmm0, xmm0
mov dword [esp + 0x4c], ebp
movdqu xmmword [esp + 0x2c], xmm0
movdqu xmmword [esp + 0x3c], xmm0
movzx edx, byte [ecx]
lea eax, [edx - 0x30]
cmp eax, 9
ja 0x6e16d8
mov eax, dword [esp + 0x40]
push ebx
lea eax, [eax + eax*4]
lea edx, [edx + eax*2]
add edx, 0xffffffd0
mov dword [esp + 0x44], edx
movzx ebx, byte [ecx + 1]
lea eax, [ebx - 0x30]
cmp eax, 9
ja case.0x6e13ee.44
lea eax, [edx - 6]
lea eax, [edx + eax*4]
lea edx, [ebx + eax*2]
mov dword [esp + 0x44], edx
movzx ebx, byte [ecx + 2]
lea eax, [ebx - 0x30]
cmp eax, 9
ja case.0x6e13ee.44
lea eax, [edx - 6]
lea eax, [edx + eax*4]
lea edx, [ebx + eax*2]
mov dword [esp + 0x44], edx
movzx ebx, byte [ecx + 3]
lea eax, [ebx - 0x30]
cmp eax, 9
ja case.0x6e13ee.44
lea eax, [edx - 6]
lea eax, [edx + eax*4]
lea eax, [ebx + eax*2]
mov dword [esp + 0x44], eax
movzx edx, byte [ecx + 4]
lea eax, [edx - 0x30]
cmp eax, 9
ja case.0x6e13ee.44
mov eax, dword [esp + 0x40]
lea eax, [eax + eax*4]
lea edx, [edx + eax*2]
add edx, 0xffffffd0
mov dword [esp + 0x40], edx
movzx ebx, byte [ecx + 5]
lea eax, [ebx - 0x30]
cmp eax, 9
ja case.0x6e13ee.44
lea eax, [edx - 6]
lea eax, [edx + eax*4]
lea eax, [ebx + eax*2]
mov dword [esp + 0x40], eax
movzx edx, byte [ecx + 6]
lea eax, [edx - 0x30]
cmp eax, 9
ja case.0x6e13ee.44
mov eax, dword [esp + 0x3c]
lea eax, [eax + eax*4]
lea edx, [edx + eax*2]
add edx, 0xffffffd0
mov dword [esp + 0x3c], edx
movzx ebx, byte [ecx + 7]
lea eax, [ebx - 0x30]
cmp eax, 9
ja case.0x6e13ee.44
lea eax, [edx - 6]
lea eax, [edx + eax*4]
lea eax, [ebx + eax*2]
mov dword [esp + 0x3c], eax
movzx edx, byte [ecx + 8]
lea eax, [edx - 0x30]
cmp eax, 9
ja case.0x6e13ee.44
mov eax, dword [esp + 0x38]
lea eax, [eax + eax*4]
lea edx, [edx + eax*2]
add edx, 0xffffffd0
mov dword [esp + 0x38], edx
movzx ebx, byte [ecx + 9]
lea eax, [ebx - 0x30]
cmp eax, 9
ja case.0x6e13ee.44
lea edx, [edx + edx*4]
add ecx, 0xa
lea edx, [edx - 0x18]
lea edx, [ebx + edx*2]
mov dword [esp + 0x38], edx
cmp ecx, esi
je 0x6e15ab
movzx edx, byte [ecx]
lea eax, [edx - 0x2b]
cmp eax, 0x2f
ja case.0x6e13ee.44
movzx eax, byte [eax + 0x6e172c]
jmp dword [eax*4 + 0x6e171c]
add edx, 0xffffffd0
inc ecx
mov dword [esp + 0x34], edx
cmp ecx, esi
je case.0x6e13ee.44
movzx ebx, byte [ecx]
lea eax, [ebx - 0x30]
cmp eax, 9
ja case.0x6e13ee.44
lea eax, [edx - 6]
inc ecx
lea eax, [edx + eax*4]
lea eax, [ebx + eax*2]
mov dword [esp + 0x34], eax
cmp ecx, esi
je 0x6e15af
movzx edx, byte [ecx]
lea eax, [edx - 0x2b]
cmp eax, 0x2f
ja case.0x6e13ee.44
movzx eax, byte [eax + 0x6e176c]
jmp dword [eax*4 + 0x6e175c]
add edx, 0xffffffd0
inc ecx
mov dword [esp + 0x30], edx
cmp ecx, esi
je case.0x6e13ee.44
movzx ebx, byte [ecx]
lea eax, [ebx - 0x30]
cmp eax, 9
ja case.0x6e13ee.44
lea eax, [edx - 6]
inc ecx
lea eax, [edx + eax*4]
lea eax, [ebx + eax*2]
mov dword [esp + 0x30], eax
cmp ecx, esi
je 0x6e15af
movzx eax, byte [ecx]
sub eax, 0x2c
je 0x6e1489
sub eax, 2
jne 0x6e14d0
inc ecx
cmp ecx, esi
jae 0x6e14d2
xor edi, edi
movzx edx, byte [ecx]
lea eax, [edx - 0x30]
cmp eax, 9
ja 0x6e14c4
lea eax, [ebp*4 - 0x18]
add eax, ebp
lea ebx, [edx + eax*2]
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebp
jne 0x6e14bf
mov ebp, ebx
inc edi
inc ecx
cmp ecx, esi
jb 0x6e1490
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x1c], ebp
cmp ecx, esi
je 0x6e15af
movzx eax, byte [ecx]
sub eax, 0x2b
je case.0x6e13ee.43
sub eax, 2
je case.0x6e13ee.43
sub eax, 0x2d
je case.0x6e1440.90
call fcn.006fef9a
pop ebx
pop esi
pop edi
mov dword [eax], 0x16
or eax, 0xffffffff
or edx, eax
pop ebp
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x48
ret
mov eax, esi
sub eax, ecx
cmp eax, 3
jl case.0x6e13ee.44
movzx edx, byte [ecx + 1]
lea eax, [edx - 0x30]
cmp eax, 9
ja case.0x6e13ee.44
movzx ebx, byte [ecx + 2]
lea eax, [ebx - 0x30]
cmp eax, 9
ja case.0x6e13ee.44
add ecx, 3
lea eax, [edx - 0x42]
lea eax, [edx + eax*4]
lea ebp, [ebx + eax*2]
xor ebx, ebx
mov eax, esi
cmp byte [ecx - 3], 0x2d
setne bl
sub eax, ecx
lea ebx, [ebx*2 - 1]
cmp eax, 2
jne 0x6e157d
movzx edx, byte [ecx]
lea eax, [edx - 0x30]
cmp eax, 9
ja case.0x6e13ee.44
movzx ecx, byte [ecx + 1]
lea eax, [ecx - 0x30]
cmp eax, 9
ja case.0x6e13ee.44
lea eax, [edx - 0x42]
lea eax, [edx + eax*4]
lea eax, [ecx + eax*2]
mov dword [esp + 0x14], eax
jmp 0x6e1585
cmp esi, ecx
jne case.0x6e13ee.44
mov ecx, dword [esp + 0x14]
mov eax, ebp
shl eax, 4
sub eax, ebp
lea eax, [ecx + eax*4]
imul eax, ebx
mov ecx, eax
shl ecx, 4
sub ecx, eax
shl ecx, 2
mov dword [esp + 0x18], ecx
mov ebx, 1
jmp 0x6e15b1
xor ebx, ebx
jmp 0x6e15b5
xor ebx, ebx
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
dec ecx
cmp ecx, 0xb
ja case.0x6e13ee.44
mov eax, dword [esp + 0x3c]
dec eax
cmp eax, 0x1e
ja case.0x6e13ee.44
cmp edx, 0x17
jg case.0x6e13ee.44
cmp dword [esp + 0x30], 0x3c
jg case.0x6e13ee.44
mov eax, dword [esp + 0x18]
sub dword [esp + 0x30], eax
lea eax, [esp + 0x30]
sub dword [esp + 0x44], 0x76c
mov dword [esp + 0x40], ecx
mov dword [esp + 0x50], 0xffffffff
push eax
test ebx, ebx
je 0x6e1611
call fcn.006e1a10
jmp 0x6e1616
call fcn.00702551
mov ecx, eax
mov dword [esp + 0x30], edx
and eax, edx
mov dword [esp + 0x2c], ecx
add esp, 4
cmp eax, 0xffffffff
je case.0x6e13ee.44
test edi, edi
je 0x6e165d
cmp dword [esp + 0x6c], 0
je 0x6e16cc
test ebx, ebx
je 0x6e1695
movdqu xmm0, xmmword [esp + 0x30]
mov eax, dword [esp + 0x50]
movdqu xmmword [edi], xmm0
movdqu xmm0, xmmword [esp + 0x40]
movdqu xmmword [edi + 0x10], xmm0
mov dword [edi + 0x20], eax
mov esi, dword [esp + 0x24]
mov dword [edi + 0x20], 0
test esi, esi
je 0x6e1672
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
mov esi, dword [esp + 0x20]
test esi, esi
je 0x6e1680
mov eax, dword [esp + 0x10]
mov dword [esi], eax
pop ebx
pop esi
pop edi
mov eax, ecx
pop ebp
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x48
ret
lea eax, [esp + 0x28]
push eax
call fcn.00703d82
add esp, 4
test eax, eax
je case.0x6e13ee.44
movdqu xmm0, xmmword [eax]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
movdqu xmmword [edi], xmm0
movdqu xmm0, xmmword [eax + 0x10]
movdqu xmmword [edi + 0x10], xmm0
mov eax, dword [eax + 0x20]
mov dword [edi + 0x20], eax
jmp 0x6e165d
lea eax, [esp + 0x28]
push eax
call fcn.007027e0
jmp 0x6e169f
call fcn.006fef9a
pop esi
pop edi
pop ebp
mov dword [eax], 0x16
or eax, 0xffffffff
or edx, eax
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x48
ret
call fcn.006fef9a
mov ecx, dword [esp + 0x4c]
pop edi
pop ebp
mov dword [eax], 0x16
xor ecx, esp
or eax, 0xffffffff
or edx, eax
call fcn.006f7ca4
add esp, 0x48
ret