Function at 0x140016762
Capabilities:
Check for software breakpoints

Disassembly:
jmp 0x1400180f0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3c8
lea rbp, [rsp + 0x20]
lea rcx, [0x14007c162]
call fcn.140016b68
mov byte [rbp + 0x24], 0
mov rax, qword [rbp + 0x3c0]
mov qword [rbp + 0x48], rax
mov byte [rbp + 0xa4], 0
lea rax, section..data
mov qword [rbp + 0xc8], rax
mov byte [rbp + 0x144], 0
mov byte [rbp + 0x164], 0
mov rdi, qword [rbp + 0x3c8]
xor eax, eax
mov ecx, 0x25
rep stosb byte [rdi], al
mov byte [rbp + 4], InitCommonControls
jmp 0x140018165
movzx eax, byte [rbp + 4]
dec al
mov byte [rbp + 4], al
movzx eax, byte [rbp + 4]
test eax, eax
je 0x1400182aa
mov rax, qword [rbp + 0x48]
movzx eax, byte [rax]
mov byte [rbp + 0x24], al
movzx eax, byte [rbp + 0x24]
mov dword [rbp + 0x394], eax
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
mov eax, dword [rbp + 0x394]
mov dword [rbp + 0x398], eax
mov eax, dword [rbp + 0x398]
sub eax, 0x26
mov dword [rbp + 0x398], eax
cmp dword [rbp + 0x398], 0xcd
ja case.0x1400181db.11
movsxd rax, dword [rbp + 0x398]
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0x1913c]
mov eax, dword [rcx + rax*4 + 0x1910c]
add rax, rcx
jmp rax
mov rax, qword [rbp + 0x3c8]
movzx ecx, byte [rbp + 0x24]
mov byte [rax + 1], cl
movzx eax, byte [rbp + 0xa4]
or eax, 4
mov byte [rbp + 0xa4], al
jmp 0x1400182a5
mov rax, qword [rbp + 0x3c8]
movzx ecx, byte [rbp + 0x24]
mov byte [rax + 1], cl
movzx eax, byte [rbp + 0xa4]
or eax, 2
mov byte [rbp + 0xa4], al
jmp 0x1400182a5
mov rax, qword [rbp + 0x3c8]
movzx ecx, byte [rbp + 0x24]
mov byte [rax + 2], cl
movzx eax, byte [rbp + 0xa4]
or eax, 0x20
mov byte [rbp + 0xa4], al
jmp 0x1400182a5
mov rax, qword [rbp + 0x3c8]
movzx ecx, byte [rbp + 0x24]
mov byte [rax + 3], cl
movzx eax, byte [rbp + 0xa4]
or eax, 0x40
mov byte [rbp + 0xa4], al
jmp 0x1400182a5
mov rax, qword [rbp + 0x3c8]
movzx ecx, byte [rbp + 0x24]
mov byte [rax + 4], cl
movzx eax, byte [rbp + 0xa4]
or eax, 8
mov byte [rbp + 0xa4], al
jmp 0x1400182a5
mov rax, qword [rbp + 0x3c8]
movzx ecx, byte [rbp + 0x24]
mov byte [rax + 5], cl
movzx eax, byte [rbp + 0xa4]
or eax, 0x10
mov byte [rbp + 0xa4], al
jmp 0x1400182a5
jmp 0x1400182aa
jmp 0x14001815c
movzx eax, byte [rbp + 0xa4]
shl eax, 0x17
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
movzx eax, byte [rbp + 0xa4]
test eax, eax
jne 0x1400182d9
movzx eax, byte [rbp + 0xa4]
or eax, 1
mov byte [rbp + 0xa4], al
movzx eax, byte [rbp + 0x24]
and eax, 0xf0
cmp eax, 0x40
jne 0x1400183e4
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
bts eax, 0x1e
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
movzx eax, byte [rbp + 0x24]
and eax, 0xf
sar eax, 3
mov dword [rbp + 0x394], eax
mov rax, qword [rbp + 0x3c8]
movzx ecx, byte [rbp + 0x394]
mov byte [rax + 7], cl
movzx eax, byte [rbp + 0x394]
test eax, eax
je 0x140018351
mov rax, qword [rbp + 0x48]
movzx eax, byte [rax]
and eax, 0xf8
cmp eax, 0xb8
jne 0x140018351
movzx eax, byte [rbp + 0x164]
inc al
mov byte [rbp + 0x164], al
movzx eax, byte [rbp + 0x24]
and eax, 7
sar eax, 2
mov rcx, qword [rbp + 0x3c8]
mov byte [rcx + 8], al
movzx eax, byte [rbp + 0x24]
and eax, 3
sar eax, 1
mov rcx, qword [rbp + 0x3c8]
mov byte [rcx + 9], al
movzx eax, byte [rbp + 0x24]
and eax, 1
mov rcx, qword [rbp + 0x3c8]
mov byte [rcx + 0xa], al
mov rax, qword [rbp + 0x48]
movzx eax, byte [rax]
mov byte [rbp + 0x24], al
movzx eax, byte [rbp + 0x24]
and eax, 0xf0
mov dword [rbp + 0x394], eax
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
cmp dword [rbp + 0x394], 0x40
jne 0x1400183c2
mov dword [rbp + 0x398], 1
jmp 0x1400183cc
mov dword [rbp + 0x398], 0
cmp dword [rbp + 0x398], 0
je 0x1400183e4
movzx eax, byte [rbp + 0x24]
mov byte [rbp + 0x84], al
jmp 0x1400184ed
mov rax, qword [rbp + 0x3c8]
movzx ecx, byte [rbp + 0x24]
mov byte [rax + 0xb], cl
movzx eax, byte [rbp + 0x24]
cmp eax, 0xf
jne 0x140018432
mov rax, qword [rbp + 0x48]
movzx eax, byte [rax]
mov byte [rbp + 0x24], al
mov rax, qword [rbp + 0x3c8]
movzx ecx, byte [rbp + 0x24]
mov byte [rax + 0xc], cl
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0xc8]
add rax, 0x4a
mov qword [rbp + 0xc8], rax
jmp 0x140018487
movzx eax, byte [rbp + 0x24]
cmp eax, 0xa0
jl 0x140018487
movzx eax, byte [rbp + 0x24]
cmp eax, 0xa3
jg 0x140018487
movzx eax, byte [rbp + 0x164]
inc al
mov byte [rbp + 0x164], al
movzx eax, byte [rbp + 0xa4]
and eax, 0x10
test eax, eax
je 0x140018477
movzx eax, byte [rbp + 0xa4]
or eax, 8
mov byte [rbp + 0xa4], al
jmp 0x140018487
movzx eax, byte [rbp + 0xa4]
and eax, 0xfffffff7
mov byte [rbp + 0xa4], al
movzx eax, byte [rbp + 0x24]
mov byte [rbp + 0x84], al
movzx eax, byte [rbp + 0x84]
cdq
and edx, 3
add eax, edx
sar eax, 2
cdqe
mov rcx, qword [rbp + 0xc8]
movzx eax, byte [rcx + rax]
mov dword [rbp + 0x394], eax
movzx ecx, byte [rbp + 0x84]
mov eax, ecx
cdq
and edx, 3
add eax, edx
and eax, 3
sub eax, edx
mov ecx, dword [rbp + 0x394]
add ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rbp + 0xc8]
movzx eax, byte [rcx + rax]
mov byte [rbp + 0x64], al
movzx eax, byte [rbp + 0x64]
cmp eax, 0xff
jne 0x140018522
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
or eax, 0x3000
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
mov byte [rbp + 0x64], 0
movzx eax, byte [rbp + 0x84]
and eax, 0xfffffffd
cmp eax, 0x24
jne 0x140018522
movzx eax, byte [rbp + 0x64]
inc al
mov byte [rbp + 0x64], al
mov byte [rbp + 4], 0
movzx eax, byte [rbp + 0x64]
and eax, 0x80
test eax, eax
je 0x140018565
movzx eax, byte [rbp + 0x64]
and eax, 0x7f
cdqe
mov rcx, qword [rbp + 0xc8]
movzx eax, word [rcx + rax]
mov word [rbp + 0x184], ax
movzx eax, byte [rbp + 0x184]
mov byte [rbp + 0x64], al
movzx eax, word [rbp + 0x184]
sar eax, 8
mov byte [rbp + 4], al
mov rax, qword [rbp + 0x3c8]
movzx eax, byte [rax + 0xc]
test eax, eax
je 0x140018600
lea rax, section..data
add rax, 0x13c
mov qword [rbp + 0xc8], rax
movzx eax, byte [rbp + 0x84]
cdq
and edx, 3
add eax, edx
sar eax, 2
cdqe
mov rcx, qword [rbp + 0xc8]
movzx eax, byte [rcx + rax]
mov dword [rbp + 0x394], eax
movzx ecx, byte [rbp + 0x84]
mov eax, ecx
cdq
and edx, 3
add eax, edx
and eax, 3
sub eax, edx
mov ecx, dword [rbp + 0x394]
add ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rbp + 0xc8]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rbp + 0xa4]
and eax, ecx
test eax, eax
je 0x140018600
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
or eax, 0x3000
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
movzx eax, byte [rbp + 0x64]
and eax, 1
test eax, eax
je 0x140018e8d
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
or eax, 1
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
mov rax, qword [rbp + 0x48]
movzx eax, byte [rax]
mov byte [rbp + 0x24], al
mov rax, qword [rbp + 0x3c8]
movzx ecx, byte [rbp + 0x24]
mov byte [rax + 0xd], cl
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
movzx eax, byte [rbp + 0x24]
sar eax, 6
mov byte [rbp + 0xe4], al
mov rax, qword [rbp + 0x3c8]
movzx ecx, byte [rbp + 0xe4]
mov byte [rax + 0xe], cl
movzx eax, byte [rbp + 0x24]
and eax, 7
mov byte [rbp + 0x124], al
mov rax, qword [rbp + 0x3c8]
movzx ecx, byte [rbp + 0x124]
mov byte [rax + 0x10], cl
movzx eax, byte [rbp + 0x24]
and eax, 0x3f
sar eax, 3
mov byte [rbp + 0x104], al
mov rax, qword [rbp + 0x3c8]
movzx ecx, byte [rbp + 0x104]
mov byte [rax + 0xf], cl
movzx eax, byte [rbp + 4]
test eax, eax
je 0x1400186dd
movzx eax, byte [rbp + 4]
movzx ecx, byte [rbp + 0x104]
shl eax, cl
and eax, 0x80
test eax, eax
je 0x1400186dd
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
or eax, 0x3000
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
mov rax, qword [rbp + 0x3c8]
movzx eax, byte [rax + 0xc]
test eax, eax
jne 0x1400187d6
movzx eax, byte [rbp + 0x84]
cmp eax, 0xd9
jl 0x1400187d6
movzx eax, byte [rbp + 0x84]
cmp eax, 0xdf
jg 0x1400187d6
movzx eax, byte [rbp + 0x84]
sub eax, 0xd9
mov byte [rbp + 0x1a4], al
movzx eax, byte [rbp + 0xe4]
cmp eax, 3
jne 0x140018778
lea rax, section..data
movzx ecx, byte [rbp + 0x1a4]
shl ecx, 3
movsxd rcx, ecx
lea rax, [rax + rcx + 0x104]
mov qword [rbp + 0xc8], rax
movzx eax, byte [rbp + 0x104]
mov rcx, qword [rbp + 0xc8]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rbp + 0x124]
shl eax, cl
mov byte [rbp + 0x1a4], al
jmp 0x1400187ad
lea rax, section..data
add rax, 0xfd
mov qword [rbp + 0xc8], rax
movzx eax, byte [rbp + 0x1a4]
mov rcx, qword [rbp + 0xc8]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rbp + 0x104]
shl eax, cl
mov byte [rbp + 0x1a4], al
movzx eax, byte [rbp + 0x1a4]
and eax, 0x80
test eax, eax
je 0x1400187d6
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
or eax, 0x3000
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
movzx eax, byte [rbp + 0xa4]
and eax, 0x20
test eax, eax
je 0x14001894e
movzx eax, byte [rbp + 0xe4]
cmp eax, 3
jne 0x140018812
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
or eax, 0x9000
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
jmp 0x14001894e
movzx eax, byte [rbp + 0x84]
mov byte [rbp + 0x1e4], al
mov rax, qword [rbp + 0x3c8]
movzx eax, byte [rax + 0xc]
test eax, eax
je 0x140018856
lea rax, section..data
add rax, 0x1c6
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
add rax, 0x12
mov qword [rbp + 0x1c8], rax
jmp 0x14001888c
lea rax, section..data
add rax, 0x1ae
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
add rax, 0x18
mov qword [rbp + 0x1c8], rax
movzx eax, byte [rbp + 0x1e4]
and eax, 0xfffffffe
mov byte [rbp + 0x1e4], al
jmp 0x14001889f
mov rax, qword [rbp + 0xc8]
inc rax
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0x1c8]
cmp qword [rbp + 0xc8], rax
je 0x140018935
mov rax, qword [rbp + 0xc8]
movzx eax, byte [rax]
mov dword [rbp + 0x394], eax
movzx eax, byte [rbp + 0x1e4]
mov dword [rbp + 0x398], eax
mov rax, qword [rbp + 0xc8]
inc rax
mov qword [rbp + 0xc8], rax
mov eax, dword [rbp + 0x398]
cmp dword [rbp + 0x394], eax
jne 0x1400188fb
mov dword [rbp + 0x39c], 1
jmp 0x140018905
mov dword [rbp + 0x39c], 0
cmp dword [rbp + 0x39c], 0
je 0x140018930
mov rax, qword [rbp + 0xc8]
movzx eax, byte [rax]
movzx ecx, byte [rbp + 0x104]
shl eax, cl
and eax, 0x80
test eax, eax
jne 0x14001892e
jmp 0x14001894e
jmp 0x140018935
jmp 0x14001888e
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
or eax, 0x9000
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
mov rax, qword [rbp + 0x3c8]
movzx eax, byte [rax + 0xc]
test eax, eax
je 0x1400189ec
movzx eax, byte [rbp + 0x84]
mov byte [rbp + 0x394], al
cmp byte [rbp + 0x394], 0x20
je 0x140018994
cmp byte [rbp + 0x394], 0x21
je 0x1400189bf
cmp byte [rbp + 0x394], 0x22
je 0x140018994
cmp byte [rbp + 0x394], 0x23
je 0x1400189bf
jmp 0x1400189ea
mov byte [rbp + 0xe4], 3
movzx eax, byte [rbp + 0x104]
cmp eax, 4
jg 0x1400189b3
movzx eax, byte [rbp + 0x104]
cmp eax, 1
jne 0x1400189ba
jmp 0x140018c14
jmp 0x140018c2d
mov byte [rbp + 0xe4], 3
movzx eax, byte [rbp + 0x104]
cmp eax, 4
je 0x1400189de
movzx eax, byte [rbp + 0x104]
cmp eax, 5
jne 0x1400189e5
jmp 0x140018c14
jmp 0x140018c2d
jmp 0x140018a49
movzx eax, byte [rbp + 0x84]
mov byte [rbp + 0x394], al
cmp byte [rbp + 0x394], 0x8c
je 0x140018a0d
cmp byte [rbp + 0x394], 0x8e
je 0x140018a25
jmp 0x140018a49
movzx eax, byte [rbp + 0x104]
cmp eax, 5
jle 0x140018a20
jmp 0x140018c14
jmp 0x140018c2d
movzx eax, byte [rbp + 0x104]
cmp eax, 1
je 0x140018a3d
movzx eax, byte [rbp + 0x104]
cmp eax, 5
jle 0x140018a44
jmp 0x140018c14
jmp 0x140018c2d
movzx eax, byte [rbp + 0xe4]
cmp eax, 3
jne 0x140018b9d
mov rax, qword [rbp + 0x3c8]
movzx eax, byte [rax + 0xc]
test eax, eax
je 0x140018a90
lea rax, section..data
add rax, 0x1e7
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
add rax, 0x2a
mov qword [rbp + 0x208], rax
jmp 0x140018ab6
lea rax, section..data
add rax, 0x1d8
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
add rax, 0xf
mov qword [rbp + 0x208], rax
jmp 0x140018aca
mov rax, qword [rbp + 0xc8]
add rax, 2
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0x208]
cmp qword [rbp + 0xc8], rax
je 0x140018b96
mov rax, qword [rbp + 0xc8]
movzx eax, byte [rax]
mov dword [rbp + 0x394], eax
movzx eax, byte [rbp + 0x84]
mov dword [rbp + 0x398], eax
mov rax, qword [rbp + 0xc8]
inc rax
mov qword [rbp + 0xc8], rax
mov eax, dword [rbp + 0x398]
cmp dword [rbp + 0x394], eax
jne 0x140018b26
mov dword [rbp + 0x39c], 1
jmp 0x140018b30
mov dword [rbp + 0x39c], 0
cmp dword [rbp + 0x39c], 0
je 0x140018b91
mov rax, qword [rbp + 0xc8]
movzx eax, byte [rax]
movzx ecx, byte [rbp + 0xa4]
and eax, ecx
mov dword [rbp + 0x394], eax
mov rax, qword [rbp + 0xc8]
inc rax
mov qword [rbp + 0xc8], rax
cmp dword [rbp + 0x394], 0
je 0x140018b8f
mov rax, qword [rbp + 0xc8]
movzx eax, byte [rax]
movzx ecx, byte [rbp + 0x104]
shl eax, cl
and eax, 0x80
test eax, eax
jne 0x140018b8f
jmp 0x140018c14
jmp 0x140018b96
jmp 0x140018ab8
jmp 0x140018c2d
mov rax, qword [rbp + 0x3c8]
movzx eax, byte [rax + 0xc]
test eax, eax
je 0x140018c12
movzx eax, byte [rbp + 0x84]
mov byte [rbp + 0x394], al
cmp byte [rbp + 0x394], 0x50
je 0x140018be8
cmp byte [rbp + 0x394], 0xc5
je 0x140018c0c
cmp byte [rbp + 0x394], 0xd6
je 0x140018bfa
cmp byte [rbp + 0x394], 0xd7
je 0x140018be8
cmp byte [rbp + 0x394], 0xf7
je 0x140018be8
jmp 0x140018c0e
movzx eax, byte [rbp + 0xa4]
and eax, 9
test eax, eax
je 0x140018bf8
jmp 0x140018c14
jmp 0x140018c0e
movzx eax, byte [rbp + 0xa4]
and eax, 6
test eax, eax
je 0x140018c0a
jmp 0x140018c14
jmp 0x140018c0e
jmp 0x140018c14
jmp 0x140018c2d
jmp 0x140018c2d
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
or eax, 0x11000
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
mov rax, qword [rbp + 0x48]
movzx eax, byte [rax]
mov byte [rbp + 0x24], al
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
movzx eax, byte [rbp + 0x104]
cmp eax, 1
jg 0x140018c80
movzx eax, byte [rbp + 0x84]
cmp eax, 0xf6
jne 0x140018c68
movzx eax, byte [rbp + 0x64]
or eax, 2
mov byte [rbp + 0x64], al
jmp 0x140018c80
movzx eax, byte [rbp + 0x84]
cmp eax, 0xf7
jne 0x140018c80
movzx eax, byte [rbp + 0x64]
or eax, 0x10
mov byte [rbp + 0x64], al
movzx eax, byte [rbp + 0xe4]
mov byte [rbp + 0x394], al
cmp byte [rbp + 0x394], 0
je 0x140018caa
cmp byte [rbp + 0x394], 1
je 0x140018ce2
cmp byte [rbp + 0x394], 2
je 0x140018ceb
jmp 0x140018d0f
movzx eax, byte [rbp + 0xa4]
and eax, 0x10
test eax, eax
je 0x140018ccd
movzx eax, byte [rbp + 0x124]
cmp eax, 6
jne 0x140018ccb
mov byte [rbp + 0x144], 2
jmp 0x140018ce0
movzx eax, byte [rbp + 0x124]
cmp eax, 5
jne 0x140018ce0
mov byte [rbp + 0x144], 4
jmp 0x140018d0f
mov byte [rbp + 0x144], 1
jmp 0x140018d0f
mov byte [rbp + 0x144], 2
movzx eax, byte [rbp + 0xa4]
and eax, 0x10
test eax, eax
jne 0x140018d0f
movzx eax, byte [rbp + 0x144]
shl al, 1
mov byte [rbp + 0x144], al
movzx eax, byte [rbp + 0xe4]
cmp eax, 3
je 0x140018dc3
movzx eax, byte [rbp + 0x124]
cmp eax, 4
jne 0x140018dc3
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
or eax, 2
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x3c8]
movzx ecx, byte [rbp + 0x24]
mov byte [rax + 0x11], cl
movzx eax, byte [rbp + 0x24]
sar eax, 6
mov rcx, qword [rbp + 0x3c8]
mov byte [rcx + 0x12], al
movzx eax, byte [rbp + 0x24]
and eax, 0x3f
sar eax, 3
mov rcx, qword [rbp + 0x3c8]
mov byte [rcx + 0x13], al
movzx eax, byte [rbp + 0x24]
and eax, 7
mov dword [rbp + 0x394], eax
mov rax, qword [rbp + 0x3c8]
movzx ecx, byte [rbp + 0x394]
mov byte [rax + 0x14], cl
movzx eax, byte [rbp + 0x394]
cmp eax, 5
jne 0x140018dc3
movzx eax, byte [rbp + 0xe4]
and eax, 1
test eax, eax
jne 0x140018dc3
mov byte [rbp + 0x144], 4
mov rax, qword [rbp + 0x48]
dec rax
mov qword [rbp + 0x48], rax
movzx eax, byte [rbp + 0x144]
mov byte [rbp + 0x394], al
cmp byte [rbp + 0x394], 1
je 0x140018df8
cmp byte [rbp + 0x394], 2
je 0x140018e22
cmp byte [rbp + 0x394], 4
je 0x140018e4e
jmp 0x140018e76
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
or eax, 0x40
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
mov rax, qword [rbp + 0x3c8]
mov rcx, qword [rbp + 0x48]
movzx ecx, byte [rcx]
mov byte [rax + 0x1d], cl
jmp 0x140018e76
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
bts eax, 7
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
mov rax, qword [rbp + 0x3c8]
mov rcx, qword [rbp + 0x48]
movzx ecx, word [rcx]
mov word [rax + 0x1d], cx
jmp 0x140018e76
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
bts eax, 8
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
mov rax, qword [rbp + 0x3c8]
mov rcx, qword [rbp + 0x48]
mov ecx, dword [rcx]
mov dword [rax + 0x1d], ecx
movzx eax, byte [rbp + 0x144]
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
jmp 0x140018eb4
movzx eax, byte [rbp + 0xa4]
and eax, 0x20
test eax, eax
je 0x140018eb4
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
or eax, 0x9000
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
movzx eax, byte [rbp + 0x64]
and eax, 0x10
test eax, eax
je 0x140018fa4
movzx eax, byte [rbp + 0x64]
and eax, 0x40
test eax, eax
je 0x140018f1d
movzx eax, byte [rbp + 0xa4]
and eax, 8
test eax, eax
je 0x140018f18
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
or eax, 0x208
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
mov rax, qword [rbp + 0x3c8]
mov rcx, qword [rbp + 0x48]
movzx ecx, word [rcx]
mov word [rax + 0x15], cx
mov rax, qword [rbp + 0x48]
add rax, 2
mov qword [rbp + 0x48], rax
jmp 0x1400190a4
jmp 0x14001902d
movzx eax, byte [rbp + 0x164]
test eax, eax
je 0x140018f5f
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
or eax, 0x20
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
mov rax, qword [rbp + 0x3c8]
mov rcx, qword [rbp + 0x48]
mov rcx, qword [rcx]
mov qword [rax + 0x15], rcx
mov rax, qword [rbp + 0x48]
add rax, 8
mov qword [rbp + 0x48], rax
jmp 0x140018fa4
movzx eax, byte [rbp + 0xa4]
and eax, 8
test eax, eax
jne 0x140018fa2
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
or eax, 0x10
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
mov rax, qword [rbp + 0x3c8]
mov rcx, qword [rbp + 0x48]
mov ecx, dword [rcx]
mov dword [rax + 0x15], ecx
mov rax, qword [rbp + 0x48]
add rax, 4
mov qword [rbp + 0x48], rax
jmp 0x140018fa4
jmp 0x140018faf
movzx eax, byte [rbp + 0x64]
and eax, 4
test eax, eax
je 0x140018fe4
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
or eax, 8
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
mov rax, qword [rbp + 0x3c8]
mov rcx, qword [rbp + 0x48]
movzx ecx, word [rcx]
mov word [rax + 0x15], cx
mov rax, qword [rbp + 0x48]
add rax, 2
mov qword [rbp + 0x48], rax
movzx eax, byte [rbp + 0x64]
and eax, 2
test eax, eax
je 0x140019022
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
or eax, 4
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
mov rax, qword [rbp + 0x3c8]
mov rcx, qword [rbp + 0x48]
movzx ecx, byte [rcx]
mov byte [rax + 0x15], cl
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
movzx eax, byte [rbp + 0x64]
and eax, 0x40
test eax, eax
je 0x140019064
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
or eax, 0x210
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
mov rax, qword [rbp + 0x3c8]
mov rcx, qword [rbp + 0x48]
mov ecx, dword [rcx]
mov dword [rax + 0x15], ecx
mov rax, qword [rbp + 0x48]
add rax, 4
mov qword [rbp + 0x48], rax
jmp 0x1400190a4
movzx eax, byte [rbp + 0x64]
and eax, 0x20
test eax, eax
je 0x1400190a4
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
or eax, 0x204
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
mov rax, qword [rbp + 0x3c8]
mov rcx, qword [rbp + 0x48]
movzx ecx, byte [rcx]
mov byte [rax + 0x15], cl
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x3c0]
mov rcx, qword [rbp + 0x48]
sub rcx, rax
mov qword [rbp + 0x398], rcx
mov rax, qword [rbp + 0x3c8]
movzx ecx, byte [rbp + 0x398]
mov byte [rax], cl
movzx eax, byte [rbp + 0x398]
cmp eax, 0xf
jle 0x1400190f8
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
or eax, 0x5000
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
mov rax, qword [rbp + 0x3c8]
mov byte [rax], InitCommonControls
mov rax, qword [rbp + 0x3c8]
movzx eax, byte [rax]
lea rsp, [rbp + 0x3a8]
pop rdi
pop rbp
ret