Function at 0x140038c60
Capabilities:
Resume thread

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x90
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rdi, rcx
mov rcx, qword [0x1403b9760]
mov rax, qword [rcx]
call qword [rax + 0xf8]
cmp eax, 1
je 0x140039003
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax + 0x430]
mov r11, qword [rdi]
mov rcx, rdi
call qword [r11 + 0x390]
mov r11, qword [rdi]
mov rcx, rdi
call qword [r11 + 0x3a8]
test eax, eax
je 0x140038f31
call fcn.140102a14
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140038cee
mov ecx, 0x80004005
call fcn.140005210
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0xd8], rbx
mov ecx, 0x88
call fcn.1401027e8
test rax, rax
je 0x140038d30
mov r8d, 0x88
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.140005b00
mov rbx, qword [rsp + 0xd8]
mov rbp, qword [rdi + 0xe28]
lea r12, [rbx - 0x18]
mov rsi, qword [rbp + 0x1f0]
sub rsi, 0x18
or r13d, 0xffffffff
cmp r12, rsi
je 0x140038da4
cmp dword [rsi + 0x10], 0
jl 0x140038d91
mov rax, qword [rsi]
cmp qword [r12], rax
jne 0x140038d91
mov rcx, r12
call fcn.140006190
mov rbx, rax
mov ecx, r13d
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140038d84
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [rbp + 0x1f0], rax
jmp 0x140038da4
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rbp + 0x1f0]
call fcn.140005d50
mov rcx, qword [rdi + 0xe28]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0x318]
mov rcx, qword [rdi + 0xe28]
add rcx, 0x118
xor edx, edx
call fcn.14011629c
mov edx, 5
mov rcx, qword [rdi + 0xe28]
call fcn.14011629c
call fcn.14010b1bc
mov rcx, qword [rax + 8]
call fcn.1401064fc
nop
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
lea rcx, [0x140038c40]
call fcn.14010a520
mov rbx, rax
test rax, rax
je 0x140038ea8
mov dword [rax + 0x50], 0
mov rcx, qword [rax + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor edx, edx
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140038e98
nop word [rax + rax]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140038e85
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor edx, edx
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x140038e50
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140038ef6
mov ebx, 0xa
nop dword [rax]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140038ee5
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_DispatchMessageW]
dec rbx
jne 0x140038eb0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x368]
mov rcx, qword [rdi + 0xe28]
mov rax, qword [rcx]
call qword [rax + 0xc0]
nop
lea rcx, [rsp + 0xc8]
call fcn.140037db0
nop
lock xadd dword [r12 + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x140038f31
mov rcx, qword [r12]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x3b0]
lea rbx, vtable.CBaseDlgCtrl.0
mov qword [rsp + 0xd0], rbx
xor r8d, r8d
lea rdx, [0x1402e4cf8]
lea rcx, [rsp + 0x38]
call fcn.1400075a0
nop
lea r8, [0x1402dc4e0]
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.140007780
nop
lea rcx, [rsp + 0x38]
call fcn.140007730
lea r11, vtable.CPDLDlgCtrl.0
mov qword [rsp + 0xd0], r11
lea rcx, [rsp + 0xd0]
call fcn.14002c0b0
bt eax, 0x18
jb 0x140038fc5
mov rcx, qword [0x1403b9760]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0xd8]
mov edx, 0xbb8
mov rcx, rdi
call fcn.140116748
nop
mov qword [rsp + 0xd0], rbx
xor r8d, r8d
lea rdx, str.CBaseDlgCtrl::CBaseDlgCtrl
lea rcx, [rsp + 0x48]
call fcn.1400075a0
nop
lea r8, [0x1402dc4e0]
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.140007780
nop
lea rcx, [rsp + 0x48]
call fcn.140007730
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret