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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov esi, 0x10
mov eax, dword [0x80af5c]
mov dword [esp], eax
call fcn.007c5940
test eax, eax
jne 0x427a0f
mov ecx, 0x18
mov byte [esp + 0x16], 0x26
mov byte [esp + 0x1f], al
mov byte [esp + 0x17], al
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
cmp ecx, 0xd
je 0x4279e0
xor eax, eax
test al, al
jne 0x4279e0
mov dl, byte [esp + 0x16]
movsx eax, dl
cmp eax, 0x51
jg 0x427580
mov esi, 0xd
movzx ecx, dl
cmp ecx, 0x26
je 0x42772d
mov eax, 0xe
cmp ecx, 0x2a
mov esi, dword [esp + 0x18]
je 0x427651
jmp 0x4276cb
movzx eax, dl
cmp eax, 0x52
je 0x4275f3
cmp eax, 0x68
jne 0x4276cb
mov esi, 0xa
mov byte [esp + 0x16], 0x68
mov byte [esp + 0x17], 0xe
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.00419d10
xor edx, edx
div dword [0x80af74]
mov eax, dword [0x80af70]
mov ecx, dword [eax + edx*8]
xor edi, edi
test ecx, ecx
je 0x427727
mov eax, ecx
and eax, 1
inc eax
xor eax, ecx
mov dword [esp + 0x18], ecx
jne 0x4277d0
jmp 0x42772b
mov byte [esp + 0x16], 0x24
mov byte [esp + 0x17], 0xe
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.00419d10
xor edx, edx
div dword [0x80af74]
mov eax, dword [0x80af70]
mov esi, dword [eax + edx*8]
xor edi, edi
test esi, esi
je 0x4277a9
mov eax, 0x13
mov ecx, esi
imul ecx, ecx
and ecx, 3
cmp ecx, 3
je 0x4277b2
mov dl, 0x24
cmp eax, 0xe
jne 0x42771a
mov ecx, 3
sub ecx, eax
xor ecx, eax
je 0x42771a
mov byte [esp + 0x16], 0x52
mov byte [esp + 0x17], 0xe
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.00419d10
xor edx, edx
div dword [0x80af74]
mov eax, dword [0x80af70]
mov ecx, dword [eax + edx*8]
xor edi, edi
test ecx, ecx
je 0x4277bb
mov esi, 0x10
mov eax, ecx
and eax, 1
inc eax
xor eax, ecx
mov dword [esp + 0x18], ecx
jne 0x427950
jmp 0x427970
mov byte [esp + 0x16], 0x26
mov byte [esp + 0x17], 0xe
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.00419d10
xor edx, edx
div dword [0x80af74]
mov eax, dword [0x80af70]
mov eax, dword [eax + edx*8]
mov dword [esp + 0x18], eax
xor edi, edi
test eax, eax
jne 0x4277d0
jmp 0x427970
mov dword [esp + 0x18], esi
mov byte [esp + 0x16], dl
jmp 0x4277d0
mov dword [esp + 0x18], ecx
mov dl, 0x68
cmp esi, 0xa
je 0x427797
imul esi, esi
and esi, 3
cmp esi, 2
je 0x4277a0
mov byte [esp + 0x16], 0x2a
mov byte [esp + 0x17], 0xe
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.00419d10
xor edx, edx
div dword [0x80af74]
mov eax, dword [0x80af70]
mov edx, dword [eax + edx*8]
xor edi, edi
test edx, edx
jne 0x4277c4
mov eax, edx
or eax, 2
mov ecx, edx
mov dword [esp + 0x18], edx
xor ecx, 2
add ecx, eax
jne 0x427970
jmp 0x4277d0
mov byte [esp + 0x16], dl
jmp 0x427970
mov byte [esp + 0x16], dl
jmp 0x427970
mov dword [esp + 0x18], esi
jmp 0x427970
mov dword [esp + 0x18], esi
jmp 0x427970
mov dword [esp + 0x18], ecx
jmp 0x427970
mov dword [esp + 0x18], edx
nop dword [eax + eax]
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0xc]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
xor ecx, dword [ebp + 0xc]
mov edx, eax
xor edx, dword [ebp + 8]
or edx, ecx
jne 0x427870
mov ecx, 0x1d
mov edx, 3
sub edx, eax
xor edx, eax
je 0x427870
nop dword [eax]
cmp ecx, 0x10
je 0x427970
mov eax, ecx
and eax, 1
inc eax
xor eax, ecx
je 0x427970
mov dword [esp + 4], esi
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call dword [ebp + 0x10]
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete cl
movzx ecx, cl
cmp eax, ecx
je 0x427870
mov ecx, 0x10
mov byte [esp + 0x1f], 0x12
xor edi, edi
test esi, esi
mov ebx, esi
je 0x427800
mov eax, 9
mov edx, esi
and edx, 1
inc edx
xor edx, esi
mov ebx, esi
je 0x427800
mov ebx, esi
jmp 0x427988
mov eax, 0xd
mov esi, dword [esp + 0x18]
mov esi, dword [esi + 4]
xor edi, edi
test esi, esi
je 0x4278a0
mov ecx, 0x1c
mov edx, esi
and edx, 1
inc edx
xor edx, esi
mov dword [esp + 0x18], esi
jne 0x4279c6
jmp 0x4278bf
mov dword [esp + 0x18], esi
jmp 0x4278bf
mov eax, 0xf
movzx ecx, byte [esp + 0x1f]
cmp ecx, 0x45
jne 0x427910
cmp eax, 0xd
je 0x427970
mov byte [esp + 0x1f], 0x12
mov dword [esp], 0x130
call fcn.004939e0
mov edi, eax
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 8], 0xd8
call fcn.007c51d0
mov dword [edi + 0x128], 0
mov dword [edi + 0x12c], 0
jmp 0x427970
mov esi, 0xb
mov byte [esp + 0x1f], 0x45
mov dword [esp], 0x130
call fcn.004939e0
mov edi, eax
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 8], 0xd8
call fcn.007c51d0
mov dword [edi + 0x128], 0
mov dword [edi + 0x12c], 0
cmp esi, 0xb
je 0x427970
imul esi, esi
and esi, 3
cmp esi, 3
jne 0x4277d0
nop word cs:[eax + eax]
mov ecx, 0xd
mov eax, 0xb
movzx edx, byte [esp + 0x17]
cmp edx, 0xe
je 0x427530
cmp eax, 9
je 0x4278b0
mov esi, 6
mov eax, dword [0x80af5c]
mov dword [esp], eax
call fcn.007c5960
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete cl
movzx ecx, cl
cmp eax, ecx
jne 0x427a0f
mov ecx, 0x10
mov byte [esp + 0x17], 0x78
mov dword [esp + 0x10], edi
cmp ecx, 0x10
jne 0x4277d0
mov eax, ecx
not eax
and eax, 1
add eax, ecx
je 0x4277d0
jmp 0x427a03
mov eax, dword [0x80af5c]
mov dword [esp], eax
call fcn.007c5960
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
sete cl
movzx ecx, cl
cmp eax, ecx
mov dword [esp + 0x10], edi
jne 0x427a14
mov eax, dword [esp + 0x10]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp esi, 6
jne 0x427a39
call fcn.007c4fd0
mov esi, eax
call fcn.007c4bf0
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_unlock_feature__syserr__d__s__n
call fcn.00441610
call fcn.0044c0d0
call fcn.007c4fd0
mov esi, eax
call fcn.007c4bf0
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_lock_feature__syserr__d__s__n
call fcn.00441610
call fcn.0044c0d0
int3