Function at 0x140005350
Capabilities:
Create thread
Terminate thread

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbp
mov rsi, rdx
mov rbx, rcx
movzx eax, word [rdx + 0x10]
cmp eax, dword [rcx + 0xd0]
jne 0x1400053c1
mov rdi, qword [rdx + 8]
mov rdx, rdi
call fcn.140004b50
test rdi, rdi
je 0x140005624
mov r8, qword [rdi]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140009b00
mov rcx, qword [rdi]
call fcn.1402012c0
mov rcx, rdi
call fcn.1402012c0
jmp 0x140005624
cmp eax, dword [rcx + 0xd4]
jne 0x1400054b1
mov rdi, qword [rdx + 8]
cmp qword [rdi + 0x28], 0
je 0x14000548b
mov rcx, qword [rcx + 0xb0]
mov rax, qword [rcx]
call qword [rax]
cmp qword [rdi], rax
jne 0x14000547f
mov rdx, qword [rdi + 8]
lea rcx, str.Details:__ws_r_n
call fcn.140298d38
mov rbp, qword [rdi + 0x28]
mov r8, rbp
lea rdx, [rdi + 8]
lea rcx, [rsp + 0x38]
call fcn.1400051a0
nop
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbx + 0xb0]
call fcn.140164140
test al, al
jne 0x140005442
mov r8, qword [rbp + 0x80]
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbx + 0xb0]
call fcn.140164280
mov r8, qword [rbp + 0x18]
mov rdx, qword [rdi + 8]
mov rcx, qword [rbx + 0xb0]
call fcn.140164410
mov r8, qword [rsp + 0x38]
mov rdx, qword [rdi + 8]
mov rcx, qword [rbx + 0xb0]
call fcn.140164070
nop
cmp dword [rsp + 0x40], 0
jle 0x14000548b
mov rcx, qword [rsp + 0x38]
call fcn.140298600
jmp 0x14000548b
mov rcx, qword [rbx + 0xb8]
mov rax, qword [rcx]
call qword [rax]
cmp dword [rdi + 0x20], 0
jle 0x14000549a
mov rcx, qword [rdi + 0x18]
call fcn.140298600
cmp dword [rdi + 0x10], 0
jle 0x1400054a9
mov rcx, qword [rdi + 8]
call fcn.140298600
mov rcx, rdi
call fcn.1402012c0
movzx ecx, word [rsi + 0x10]
dec ecx
je 0x1400055bd
dec ecx
je 0x140005551
cmp ecx, 0x12
je 0x1400054da
mov rdx, rsi
mov rcx, rbx
call fcn.1401e6230
jmp 0x140005624
mov rdi, qword [rsi + 0x20]
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetParent]
mov rbx, rax
xor ebp, ebp
mov qword [rsp + 0x70], rbp
lea r9d, [rbp + 1]
lea r8, [rsp + 0x70]
mov rdx, rax
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_MapWindowPoints]
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x74]
mov edx, dword [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_OffsetWindowOrgEx]
xor r9d, r9d
mov r8, rdi
lea edx, [rbp + 0x14]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
mov r8d, dword [rsp + 0x74]
mov edx, dword [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov qword [rsi + 0x18], 1
jmp 0x140005624
xor r9d, r9d
mov r8d, 0x1388
mov rdx, qword [rbx + 0xd8]
mov rcx, qword [rbx + 0xc8]
call qword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
cmp eax, 0x102
jne 0x140005585
or edx, 0xffffffff
mov rcx, qword [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, 0x1388
mov rcx, qword [rbx + 0xe0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400055ae
or edx, 0xffffffff
mov rcx, qword [rbx + 0xe0]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005624
mov rdx, rsi
mov rcx, rbx
call fcn.1401e6230
mov rcx, rbx
call fcn.1400042e0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x140005d90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xd8], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x140005640]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xe0], rax
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret