Function at 0x140005480
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 0x1400054f1
mov rdi, qword [rdx + 8]
mov rdx, rdi
call fcn.140004c80
test rdi, rdi
je 0x140005754
mov r8, qword [rdi]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140009c30
mov rcx, qword [rdi]
call fcn.1402150f0
mov rcx, rdi
call fcn.1402150f0
jmp 0x140005754
cmp eax, dword [rcx + 0xd4]
jne 0x1400055e1
mov rdi, qword [rdx + 8]
cmp qword [rdi + 0x28], 0
je 0x1400055bb
mov rcx, qword [rcx + 0xb0]
mov rax, qword [rcx]
call qword [rax]
cmp qword [rdi], rax
jne 0x1400055af
mov rdx, qword [rdi + 8]
lea rcx, str.Details:__ws_r_n
call fcn.1402b7a88
mov rbp, qword [rdi + 0x28]
mov r8, rbp
lea rdx, [rdi + 8]
lea rcx, [rsp + 0x38]
call fcn.1400052d0
nop
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbx + 0xb0]
call fcn.140173790
test al, al
jne 0x140005572
mov r8, qword [rbp + 0x80]
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbx + 0xb0]
call fcn.1401738d0
mov r8, qword [rbp + 0x18]
mov rdx, qword [rdi + 8]
mov rcx, qword [rbx + 0xb0]
call fcn.140173a60
mov r8, qword [rsp + 0x38]
mov rdx, qword [rdi + 8]
mov rcx, qword [rbx + 0xb0]
call fcn.1401736c0
nop
cmp dword [rsp + 0x40], 0
jle 0x1400055bb
mov rcx, qword [rsp + 0x38]
call fcn.1402b7350
jmp 0x1400055bb
mov rcx, qword [rbx + 0xb8]
mov rax, qword [rcx]
call qword [rax]
cmp dword [rdi + 0x20], 0
jle 0x1400055ca
mov rcx, qword [rdi + 0x18]
call fcn.1402b7350
cmp dword [rdi + 0x10], 0
jle 0x1400055d9
mov rcx, qword [rdi + 8]
call fcn.1402b7350
mov rcx, rdi
call fcn.1402150f0
movzx ecx, word [rsi + 0x10]
dec ecx
je 0x1400056ed
dec ecx
je 0x140005681
cmp ecx, 0x12
je 0x14000560a
mov rdx, rsi
mov rcx, rbx
call fcn.1401f9d40
jmp 0x140005754
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 0x140005754
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 0x1400056b5
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 0x1400056de
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 0x140005754
mov rdx, rsi
mov rcx, rbx
call fcn.1401f9d40
mov rcx, rbx
call fcn.140004410
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x140005ec0]
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, [0x140005770]
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