Function at 0x140058020
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x30
movsxd rsi, r8d
mov rdi, rdx
mov qword [rbp + 0x38], 0
mov rbx, rcx
cmp esi, 0xa
ja case.default.0x14005806b
mov qword [rsp + 0x50], r15
lea r15, [0x140000000]
nop word [rax + rax]
mov ecx, dword [r15 + rsi*4 + 0x586c0]
add rcx, r15
jmp rcx
cmp dword [rbx + 4], 0x3f
jne case.0x140058683.1
mov rcx, rbx
call fcn.1400595f0
xor r8d, r8d
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140059490
mov eax, dword [rbx + 4]
cmp eax, 0x2c
je 0x140058073
mov rcx, rbx
cmp eax, 0x3a
jne case.default.0x1400580d6
call fcn.1400595f0
xor r8d, r8d
lea rdx, [rbp - 0x10]
mov rcx, rbx
call fcn.140059490
cmp dword [rdi], 0
mov ecx, dword [rbp - 0xc]
mov eax, dword [rbp - 0x10]
cmovne eax, dword [rbp + 0x38]
cmp dword [rbp + 0x3c], ecx
mov dword [rdi], eax
cmova ecx, dword [rbp + 0x3c]
mov dword [rdi + 4], ecx
mov ecx, dword [r15 + rsi*4 + 0x586c0]
add rcx, r15
jmp rcx
cmp dword [rbx + 4], 0x104
jne case.0x140058683.2
mov rcx, rbx
call fcn.1400595f0
mov r8d, 2
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140059490
cmp dword [rdi], 0
jne case.default.0x14005811c
cmp dword [rbp + 0x38], 0
jne case.default.0x14005811c
mov ecx, dword [r15 + rsi*4 + 0x586c0]
xor eax, eax
mov dword [rdi], eax
add rcx, r15
mov dword [rdi + 4], 9
jmp rcx
mov ecx, dword [r15 + rsi*4 + 0x586c0]
mov eax, 1
mov dword [rdi], eax
add rcx, r15
mov dword [rdi + 4], 9
jmp rcx
cmp dword [rbx + 4], 0x105
jne case.0x140058683.3
mov rcx, rbx
call fcn.1400595f0
mov r8d, 3
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140059490
cmp dword [rdi], 0
je case.default.0x140058180
cmp dword [rbp + 0x38], 0
je case.default.0x140058180
mov ecx, dword [r15 + rsi*4 + 0x586c0]
mov eax, 1
mov dword [rdi], eax
add rcx, r15
mov dword [rdi + 4], 9
jmp rcx
mov ecx, dword [r15 + rsi*4 + 0x586c0]
xor eax, eax
mov dword [rdi], eax
add rcx, r15
mov dword [rdi + 4], 9
jmp rcx
cmp dword [rbx + 4], 0x7c
jne case.0x140058683.4
mov rcx, rbx
call fcn.1400595f0
mov r8d, 4
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140059490
mov eax, dword [rbp + 0x38]
or dword [rdi], eax
jmp 0x14005855d
cmp dword [rbx + 4], 0x5e
jne case.0x140058683.5
mov rcx, rbx
call fcn.1400595f0
mov r8d, 5
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140059490
mov eax, dword [rbp + 0x38]
xor dword [rdi], eax
jmp 0x14005855d
cmp dword [rbx + 4], 0x26
jne case.0x140058683.6
mov rcx, rbx
call fcn.1400595f0
mov r8d, 6
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140059490
mov eax, dword [rbp + 0x38]
and dword [rdi], eax
jmp 0x14005855d
mov eax, dword [rbx + 4]
cmp eax, 0x106
jne case.default.0x14005825a
mov rcx, rbx
call fcn.1400595f0
mov r8d, 7
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140059490
mov eax, dword [rbp + 0x38]
xor ecx, ecx
cmp dword [rdi], eax
mov dword [rdi + 4], 9
sete cl
mov dword [rdi], ecx
mov ecx, dword [r15 + rsi*4 + 0x586c0]
add rcx, r15
jmp rcx
cmp eax, 0x107
jne case.0x140058683.7
mov rcx, rbx
call fcn.1400595f0
mov r8d, 7
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140059490
mov eax, dword [rbp + 0x38]
xor ecx, ecx
cmp dword [rdi], eax
mov dword [rdi + 4], 9
setne cl
mov dword [rdi], ecx
mov ecx, dword [r15 + rsi*4 + 0x586c0]
add rcx, r15
jmp rcx
mov eax, dword [rbx + 4]
cmp eax, 0x3c
jne 0x14005830b
mov rcx, rbx
call fcn.1400595f0
mov r8d, 8
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140059490
cmp dword [rdi + 4], 9
jne case.default.0x1400582e9
cmp dword [rbp + 0x3c], 9
jne case.default.0x1400582e9
mov eax, dword [rbp + 0x38]
xor ecx, ecx
cmp dword [rdi], eax
mov dword [rdi + 4], 9
setl cl
mov dword [rdi], ecx
mov ecx, dword [r15 + rsi*4 + 0x586c0]
add rcx, r15
jmp rcx
mov eax, dword [rbp + 0x38]
xor ecx, ecx
cmp dword [rdi], eax
mov dword [rdi + 4], 9
setb cl
mov dword [rdi], ecx
mov ecx, dword [r15 + rsi*4 + 0x586c0]
add rcx, r15
jmp rcx
cmp eax, 0x3e
jne 0x140058376
mov rcx, rbx
call fcn.1400595f0
mov r8d, 8
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140059490
cmp dword [rdi + 4], 9
jne case.default.0x140058354
cmp dword [rbp + 0x3c], 9
jne case.default.0x140058354
mov eax, dword [rbp + 0x38]
xor ecx, ecx
cmp dword [rdi], eax
mov dword [rdi + 4], 9
setg cl
mov dword [rdi], ecx
mov ecx, dword [r15 + rsi*4 + 0x586c0]
add rcx, r15
jmp rcx
mov eax, dword [rbp + 0x38]
xor ecx, ecx
cmp dword [rdi], eax
mov dword [rdi + 4], 9
seta cl
mov dword [rdi], ecx
mov ecx, dword [r15 + rsi*4 + 0x586c0]
add rcx, r15
jmp rcx
cmp eax, 0x108
jne 0x1400583e3
mov rcx, rbx
call fcn.1400595f0
mov r8d, 8
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140059490
cmp dword [rdi + 4], 9
jne case.default.0x1400583c1
cmp dword [rbp + 0x3c], 9
jne case.default.0x1400583c1
mov eax, dword [rbp + 0x38]
xor ecx, ecx
cmp dword [rdi], eax
mov dword [rdi + 4], 9
setle cl
mov dword [rdi], ecx
mov ecx, dword [r15 + rsi*4 + 0x586c0]
add rcx, r15
jmp rcx
mov eax, dword [rbp + 0x38]
xor ecx, ecx
cmp dword [rdi], eax
mov dword [rdi + 4], 9
setbe cl
mov dword [rdi], ecx
mov ecx, dword [r15 + rsi*4 + 0x586c0]
add rcx, r15
jmp rcx
cmp eax, 0x109
jne case.0x140058683.8
mov rcx, rbx
call fcn.1400595f0
mov r8d, 8
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140059490
cmp dword [rdi + 4], 9
jne case.default.0x14005842e
cmp dword [rbp + 0x3c], 9
jne case.default.0x14005842e
mov eax, dword [rbp + 0x38]
xor ecx, ecx
cmp dword [rdi], eax
mov dword [rdi + 4], 9
setge cl
mov dword [rdi], ecx
mov ecx, dword [r15 + rsi*4 + 0x586c0]
add rcx, r15
jmp rcx
mov eax, dword [rbp + 0x38]
xor ecx, ecx
cmp dword [rdi], eax
mov dword [rdi + 4], 9
setae cl
mov dword [rdi], ecx
mov ecx, dword [r15 + rsi*4 + 0x586c0]
add rcx, r15
jmp rcx
mov eax, dword [rbx + 4]
cmp eax, 0x10a
jne case.default.0x140058484
mov rcx, rbx
call fcn.1400595f0
mov r8d, 9
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140059490
mov ecx, dword [rbp + 0x38]
shl dword [rdi], cl
mov ecx, dword [r15 + rsi*4 + 0x586c0]
add rcx, r15
jmp rcx
cmp eax, 0x10b
jne case.0x140058683.9
mov rcx, rbx
call fcn.1400595f0
mov r8d, 9
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140059490
cmp dword [rdi + 4], 9
mov ecx, dword [rbp + 0x38]
jne case.default.0x1400584bd
sar dword [rdi], cl
mov ecx, dword [r15 + rsi*4 + 0x586c0]
add rcx, r15
jmp rcx
shr dword [rdi], cl
mov ecx, dword [r15 + rsi*4 + 0x586c0]
add rcx, r15
jmp rcx
mov eax, dword [rbx + 4]
cmp eax, 0x2b
jne 0x1400584f7
mov rcx, rbx
call fcn.1400595f0
mov r8d, 0xa
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140059490
mov eax, dword [rbp + 0x38]
add dword [rdi], eax
jmp 0x14005855d
cmp eax, 0x2d
jne case.0x140058484.10
mov rcx, rbx
call fcn.1400595f0
mov r8d, 0xa
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140059490
mov eax, dword [rbp + 0x38]
sub dword [rdi], eax
jmp 0x14005855d
mov eax, dword [rbx + 4]
cmp eax, 0x2a
jne 0x140058579
mov rcx, rbx
call fcn.1400595f0
inc dword [rbx + 0x6c]
cmp dword [rbx + 0x6c], 0x14
jg 0x1400586b0
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140059060
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140058e40
dec dword [rbx + 0x6c]
mov eax, dword [rbp + 0x38]
imul eax, dword [rdi]
mov dword [rdi], eax
mov eax, dword [rbp + 0x3c]
cmp eax, dword [rdi + 4]
jbe case.default.0x140058577
mov ecx, dword [r15 + rsi*4 + 0x586c0]
add rcx, r15
mov dword [rdi + 4], eax
jmp rcx
cmp eax, 0x2f
jne 0x140058605
mov rcx, rbx
call fcn.1400595f0
inc dword [rbx + 0x6c]
cmp dword [rbx + 0x6c], 0x14
jg 0x1400586b0
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140059060
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140058e40
dec dword [rbx + 0x6c]
mov eax, dword [rbp + 0x3c]
cmp eax, dword [rdi + 4]
jbe 0x1400585bd
mov dword [rdi + 4], eax
mov ecx, dword [rbp + 0x38]
test ecx, ecx
je 0x1400586a2
cmp dword [rdi + 4], 9
mov eax, dword [rdi]
jne 0x1400585f2
cmp eax, 0x80000000
jne 0x1400585e0
cmp ecx, 0xffffffff
je 0x1400586a2
cdq
idiv ecx
mov ecx, dword [r15 + rsi*4 + 0x586c0]
mov dword [rdi], eax
add rcx, r15
jmp rcx
xor edx, edx
div ecx
mov ecx, dword [r15 + rsi*4 + 0x586c0]
mov dword [rdi], eax
add rcx, r15
jmp rcx
cmp eax, 0x25
jne 0x140058685
mov rcx, rbx
call fcn.1400595f0
inc dword [rbx + 0x6c]
cmp dword [rbx + 0x6c], 0x14
jg 0x1400586b0
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140059060
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140058e40
dec dword [rbx + 0x6c]
mov eax, dword [rbp + 0x3c]
cmp eax, dword [rdi + 4]
jbe 0x140058645
mov dword [rdi + 4], eax
mov ecx, dword [rbp + 0x38]
test ecx, ecx
je 0x1400586a2
cmp dword [rdi + 4], 9
mov eax, dword [rdi]
jne 0x140058672
cmp eax, 0x80000000
jne 0x140058660
cmp ecx, 0xffffffff
je 0x1400586a2
cdq
idiv ecx
mov ecx, dword [r15 + rsi*4 + 0x586c0]
mov dword [rdi], edx
add rcx, r15
jmp rcx
xor edx, edx
div ecx
mov ecx, dword [r15 + rsi*4 + 0x586c0]
mov dword [rdi], edx
add rcx, r15
jmp rcx
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov edx, 0x3a
call fcn.140057ea0
int3
mov edx, 0x219
mov rcx, rbx
call fcn.140057e40
int3
mov edx, 0x8d0
mov rcx, rbx
call fcn.140057e40
int3