Function at 0x14002c410
Capabilities:
Create thread
Resume thread

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x6c0
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rbp
mov rdi, rcx
add rcx, 0x1138
mov qword [rax + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rcx, rdi
call fcn.14002c750
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, [0x14002c860]
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 0x14002c57a
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 0x14002c50a
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 0x14002c57a
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 0x14002c5a3
mov rax, qword [rcx]
mov r8d, 1
mov rdx, qword [rdi + 0xa30]
call qword [rax + 0x50]
lea rdx, str.LAYOUT:XML_WAIT
lea rcx, [rsp + 0xb0]
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 + 0xb0], rbx
lea rsi, vtable.CWaitDialog.1.0
mov qword [rsp + 0xb8], rsi
lea r12, vtable.CWaitDialog.2.0
mov qword [rsp + 0xc0], r12
lea r13, vtable.CWaitDialog.3.0
mov qword [rsp + 0xc8], r13
lea r14, vtable.CWaitDialog.4.0
mov qword [rsp + 0x440], r14
lea rax, [rsp + 0x40]
mov qword [rsp + CMiniDockFrameWnd::Create], rax
lea rcx, [rsp + 0x6a8]
call qword [sym.imp.utilities.dll_public:_void___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void____ptr64]
nop
lea rcx, [rsp + 0x6b0]
call qword [sym.imp.utilities.dll_public:_void___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void____ptr64]
nop
lea rcx, [rsp + 0x6f0]
call fcn.140056030
nop
mov rdx, qword [rax]
lea rcx, [rsp + 0x6a8]
call qword [sym.imp.utilities.dll_public:_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_____ptr64___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::operator_wchar_t_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x6f0]
call qword [sym.imp.mfc90u.dll_CView::CView]
lea rdx, str.2301068
lea rcx, [rsp + 0x6b0]
call qword [sym.imp.utilities.dll_public:_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_____ptr64___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::operator_wchar_t_const____ptr64____ptr64]
mov rdx, qword [rdi + 0x3a8]
lea rcx, [rsp + 0xb0]
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 0x14002c6aa
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, qword [rdi + 0xa30]
call qword [rax + 0x50]
nop
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc0], r12
mov qword [rsp + 0xc8], r13
mov qword [rsp + 0x440], r14
lea rcx, [rsp + 0x6b0]
call qword [sym.imp.utilities.dll_public:_void___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x6a8]
call qword [sym.imp.utilities.dll_public:_void___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void____ptr64]
nop
lea rcx, [rsp + 0xb0]
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 0x14002c70f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14002cd90
nop
mov rcx, qword [rsp + 0x700]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret