Function at 0x140006010
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x140046b80], 0
mov rbx, rcx
jne 0x140005abb
xor r10d, r10d
cmp edx, 0x2b1
sete r10b
xor eax, eax
cmp edx, 0x16
sete al
or r10d, eax
xor eax, eax
cmp edx, 2
sete al
or r10d, eax
je case.default.0x140005c63
cmp edx, 0x7e
ja 0x140005c17
je 0x140005bf1
sub edx, 1
je 0x140005b99
sub edx, 1
je 0x140005afe
cmp edx, 0x14
jne case.default.0x140005c63
cmp r9d, 0x80000000
jne case.default.0x140005c63
mov dword [0x140046b80], 0
add rsp, 0x30
pop rbx
ret
cmp qword [0x140048b38], 0
je 0x140005b47
mov rcx, qword [0x140048b20]
mov dword [0x140048b18], 2
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x140048b10]
mov edx, 0x1f4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140048b38]
test rcx, rcx
je 0x140005b47
mov edx, 0x18
call fcn.14000c040
mov rcx, qword [0x140048b30]
test rcx, rcx
je 0x140005b5d
mov edx, 8
call fcn.14000c040
mov rbx, qword [0x140048b90]
test rbx, rbx
je 0x140005b8b
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov edx, 0x38
mov rcx, rbx
call fcn.14000c040
mov qword [0x140048b90], 0
xor ecx, ecx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_PostQuitMessage]
xor edx, edx
call qword [sym.imp.WTSAPI32.dll_WTSRegisterSessionNotification]
test eax, eax
jne 0x140005bc7
mov rcx, qword [0x140048b90]
test rcx, rcx
je 0x140005bc7
lea r9, str.WTSRegisterSessionNotification___failed.
lea r8, str.AudioInvertProcessMessage
lea edx, [rax + 2]
call fcn.1400057d0
mov ecx, 8
call fcn.14000c004
mov rcx, qword [0x140048b90]
mov qword [rsp + 0x20], rax
mov qword [0x140048b30], rax
mov qword [rax], rcx
add rsp, 0x30
pop rbx
jmp 0x140006010
mov rcx, qword [0x140048b90]
test rcx, rcx
je 0x140005c12
lea r9, str.WM_DISPLAYCHANGE
xor edx, edx
lea r8, str.AudioInvertProcessMessage
call fcn.1400057d0
mov rcx, rbx
jmp 0x140005c4c
cmp edx, 0x218
je 0x140005c46
cmp edx, 0x2b1
jne case.default.0x140005c63
cmp r8d, 1
jne 0x140005c36
mov dword [0x140046b80], r8d
jmp 0x140005c4c
cmp r8d, 2
je 0x140005aee
cmp r8d, 8
jmp 0x140005c4a
cmp r8d, 0x12
jne case.default.0x140005c63
lea r9, [0x140005c70]
mov r8d, 0x3e8
mov edx, 0x101
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetTimer]
add rsp, 0x30
pop rbx
ret
sub rsp, 0x38
cmp qword [0x140048b38], 0
jne 0x1400060af
mov ecx, 0x18
mov qword [rsp + 0x30], rbx
call fcn.14000c004
xor ecx, ecx
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov qword [0x140048b38], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rax], rcx
mov qword [rax + 8], rcx
lea edx, [rcx + 1]
mov qword [rax + 0x10], rcx
mov dword [rax + 0xc], ebx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x140005e70]
mov qword [0x140048b20], rax
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140048b10], rax
nop dword [rax]
mov eax, dword [0x140048b1c]
test eax, eax
jne 0x1400060aa
lea ecx, [rax + 5]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 3
jl 0x140006090
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret
add byte gs:[rdx], dh
and byte [rax], al
add byte [rbp], r14b
jae case.0x140005c63.1
je 0x1400734ec
add byte [rbp], r12b
add byte [rbp], ah
outsb dx, byte [rsi]
add byte [rax + rax + 0x65], ah
add byte [rdx], dh
and ah, byte [rcx]
and byte [rax], al
push 0
add byte gs:[rax], ah
add byte [rcx], ah
imul eax, dword [rax], 0x74
add byte [rcx], ch
jbe 0x140073510
outsb dx, byte [rsi]
add ch, ch
add byte [rsi], ch
add byte [rdi], bl
add byte [rcx], al
invalid
jb 0x140073520
and byte [rax], al
add byte [rax + r8 + 0x75], bpl
add byte [rbp], ah
insb byte [rdi], dx
add byte [rcx], ch
add byte [eax], ch
je 0x140073534
and byte [rax], al
push rbx
add byte [rax], ch
imul eax, dword [rax], 0x6c0065
add byte fs:[rdx], ah
and dword [rax], esp
and byte [rax], al
jo 0x140073548
outsd dx, dword [rsi]
add byte [rsi], dh
outsd dx, dword [rsi]
add byte [rax + rax + 0x65], ch
add byte [rsi], ch
add byte cs:[rdi], dl
add byte [rdx], dl
push rdx
add byte [rbp], ah
add byte fs:[rbp], dh
imul eax, dword [rax], 0x63
outsd dx, dword [rsi]
add byte [rax + rax + 0x72], ah
add cl, ch
add byte [rax], ch
push 0x20006f00
add byte [rbx], dh
jbe 0x14007357c
sbb eax, dword [rcx]
je case.0x140005c63.8
insb byte [rdi], dx
add byte [rcx], ah
cmp al, byte [rax]
invalid
outsd dx, dword [rsi]
add byte [rbx], ch
loope str._redukce_rN
and byte [rax], al
jb 0x140073598
add byte gs:[rax + rax + 0x75], ah
add byte [rbx], ch
invalid
jb 0x1400735b4
add byte gs:[rax + rax + 0x75], ah
add byte [rbx], ch
invalid
push rbx
add byte [rax + rax + 0x59], dh
add dword [rbp], esp
add byte fs:[rsi], ch
in eax, dx
add byte [rax], ah
and byte [rax], al
jb 0x1400735d4
and byte [rax], al
jb 0x1400735d4
add byte gs:[rax + rax + 0x75], ah
add byte [rbx], ch
invalid
jne 0x1400735da
imul eax, dword [rax], 0x63
add byte [rbp], ah
adc byte [rax], al
add byte [rax + rax + 0x6f], r13b
add byte [rbp], dh
push 0x64006f00
add byte [rdi], ch
invalid
jle 0x1400735ff
imul eax, dword [rax], 0x6d
add byte [rbp], ch
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add al, 0
pop rdx
add byte [rcx], ah
jo 0x140073614
add byte cs:[rax + rax], al
push rsi
add byte [rcx], bh
jo case.0x140005c63.18
add byte cs:[rax + rax + 0x43], cl
add byte [rax], ch
invalid
jo 0x1400736ee
loope 0x1400736f0
jb 0x1400736f2
outsd dx, dword [rsi]
add byte [rsi], dh
invalid