Function at 0x140217570
Capabilities:
Parse credit card information

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x238
lea rbp, [rsp + 0x80]
mov rdi, qword [0x1404c8a60]
mov rax, qword [rdi]
mov qword [rbp + 0x1a8], rax
xor eax, eax
cmp byte [rcx], 0x5f
mov qword [rbp - 0x58], r8
mov rbx, rcx
mov r15, rdx
je 0x1402179bf
mov r8d, 8
lea rdx, str._GLOBAL_
mov rcx, rbx
call sub.msvcrt.dll_strncmp
test eax, eax
je 0x140217904
xor r11d, r11d
xor r13d, r13d
shl r11d, 0x1f
lea rax, [rbx + 1]
mov qword [rbp - 0x60], r15
lea edi, [r13 - 2]
sar r11d, 0x1f
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x30]
add r11d, 0x47
mov dword [rbp + 0x24], 1
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x44], r11d
jmp 0x1402176cb
cmp edi, 1
ja 0x1402178be
lea r12, [rbx + 0xb]
cmp byte [rbx + 0xb], 0x5f
mov qword [rbp - 0x18], r12
jne 0x140217631
cmp byte [rbx + 0xc], 0x5a
je 0x1402178d6
mov rcx, r12
mov qword [rbp - 0x40], r8
call sub.msvcrt.dll_strlen
test r15d, r15d
je 0x14021797f
test eax, eax
mov dword [rbp - 8], 1
mov r8, qword [rbp - 0x40]
mov qword [r14*8 + 4], 0
jle 0x14021797f
mov dword [r14*8], 0
mov qword [r14*8 + 0x10], r12
mov dword [r14*8 + 0x18], eax
mov r14, qword [rbp - 0x38]
mov edx, dword [rbp - 0x44]
xor r9d, r9d
mov rcx, r14
call fcn.14020ca80
mov rcx, r12
mov r15, rax
call sub.msvcrt.dll_strlen
lea r11, [r12 + rax]
mov qword [rbp - 0x18], r11
movzx eax, byte [r11]
test al, al
jne 0x1402176b7
test r15, r15
jne 0x1402179d7
cmp dword [rbp + 0x24], 0xffffffff
jne 0x1402179b8
mov dword [rbp + 0x24], 0
mov rsp, rsi
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov qword [rbp - 0x30], rbx
mov rcx, rax
lea rax, [rbx + rax]
mov dword [rbp - 0x20], 0x11
lea r15d, [rcx + rcx]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x18], rbx
mov dword [rbp - 4], r15d
mov dword [rbp - 8], 0
mov dword [rbp + 0xc], ecx
mov dword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
mov dword [rbp + 0x20], 0
mov dword [rbp + 0x28], 0
cmp r15d, 0x800
ja 0x14021798b
mov eax, r15d
mov rsi, rsp
shl rax, 5
call fcn.1402196a0
sub rsp, rax
movsxd rcx, ecx
lea r8, [rsp + 0x27]
lea rax, [rcx*8 + 0xf]
mov r14, r8
and rax, 0xfffffffffffffff0
and r8, 0xfffffffffffffff8
shr r14, 3
call fcn.1402196a0
sub rsp, rax
mov qword [rbp - 0x10], r8
lea rax, [rsp + 0x20]
mov qword [rbp], rax
cmp r13d, 1
jne 0x140217610
cmp byte [rbx], 0x5f
jne 0x1402176b7
mov rax, qword [rbp - 0x50]
cmp byte [rbx + 1], 0x5a
mov qword [rbp - 0x18], rax
jne 0x1402176b7
lea rax, [rbx + 2]
lea r14, [rbp - 0x30]
mov qword [rbp - 0x18], rax
movzx eax, byte [rbx + 2]
cmp al, 0x47
je 0x14021796f
cmp al, 0x54
je 0x14021796f
mov edx, 1
mov rcx, r14
call fcn.140210e80
mov r15, rax
mov rdx, qword [rbp - 0x18]
movzx eax, byte [rdx]
test byte [rbp - 0x20], 1
je 0x1402176aa
cmp al, 0x2e
jne 0x1402176aa
nop dword [rax]
movzx eax, byte [rdx + 1]
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x140217803
cmp al, 0x5f
je 0x140217803
sub eax, 0x30
cmp al, 9
ja 0x140217b1f
movzx eax, byte [rdx + 2]
lea r11, [rdx + 2]
jmp 0x140217819
movzx eax, byte [r11 + 1]
add r11, 1
lea ecx, [rax - 0x61]
lea r8d, [rax - 0x30]
cmp cl, 0x19
setbe cl
cmp r8b, 9
setbe r8b
or cl, r8b
jne 0x140217810
cmp al, 0x5f
je 0x140217810
nop word [rax + rax]
cmp al, 0x2e
jne 0x140217885
movzx eax, byte [r11 + 1]
sub eax, 0x30
cmp al, 9
ja 0x140217885
movzx eax, byte [r11 + 2]
lea rcx, [r11 + 2]
mov r11, rcx
lea r8d, [rax - 0x30]
cmp r8b, 9
ja 0x140217840
nop word cs:[rax + rax]
movzx eax, byte [r11 + 1]
add r11, 1
lea ecx, [rax - 0x30]
cmp cl, 9
jbe 0x140217870
cmp al, 0x2e
je 0x140217844
mov r8d, r11d
mov rcx, r14
mov qword [rbp - 0x18], r11
sub r8d, edx
call fcn.14020cb80
mov r8, r15
mov edx, 0x50
mov r9, rax
call fcn.14020ca80
mov r15, rax
movzx eax, byte [r11]
cmp al, 0x2e
jne 0x1402176aa
mov rdx, r11
jmp 0x1402177e8
mov rcx, qword [rbp - 0x38]
call fcn.14020db60
mov r15, rax
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax]
jmp 0x1402176aa
lea rax, [rbx + 0xd]
lea r14, [rbp - 0x30]
mov qword [rbp - 0x18], rax
movzx eax, byte [rbx + 0xd]
cmp al, 0x47
je 0x14021795b
cmp al, 0x54
je 0x14021795b
xor edx, edx
mov rcx, r14
call fcn.140210e80
mov r12, qword [rbp - 0x18]
mov r8, rax
jmp 0x140217685
movzx eax, byte [rbx + 8]
sub eax, 0x24
cmp al, 0x3b
ja 0x1402175ce
movabs rdx, 0x800000000000401
bt rdx, rax
setb r11b
xor r13d, r13d
test r11b, r11b
je 0x1402175d4
movzx eax, byte [rbx + 9]
cmp al, 0x44
sete r11b
cmp al, 0x49
sete dl
or r11b, dl
je 0x1402175d4
cmp byte [rbx + 0xa], 0x5f
je 0x140217b2b
xor r11d, r11d
jmp 0x1402175d4
mov rcx, r14
call fcn.140210250
mov r12, qword [rbp - 0x18]
mov r8, rax
jmp 0x140217685
mov rcx, r14
call fcn.140210250
mov r15, rax
jmp 0x1402177cc
xor r8d, r8d
lea r14, [rbp - 0x30]
jmp 0x140217685
xor eax, eax
mov rdi, qword [0x1404c8a60]
mov rdx, qword [rbp + 0x1a8]
sub rdx, qword [rdi]
jne 0x140217b47
lea rsp, [rbp + 0x1b8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
xor eax, eax
mov rsp, rsi
jmp 0x14021798d
cmp byte [rcx + 1], 0x5a
jne 0x1402175b1
xor r11d, r11d
mov r13d, 1
jmp 0x1402175d4
mov rax, qword [rbp - 0x58]
mov r14, r15
lea rbx, [rbp + 0x30]
mov r15, qword [rbp - 0x60]
pxor xmm0, xmm0
mov rdx, r14
mov rcx, rbx
mov qword [rbp + 0x130], 0
mov byte [rbp + 0x138], 0
mov qword [rbp + 0x150], 0
mov qword [rbp + 0x158], 0
mov dword [rbp + 0x170], 0
mov qword [rbp + 0x140], r15
mov qword [rbp + 0x148], rax
mov qword [rbp + 0x178], 0
mov qword [rbp + 0x188], 0
mov qword [rbp + 0x198], 0
movups xmmword [rbp + 0x160], xmm0
call fcn.14020cde0
cmp dword [rbp + 0x164], 0x7ff
jg 0x140217a73
mov dword [rbp + 0x164], 0
movsxd rax, dword [rbp + 0x18c]
mov edx, dword [rbp + 0x19c]
mov ecx, 1
mov rdi, rsp
mov qword [rbp + 0x1a0], 0
imul edx, eax
test eax, eax
cmovle rax, rcx
shl rax, 4
mov dword [rbp + 0x19c], edx
call fcn.1402196a0
sub rsp, rax
test edx, edx
mov eax, 1
cmovg eax, edx
lea rcx, [rsp + 0x20]
cdqe
shl rax, 4
call fcn.1402196a0
mov edx, 0x11
sub rsp, rax
mov r8, r14
mov qword [rbp + 0x180], rcx
mov rcx, rbx
lea rax, [rsp + 0x20]
mov qword [rbp + 0x190], rax
call fcn.140215dc0
mov rdx, qword [rbp + 0x130]
mov rsp, rdi
mov r8, qword [rbp + 0x148]
mov rcx, rbx
mov byte [rbp + rdx + 0x30], 0
call qword [rbp + 0x140]
mov edx, dword [rbp + 0x160]
xor eax, eax
test edx, edx
sete al
jmp 0x1402179ba
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax]
jmp 0x1402176aa
mov r13d, 2
cmp al, 0x49
je 0x1402175d4
xor r11d, r11d
mov r13d, 3
jmp 0x1402175d4
call fcn.14021b9a0
nop
nop dword [rax]