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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
or rsi, 0xffffffffffffffff
mov rdi, rdx
cmp dword [rdx], 0x28
mov rbx, rcx
mov r14d, 1
je 0x180054229
sub qword [rbx + 0x30], r14
js 0x18005406d
cmp dword [rbx + 0x28], r14d
jne 0x180054476
mov rcx, qword [rbx + 0x38]
mov rax, qword [rbx + 0x40]
movzx edx, byte [rcx + rax]
mov dword [rdi], edx
add qword [rbx + 0x38], r14
cmp dword [rdi], 0x2b
je 0x180054217
cmp dword [rdi], 0x23
je 0x180054220
cmp dword [rdi], 0x20
je 0x180054380
cmp dword [rdi], 0x2d
je 0x180054389
cmp dword [rdi], 0x30
je 0x18005418d
mov ecx, dword [rdi]
mov ebp, 0x1000000
cmp ecx, 0x2a
je 0x180054312
lea eax, [rcx - 0x30]
cmp eax, 9
jbe 0x180054196
cmp dword [rdi], 0x2e
je 0x1800540dd
mov rcx, qword [rbx + 0x30]
test rcx, rcx
js 0x1800540b5
mov eax, dword [rdi]
add eax, 0xffffffb4
cmp eax, 0x20
ja 0x1800540b5
movabs rdx, 0x110000001
bt rdx, rax
jb 0x1800544bf
cmp qword [rbx + 0x30], 0
jl 0x1800544f1
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
and dword [rdi + 0x10], 0
add qword [rbx + 0x30], rsi
js 0x180054103
mov rcx, qword [rbx + 0x40]
mov rax, qword [rbx + 0x38]
cmp dword [rbx + 0x28], r14d
jne 0x1800544a1
movzx ecx, byte [rax + rcx]
mov dword [rdi], ecx
add qword [rbx + 0x38], r14
mov ecx, dword [rdi]
cmp ecx, 0x2a
je 0x180054392
lea eax, [rcx - 0x30]
cmp eax, 9
ja 0x18005408e
lea eax, [rcx - 0x30]
mov dword [rdi + 0x10], eax
sub qword [rbx + 0x30], r14
js 0x18005408e
mov rcx, qword [rbx + 0x40]
mov rax, qword [rbx + 0x38]
cmp dword [rbx + 0x28], r14d
jne 0x1800544b0
movzx edx, byte [rcx + rax]
mov dword [rdi], edx
add qword [rbx + 0x38], r14
mov r8d, dword [rdi]
lea eax, [r8 - 0x30]
cmp eax, 9
ja 0x18005408e
mov r9d, dword [rdi + 0x10]
mov ecx, 0x8000002f
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x1800543f3
lea ecx, [r9 - 6]
lea ecx, [r9 + rcx*4]
lea ecx, [r8 + rcx*2]
mov dword [rdi + 0x10], ecx
jmp 0x180054120
or dword [rdi + 4], 0x10
jmp 0x18005401e
add ecx, 0xffffffd0
mov qword [rdi + 8], rcx
sub qword [rbx + 0x30], r14
js 0x180054089
cmp dword [rbx + 0x28], r14d
jne 0x180198f5f
mov rcx, qword [rbx + 0x38]
mov rax, qword [rbx + 0x40]
movzx edx, byte [rcx + rax]
mov dword [rdi], edx
add qword [rbx + 0x38], r14
mov ecx, dword [rdi]
lea eax, [rcx - 0x30]
cmp eax, 9
ja 0x180054089
mov r8, qword [rdi + 8]
lea r9d, [rcx - 0x30]
movsxd rax, r9d
movabs rcx, 0x7fffffffffffffff
sub rcx, rax
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r8, rdx
jg 0x18005445c
lea rcx, [r8 + r8*4]
lea rcx, [r9 + rcx*2]
jmp 0x180054199
or dword [rdi + 4], 2
jmp 0x18005401e
or dword [rdi + 4], 8
jmp 0x18005401e
cmp qword [rcx + 0x20], 0
mov edx, r14d
je 0x180054430
mov rcx, qword [rcx + 0x38]
inc rcx
sub qword [rbx + 0x30], r14
mov r9, rcx
mov qword [rbx + 0x38], rcx
add qword [rbx + 0x30], rsi
js 0x180054281
mov rax, qword [rbx + 0x40]
cmp dword [rbx + 0x28], r14d
jne 0x180198f1c
movzx eax, byte [rcx + rax]
mov dword [rdi], eax
cmp eax, 0x29
je 0x18005430a
cmp eax, 0x28
je 0x180054465
add qword [rbx + 0x38], r14
mov rcx, qword [rbx + 0x38]
test edx, edx
jg 0x180054249
sub rcx, r9
sub rcx, r14
cmp qword [rbx + 0x30], 0
jl 0x18005446d
test edx, edx
jg 0x18005446d
lea r8, [rcx + r9]
mov rdx, r9
mov rcx, qword [rbx + 0x48]
call sym.python310.dll_PyUnicode_Substring
mov rbp, rax
test rax, rax
je 0x180054406
cmp dword [rbx + 8], 0
je 0x1800542cc
mov rcx, qword [rbx]
and dword [rbx + 8], 0
add qword [rcx], rsi
je 0x180198f33
mov rcx, qword [rbx + 0x20]
mov rdx, rbp
call sym.python310.dll_PyObject_GetItem
mov qword [rbx], rax
add qword [rbp], rsi
jne 0x1800542eb
mov rax, qword [rbp + 8]
mov rcx, rbp
call qword [rax + 0x30]
cmp qword [rbx], 0
je 0x180054406
mov dword [rbx + 8], r14d
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xfffffffffffffffe
jmp 0x18005401e
sub edx, r14d
jmp 0x180054275
mov rcx, rbx
call fcn.1801736b0
test rax, rax
je 0x180054406
mov rcx, qword [rax + 8]
test dword [rcx + 0xa8], ebp
je 0x18005444c
mov rcx, rax
call sym.python310.dll_PyLong_AsSsize_t
mov qword [rdi + 8], rax
cmp rax, rsi
je 0x18005440d
mov rax, qword [rdi + 8]
test rax, rax
js 0x180054491
add qword [rbx + 0x30], rsi
js 0x180054089
mov rcx, qword [rbx + 0x40]
mov rax, qword [rbx + 0x38]
cmp dword [rbx + 0x28], r14d
jne 0x180198f48
movzx ecx, byte [rcx + rax]
mov dword [rdi], ecx
add qword [rbx + 0x38], r14
jmp 0x180054089
or dword [rdi + 4], 4
jmp 0x18005401e
or dword [rdi + 4], r14d
jmp 0x18005401e
mov rcx, rbx
call fcn.1801736b0
test rax, rax
je 0x180054406
mov rcx, qword [rax + 8]
test dword [rcx + 0xa8], ebp
je 0x18005444c
mov rcx, rax
call sym.python310.dll__PyLong_AsInt
mov dword [rdi + 0x10], eax
cmp eax, esi
je 0x180054420
cmp dword [rdi + 0x10], 0
jl 0x180198f7e
add qword [rbx + 0x30], rsi
js 0x18005408e
mov rcx, qword [rbx + 0x40]
mov rax, qword [rbx + 0x38]
cmp dword [rbx + 0x28], r14d
jne 0x180198f87
movzx ecx, byte [rax + rcx]
mov dword [rdi], ecx
add qword [rbx + 0x38], r14
jmp 0x18005408e
lea rdx, str.precision_too_big
mov rcx, qword [sym.python310.dll_PyExc_ValueError]
call sym.python310.dll_PyErr_SetString
mov eax, esi
jmp 0x1800540c2
mov rax, qword [0x18044f1f0]
cmp qword [rax + 0x58], 0
jne 0x180054406
jmp 0x180054348
mov rax, qword [0x18044f1f0]
cmp qword [rax + 0x58], 0
jne 0x180054406
jmp 0x1800543be
mov rcx, qword [sym.python310.dll_PyExc_TypeError]
lea rdx, str.format_requires_a_mapping
call sym.python310.dll_PyErr_SetString
or rax, 0xffffffffffffffff
jmp 0x1800540c2
mov rcx, qword [sym.python310.dll_PyExc_TypeError]
lea rdx, str._wants_int
jmp 0x180054401
lea rdx, str.width_too_big
jmp 0x1800543fa
add edx, r14d
jmp 0x180054275
lea rdx, str.incomplete_format_key
jmp 0x1800543fa
cmp dword [rbx + 0x28], 2
mov rax, qword [rbx + 0x38]
mov rcx, qword [rbx + 0x40]
jne 0x180198f40
movzx edx, word [rcx + rax*2]
jmp 0x18005403a
or dword [rdi + 4], r14d
neg rax
mov qword [rdi + 8], rax
jmp 0x180054355
cmp dword [rbx + 0x28], 2
jne 0x1800544fd
movzx ecx, word [rcx + rax*2]
jmp 0x1800540fd
cmp dword [rbx + 0x28], 2
jne 0x180054505
movzx edx, word [rcx + rax*2]
jmp 0x180054140
lea rax, [rcx - 1]
mov qword [rbx + 0x30], rax
test rax, rax
js 0x1800540b5
mov rcx, qword [rbx + 0x40]
mov rax, qword [rbx + 0x38]
cmp dword [rbx + 0x28], r14d
jne 0x180198f9e
movzx ecx, byte [rcx + rax]
mov dword [rdi], ecx
add qword [rbx + 0x38], r14
jmp 0x1800540b5
lea rdx, str.incomplete_format
jmp 0x1800543fa
mov ecx, dword [rcx + rax*4]
jmp 0x1800540fd
mov edx, dword [rcx + rax*4]
jmp 0x180054140
cmp dword [rbx + 0x28], 2
jne 0x180198f2b
movzx eax, word [rax + rcx*2]
jmp 0x180054261
mov eax, dword [rax + rcx*4]
jmp 0x180054261
mov rdx, qword [rcx + 8]
call qword [rdx + 0x30]
nop
jmp 0x1800542cc
mov edx, dword [rcx + rax*4]
jmp 0x18005403a
cmp dword [rbx + 0x28], 2
jne 0x180198f57
movzx ecx, word [rcx + rax*2]
jmp 0x180054375
mov ecx, dword [rcx + rax*4]
jmp 0x180054375
cmp dword [rbx + 0x28], 2
mov rax, qword [rbx + 0x38]
mov rcx, qword [rbx + 0x40]
jne 0x180198f76
movzx edx, word [rcx + rax*2]
jmp 0x1800541bd
mov edx, dword [rcx + rax*4]
jmp 0x1800541bd
and dword [rdi + 0x10], 0
jmp 0x1800543c8
cmp dword [rbx + 0x28], 2
jne 0x180198f96
movzx ecx, word [rcx + rax*2]
jmp 0x1800543e8
mov ecx, dword [rcx + rax*4]
jmp 0x1800543e8
cmp dword [rbx + 0x28], 2
jne 0x180198fad
movzx ecx, word [rcx + rax*2]
jmp 0x1800544e6
mov ecx, dword [rcx + rax*4]
jmp 0x1800544e6