Function at 0x14004a820
Capabilities:
Encrypt data using chaskey
Inspect section memory permissions
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rdi, rcx
lea rax, vtable.CCustomized.0
mov qword [rcx], rax
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14004a7ae
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [rdi + 8], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x14004a7dc
mov rcx, rbx
test rbx, rbx
je 0x14004a81a
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14004a7d7
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
test rbx, rbx
jne 0x14004a7b7
lea rcx, [rdi + 0x30]
call fcn.1401557ec
nop
mov rdx, qword [rdi + 0x68]
sub rdx, 0x18
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004a807
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rdi + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140155528
call fcn.140161be4
nop
push rbp
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x14004a850
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov qword [rcx + 0x10], rdi
xor eax, eax
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rax
mov qword [rdx + 0x20], rax
mov qword [rdx + 0x28], rax
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x38], rax
mov qword [rdx + 0x40], rax
mov dword [rdx + 0x48], eax
xor esi, esi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x78], esi
mov r9d, 0x20019
lea r8, str.SOFTWARERealtekGeneral
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.140024490
lea ebp, [rsi + 4]
test eax, eax
jne 0x14004a908
mov dword [rsp + 0x80], ebp
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str.HideAudioIcon
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004a908
cmp dword [rsp + 0x88], ebp
jne 0x14004a908
cmp dword [rsp + 0x78], 1
jne 0x14004a908
or dword [rdi + 0x50], 0x400
lea rcx, [rsp + 0x38]
call fcn.140024590
test dword [rdi + 0x50], 0x4400
jne 0x14004a929
test dword [rdi + 0x13c], 0x20000
mov edx, esi
je 0x14004a92e
mov edx, 1
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 8]
and eax, 0xfffffffe
or eax, edx
mov dword [rcx + 8], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x50]
shr eax, 4
xor eax, dword [rcx + 8]
and eax, ebp
xor dword [rcx + 8], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x50]
shl eax, 4
xor eax, dword [rcx + 0xc]
and eax, 0x8000000
xor dword [rcx + 0xc], eax
mov rax, qword [rbx + 0x10]
or dword [rax + 0xc], 1
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xe4]
shl eax, 0x12
xor eax, dword [rcx + 0xc]
and eax, 0x100000
xor dword [rcx + 0xc], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xe4]
shl eax, 7
xor eax, dword [rcx + 0x38]
and eax, 0x200
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xec]
shl eax, 0xd
xor eax, dword [rcx + 0x10]
and eax, 0x40000
xor dword [rcx + 0x10], eax
test byte [rdi + 0xe4], bpl
jne 0x14004a9c8
test byte [rdi + 0xec], 0x20
mov edx, esi
je 0x14004a9cd
mov edx, 0x80000
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x10]
btr eax, 0x13
or eax, edx
mov dword [rcx + 0x10], eax
test byte [rdi + 0xec], 0x20
jne 0x14004a9f4
test dword [rdi + 0x13c], 0x40000
mov edx, esi
je 0x14004a9f9
mov edx, 0x100000
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x10]
btr eax, 0x14
or eax, edx
mov dword [rcx + 0x10], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x4c]
shr eax, 7
xor eax, dword [rcx + 0xc]
and eax, 0x200
xor dword [rcx + 0xc], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xe4]
shl eax, 0x12
xor eax, dword [rcx + 0xc]
and eax, 0x20000000
xor dword [rcx + 0xc], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xe4]
shr eax, 7
xor eax, dword [rcx + 8]
and eax, 0x20
xor dword [rcx + 8], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xe4]
shl eax, 0x10
xor eax, dword [rcx + 0xc]
and eax, 0x40000000
xor dword [rcx + 0xc], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0xe4]
shr eax, 4
xor eax, dword [rcx + 0xc]
and eax, 0x800
xor dword [rcx + 0xc], eax
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rcx + 0xe7]
xor eax, dword [rcx + 0x10]
and eax, 0x10
xor dword [rcx + 0x10], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xe8]
shr eax, 0x16
xor eax, dword [rcx + 0x10]
and eax, 8
xor dword [rcx + 0x10], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xe8]
shr eax, 8
xor eax, dword [rcx + 0x10]
and eax, 0x800
xor dword [rcx + 0x10], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x124]
mov dword [rcx + 0x44], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xe8]
shr eax, 0xb
xor eax, dword [rcx + 0x10]
and eax, 0x8000
xor dword [rcx + 0x10], eax
test byte [rdi + 0xec], 0x20
jne 0x14004aafa
test dword [rdi + 0x13c], 0x10000
mov edx, esi
je 0x14004aaff
mov edx, 0x2000
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x10]
btr eax, 0xd
or eax, edx
mov dword [rcx + 0x10], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x13c]
shl eax, 0x15
xor eax, dword [rcx + 0x10]
and eax, 0x1000000
xor dword [rcx + 0x10], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xec]
shr eax, 0x12
xor eax, dword [rcx + 0x10]
and eax, 0x100
xor dword [rcx + 0x10], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xec]
shr eax, 5
xor eax, dword [rcx + 0x10]
and eax, 0x4000000
xor dword [rcx + 0x10], eax
test byte [rdi + 0xf0], 0x10
je 0x14004ab71
test dword [rdi + 0x10c], 0x108
mov edx, 0x20000000
jne 0x14004ab73
mov edx, esi
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x10]
btr eax, 0x1d
or eax, edx
mov dword [rcx + 0x10], eax
test byte [rdi + 0xf0], 0x10
je 0x14004ab9d
test dword [rdi + 0xbc], 0x2000000
mov edx, 0x2000000
jne 0x14004ab9f
mov edx, esi
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0xc]
btr eax, 0x19
or eax, edx
mov dword [rcx + 0xc], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xf0]
shr eax, 0x19
xor eax, dword [rcx + 0x18]
and eax, 1
xor dword [rcx + 0x18], eax
mov rcx, qword [rbx + 0x10]
movzx eax, word [rdi + 0x52]
xor eax, dword [rcx + 0x18]
and eax, 8
xor dword [rcx + 0x18], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xf0]
shr eax, 0x11
xor eax, dword [rcx + 0xc]
and eax, 0x1000
xor dword [rcx + 0xc], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xf4]
shr eax, 4
xor eax, dword [rcx + 0x18]
and eax, 0x80
xor dword [rcx + 0x18], eax
test dword [rdi + 0xe4], 0x4000000
jne 0x14004ac20
test dword [rdi + 0x164], 0x1000000
jne 0x14004ac20
mov ebp, esi
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x10]
and eax, 0xfffffffb
or eax, ebp
mov dword [rcx + 0x10], eax
mov ecx, dword [rdi + 0xf4]
shr ecx, 0x1b
and ecx, 1
mov rax, qword [rbx + 0x10]
mov dword [rax + 0x24], ecx
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x13c]
shl eax, 0x13
xor eax, dword [rcx + 8]
and eax, 0x800000
xor dword [rcx + 8], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xf8]
shl eax, 8
xor eax, dword [rcx + 8]
and eax, 0x1000
xor dword [rcx + 8], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xf8]
shl eax, 0x11
xor eax, dword [rcx + 0x10]
and eax, 0x8000000
xor dword [rcx + 0x10], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xf4]
shl eax, 2
xor eax, dword [rcx + 0x18]
and eax, 0x400
xor dword [rcx + 0x18], eax
test byte [rdi + 0x50], 0x80
jne 0x14004acb3
test byte [rdi + 0x13c], 0x40
mov edx, esi
je 0x14004acb8
mov edx, 1
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x28]
and eax, 0xfffffffe
or eax, edx
mov dword [rcx + 0x28], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x13c]
shr eax, 6
xor eax, dword [rcx + 0x20]
and eax, 1
xor dword [rcx + 0x20], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x50]
shr eax, 0x1d
xor eax, dword [rcx + 0x18]
and eax, 4
xor dword [rcx + 0x18], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xf8]
shr eax, 0x13
xor eax, dword [rcx + 0x28]
and eax, 2
xor dword [rcx + 0x28], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x4c]
shr eax, 0x13
xor eax, dword [rcx + 0x28]
and eax, 4
xor dword [rcx + 0x28], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xf8]
shr eax, 0x12
xor eax, dword [rcx + 0x28]
and eax, 0x10
xor dword [rcx + 0x28], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x13c]
shr eax, 2
xor eax, dword [rcx + 0x28]
and eax, 0x20
xor dword [rcx + 0x28], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x50]
shl eax, 9
xor eax, dword [rcx + 0x28]
and eax, 0x200
xor dword [rcx + 0x28], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x50]
shl eax, 9
xor eax, dword [rcx + 0x28]
and eax, 0x400
xor dword [rcx + 0x28], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xf8]
shr eax, 0xd
xor eax, dword [rcx + 0x28]
and eax, 0x800
xor dword [rcx + 0x28], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xf8]
shr eax, 0x12
xor eax, dword [rcx + 0x28]
and eax, 0x1000
xor dword [rcx + 0x28], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x13c]
shl eax, 6
xor eax, dword [rcx + 0x28]
and eax, 0x4000
xor dword [rcx + 0x28], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xfc]
shl eax, 0xb
xor eax, dword [rcx + 0x28]
and eax, 0x8000
xor dword [rcx + 0x28], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0xfc]
shr eax, 5
xor eax, dword [rcx + 0x2c]
and eax, 1
xor dword [rcx + 0x2c], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x13c]
shr eax, 8
xor eax, dword [rcx + 0x2c]
and eax, 2
xor dword [rcx + 0x2c], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x108]
shr eax, 6
xor eax, dword [rcx + 0x2c]
and eax, 4
xor dword [rcx + 0x2c], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x188]
shl eax, 5
xor eax, dword [rcx + 0x38]
and eax, 0x40000000
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x74]
shr eax, 0xd
xor eax, dword [rcx + 0x3c]
and eax, 1
xor dword [rcx + 0x3c], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x13c]
shr eax, 8
xor eax, dword [rcx + 8]
and eax, 0x10
xor dword [rcx + 8], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x13c]
shr eax, 0xa
xor eax, dword [rcx + 0x2c]
and eax, 8
xor dword [rcx + 0x2c], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x13c]
shr eax, 0xa
xor eax, dword [rcx + 0x2c]
and eax, 0x10
xor dword [rcx + 0x2c], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x108]
shr eax, 0xa
xor eax, dword [rcx + 0x2c]
and eax, 0x20
xor dword [rcx + 0x2c], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x108]
shr eax, 9
xor eax, dword [rcx + 0x2c]
and eax, 0x80
xor dword [rcx + 0x2c], eax
test dword [rdi + 0x50], 0x400
jne 0x14004aec3
test dword [rdi + 0x13c], 0x20000
mov edx, esi
je 0x14004aec8
mov edx, 0x100
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x2c]
btr eax, 8
or eax, edx
mov dword [rcx + 0x2c], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x13c]
shl eax, 9
xor eax, dword [rcx + 0xc]
and eax, 0x400
xor dword [rcx + 0xc], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x13c]
shr eax, 8
xor eax, dword [rcx + 0x2c]
and eax, 0x800
xor dword [rcx + 0x2c], eax
mov eax, dword [rdi + 0x164]
bt eax, 0xe
jae 0x14004af3b
mov rax, qword [rbx + 0x10]
or dword [rax + 0x28], 0x80
mov rax, qword [rbx + 0x10]
or dword [rax + 0x28], 0x100
mov rax, qword [rbx + 0x10]
and dword [rax + 0x28], 0xfffffdff
mov eax, dword [rdi + 0x164]
bt eax, 0x11
jae 0x14004af49
mov rax, qword [rbx + 0x10]
or dword [rax + 0x28], 0x40
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x1a8]
xor eax, dword [rcx + 0x2c]
and eax, 0x1000
xor dword [rcx + 0x2c], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x164]
shr eax, 0xf
xor eax, dword [rcx + 0x2c]
and eax, 0x2000
xor dword [rcx + 0x2c], eax
mov rcx, qword [rbx + 0x10]
movzx eax, word [rdi + 0x166]
xor eax, dword [rcx + 0x2c]
and eax, 0x8000
xor dword [rcx + 0x2c], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x168]
shl eax, 0xe
xor eax, dword [rcx + 0x2c]
and eax, 0x10000
xor dword [rcx + 0x2c], eax
mov ecx, dword [rdi + 0x160]
shr ecx, 0x19
and ecx, 1
mov rax, qword [rbx + 0x10]
mov dword [rax + 0x30], ecx
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x13c]
shr eax, 7
xor eax, dword [rcx + 8]
and eax, 0x40000
xor dword [rcx + 8], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x13c]
shr eax, 8
xor eax, dword [rcx + 0x34]
and eax, 4
xor dword [rcx + 0x34], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x13c]
shr eax, 7
xor eax, dword [rcx + 0x34]
and eax, 8
xor dword [rcx + 0x34], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x13c]
shr eax, 0x1b
xor eax, dword [rcx + 0x34]
and eax, 0x10
xor dword [rcx + 0x34], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x170]
shr eax, 3
xor eax, dword [rcx + 0x34]
and eax, 0x40
xor dword [rcx + 0x34], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x170]
shr eax, 2
xor eax, dword [rcx + 0x34]
and eax, 0x80
xor dword [rcx + 0x34], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x140]
shl eax, 0xf
xor eax, dword [rcx + 0x10]
and eax, 0x10000
xor dword [rcx + 0x10], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x170]
shr eax, 3
xor eax, dword [rcx + 0x34]
and eax, 0x100
xor dword [rcx + 0x34], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x140]
shl eax, 7
xor eax, dword [rcx + 0x34]
and eax, 0x200
xor dword [rcx + 0x34], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rdi + 0x170]
shr eax, 0xa
xor eax, dword [rcx + 0x34]
and eax, 0x400
xor dword [rcx + 0x34], eax
test dword [rdi + 0x170], 0x40000000
je 0x14004b0e2
mov eax, dword [0x140465824]
test eax, eax
jne 0x14004b0d1
mov dword [0x140465820], 0x114
lea rcx, [0x140465820]
call fcn.14003e830
mov eax, dword [0x140465824]
cmp eax, 6
jne 0x14004b0e2
cmp dword [0x140465828], 2
lea edx, [rax - 4]
je 0x14004b0e4
mov edx, esi
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x38]
and eax, 0xfffffffd
or eax, edx
mov dword [rcx + 0x38], eax
mov eax, dword [rdi + 0x200]
mov ecx, 0x15e
test eax, eax
cmovne ecx, eax
mov rax, qword [rbx + 0x10]
mov dword [rax + 0x48], ecx
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x16c]
shr eax, 6
xor eax, dword [rcx + 0x34]
and eax, 0x800
xor dword [rcx + 0x34], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x140]
shl eax, 9
xor eax, dword [rcx + 0x34]
and eax, 0x1000
xor dword [rcx + 0x34], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x140]
shl eax, 9
xor eax, dword [rcx + 0x34]
and eax, 0x2000
xor dword [rcx + 0x34], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x140]
shr eax, 5
xor eax, dword [rcx + 0x38]
and eax, 1
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x1ac]
shl eax, 2
xor eax, dword [rcx + 0x38]
and eax, 4
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x174]
shl eax, 4
xor eax, dword [rcx + 0x38]
and eax, 0x10
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x174]
shr eax, 3
xor eax, dword [rcx + 0x38]
and eax, 0x20
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x174]
shr eax, 0xc
xor eax, dword [rcx + 0x38]
and eax, 0x80
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x140]
shl eax, 2
xor eax, dword [rcx + 0x38]
and eax, 0x100
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x160]
shr eax, 9
xor eax, dword [rcx + 0x10]
and eax, 0x20
xor dword [rcx + 0x10], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x4c]
shr eax, 4
xor eax, dword [rcx + 8]
and eax, 0x100000
xor dword [rcx + 8], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x140]
shl eax, 4
xor eax, dword [rcx + 0x38]
and eax, 0x800
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x17c]
xor eax, dword [rcx + 0x38]
and eax, 0x1000
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x17c]
xor eax, dword [rcx + 0x38]
and eax, 0x2000
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x17c]
xor eax, dword [rcx + 0x38]
and eax, 0x4000
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x17c]
shr eax, 3
xor eax, dword [rcx + 0x38]
and eax, 0x20000
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x16c]
shr eax, 0xa
xor eax, dword [rcx + 0x38]
and eax, 0x10000
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x17c]
shr eax, 5
xor eax, dword [rcx + 0x38]
and eax, 0x40000
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x17c]
shr eax, 6
xor eax, dword [rcx + 0x38]
and eax, 0x80000
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x180]
xor eax, dword [rcx + 0x38]
and eax, 0x100000
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x180]
shr eax, 2
xor eax, dword [rcx + 0x38]
and eax, 0x200000
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x17c]
shr eax, 9
xor eax, dword [rcx + 0x38]
and eax, 0x400000
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x180]
shr eax, 2
xor eax, dword [rcx + 0x38]
and eax, 0x800000
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x140]
shl eax, 0xf
xor eax, dword [rcx + 0x38]
and eax, 0x1000000
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0xfc]
shl eax, 4
xor eax, dword [rcx + 0x38]
and eax, 0x2000000
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0xfc]
shl eax, 6
xor eax, dword [rcx + 0x38]
and eax, 0x10000000
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0xb4]
shl eax, 0xa
xor eax, dword [rcx + 0x38]
and eax, 0x4000000
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x180]
shr eax, 4
xor eax, dword [rcx + 0x38]
and eax, 0x8000000
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x1ac]
shl eax, 0x12
xor eax, dword [rcx + 0x38]
and eax, 0x20000000
xor dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0x188]
shr eax, 0x15
xor eax, dword [rcx + 8]
and eax, 8
xor dword [rcx + 8], eax
mov rdx, qword [rbx + 0x10]
mov ecx, dword [rdx + 0x194]
shl ecx, 0x17
xor ecx, dword [rdx + 0x38]
btr ecx, 0x1f
mov eax, dword [rdx + 0x194]
shl eax, 0x17
xor ecx, eax
mov dword [rdx + 0x38], ecx
mov rcx, rbx
call fcn.14004e200
test eax, eax
jne 0x14004b3f0
mov dword [rbx + 0x7c], esi
movzx r11d, word [rdi + 0x412]
movzx r10d, word [rdi + 0x410]
mov eax, r11d
shl eax, 0x10
or r10d, eax
movzx r9d, word [rdi + 0x416]
shl r9d, 0x10
movzx eax, word [rdi + 0x414]
or r9d, eax
mov r8d, esi
lea rcx, [0x140396898]
nop dword [rax]
mov edx, dword [rcx - 8]
test edx, edx
je 0x14004b460
sub edx, 1
je 0x14004b45b
sub edx, 1
je 0x14004b455
sub edx, 1
je 0x14004b450
cmp edx, 1
jne 0x14004b468
cmp r11d, dword [rcx]
jmp 0x14004b466
cmp r10d, dword [rcx]
jne 0x14004b468
cmp r9d, dword [rcx + 4]
jmp 0x14004b466
cmp r10d, dword [rcx]
jmp 0x14004b466
mov eax, dword [rbx + 0x7c]
cmp dword [rcx - 4], eax
je 0x14004b47b
inc r8d
add rcx, 0x14
cmp r8d, 0x5d
jae 0x14004b582
jmp 0x14004b430
movsxd rax, r8d
lea rcx, [rax + rax*4]
lea rdx, [0x1403968a0]
mov edx, dword [rdx + rcx*4]
test edx, edx
je 0x14004b557
sub edx, 1
je 0x14004b52e
sub edx, 1
je 0x14004b505
sub edx, 1
je 0x14004b4dc
cmp edx, 1
jne 0x14004b582
mov ecx, 0x250
call fcn.140153a34
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14004b4d7
mov r8d, dword [rbx + 0x7c]
mov rdx, qword [rbx + 0x10]
mov rcx, rax
call fcn.140053760
mov rsi, rax
jmp 0x14004b57e
mov ecx, 0x88
call fcn.140153a34
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14004b503
mov r8d, dword [rbx + 0x7c]
mov rdx, qword [rbx + 0x10]
mov rcx, rax
call fcn.140053140
mov rsi, rax
jmp 0x14004b57e
mov ecx, 0x248
call fcn.140153a34
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14004b52c
mov r8d, dword [rbx + 0x7c]
mov rdx, qword [rbx + 0x10]
mov rcx, rax
call fcn.140052470
mov rsi, rax
jmp 0x14004b57e
mov ecx, 0xe8
call fcn.140153a34
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14004b555
mov r8d, dword [rbx + 0x7c]
mov rdx, qword [rbx + 0x10]
mov rcx, rax
call fcn.140055ef0
mov rsi, rax
jmp 0x14004b57e
mov ecx, 0x1f0
call fcn.140153a34
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14004b57e
mov r8d, dword [rbx + 0x7c]
mov rdx, qword [rbx + 0x10]
mov rcx, rax
call fcn.140048480
mov rsi, rax
mov qword [rbx + 8], rsi
mov rax, qword [rbx + 0x10]
test dword [rax + 0xb0], 0x4000000
je 0x14004b5a8
and dword [rax + 8], 0xfffff7ff
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x200000
mov rax, qword [rbx + 0x10]
test dword [rax + 0x10], 0x80000
je 0x14004b5e2
or dword [rax + 0xc], 0x80000
mov rcx, qword [rbx + 0x10]
mov edx, dword [rcx + 0xc]
bt edx, 0x14
jae 0x14004b5d0
bts edx, 0x17
mov dword [rcx + 0xc], edx
mov rcx, qword [rbx + 0x10]
and dword [rcx + 0xc], 0xffdfffff
mov rcx, qword [rbx + 0x10]
or dword [rcx + 0xc], 0x1000000
mov eax, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret