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

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rbp, r8
mov rdx, qword [rdx]
mov rdi, rcx
movsx eax, byte [rdx]
add eax, 0xffffffde
cmp eax, 0x59
ja case.0x18005cc50.35
lea r8, [0x180000000]
cdqe
movzx eax, byte [r8 + rax + 0x5cf88]
mov ecx, dword [r8 + rax*4 + 0x5cf6c]
add rcx, r8
jmp rcx
lea rax, [rdx + 1]
mov qword [rbx], rax
cmp byte [rax], 0x75
jne 0x18005ccab
inc rax
mov qword [rbx], rax
cmp byte [rax], 0x6c
jne 0x18005ccab
inc rax
mov qword [rbx], rax
cmp byte [rax], 0x6c
jne 0x18005ccab
inc rax
mov qword [rbx], rax
mov rax, qword [rbp + 0x40]
sub rax, qword [rbp + 0x38]
cmp rax, 0x10
jge 0x18005cc91
lea rcx, [rbp + 0x20]
call fcn.18005dfc0
mov rcx, qword [rbp + 0x38]
xorps xmm0, xmm0
lea rax, [rcx + 0x10]
mov qword [rbp + 0x38], rax
movups xmmword [rcx], xmm0
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
sub rax, qword [rbx + 0x10]
mov dword [rdi + 0x30], 3
mov qword [rdi + 0x38], rax
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
lea rax, [rdx + 1]
mov qword [rbx], rax
cmp byte [rax], 0x72
jne 0x18005ccab
inc rax
mov qword [rbx], rax
cmp byte [rax], 0x75
jne 0x18005ccab
inc rax
mov qword [rbx], rax
cmp byte [rax], 0x65
jne 0x18005ccab
inc rax
mov qword [rbx], rax
mov rax, qword [rbp + 0x40]
sub rax, qword [rbp + 0x38]
cmp rax, 0x10
jge 0x18005cd01
lea rcx, [rbp + 0x20]
call fcn.18005dfc0
mov rcx, qword [rbp + 0x38]
xorps xmm0, xmm0
lea rax, [rcx + 0x10]
mov qword [rbp + 0x38], rax
mov eax, 0xa
movups xmmword [rcx], xmm0
mov word [rcx + 0xe], ax
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
lea rax, [rdx + 1]
mov qword [rbx], rax
cmp byte [rax], 0x61
jne 0x18005ccab
inc rax
mov qword [rbx], rax
cmp byte [rax], 0x6c
jne 0x18005ccab
inc rax
mov qword [rbx], rax
cmp byte [rax], 0x73
jne 0x18005ccab
inc rax
mov qword [rbx], rax
cmp byte [rax], 0x65
jne 0x18005ccab
inc rax
mov qword [rbx], rax
mov rax, qword [rbp + 0x40]
sub rax, qword [rbp + 0x38]
cmp rax, 0x10
jge 0x18005cd7e
lea rcx, [rbp + 0x20]
call fcn.18005dfc0
mov rcx, qword [rbp + 0x38]
xorps xmm0, xmm0
lea rax, [rcx + 0x10]
mov qword [rbp + 0x38], rax
mov eax, 9
movups xmmword [rcx], xmm0
mov word [rcx + 0xe], ax
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
xor r9d, r9d
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
add rsp, 0x30
pop rdi
pop rbp
pop rbx
jmp 0x18005d060
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
add rsp, 0x30
pop rdi
pop rbp
pop rbx
jmp 0x18005d3d0
lea rax, [rdx + 1]
mov qword [rsp + 0x28], rsi
mov qword [rbx], rax
mov rax, qword [rbp + 0x40]
sub rax, qword [rbp + 0x38]
mov qword [rsp + 0x20], r14
cmp rax, 0x10
jge 0x18005cdf6
lea rcx, [rbp + 0x20]
call fcn.18005dfc0
mov rcx, qword [rbp + 0x38]
xorps xmm0, xmm0
mov r14d, 4
lea rax, [rcx + 0x10]
mov qword [rbp + 0x38], rax
movups xmmword [rcx], xmm0
mov word [rcx + 0xe], r14w
mov rcx, rbx
call fcn.18005cff0
cmp dword [rdi + 0x30], 0
jne 0x18005ce50
mov rax, qword [rbx]
cmp byte [rax], 0x5d
jne 0x18005ce62
inc rax
movabs rdx, 0xffff000000000000
mov qword [rbx], rax
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x38], rax
mov word [rax - 2], r14w
and qword [rax - 8], rdx
xor esi, esi
mov qword [rax - 0x10], rsi
mov rsi, qword [rsp + 0x28]
mov r14, qword [rsp + 0x20]
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
xor esi, esi
call fcn.18005cc10
cmp dword [rdi + 0x30], esi
jne 0x18005ce50
nop word [rax + rax]
mov rcx, rbx
inc esi
call fcn.18005cff0
cmp dword [rdi + 0x30], 0
jne 0x18005ce50
mov rax, qword [rbx]
movzx ecx, byte [rax]
cmp cl, 0x2c
jne 0x18005cec5
inc rax
mov rcx, rbx
mov qword [rbx], rax
call fcn.18005cff0
cmp dword [rdi + 0x30], 0
jne 0x18005ce50
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call fcn.18005cc10
cmp dword [rdi + 0x30], 0
je 0x18005ce80
jmp 0x18005ce50
cmp cl, 0x5d
jne 0x18005cf40
inc rax
mov edi, esi
mov qword [rbx], rax
mov rbx, qword [rbp + 0x38]
shl rdi, 4
sub rbx, rdi
mov qword [rbp + 0x38], rbx
mov rcx, qword [rbp + 0x10]
mov word [rbx - 2], r14w
test esi, esi
je 0x18005cf27
mov rdx, rdi
call fcn.18005de90
mov rcx, qword [rbx - 8]
movabs rdx, 0xffff000000000000
and rcx, rdx
mov r8, rdi
or rcx, rax
mov rdx, rbx
mov qword [rbx - 8], rcx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov dword [rbx - 0xc], esi
mov dword [rbx - 0x10], esi
jmp 0x18005ce50
movabs rdx, 0xffff000000000000
mov dword [rbx - 0xc], esi
and qword [rbx - 8], rdx
mov dword [rbx - 0x10], esi
jmp 0x18005ce50
sub rax, qword [rbx + 0x10]
mov dword [rdi + 0x30], 7
mov qword [rdi + 0x38], rax
jmp 0x18005ce50
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
add rsp, 0x30
pop rdi
pop rbp
pop rbx
jmp 0x18005d5c0
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1802e8038]
xor rax, rsp
mov qword [rbp - 8], rax
movzx r13d, r9b
mov qword [rbp - 0x30], r8
mov r15, rcx
movups xmm1, xmmword [rdx]
movups xmmword [rbp - 0x28], xmm1
movsd xmm0, qword [rdx + 0x10]
movsd qword [rbp - 0x18], xmm0
mov qword [rbp - 0x10], rdx
movq rdx, xmm1
inc rdx
mov qword [rbp - 0x28], rdx
mov rbx, rdx
mov qword [rbp - 0x20], rdx
mov r12, rdx
mov r10, qword [rbp - 0x18]
lea r8, [0x1802ad2e0]
nop word [rax + rax]
movzx eax, byte [rdx]
cmp al, 0x5c
jne 0x18005d2af
mov r14, rdx
sub r14, r10
inc rdx
mov qword [rbp - 0x28], rdx
movzx ecx, byte [rdx]
movzx r8d, byte [rcx + r8]
test r8b, r8b
je 0x18005d108
inc rdx
mov qword [rbp - 0x28], rdx
mov byte [rbx], r8b
inc rbx
mov qword [rbp - 0x20], rbx
jmp 0x18005d0bf
cmp cl, 0x75
jne 0x18005d2d8
inc rdx
mov qword [rbp - 0x28], rdx
xor eax, eax
xor r9d, r9d
nop dword [rax]
movsx r8d, byte [rdx]
shl eax, 4
add eax, r8d
lea ecx, [r8 - 0x30]
cmp cl, 9
ja 0x18005d138
add eax, 0xffffffd0
jmp 0x18005d153
lea ecx, [r8 - 0x41]
cmp cl, 5
ja 0x18005d146
add eax, 0xffffffc9
jmp 0x18005d153
sub r8b, 0x61
cmp r8b, 5
ja 0x18005d169
add eax, 0xffffffa9
inc rdx
mov qword [rbp - 0x28], rdx
inc r9d
cmp r9d, 4
jl 0x18005d120
lea rdi, [r15 + 0x30]
jmp 0x18005d179
lea rdi, [r15 + 0x30]
mov dword [rdi], 8
mov qword [rdi + 8], r14
xor eax, eax
cmp dword [rdi], 0
jne 0x18005d388
lea esi, [rax - 0xd800]
cmp esi, 0x3ff
ja 0x18005d1f3
cmp byte [rdx], 0x5c
jne 0x18005d2cc
lea rax, [rdx + 1]
mov qword [rbp - 0x28], rax
cmp byte [rax], 0x75
jne 0x18005d2cc
inc rax
mov qword [rbp - 0x28], rax
mov r8, r14
lea rdx, [rbp - 0x28]
mov rcx, r15
call fcn.18005df50
mov rbx, qword [rbp - 0x20]
cmp dword [rdi], 0
jne 0x18005d388
lea ecx, [rax - 0xdc00]
cmp ecx, 0x3ff
ja 0x18005d2cc
mov eax, esi
shl eax, 0xa
or eax, ecx
add eax, 0x10000
mov r10, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x28]
cmp eax, 0x7f
ja 0x18005d206
mov byte [rbx], al
inc rbx
mov qword [rbp - 0x20], rbx
jmp 0x18005d0bf
movzx r9d, al
and r9b, 0x3f
or r9b, 0x80
mov ecx, eax
shr ecx, 6
cmp eax, 0x7ff
ja 0x18005d239
or cl, 0xc0
mov byte [rbx], cl
inc rbx
mov qword [rbp - 0x20], rbx
mov byte [rbx], r9b
inc rbx
mov qword [rbp - 0x20], rbx
jmp 0x18005d0bf
mov r8d, eax
shr r8d, 0xc
and cl, 0x3f
or cl, 0x80
cmp eax, 0xffff
ja 0x18005d275
or r8b, 0xe0
mov byte [rbx], r8b
inc rbx
mov qword [rbp - 0x20], rbx
mov byte [rbx], cl
lea rax, [rbx + 1]
mov qword [rbp - 0x20], rax
mov byte [rax], r9b
lea rbx, [rax + 1]
mov qword [rbp - 0x20], rbx
jmp 0x18005d0bf
shr eax, 0x12
or al, 0xf0
mov byte [rbx], al
inc rbx
mov qword [rbp - 0x20], rbx
and r8b, 0x3f
or r8b, 0x80
mov byte [rbx], r8b
lea rax, [rbx + 1]
mov qword [rbp - 0x20], rax
mov byte [rax], cl
inc rax
mov qword [rbp - 0x20], rax
mov byte [rax], r9b
lea rbx, [rax + 1]
mov qword [rbp - 0x20], rbx
jmp 0x18005d0bf
cmp al, 0x22
je 0x18005d307
cmp al, 0x20
jb 0x18005d2e8
inc rdx
mov qword [rbp - 0x28], rdx
mov byte [rbx], al
inc rbx
mov qword [rbp - 0x20], rbx
jmp 0x18005d0d0
mov dword [rdi], 9
mov qword [rdi + 8], r14
jmp 0x18005d31c
lea rdi, [r15 + 0x30]
mov dword [rdi], 0xa
mov qword [rdi + 8], r14
jmp 0x18005d31c
lea rdi, [r15 + 0x30]
sub rdx, r10
mov qword [rdi + 8], rdx
test al, al
jne 0x18005d2ff
mov dword [rdi], 0xb
jmp 0x18005d31c
mov dword [rdi], 0xc
jmp 0x18005d31c
inc rdx
mov qword [rbp - 0x28], rdx
mov byte [rbx], 0
inc rbx
mov qword [rbp - 0x20], rbx
lea rdi, [r15 + 0x30]
cmp dword [rdi], 0
jne 0x18005d388
sub rbx, r12
dec rbx
mov rdi, qword [rbp - 0x30]
mov rax, qword [rdi + 0x40]
mov rcx, qword [rdi + 0x38]
sub rax, rcx
cmp rax, 0x10
jge 0x18005d345
lea rcx, [rdi + 0x20]
call fcn.18005dfc0
mov rcx, qword [rdi + 0x38]
lea rax, [rcx + 0x10]
mov qword [rdi + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov eax, 0x405
lea rdx, [0x18015622b]
test r12, r12
mov word [rcx + 0xe], ax
cmovne rdx, r12
movabs r8, 0xffff000000000000
mov rax, qword [rcx + 8]
and rax, r8
or rax, rdx
mov dword [rcx], ebx
mov qword [rcx + 8], rax
mov rax, qword [rbp - 0x10]
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rax], xmm0
movsd xmm1, qword [rbp - 0x18]
movsd qword [rax + 0x10], xmm1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180115350
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
inc qword [rdx]
mov rbp, r8
mov rax, qword [r8 + 0x40]
mov rbx, rdx
sub rax, qword [r8 + 0x38]
mov rdi, rcx
cmp rax, 0x10
jge 0x18005d3ff
lea rcx, [r8 + 0x20]
call fcn.18005dfc0
mov rcx, qword [rbp + 0x38]
xorps xmm0, xmm0
mov r9d, 3
lea rax, [rcx + 0x10]
mov qword [rbp + 0x38], rax
movups xmmword [rcx], xmm0
mov word [rcx + 0xe], r9w
mov rcx, rbx
call fcn.18005cff0
cmp dword [rdi + 0x30], 0
jne 0x18005d5a8
mov rax, qword [rbx]
cmp byte [rax], 0x7d
jne 0x18005d46a
inc rax
movabs rcx, 0xffff000000000000
mov qword [rbx], rax
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x38], rax
mov word [rax - 2], r9w
and qword [rax - 8], rcx
xor esi, esi
mov qword [rax - 0x10], rsi
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
xor esi, esi
nop dword [rax]
mov rax, qword [rbx]
cmp byte [rax], 0x22
jne 0x18005d599
mov r9b, 1
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call 0x18005d060
cmp dword [rdi + 0x30], 0
jne 0x18005d5a8
mov rcx, rbx
call fcn.18005cff0
cmp dword [rdi + 0x30], 0
jne 0x18005d5a8
mov rax, qword [rbx]
cmp byte [rax], 0x3a
jne 0x18005d57d
inc rax
mov rcx, rbx
mov qword [rbx], rax
call fcn.18005cff0
cmp dword [rdi + 0x30], 0
jne 0x18005d5a8
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call fcn.18005cc10
cmp dword [rdi + 0x30], 0
jne 0x18005d5a8
mov rcx, rbx
call fcn.18005cff0
cmp dword [rdi + 0x30], 0
jne 0x18005d5a8
mov rax, qword [rbx]
inc esi
movzx ecx, byte [rax]
cmp cl, 0x2c
jne 0x18005d529
inc rax
mov rcx, rbx
mov qword [rbx], rax
call fcn.18005cff0
cmp dword [rdi + 0x30], 0
je 0x18005d470
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
cmp cl, 0x7d
je 0x18005d54a
sub rax, qword [rbx + 0x10]
mov dword [rdi + 0x30], 6
mov qword [rdi + 0x38], rax
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
inc rax
mov edx, esi
mov rcx, rbp
mov qword [rbx], rax
call fcn.18005de00
test al, al
jne 0x18005d5a8
mov rax, qword [rbx]
sub rax, qword [rbx + 0x10]
mov dword [rdi + 0x30], 0x10
mov qword [rdi + 0x38], rax
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
sub rax, qword [rbx + 0x10]
mov dword [rdi + 0x30], 5
mov qword [rdi + 0x38], rax
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
sub rax, qword [rbx + 0x10]
mov dword [rdi + 0x30], 4
mov qword [rdi + 0x38], rax
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x1802e8038]
xor rax, rsp
mov qword [rbp - 9], rax
mov qword [rbp - 0x39], r8
mov qword [rbp - 0x31], rdx
mov r12, rcx
movups xmm0, xmmword [rdx]
movups xmmword [rbp - 0x29], xmm0
movsd xmm7, qword [rdx + 0x10]
movsd qword [rbp - 0x19], xmm7
mov qword [rbp - 0x11], rdx
movq rcx, xmm0
mov rax, rcx
mov r13, qword [rbp - 0x19]
sub rax, r13
mov qword [rbp - 0x41], rax
xorps xmm6, xmm6
xorps xmm1, xmm1
cmp byte [rcx], 0x2d
jne 0x18005d63d
inc rcx
mov qword [rbp - 0x29], rcx
mov r10b, 1
jmp 0x18005d640
xor r10b, r10b
mov byte [rbp - 0x48], r10b
xor edi, edi
mov ebx, edi
xor r11b, r11b
mov byte [rbp - 0x49], r11b
mov r9d, edi
movsx eax, byte [rcx]
cmp al, 0x30
jne 0x18005d668
mov esi, edi
lea rdx, [rcx + 1]
mov qword [rbp - 0x29], rdx
jmp 0x18005d735
cmp al, 0x31
jl 0x18005dd78
cmp al, 0x39
jg 0x18005dd78
lea rdx, [rcx + 1]
mov qword [rbp - 0x29], rdx
lea esi, [rax - 0x30]
movzx eax, byte [rdx]
test r10b, r10b
je 0x18005d6e0
cmp al, 0x30
jl 0x18005d735
mov r8, rdx
mov rcx, rdx
nop dword [rax]
cmp al, 0x39
ja 0x18005d735
cmp esi, 0xccccccc
jb 0x18005d6b9
jne 0x18005d72c
mov r8, rcx
cmp al, 0x38
ja 0x18005d72c
lea rdx, [r8 + 1]
mov qword [rbp - 0x29], rdx
lea ecx, [rsi - 6]
lea ecx, [rsi + rcx*4]
movsx eax, byte [r8]
lea esi, [rax + rcx*2]
inc r9d
movzx eax, byte [rdx]
mov r8, rdx
mov rcx, rdx
cmp al, 0x30
jl 0x18005d735
jmp 0x18005d6a0
cmp al, 0x30
jl 0x18005d735
mov r8, rdx
mov rcx, rdx
nop word [rax + rax]
cmp al, 0x39
jg 0x18005d735
cmp esi, 0x19999999
jb 0x18005d705
jne 0x18005d72c
mov r8, rcx
cmp al, 0x35
jg 0x18005d72c
lea rdx, [r8 + 1]
mov qword [rbp - 0x29], rdx
lea ecx, [rsi - 6]
lea ecx, [rsi + rcx*4]
movsx eax, byte [r8]
lea esi, [rax + rcx*2]
inc r9d
movzx eax, byte [rdx]
mov r8, rdx
mov rcx, rdx
cmp al, 0x30
jl 0x18005d735
jmp 0x18005d6f0
mov r11b, 1
mov byte [rbp - 0x49], r11b
mov ebx, esi
xor r15b, r15b
test r11b, r11b
je 0x18005d82d
movzx ecx, byte [rdx]
test r10b, r10b
je 0x18005d7b0
cmp cl, 0x30
jl 0x18005d82d
mov r8, rdx
mov r10, rdx
movabs r11, 0xccccccccccccccc
cmp cl, 0x39
ja 0x18005d82d
cmp rbx, r11
jb 0x18005d782
jne 0x18005d803
mov r8, r10
cmp cl, 0x38
ja 0x18005d803
lea rdx, [r8 + 1]
mov qword [rbp - 0x29], rdx
movsx ecx, byte [r8]
sub ecx, 0x30
lea rax, [rbx + rbx*4]
lea rbx, [rcx + rax*2]
inc r9d
mov r8, rdx
mov r10, rdx
movzx ecx, byte [rdx]
cmp cl, 0x30
jl 0x18005d82d
jmp 0x18005d762
cmp cl, 0x30
jl 0x18005d82d
mov r8, rdx
mov r10, rdx
movabs r11, 0x1999999999999999
cmp cl, 0x39
ja 0x18005d82d
cmp rbx, r11
jb 0x18005d7d9
jne 0x18005d803
mov r8, r10
cmp cl, 0x35
ja 0x18005d803
lea rdx, [r8 + 1]
mov qword [rbp - 0x29], rdx
movsx ecx, byte [r8]
sub ecx, 0x30
lea rax, [rbx + rbx*4]
lea rbx, [rcx + rax*2]
inc r9d
mov r8, rdx
mov r10, rdx
movzx ecx, byte [rdx]
cmp cl, 0x30
jl 0x18005d82d
jmp 0x18005d7c5
xorps xmm1, xmm1
test rbx, rbx
js 0x18005d812
cvtsi2sd xmm1, rbx
jmp 0x18005d82a
mov rax, rbx
mov rcx, rbx
and eax, 1
shr rcx, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
mov r15b, 1
mov r10, rbx
movsd xmm2, qword [0x1802b9400]
test r15b, r15b
je 0x18005d877
movzx ecx, byte [rdx]
cmp cl, 0x30
jl 0x18005d877
mov r8, rdx
cmp cl, 0x39
ja 0x18005d877
lea rdx, [r8 + 1]
mov qword [rbp - 0x29], rdx
movsx eax, byte [r8]
sub eax, 0x30
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
mov r8, rdx
movzx ecx, byte [rdx]
cmp cl, 0x30
jge 0x18005d848
mov r14d, edi
movzx eax, byte [rdx]
cmp al, 0x2e
jne 0x18005d888
inc rdx
mov qword [rbp - 0x29], rdx
mov rcx, rdx
cmp al, 0x2e
jne 0x18005d9b4
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x18005d9ea
cmp al, 0x39
jg 0x18005d9ea
mov r8, rdx
test r15b, r15b
jne 0x18005d946
mov r11, rdx
mov ebx, esi
cmp byte [rbp - 0x49], dil
cmovne rbx, r10
movzx r10d, byte [rdx]
movabs r15, 0x1fffffffffffff
nop dword [rax]
cmp r10b, 0x39
jg 0x18005d918
mov r8, r11
cmp rbx, r15
ja 0x18005d918
lea rdx, [rcx + 1]
mov r8, rdx
mov qword [rbp - 0x29], rdx
movsx ecx, byte [rcx]
sub ecx, 0x30
lea rax, [rbx + rbx*4]
lea rbx, [rcx + rax*2]
dec r14d
movzx r10d, byte [rdx]
mov rcx, rdx
mov r11, rdx
lea eax, [r9 + 1]
test rbx, rbx
cmove eax, r9d
mov r9d, eax
cmp r10b, 0x30
jge 0x18005d8d0
xorps xmm1, xmm1
test rbx, rbx
js 0x18005d927
cvtsi2sd xmm1, rbx
jmp 0x18005d93f
mov rcx, rbx
shr rcx, 1
mov rax, rbx
and eax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
mov r15b, 1
movzx eax, byte [r8]
mov rcx, r8
cmp al, 0x30
jl 0x18005d9b4
mov r11, r8
mov r10, r8
movzx eax, byte [rdx]
mov rcx, r10
cmp al, 0x39
jg 0x18005d9b4
cmp r9d, 0x11
jge 0x18005d999
lea rcx, [r8 + 1]
mov qword [rbp - 0x29], rcx
movsx eax, byte [r8]
sub eax, 0x30
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm0, xmm1
movaps xmm1, xmm0
dec r14d
lea eax, [r9 + 1]
comisd xmm0, xmm6
cmovbe eax, r9d
mov r9d, eax
jmp 0x18005d9a1
lea rcx, [r11 + 1]
mov qword [rbp - 0x29], rcx
mov rdx, rcx
mov r8, rcx
movzx eax, byte [rcx]
mov r11, rcx
mov r10, rcx
cmp al, 0x30
jge 0x18005d956
cmp byte [rcx], 0x65
je 0x18005d9c2
cmp byte [rcx], 0x45
jne 0x18005dac5
inc rcx
mov qword [rbp - 0x29], rcx
test r15b, r15b
jne 0x18005da0c
mov eax, esi
mov rdx, rbx
cmp byte [rbp - 0x49], dil
cmove rdx, rax
xorps xmm1, xmm1
test rdx, rdx
js 0x18005d9f4
cvtsi2sd xmm1, rdx
jmp 0x18005da09
mov edx, 0xe
jmp 0x18005dd7d
mov rax, rdx
shr rax, 1
and edx, 1
or rax, rdx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mov r15b, 1
xor dl, dl
movzx eax, byte [rcx]
cmp al, 0x2b
je 0x18005da1b
cmp al, 0x2d
jne 0x18005da25
mov dl, 1
inc rcx
movzx eax, byte [rcx]
mov qword [rbp - 0x29], rcx
cmp al, 0x30
jl 0x18005db74
cmp al, 0x39
jg 0x18005db74
lea r8, [rcx + 1]
mov qword [rbp - 0x29], r8
movsx edi, al
sub edi, 0x30
movzx r9d, byte [r8]
test dl, dl
je 0x18005db34
lea ecx, [r14 + 0x7ffffff7]
mov eax, 0x66666667
imul ecx
mov r10d, edx
sar r10d, 2
mov eax, r10d
shr eax, 0x1f
add r10d, eax
cmp r9b, 0x30
jl 0x18005dac3
movzx eax, r9b
cmp al, 0x39
jg 0x18005dac3
lea rdx, [r8 + 1]
mov qword [rbp - 0x29], rdx
lea edi, [rdi + rdi*4]
movsx eax, byte [r8]
lea edi, [rdi - 0x18]
lea edi, [rax + rdi*2]
mov r8, rdx
cmp edi, r10d
jle 0x18005dabc
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x18005dabc
mov rcx, rdx
cmp al, 0x39
ja 0x18005dabc
lea r8, [rcx + 1]
mov rdx, r8
mov qword [rbp - 0x29], rdx
movzx eax, byte [r8]
mov rcx, r8
cmp al, 0x30
jge 0x18005daa2
movzx eax, byte [rdx]
cmp al, 0x30
jge 0x18005da77
neg edi
test r15b, r15b
je 0x18005dbfe
lea ecx, [rdi + r14]
cmp ecx, 0xfffffecc
jge 0x18005db8a
divsd xmm1, qword [0x1802b9528]
lea eax, [rcx + 0x134]
cmp eax, 0xfffffecc
jl 0x18005db0f
movsxd rax, ecx
lea rax, [rax*8 + 0x9a0]
lea rcx, [0x1802ad3e0]
sub rcx, rax
movaps xmm6, xmm1
divsd xmm6, qword [rcx]
comisd xmm6, xmmword [0x1802b9530]
jbe 0x18005dbb2
mov dword [r12 + 0x30], 0xd
mov rax, qword [rbp - 0x41]
mov qword [r12 + 0x38], rax
jmp 0x18005dd91
mov edx, 0x134
sub edx, r14d
cmp r9b, 0x30
jl 0x18005dac5
movzx eax, r9b
cmp al, 0x39
jg 0x18005dac5
movsx eax, byte [r8]
inc r8
mov qword [rbp - 0x29], r8
lea edi, [rdi + rdi*4]
lea edi, [rdi - 0x18]
lea edi, [rax + rdi*2]
cmp edi, edx
jg 0x18005db1d
movzx eax, byte [r8]
cmp al, 0x30
jl 0x18005dac5
jmp 0x18005db46
sub rcx, r13
mov dword [r12 + 0x30], 0xf
mov qword [r12 + 0x38], rcx
jmp 0x18005dd91
movsxd rax, ecx
lea rax, [rax*8]
test ecx, ecx
js 0x18005dafe
lea rcx, [0x1802ad3e0]
movsd xmm6, qword [rax + rcx]
mulsd xmm6, xmm1
jmp 0x18005db0f
cmp byte [rbp - 0x48], 0
je 0x18005dbbf
xorps xmm6, xmmword [0x1802b9e90]
mov rdi, qword [rbp - 0x39]
mov rax, qword [rdi + 0x40]
sub rax, qword [rdi + 0x38]
cmp rax, 0x10
jge 0x18005dbda
lea rcx, [rdi + 0x20]
call fcn.18005dfc0
mov rcx, qword [rdi + 0x38]
lea rax, [rcx + 0x10]
mov qword [rdi + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
movsd qword [rcx], xmm6
mov eax, 0x216
mov word [rcx + 0xe], ax
jmp 0x18005dd91
mov rdi, qword [rbp - 0x39]
add rdi, 0x20
mov rax, qword [rdi + 0x20]
sub rax, qword [rdi + 0x18]
cmp byte [rbp - 0x49], 0
je 0x18005dcf7
cmp byte [rbp - 0x48], 0
je 0x18005dc8c
neg rbx
cmp rax, 0x10
jge 0x18005dc2f
mov rcx, rdi
call fcn.18005dfc0
mov rcx, qword [rdi + 0x18]
lea rax, [rcx + 0x10]
mov qword [rdi + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rbx
mov eax, 0x96
mov word [rcx + 0xe], ax
test rbx, rbx
js 0x18005dc71
mov eax, 0x196
mov word [rcx + 0xe], ax
movabs rdx, 0xffffffff00000000
test rdx, rbx
jne 0x18005dcdd
mov eax, 0x1d6
jmp 0x18005dcd9
cmp rbx, 0xffffffff80000000
jl 0x18005dd91
mov eax, 0xb6
mov word [rcx + 0xe], ax
jmp 0x18005dd91
cmp rax, 0x10
jge 0x18005dc9a
mov rcx, rdi
call fcn.18005dfc0
mov rcx, qword [rdi + 0x18]
lea rax, [rcx + 0x10]
mov qword [rdi + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rbx
mov eax, 0x116
mov word [rcx + 0xe], ax
test rbx, rbx
js 0x18005dcc6
mov eax, 0x196
mov word [rcx + 0xe], ax
movabs rdx, 0xffffffff00000000
test rdx, rbx
jne 0x18005dcdd
or ax, 0x40
mov word [rcx + 0xe], ax
test rbx, 0xffffffff80000000
jne 0x18005dd91
or ax, 0x20
mov word [rcx + 0xe], ax
jmp 0x18005dd91
cmp byte [rbp - 0x48], 0
je 0x18005dd3b
neg esi
cmp rax, 0x10
jge 0x18005dd0d
mov rcx, rdi
call fcn.18005dfc0
mov rcx, qword [rdi + 0x18]
lea rax, [rcx + 0x10]
mov qword [rdi + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
movsxd rax, esi
mov qword [rcx], rax
mov eax, 0xb6
mov edx, 0x1f6
test esi, esi
cmovns ax, dx
mov word [rcx + 0xe], ax
jmp 0x18005dd91
cmp rax, 0x10
jge 0x18005dd49
mov rcx, rdi
call fcn.18005dfc0
mov rcx, qword [rdi + 0x18]
lea rax, [rcx + 0x10]
mov qword [rdi + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov eax, esi
mov qword [rcx], rax
shr esi, 0x1a
not si
and si, 0x20
mov eax, 0x1d6
or si, ax
mov word [rcx + 0xe], si
jmp 0x18005dd91
mov edx, 3
mov eax, 0x30
mov r8, r12
sub rcx, r13
mov dword [r12 + rax], edx
mov qword [r12 + 0x38], rcx
movups xmm0, xmmword [rbp - 0x29]
mov rax, qword [rbp - 0x31]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm7
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.180115350
mov rbx, qword [rsp + 0xe8]
movaps xmm6, xmmword [rsp + 0x80]
movaps xmm7, xmmword [rsp + 0x70]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret