Function at 0x14002fce0
Capabilities:
Create thread
Resume thread

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x6f0
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rdi, rcx
mov rcx, qword [rcx + 0x5f8]
test rcx, rcx
je 0x14002fd46
call qword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x14002fd27
call qword [sym.imp.USER32.dll_EndMenu]
jmp 0x14002fd46
xor ecx, ecx
call qword [sym.imp.soui.dll_public:_static_void___cdecl_SOUI::SMenuEx::ExitPopupMenu_int_]
mov rcx, qword [rdi + 0x5f8]
add rcx, 8
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.soui.dll_public:_void___cdecl_SOUI::SWindow::SetVisible_int__int____ptr64]
lea rcx, [rdi + 8]
or r8d, 0xffffffff
lea rdx, [0x140128a20]
call qword [sym.imp.soui.dll_public:_class_SOUI::SWindow____ptr64___cdecl_SOUI::SWindow::FindChildByName_wchar_t_const____ptr64__int____ptr64]
mov qword [rsp + 0x720], rax
mov eax, dword [0x14018ada8]
test eax, eax
je 0x14002fdd5
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rbx, rax
mov ecx, dword [0x14018ada8]
test ecx, ecx
je 0x14002fdd5
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x14002fdd5
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14002fdcb
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [0x14018ada8]
test eax, eax
jne 0x14002fd80
mov dword [0x14018ada8], 1
mov rcx, qword [rsp + 0x720]
test rcx, rcx
je 0x14002fdfb
mov edx, 1
mov r8d, edx
call qword [sym.imp.soui.dll_public:_void___cdecl_SOUI::SWindow::SetVisible_int__int____ptr64]
nop
mov rcx, rdi
call fcn.140028480
lea rcx, [rdi + 0x750]
call fcn.14000f4f0
xor ebp, ebp
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rbp
lea rax, [0x140028530]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], ebp
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x80]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov qword [rsp + 0xa0], rdi
mov eax, dword [rsp + 0x48]
test eax, eax
jne 0x14002ff36
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rbp
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea r11, [0x140048020]
mov qword [rsp + 0x70], r11
lea rax, [rsp + 0x90]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14002fec6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
lea r8, [0x14005a190]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
je 0x14002ff36
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
lea r9, [rsp + 0x40]
mov r8, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rdi + 0xa38], 1
mov rcx, qword [rdi + 0xa28]
test rcx, rcx
je 0x14002ff5f
mov rax, qword [rcx]
mov r8d, 1
mov rdx, qword [rdi + 0xa30]
call qword [rax + 0x50]
lea rdx, str.LAYOUT:XML_REFRESH_DISK
lea rcx, [rsp + 0xe0]
call qword [sym.imp.soui.dll_public:_void___cdecl_SOUI::SHostDialog::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rbx, vtable.CWaitDialog.0
mov qword [rsp + 0xe0], rbx
lea rsi, vtable.CWaitDialog.1.0
mov qword [rsp + 0xe8], rsi
lea r12, vtable.CWaitDialog.2.0
mov qword [rsp + 0xf0], r12
lea r13, vtable.CWaitDialog.3.0
mov qword [rsp + 0xf8], r13
lea r14, vtable.CWaitDialog.4.0
mov qword [rsp + 0x470], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x6d0], rax
lea rcx, [rsp + 0x6d8]
call qword [sym.imp.utilities.dll_public:_void___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void____ptr64]
nop
lea rcx, [rsp + 0x6e0]
call qword [sym.imp.utilities.dll_public:_void___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void____ptr64]
nop
mov rdx, qword [rdi + 0x3a8]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.soui.dll_public_virtual:_long_long___int64____cdecl_SOUI::SHostDialog::DoModal_struct_HWND______ptr64____ptr64]
mov dword [rdi + 0xa38], ebp
mov rcx, qword [rdi + 0xa28]
test rcx, rcx
je 0x140030022
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, qword [rdi + 0xa30]
call qword [rax + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140028580
nop
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0xe8], rsi
mov qword [rsp + 0xf0], r12
mov qword [rsp + 0xf8], r13
mov qword [rsp + 0x470], r14
lea rcx, [rsp + 0x6e0]
call qword [sym.imp.utilities.dll_public:_void___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x6d8]
call qword [sym.imp.utilities.dll_public:_void___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void____ptr64]
nop
lea rcx, [rsp + 0xe0]
call qword [sym.imp.soui.dll_public_virtual:_void___cdecl_SOUI::SHostDialog::destructor_void____ptr64]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14003009a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rbp
mov dword [0x14018ada8], ebp
mov rcx, qword [rsp + 0x720]
test rcx, rcx
je 0x1400300b9
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.soui.dll_public:_void___cdecl_SOUI::SWindow::SetVisible_int__int____ptr64]
lea r11, [rsp + 0x6f0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret