Function at 0x180040040
Capabilities:
Parse credit card information

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
sub rsp, 0x30
mov r12, qword [rcx]
mov r10, qword [r12 + 0x89c0]
mov rdi, qword [r12 + 0x1a8]
movzx ecx, byte [r10]
mov rbx, r10
call fcn.18003feb0
test eax, eax
je 0x1800400cd
nop
movzx ecx, byte [rbx + 1]
inc rbx
call fcn.18003feb0
test eax, eax
jne 0x180040070
cmp rbx, r10
je 0x1800400cd
mov r8, rbx
cmp rbx, r10
jbe 0x180040099
cmp byte [rbx - 1], 0x2f
lea rax, [rbx - 1]
cmove r8, rax
lea r13, [rdi + 8]
xor ebp, ebp
sub r8, r10
mov rdx, r10
mov rcx, r12
mov r9, r13
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbp
call fcn.180052400
test eax, eax
je 0x1800400d7
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
lea r13, [rdi + 8]
xor ebp, ebp
mov qword [r13], rbp
cmp byte [rbx], 0x3b
mov qword [rsp + 0x78], rsi
jne 0x1800402f9
nop word [rax + rax]
movzx eax, byte [rbx + 1]
inc rbx
mov rdx, rbx
test al, al
je 0x180040387
cmp al, 0x3d
je 0x180040126
mov al, byte [rbx + 1]
inc rbx
test al, al
jne 0x180040102
mov eax, 3
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
cmp byte [rbx], 0
je 0x180040387
mov r8, rbx
lea r9, [rsp + 0x68]
mov rcx, r12
sub r8, rdx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbp
call fcn.180052400
test eax, eax
jne 0x180040360
movzx ecx, byte [rbx + 1]
inc rbx
mov r10, rbx
call fcn.18003feb0
test eax, eax
je 0x180040180
nop word [rax + rax]
movzx ecx, byte [rbx + 1]
inc rbx
call fcn.18003feb0
test eax, eax
jne 0x180040170
lea rax, [rsp + 0x70]
mov r8, rbx
lea r9, [rsp + 0x60]
mov rdx, r10
mov rcx, r12
sub r8, r10
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call fcn.180052400
mov esi, eax
test eax, eax
jne 0x18004039d
mov rcx, qword [rsp + 0x68]
lea rdx, str.UIDVALIDITY
call fcn.180052220
test eax, eax
je 0x1800401fc
cmp qword [rdi + 0x10], 0
jne 0x1800401fc
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x1800401e9
mov rcx, qword [rsp + 0x60]
cmp byte [rcx + rax - 1], 0x2f
jne 0x1800401e9
mov byte [rcx + rax - 1], sil
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x60], rbp
mov qword [rdi + 0x10], rax
jmp 0x1800402da
mov rcx, qword [rsp + 0x68]
lea rdx, [0x18009108c]
call fcn.180052220
test eax, eax
je 0x180040246
cmp qword [rdi + 0x18], 0
jne 0x180040246
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x180040233
mov rcx, qword [rsp + 0x60]
cmp byte [rcx + rax - 1], 0x2f
jne 0x180040233
mov byte [rcx + rax - 1], 0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x60], rbp
mov qword [rdi + 0x18], rax
jmp 0x1800402da
mov rcx, qword [rsp + 0x68]
lea rdx, str.SECTION
call fcn.180052220
test eax, eax
je 0x18004028d
cmp qword [rdi + 0x20], 0
jne 0x18004028d
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x18004027d
mov rcx, qword [rsp + 0x60]
cmp byte [rcx + rax - 1], 0x2f
jne 0x18004027d
mov byte [rcx + rax - 1], 0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x60], rbp
mov qword [rdi + 0x20], rax
jmp 0x1800402da
mov rcx, qword [rsp + 0x68]
lea rdx, str.PARTIAL
call fcn.180052220
test eax, eax
je 0x180040371
cmp qword [rdi + 0x28], 0
jne 0x180040371
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x1800402cc
mov rcx, qword [rsp + 0x60]
cmp byte [rcx + rax - 1], 0x2f
jne 0x1800402cc
mov byte [rcx + rax - 1], 0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x60], rbp
mov qword [rdi + 0x28], rax
mov rcx, qword [rsp + 0x68]
call qword [fcn.18005f038]
mov rcx, qword [rsp + 0x60]
call qword [fcn.18005f038]
cmp byte [rbx], 0x3b
je 0x1800400f0
cmp qword [r13], 0
je 0x180040356
cmp qword [rdi + 0x18], 0
jne 0x180040356
cmp byte [rbx], 0x3f
jne 0x180040356
movzx ecx, byte [rbx + 1]
inc rbx
mov r10, rbx
call fcn.18003feb0
test eax, eax
je 0x180040330
nop
movzx ecx, byte [rbx + 1]
inc rbx
call fcn.18003feb0
test eax, eax
jne 0x180040320
mov r8, rbx
lea r9, [rdi + 0x30]
mov rdx, r10
mov rcx, r12
sub r8, r10
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbp
call fcn.180052400
test eax, eax
jne 0x180040360
movzx eax, byte [rbx]
neg al
sbb eax, eax
and eax, 3
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
mov rcx, qword [rsp + 0x68]
call qword [fcn.18005f038]
mov rcx, qword [rsp + 0x60]
call qword [fcn.18005f038]
mov eax, 3
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
mov rcx, qword [rsp + 0x68]
call qword [fcn.18005f038]
mov eax, esi
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret