Function at 0x140016762
Capabilities:
Check for software breakpoints

Disassembly:
jmp 0x140018100
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3c8
lea rbp, [rsp + 0x20]
lea rcx, [0x14007d162]
call fcn.140016b68
nop
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 0x140018176
movzx eax, byte [rbp + 4]
dec al
mov byte [rbp + 4], al
movzx eax, byte [rbp + 4]
test eax, eax
je 0x1400182bb
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.0x1400181ec.11
movsxd rax, dword [rbp + 0x398]
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0x19150]
mov eax, dword [rcx + rax*4 + 0x19120]
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 0x1400182b6
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 0x1400182b6
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 0x1400182b6
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 0x1400182b6
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 0x1400182b6
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 0x1400182b6
jmp 0x1400182bb
jmp 0x14001816d
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 0x1400182ea
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 0x1400183f5
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 0x140018362
mov rax, qword [rbp + 0x48]
movzx eax, byte [rax]
and eax, 0xf8
cmp eax, 0xb8
jne 0x140018362
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 0x1400183d3
mov dword [rbp + 0x398], 1
jmp 0x1400183dd
mov dword [rbp + 0x398], 0
cmp dword [rbp + 0x398], 0
je 0x1400183f5
movzx eax, byte [rbp + 0x24]
mov byte [rbp + 0x84], al
jmp 0x1400184fe
mov rax, qword [rbp + 0x3c8]
movzx ecx, byte [rbp + 0x24]
mov byte [rax + 0xb], cl
movzx eax, byte [rbp + 0x24]
cmp eax, 0xf
jne 0x140018443
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 0x140018498
movzx eax, byte [rbp + 0x24]
cmp eax, 0xa0
jl 0x140018498
movzx eax, byte [rbp + 0x24]
cmp eax, 0xa3
jg 0x140018498
movzx eax, byte [rbp + 0x164]
inc al
mov byte [rbp + 0x164], al
movzx eax, byte [rbp + 0xa4]
and eax, 0x10
test eax, eax
je 0x140018488
movzx eax, byte [rbp + 0xa4]
or eax, 8
mov byte [rbp + 0xa4], al
jmp 0x140018498
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 0x140018533
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 0x140018533
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 0x140018576
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 0x140018611
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 0x140018611
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 0x140018e9e
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 0x1400186ee
movzx eax, byte [rbp + 4]
movzx ecx, byte [rbp + 0x104]
shl eax, cl
and eax, 0x80
test eax, eax
je 0x1400186ee
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 0x1400187e7
movzx eax, byte [rbp + 0x84]
cmp eax, 0xd9
jl 0x1400187e7
movzx eax, byte [rbp + 0x84]
cmp eax, 0xdf
jg 0x1400187e7
movzx eax, byte [rbp + 0x84]
sub eax, 0xd9
mov byte [rbp + 0x1a4], al
movzx eax, byte [rbp + 0xe4]
cmp eax, 3
jne 0x140018789
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 0x1400187be
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 0x1400187e7
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 0x14001895f
movzx eax, byte [rbp + 0xe4]
cmp eax, 3
jne 0x140018823
mov rax, qword [rbp + 0x3c8]
mov eax, dword [rax + 0x21]
or eax, 0x9000
mov rcx, qword [rbp + 0x3c8]
mov dword [rcx + 0x21], eax
jmp 0x14001895f
movzx eax, byte [rbp + 0x84]
mov byte [rbp + 0x1e4], al
mov rax, qword [rbp + 0x3c8]
movzx eax, byte [rax + 0xc]
test eax, eax
je 0x140018867
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 0x14001889d
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 0x1400188b0
mov rax, qword [rbp + 0xc8]
inc rax
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0x1c8]
cmp qword [rbp + 0xc8], rax
je 0x140018946
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 0x14001890c
mov dword [rbp + 0x39c], 1
jmp 0x140018916
mov dword [rbp + 0x39c], 0
cmp dword [rbp + 0x39c], 0
je 0x140018941
mov rax, qword [rbp + 0xc8]
movzx eax, byte [rax]
movzx ecx, byte [rbp + 0x104]
shl eax, cl
and eax, 0x80
test eax, eax
jne 0x14001893f
jmp 0x14001895f
jmp 0x140018946
jmp 0x14001889f
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 0x1400189fd
movzx eax, byte [rbp + 0x84]
mov byte [rbp + 0x394], al
cmp byte [rbp + 0x394], 0x20
je 0x1400189a5
cmp byte [rbp + 0x394], 0x21
je 0x1400189d0
cmp byte [rbp + 0x394], 0x22
je 0x1400189a5
cmp byte [rbp + 0x394], 0x23
je 0x1400189d0
jmp 0x1400189fb
mov byte [rbp + 0xe4], 3
movzx eax, byte [rbp + 0x104]
cmp eax, 4
jg 0x1400189c4
movzx eax, byte [rbp + 0x104]
cmp eax, 1
jne 0x1400189cb
jmp 0x140018c25
jmp 0x140018c3e
mov byte [rbp + 0xe4], 3
movzx eax, byte [rbp + 0x104]
cmp eax, 4
je 0x1400189ef
movzx eax, byte [rbp + 0x104]
cmp eax, 5
jne 0x1400189f6
jmp 0x140018c25
jmp 0x140018c3e
jmp 0x140018a5a
movzx eax, byte [rbp + 0x84]
mov byte [rbp + 0x394], al
cmp byte [rbp + 0x394], 0x8c
je 0x140018a1e
cmp byte [rbp + 0x394], 0x8e
je 0x140018a36
jmp 0x140018a5a
movzx eax, byte [rbp + 0x104]
cmp eax, 5
jle 0x140018a31
jmp 0x140018c25
jmp 0x140018c3e
movzx eax, byte [rbp + 0x104]
cmp eax, 1
je 0x140018a4e
movzx eax, byte [rbp + 0x104]
cmp eax, 5
jle 0x140018a55
jmp 0x140018c25
jmp 0x140018c3e
movzx eax, byte [rbp + 0xe4]
cmp eax, 3
jne 0x140018bae
mov rax, qword [rbp + 0x3c8]
movzx eax, byte [rax + 0xc]
test eax, eax
je 0x140018aa1
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 0x140018ac7
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 0x140018adb
mov rax, qword [rbp + 0xc8]
add rax, 2
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0x208]
cmp qword [rbp + 0xc8], rax
je 0x140018ba7
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 0x140018b37
mov dword [rbp + 0x39c], 1
jmp 0x140018b41
mov dword [rbp + 0x39c], 0
cmp dword [rbp + 0x39c], 0
je 0x140018ba2
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 0x140018ba0
mov rax, qword [rbp + 0xc8]
movzx eax, byte [rax]
movzx ecx, byte [rbp + 0x104]
shl eax, cl
and eax, 0x80
test eax, eax
jne 0x140018ba0
jmp 0x140018c25
jmp 0x140018ba7
jmp 0x140018ac9
jmp 0x140018c3e
mov rax, qword [rbp + 0x3c8]
movzx eax, byte [rax + 0xc]
test eax, eax
je 0x140018c23
movzx eax, byte [rbp + 0x84]
mov byte [rbp + 0x394], al
cmp byte [rbp + 0x394], 0x50
je 0x140018bf9
cmp byte [rbp + 0x394], 0xc5
je 0x140018c1d
cmp byte [rbp + 0x394], 0xd6
je 0x140018c0b
cmp byte [rbp + 0x394], 0xd7
je 0x140018bf9
cmp byte [rbp + 0x394], 0xf7
je 0x140018bf9
jmp 0x140018c1f
movzx eax, byte [rbp + 0xa4]
and eax, 9
test eax, eax
je 0x140018c09
jmp 0x140018c25
jmp 0x140018c1f
movzx eax, byte [rbp + 0xa4]
and eax, 6
test eax, eax
je 0x140018c1b
jmp 0x140018c25
jmp 0x140018c1f
jmp 0x140018c25
jmp 0x140018c3e
jmp 0x140018c3e
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 0x140018c91
movzx eax, byte [rbp + 0x84]
cmp eax, 0xf6
jne 0x140018c79
movzx eax, byte [rbp + 0x64]
or eax, 2
mov byte [rbp + 0x64], al
jmp 0x140018c91
movzx eax, byte [rbp + 0x84]
cmp eax, 0xf7
jne 0x140018c91
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 0x140018cbb
cmp byte [rbp + 0x394], 1
je 0x140018cf3
cmp byte [rbp + 0x394], 2
je 0x140018cfc
jmp 0x140018d20
movzx eax, byte [rbp + 0xa4]
and eax, 0x10
test eax, eax
je 0x140018cde
movzx eax, byte [rbp + 0x124]
cmp eax, 6
jne 0x140018cdc
mov byte [rbp + 0x144], 2
jmp 0x140018cf1
movzx eax, byte [rbp + 0x124]
cmp eax, 5
jne 0x140018cf1
mov byte [rbp + 0x144], 4
jmp 0x140018d20
mov byte [rbp + 0x144], 1
jmp 0x140018d20
mov byte [rbp + 0x144], 2
movzx eax, byte [rbp + 0xa4]
and eax, 0x10
test eax, eax
jne 0x140018d20
movzx eax, byte [rbp + 0x144]
shl al, 1
mov byte [rbp + 0x144], al
movzx eax, byte [rbp + 0xe4]
cmp eax, 3
je 0x140018dd4
movzx eax, byte [rbp + 0x124]
cmp eax, 4
jne 0x140018dd4
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 0x140018dd4
movzx eax, byte [rbp + 0xe4]
and eax, 1
test eax, eax
jne 0x140018dd4
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 0x140018e09
cmp byte [rbp + 0x394], 2
je 0x140018e33
cmp byte [rbp + 0x394], 4
je 0x140018e5f
jmp 0x140018e87
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 0x140018e87
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 0x140018e87
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 0x140018ec5
movzx eax, byte [rbp + 0xa4]
and eax, 0x20
test eax, eax
je 0x140018ec5
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 0x140018fb5
movzx eax, byte [rbp + 0x64]
and eax, 0x40
test eax, eax
je 0x140018f2e
movzx eax, byte [rbp + 0xa4]
and eax, 8
test eax, eax
je 0x140018f29
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 0x1400190b5
jmp 0x14001903e
movzx eax, byte [rbp + 0x164]
test eax, eax
je 0x140018f70
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 0x140018fb5
movzx eax, byte [rbp + 0xa4]
and eax, 8
test eax, eax
jne 0x140018fb3
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 0x140018fb5
jmp 0x140018fc0
movzx eax, byte [rbp + 0x64]
and eax, 4
test eax, eax
je 0x140018ff5
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 0x140019033
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 0x140019075
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 0x1400190b5
movzx eax, byte [rbp + 0x64]
and eax, 0x20
test eax, eax
je 0x1400190b5
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 0x140019109
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