Function at 0x140038500
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x48]
sub rsp, 0x148
mov rax, qword [0x14013d0a8]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov qword [rbp - 0x40], r9
mov r12, r8
mov qword [rsp + 0x48], r8
mov r14, rdx
mov qword [rsp + 0x40], rdx
mov rbx, rcx
xor r15d, r15d
movzx esi, byte [rbp + 0xb0]
test sil, sil
je 0x140038554
call fcn.1400336f0
jmp 0x140038559
call fcn.140030320
mov r13d, eax
mov byte [rsp + 0x30], r15b
cmp eax, 1
jae 0x14003856d
xor al, al
jmp 0x140038caa
mov rdi, qword [rbx + 0x28]
mov dword [rbp - 0x80], r13d
mov dword [rbp - 0x7c], r15d
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rbp - 0x78], rax
lea rcx, str.Scanning_process_information
call fcn.1400b0640
mov rdx, rax
lea rcx, str.Scanning_process_information
call fcn.1400b0780
mov qword [rbp - 0x70], rax
lea rax, [rsp + 0x30]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x48], r15
cmp dword [rbp - 0x80], r15d
je 0x14003867f
test rdi, rdi
je 0x1400385e5
lea rdx, [rbp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rbp + 0x28]
add eax, dword [rbp + 0x20]
cdq
sub eax, edx
sar eax, 1
mov dword [rbp - 0x58], eax
mov eax, dword [rbp + 0x2c]
add eax, dword [rbp + 0x24]
jmp 0x140038600
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
mov dword [rbp - 0x58], eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
mov dword [rbp - 0x54], eax
mov edx, 2
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetAncestor]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetParent]
mov rdi, rax
mov qword [rbp - 0x48], rax
test rax, rax
je 0x140038657
nop dword [rax + rax]
call qword [sym.imp.USER32.dll_GetDesktopWindow]
cmp rdi, rax
je 0x140038657
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetParent]
mov rdi, rax
test rax, rax
jne 0x140038630
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 0x80]
lea r8, [0x1400219f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp - 0x50], rax
mov qword [r12], 0xffffffffffffffff
mov qword [rsp + 0x38], r15
test sil, sil
je 0x1400388c0
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov qword [rbp - 8], r15
xorps xmm0, xmm0
movdqa xmmword [rbp], xmm0
mov rdx, qword [rbx + 0x130]
sub rdx, qword [rbx + 0x128]
sar rdx, 5
test rdx, rdx
je 0x140038768
movabs rax, 0x7ffffffffffffff
cmp rdx, rax
ja 0x140038cca
lea rcx, [rbp - 8]
call fcn.14003c960
lea rax, [rbp - 8]
mov qword [rbp + 0x20], rax
mov r14, qword [rbx + 0x130]
mov rsi, qword [rbx + 0x128]
mov rdi, qword [rbp - 8]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
lea rax, [rbp - 8]
mov qword [rsp + 0x60], rax
cmp rsi, r14
je 0x140038764
nop word [rax + rax]
mov eax, dword [rsi]
mov dword [rdi], eax
mov eax, dword [rsi + 4]
mov dword [rdi + 4], eax
mov rcx, qword [rsi + 8]
mov qword [rdi + 8], rcx
test rcx, rcx
je 0x14003873c
call fcn.1400b04e0
mov rax, qword [rsi + 0x10]
mov qword [rdi + 0x10], rax
movzx eax, byte [rsi + 0x18]
mov byte [rdi + 0x18], al
movzx eax, byte [rsi + 0x19]
mov byte [rdi + 0x19], al
add rdi, 0x20
mov qword [rsp + 0x58], rdi
add rsi, 0x20
cmp rsi, r14
jne 0x140038720
mov qword [rbp], rdi
movzx eax, byte [rbx + 0x140]
mov byte [rbp + 0x10], al
mov eax, dword [rbx + 0x144]
mov dword [rbp + 0x14], eax
mov r9, qword [0x1401422b0]
mov byte [rsp + 0x20], 0
mov r9, qword [r9 + 0x20]
xor r8d, r8d
mov edx, 0x9c92
lea rcx, [rbp - 0x30]
call fcn.14002d480
mov edi, r15d
mov r12d, r15d
mov rdx, qword [rbx + 0x50]
mov rax, qword [rbx + 0x58]
sub rax, rdx
sar rax, 3
test rax, rax
je 0x14003889e
mov rcx, r15
nop dword [rax]
mov r14, qword [rdx + rcx*8]
mov esi, r15d
mov rcx, r14
call fcn.140030370
test eax, eax
je 0x14003887b
mov qword [rbp + 0x20], rbx
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov r8d, esi
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1400abb30
nop
cmp qword [rsp + 0x60], 0
je 0x14003882e
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call fcn.14002da70
test al, al
je 0x14003882e
lea r9, [rsp + 0x38]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140038cd0
inc edi
mov dword [rbp - 0x7c], edi
cmp byte [rsp + 0x30], 0
jne 0x140038867
cmp edi, r13d
jae 0x140038867
lea rcx, [rsp + 0x50]
call fcn.140028220
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc esi
mov rcx, r14
call fcn.140030370
cmp esi, eax
jb 0x1400387e0
jmp 0x14003887b
lea rcx, [rsp + 0x50]
call fcn.140028220
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc r12d
mov rdx, qword [rbx + 0x50]
mov rax, qword [rbx + 0x58]
sub rax, rdx
sar rax, 3
mov ecx, r12d
cmp rcx, rax
jb 0x1400387c0
mov r15, qword [rsp + 0x38]
lea rcx, [rbp - 8]
call fcn.140022710
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov r14, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
jmp 0x140038a7a
mov rdi, r15
mov qword [rbp + 0x20], rbx
movabs rsi, 0x2aaaaaaaaaaaaaab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov r8, qword [rbx + 0x38]
mov rcx, qword [rbx + 0x40]
sub rcx, r8
mov rax, rsi
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdi, rdx
jae 0x1400389f9
lea rax, [rdi + rdi*2]
lea r12, [rax*8]
lea r14, [r12 + r8]
mov rax, qword [rbx + 0x50]
cmp byte [rbx + 0x30], 0
je 0x14003893d
mov r8d, dword [r14 + 0x10]
lea rdx, [rsp + 0x50]
mov rcx, qword [rax]
call fcn.1400abb30
mov r14, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
jmp 0x140038a17
mov ecx, dword [r14 + 0x10]
shr rcx, 0x19
mov r8, rdi
mov rdx, r14
mov rcx, qword [rax + rcx*8]
call fcn.1400ac410
mov esi, eax
cmp eax, 0xffffffff
jne 0x140038981
mov ecx, dword [r14 + 0x10]
shr rcx, 0x19
mov rax, qword [rbx + 0x50]
mov rcx, qword [rax + rcx*8]
mov rdx, qword [rbx + 0x38]
add rdx, r12
xor r8d, r8d
call fcn.1400ab960
mov esi, eax
cmp eax, 0xffffffff
je 0x1400389ef
mov rax, qword [rbx + 0x38]
mov r9d, dword [r12 + rax + 0x10]
and r9d, 0x1ffffff
cmp r9d, esi
je 0x1400389b1
mov r8d, dword [r14 + 0x10]
shr r8d, 0x19
mov dword [rsp + 0x20], esi
mov rdx, rdi
lea rcx, str.Display_index__d_moved_from_snapshot__d:_d_to__d_n
call fcn.1400737b0
mov rcx, qword [rbx + 0x38]
mov eax, esi
xor eax, dword [rcx + r12 + 0x10]
and eax, 0x1ffffff
xor dword [rcx + r12 + 0x10], eax
mov ecx, dword [r14 + 0x10]
shr rcx, 0x19
mov rax, qword [rbx + 0x50]
mov r8d, esi
lea rdx, [rsp + 0x50]
mov rcx, qword [rax + rcx*8]
call fcn.1400abb30
mov r14, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
jmp 0x140038a17
mov r14, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
lea rax, vtable.CEventRef.0
mov qword [rsp + 0x50], rax
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
lea r9, [rsp + 0x38]
mov r8, r12
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140038cd0
mov dword [rbp - 0x7c], r15d
lea rcx, [rsp + 0x50]
cmp byte [rsp + 0x30], 0
jne 0x140038a66
call fcn.140028220
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc r15d
inc rdi
cmp r15d, r13d
movabs rsi, 0x2aaaaaaaaaaaaaab
jb 0x1400388d1
jmp 0x140038a75
call fcn.140028220
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r15, qword [rsp + 0x38]
mov rax, qword [r14]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140038c88
nop dword [rax]
mov rcx, qword [rbx + 0xc0]
mov rcx, qword [rcx + 8]
cmp qword [rcx + 0x10], 0
jne 0x140038b48
cmp qword [rbx + 0x88], 0
je 0x140038b05
cmp qword [rcx + 0x38], 0
jne 0x140038b05
cmp qword [rcx + 0x40], 0
jne 0x140038b05
cmp qword [rcx + 0x48], 0
jne 0x140038b05
cmp qword [rcx + 0x50], 0
jne 0x140038b05
cmp qword [rcx + 0x58], 0
jne 0x140038b05
cmp qword [rbx + 0xc8], 1
jbe 0x140038b05
mov rdx, qword [rcx + 8]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
dec qword [rbx + 0xc8]
mov edx, 0x60
call fcn.1400b56bc
jmp 0x140038b48
mov rax, qword [rbx + 0x58]
mov qword [rcx + 0x10], rax
cmp rax, r15
cmova r15, rax
mov rax, qword [rbx + 0xc0]
mov rdx, qword [rax + 8]
cmp rdx, qword [rax]
je 0x140038b48
mov rax, qword [rdx + 8]
mov rdx, qword [rax + 0x18]
mov qword [rcx + 0x18], rdx
mov rdx, qword [rax + 0x20]
mov qword [rcx + 0x20], rdx
mov rdx, qword [rax + 0x28]
mov qword [rcx + 0x28], rdx
mov rdx, qword [rax + 0x30]
mov qword [rcx + 0x30], rdx
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140038b78
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140038b73
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x140038b73
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140038b60
mov rbx, rax
jmp 0x140038b9f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x140038b9f
nop dword [rax]
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140038b90
mov rax, qword [r14]
cmp rbx, rax
jne 0x140038a90
mov rbx, qword [rax]
cmp rbx, rax
je 0x140038c88
nop word [rax + rax]
cmp qword [rbx + 0x88], 0
jne 0x140038bdd
mov rax, qword [rbx + 0xc0]
mov rcx, qword [rax + 8]
mov qword [rcx + 0x10], r15
mov qword [rbx + 0x58], r15
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x140038bf0
cmp qword [rbx + 0x88], 0
jne 0x140038c34
mov r9, qword [rbx + 0xc0]
mov rax, qword [r9]
cmp rax, r9
je 0x140038c34
mov r8, qword [rbx + 0x88]
mov rcx, qword [rax + 0x28]
cmp rcx, rdx
jbe 0x140038c16
mov qword [rbx + 0x78], rcx
mov rdx, rcx
mov rcx, qword [rax + 0x30]
cmp rcx, r8
jbe 0x140038c29
mov qword [rbx + 0x88], rcx
mov r8, rcx
mov rcx, qword [rax]
mov rax, rcx
cmp rcx, r9
jne 0x140038c06
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140038c60
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140038c5b
cmp rbx, qword [rax + 0x10]
jne 0x140038c5b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140038c48
mov rbx, rax
jmp 0x140038c7f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x140038c7f
nop dword [rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140038c70
cmp rbx, qword [r14]
jne 0x140038bc0
sub r15, qword [r12]
inc r15
mov rax, qword [rbp - 0x40]
mov qword [rax], r15
cmp byte [rsp + 0x30], 0
sete bl
lea rcx, [rbp - 0x80]
call fcn.140020fe0
movzx eax, bl
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400b5660
add rsp, 0x148
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14000f7e0
nop