Function at 0x140005970
Capabilities:
Execute command

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x188]
sub rsp, 0x248
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
movaps xmmword [rax - 0x78], xmm8
movaps xmmword [rax - 0x88], xmm9
mov rax, qword [0x140021040]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r12, r9
mov qword [rbp - 0x48], r9
mov byte [rsp + 0x41], r8b
movaps xmm8, xmm1
mov rsi, rcx
mov qword [rbp + 0xa0], r9
xor r13d, r13d
mov dword [rsp + 0x44], r13d
mov eax, 3
mov dword [rsp + 0x48], eax
xor bl, bl
mov byte [rsp + 0x40], bl
movsd xmm9, qword [0x14001b2a0]
nop dword [rax]
test bl, bl
jne 0x14000682f
test eax, eax
jle 0x1400067ba
lea rdx, str.Enter_the_giftID_that_you_want_to_redeem
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000c6a0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0xc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str._q_to_exit_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000c6a0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, [0x140019628]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000c6a0
xorps xmm0, xmm0
movups xmmword [rbp + 0xa8], xmm0
mov qword [rbp + 0xb8], 0
mov qword [rbp + 0xc0], 0xf
mov byte [rbp + 0xa8], bl
lea rdx, [0x14000cd20]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___class_std::basic_istream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_istream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp + 0xa8]
mov rcx, rbx
call fcn.14000dbd0
lea rcx, [rbp + 0xa8]
cmp qword [rbp + 0xc0], 0xf
seta r14b
mov rdi, qword [rbp + 0xa8]
cmova rcx, rdi
mov rbx, qword [rbp + 0xb8]
cmp rbx, 1
jne 0x140005b0f
mov r8, rbx
lea rdx, [0x140019f84]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400066a4
lea rcx, [rbp + 0xa8]
test r14b, r14b
cmovne rcx, rdi
cmp rbx, 1
jne 0x140005b3a
mov r8, rbx
lea rdx, [0x140019f88]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400066a4
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xc8], xmm0
movups xmmword [rbp + 0xd8], xmm0
mov qword [rbp + 0xe8], rax
lea rcx, [rbp + 0xc8]
call fcn.14000af70
nop
lea r9, [rbp + 0xa8]
cmp qword [rbp + 0xc0], 0xf
seta r8b
cmova r9, qword [rbp + 0xa8]
lea rcx, [rbp + 0xa8]
test r8b, r8b
cmovne rcx, qword [rbp + 0xa8]
mov rdx, qword [rbp + 0xb8]
add rdx, r9
mov dword [rsp + 0x20], 0x10
lea r9, [rbp + 0xc8]
call fcn.14000e330
test al, al
je 0x140006583
lea rax, [rbp + 0xa8]
mov r14, qword [rbp + 0xa8]
mov r15, qword [rbp + 0xc0]
cmp r15, 0xf
cmova rax, r14
movzx ecx, byte [rsp + 0x41]
cmp byte [rax], cl
jne 0x140006583
mov rbx, qword [0x140021c60]
mov rdi, qword [0x140021c58]
cmp rdi, rbx
je 0x140005c40
mov r12, qword [rbp + 0xb8]
nop dword [rax + rax]
lea rdx, [rbp + 0xa8]
cmp r15, 0xf
cmova rdx, r14
mov rcx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140005c1c
mov rcx, qword [rdi]
mov r8, qword [rdi + 0x10]
cmp r8, r12
jne 0x140005c2e
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140005c37
add rdi, 0x48
cmp rdi, rbx
jne 0x140005c00
mov r12, qword [rbp - 0x48]
cmp rdi, rbx
jne 0x140005c65
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0xc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.Invalid_Gift_ID._Please_try_again.
jmp 0x1400065a3
xorps xmm7, xmm7
mov rbx, qword [0x140021c10]
mov r14, qword [0x140021c18]
cmp rbx, r14
je 0x140005cd6
nop dword [rax + rax]
mov rdx, r12
lea rcx, [rbp - 0x68]
call fcn.14000bda0
mov rcx, rax
call fcn.140003890
cmp al, 1
jne 0x140005ccd
mov rdx, r12
cmp qword [r12 + 0x18], 0xf
jbe 0x140005ca7
mov rdx, qword [r12]
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140005cb4
mov rcx, qword [rbx]
mov r8, qword [rbx + 0x10]
cmp r8, qword [r12 + 0x10]
jne 0x140005ccd
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140005ccd
movsd xmm7, qword [rbx + 0x68]
add rbx, 0x70
cmp rbx, r14
jne 0x140005c80
movd xmm0, dword [rdi + 0x44]
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm8
cvttsd2si r15d, xmm0
cmp dword [rsi + 0x24], r15d
jge 0x140005ef1
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0xc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.Your_CC_point_is_not_enough_for_redeeming_this_gift._Extra_money_is_required.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000c6a0
mov rcx, rax
mov dl, 0xa
call fcn.14000c8b0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp dword [rsi + 0x24], 0
jge 0x140005d4f
mov dword [rsi + 0x24], 0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0xc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, r15d
sub eax, dword [rsi + 0x24]
movd xmm6, eax
cvtdq2pd xmm6, xmm6
mulsd xmm6, xmm9
addsd xmm6, xmm7
lea rdx, str.If_you_sure__you_now_need_pay__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000c6a0
mov rcx, rax
movaps xmm1, xmm6
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___double____ptr64]
mov rcx, rax
lea rdx, str._extra_money_for_all_your_current_redeemed_gift.
call fcn.14000c6a0
mov rcx, rax
mov dl, 0xa
call fcn.14000c8b0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rax, [rbp - 0x68]
mov qword [rbp - 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], 4
mov qword [rbp - 0x78], 0xf
mov dword [rsp + 0x70], 0x4c4c554e
mov byte [rsp + 0x74], 0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 0xa
mov qword [rsp + 0x68], 0xf
movsd xmm0, qword [str.dont_clear]
movsd qword [rsp + 0x50], xmm0
movzx eax, word [0x140019a38]
mov word [rsp + 0x58], ax
mov byte [rsp + 0x5a], 0
lea rdx, str.NULL
lea rcx, [rbp - 0x68]
call fcn.14000bc80
mov rbx, rax
lea rdx, str.NULL
lea rcx, [rbp + 0x60]
call fcn.14000bc80
nop
mov r9, rbx
mov r8, rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140001710
movzx ebx, al
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140005ead
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005ea7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000677b
call fcn.1400174fc
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140005ee9
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005ee4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006782
call fcn.1400174fc
test bl, bl
je 0x140006614
mov ecx, dword [rsi + 0x24]
cmp ecx, r15d
jge 0x140005f0f
mov eax, r15d
sub eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm9
addsd xmm7, xmm0
mov rdx, r12
lea rcx, [rbp - 0x30]
call fcn.14000bda0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], 0xb
mov qword [rbp + 8], 0xf
movsd xmm0, qword [str.Redeem_Gift]
movsd qword [rbp - 0x10], xmm0
movzx eax, word [0x14001a118]
mov word [rbp - 8], ax
movzx eax, byte [0x14001a11a]
mov byte [rbp - 6], al
mov byte [rbp - 5], 0
mov edx, dword [rsi + 0x24]
cmp r15d, edx
jge 0x140005f7c
mov edx, r15d
lea rcx, [rbp - 0x68]
call fcn.14000c470
bts r13d, 7
lea rbx, [rbp - 0x68]
or r13d, 1
jmp 0x140005f92
lea rcx, [rbp + 0x60]
call fcn.14000c470
bts r13d, 8
lea rbx, [rbp + 0x60]
or r13d, 2
mov dword [rsp + 0x44], r13d
mov rcx, qword [rdi + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 9
jb 0x1400068c0
mov rax, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140005fbf
mov rax, qword [rdi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 9
lea r9, str.Gift_ID:
lea rcx, [rbp + 0x40]
call fcn.14000d8f0
or r13d, 4
mov dword [rsp + 0x44], r13d
mov r8d, 0x14
lea rdx, str.__Gift_Description:
lea rcx, [rbp + 0x40]
call fcn.14000c140
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], r14b
or r13d, 8
mov dword [rsp + 0x44], r13d
lea rdx, [rdi + 0x20]
cmp qword [rdi + 0x38], 0xf
jbe 0x14000604e
mov rdx, qword [rdi + 0x20]
mov r8, qword [rdi + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14000c140
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or r13d, 0x10
mov dword [rsp + 0x44], r13d
mov r8d, 0x16
lea rdx, str.__Actual_Points_Used:
lea rcx, [rsp + 0x70]
call fcn.14000c140
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x90], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or r13d, 0x20
mov dword [rsp + 0x44], r13d
mov r9, rbx
lea r8, [rbp + 0x80]
lea rcx, [rbp + 0x10]
call fcn.14000d700
or r13d, 0x40
mov dword [rsp + 0x44], r13d
mov eax, r15d
neg eax
mov dword [rbp + 0x30], eax
movsd qword [rbp + 0x38], xmm7
mov rdx, qword [0x140021c18]
cmp rdx, qword [0x140021c20]
je 0x140006182
movaps xmm0, xmmword [rbp - 0x30]
movups xmmword [rdx], xmm0
movaps xmm1, xmmword [rbp - 0x20]
movups xmmword [rdx + 0x10], xmm1
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
movaps xmm0, xmmword [rbp - 0x10]
movups xmmword [rdx + 0x20], xmm0
movaps xmm1, xmmword [rbp]
movups xmmword [rdx + 0x30], xmm1
mov qword [rbp], r14
mov qword [rbp + 8], 0xf
mov byte [rbp - 0x10], 0
movaps xmm0, xmmword [rbp + 0x10]
movups xmmword [rdx + 0x40], xmm0
movaps xmm1, xmmword [rbp + 0x20]
movups xmmword [rdx + 0x50], xmm1
mov qword [rbp + 0x20], r14
mov qword [rbp + 0x28], 0xf
mov byte [rbp + 0x10], 0
mov dword [rdx + 0x60], eax
movsd qword [rdx + 0x68], xmm7
add qword [0x140021c18], 0x70
jmp 0x14000618c
lea r8, [rbp - 0x30]
call fcn.14000e710
nop
lea rcx, [rbp - 0x30]
call fcn.140005870
nop
mov rdx, qword [rbp + 0x98]
cmp rdx, 0xf
jbe 0x1400061d8
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400061d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006789
call fcn.1400174fc
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140006214
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000620f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006790
call fcn.1400174fc
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140006262
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000625d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006797
call fcn.1400174fc
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x1400062b0
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400062ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000679e
call fcn.1400174fc
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x58], 0xf
mov byte [rbp + 0x40], 0
test r13b, 2
je 0x14000630b
and r13d, 0xfffffffd
mov dword [rsp + 0x44], r13d
mov rdx, qword [rbp + 0x78]
cmp rdx, 0xf
jbe 0x14000630b
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006305
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400067a5
call fcn.1400174fc
nop
test r13b, 1
je 0x140006355
and r13d, 0xfffffffe
mov dword [rsp + 0x44], r13d
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x140006355
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006350
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400067ac
call fcn.1400174fc
mov rbx, qword [0x140021c40]
mov r14, qword [0x140021c48]
cmp rbx, r14
je 0x140006445
nop dword [rax]
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.14000bda0
mov rcx, rax
call fcn.140003890
cmp al, 1
jne 0x140006438
mov rdx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140006399
mov rdx, qword [rsi]
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400063a6
mov rcx, qword [rbx]
mov r8, qword [rbx + 0x10]
cmp r8, qword [rsi + 0x10]
jne 0x140006438
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140006438
sub dword [rbx + 0x24], r15d
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.Customer
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000c6a0
mov rdx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x1400063fa
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
mov rcx, rax
call fcn.14000da10
lea rdx, str._ccPoints_has_been_updated_
mov rcx, rax
call fcn.14000c6a0
mov rcx, rax
mov dl, 0xa
call fcn.14000c8b0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
add rbx, 0x28
cmp rbx, r14
jne 0x140006370
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [rsi + 0x24]
xor ebx, ebx
test eax, eax
cmovns ebx, eax
lea rdx, str.Redemption_successful__You_have_redeemed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000c6a0
lea rdx, [rdi + 0x20]
cmp qword [rdi + 0x38], 0xf
jbe 0x14000648a
mov rdx, qword [rdi + 0x20]
mov r8, qword [rdi + 0x30]
mov rcx, rax
call fcn.14000da10
lea rdx, str._and_your_remaining_points_are
mov rcx, rax
call fcn.14000c6a0
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x14001a15c]
call fcn.14000c6a0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, 0xdac
call qword [sym.imp.KERNEL32.dll_Sleep]
mov bl, 1
mov byte [rsp + 0x40], bl
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.14000bda0
movaps xmm2, xmm8
movzx edx, byte [rsp + 0x41]
mov rcx, rax
call fcn.1400068d0
nop
lea rcx, [rbp + 0xc8]
call fcn.14000c0c0
mov rcx, qword [rbp + 0xe8]
test rcx, rcx
je 0x140006539
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140006539
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
mov rdx, qword [rbp + 0xc0]
cmp rdx, 0xf
jbe 0x14000668c
inc rdx
mov rcx, qword [rbp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006579
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400067b3
call fcn.1400174fc
jmp 0x14000668c
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0xc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.Invalid_gift_category_or_format._Please_enter_a_gift_ID_from_the_correct_category_and_format.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000c6a0
mov dl, 0xa
mov rcx, rax
call fcn.14000c8b0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ebx, dword [rsp + 0x48]
dec ebx
mov dword [rsp + 0x48], ebx
lea rdx, str.You_have
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000c6a0
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, str._attempts_left.
mov rcx, rax
call fcn.14000c6a0
mov dl, 0xa
mov rcx, rax
call fcn.14000c8b0
nop
lea rcx, [rbp + 0xc8]
call fcn.14000c0c0
mov rcx, qword [rbp + 0xe8]
test rcx, rcx
je 0x140006646
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140006646
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
mov rdx, qword [rbp + 0xc0]
cmp rdx, 0xf
jbe 0x140006687
mov rcx, qword [rbp + 0xa8]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006682
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400067b3
call fcn.1400174fc
movzx ebx, byte [rsp + 0x40]
mov eax, dword [rsp + 0x48]
add eax, 2
test eax, eax
jle 0x14000682f
mov eax, dword [rsp + 0x48]
jmp 0x1400059f0
lea rcx, [0x1400196e4]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rdx, str.Backing_Customer_View_Menu.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000c6a0
mov rcx, rax
mov dl, 0xa
call fcn.14000c8b0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rdx, qword [rbp + 0xc0]
cmp rdx, 0xf
jbe 0x14000671b
inc rdx
mov rcx, qword [rbp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006716
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400067b3
call fcn.1400174fc
mov qword [rbp + 0xb8], 0
mov qword [rbp + 0xc0], 0xf
mov byte [rbp + 0xa8], 0
mov rdx, qword [r12 + 0x18]
cmp rdx, 0xf
jbe 0x140006867
inc rdx
mov rcx, qword [r12]
cmp rdx, 0x1000
jb 0x140006862
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x14000685f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0xc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.Failed_to_redeem_gift_after
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000c6a0
mov rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, str._attempts._Returning_to_customer_menu.
call fcn.14000c6a0
mov rcx, rax
mov dl, 0xa
call fcn.14000c8b0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, 0x9c4
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rdx, qword [r12 + 0x18]
cmp rdx, 0xf
jbe 0x140006867
inc rdx
mov rcx, qword [r12]
cmp rdx, 0x1000
jb 0x140006862
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400068b9
mov rcx, r8
call fcn.1400174fc
mov byte [r12], 0
mov qword [r12 + 0x18], 0xf
mov qword [r12 + 0x10], 0
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140017260
lea r11, [rsp + 0x248]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
movaps xmm9, xmmword [r11 - 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400012d0
nop
int3