Function at 0x1400410e0
Capabilities:
Resume thread

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5e8]
sub rsp, 0x6c0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov rbx, rcx
mov rcx, qword [0x1403b9760]
mov rax, qword [rcx]
call qword [rax + 0xf8]
cmp eax, 1
je 0x140041622
xor r14d, r14d
mov word [rbp + 0x1a0], r14w
xor edx, edx
mov r8d, 0x40e
lea rcx, [rbp + 0x1a2]
call fcn.14024b970
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, qword [rbx + 0x918]
call qword [sym.imp.USER32.dll_SendMessageW]
movsxd r8, eax
lea r9, [rbp + 0x1a0]
mov edx, 0x148
mov rcx, qword [rbx + 0x918]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r8, qword [rax]
lea rdx, [rbp + 0x1a0]
mov rcx, rax
call qword [r8 + 0x1d0]
or r12d, 0xffffffff
mov esi, 1
cmp eax, esi
jne 0x1400414a3
xor r8d, r8d
mov edx, 0x404
lea rcx, [rbp - 0x60]
call fcn.1401166d0
nop
lea r15, vtable.CBaseDlgWait.0
mov qword [rbp - 0x60], r15
lea rcx, [rbp + 0xb8]
call fcn.14010fa00
lea r11, vtable.CButton.0
mov qword [rbp + 0xb8], r11
call fcn.140102a14
mov r11, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140041218
mov ecx, 0x80004005
call fcn.140005210
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x190], rax
xor r8d, r8d
lea rdx, [0x1402dc4e0]
lea rcx, [rbp + 0x190]
call fcn.140005d50
mov qword [rbp + 0x198], r14
lea rax, vtable.CPDLDlgWait.0
mov qword [rbp - 0x60], rax
mov dword [rbx + 0x131c], r14d
lea rdx, [0x1402dc4e0]
lea rcx, [rsp + 0x38]
call fcn.140005900
nop
mov ecx, 0x3b
call fcn.1401027e8
test rax, rax
je 0x14004128f
mov r8d, 0x3b
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140005b00
mov rdx, qword [rsp + 0x38]
lea rcx, [rdx - 0x18]
mov rdi, qword [rbp + 0x190]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x1400412f6
cmp dword [rdi + 0x10], 0
jl 0x1400412e6
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400412e6
call fcn.140006190
mov r13, rax
mov ecx, r12d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400412d9
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [r13 + 0x18]
mov qword [rbp + 0x190], rax
jmp 0x1400412f6
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x190]
call fcn.140005d50
xor edx, edx
mov rcx, rbx
call fcn.1401118bc
mov qword [rbp + 0xa0], rax
test rax, rax
je 0x14004132c
mov rcx, rax
call fcn.1401162c4
test eax, eax
je 0x14004132c
xor edx, edx
mov rcx, qword [rbp + 0xa0]
call fcn.1401162ec
mov dword [rbp + 0x19c], esi
mov r8, rbx
mov edx, 0x404
lea rcx, [rbp - 0x60]
call fcn.14011751c
test eax, eax
jne 0x14004134f
lea rcx, [rbp - 0x60]
mov rax, qword [rbp - 0x60]
call qword [rax + 0x310]
xor edx, edx
lea rcx, [rbp + 0xb8]
call fcn.14011629c
mov edx, 5
lea rcx, [rbp - 0x60]
call fcn.14011629c
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
lea rcx, [0x1400410c0]
call fcn.14010a520
mov rdi, rax
test rax, rax
je 0x140041436
mov dword [rax + 0x50], r14d
mov rcx, qword [rax + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor edx, edx
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14004142b
nop word [rax + rax]
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400413f1
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [rbx + 0x131c], 0
je 0x140041418
lea rcx, [rbp - 0x60]
mov rax, qword [rbp - 0x60]
call qword [rax + 0x310]
lea rcx, [rbp - 0x60]
call fcn.14011131c
mov dword [rbx + 0x131c], r14d
xor edx, edx
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1400413c0
mov rax, qword [rdi]
mov edx, esi
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rbx + 0x1318]
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004145d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [rbp - 0x60], r15
mov rdx, qword [rbp + 0x190]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140041484
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp + 0xb8]
call fcn.14010b368
nop
lea rcx, [rbp - 0x60]
call fcn.140116608
cmp edi, 1
jne 0x140041622
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x378]
lea r13, vtable.CBaseDlgCtrl.0
mov qword [rsp + 0x40], r13
xor r8d, r8d
lea rdx, [0x1402e4cf8]
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
lea r11, vtable.CPDLDlgCtrl.0
mov qword [rsp + 0x40], r11
lea rdx, [0x1402dc4e0]
lea rcx, [rsp + 0x30]
call fcn.140005900
nop
call fcn.140022e90
cmp eax, 1
jne 0x14004156e
xor r9d, r9d
xor r8d, r8d
mov edx, 0x468
mov rcx, qword [rbx + 0x10b0]
call qword [sym.imp.USER32.dll_SendMessageW]
movzx ecx, ax
cmp ecx, 1
jb 0x140041546
mov eax, dword [rbx + 0x1320]
mov esi, ecx
cmp ecx, eax
cmova esi, eax
mov r8d, esi
lea rdx, [0x1402dc3ec]
lea rcx, [rsp + 0x30]
call fcn.14000de40
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r8, qword [rsp + 0x30]
jmp 0x140041582
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
lea r8, [0x1402e2d70]
mov r9, qword [rax]
lea rdx, str.SET_PRINTER_SELECT_SPIN
mov rcx, rax
call qword [r9 + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14002c1a0
mov edi, eax
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x1400415c0
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
bt edi, 0x18
jb 0x1400415e7
mov rcx, qword [0x1403b9760]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0xd8]
mov edx, 0xbb8
mov rcx, rbx
call fcn.140116748
nop
mov qword [rsp + 0x40], r13
xor r8d, r8d
lea rdx, str.CBaseDlgCtrl::CBaseDlgCtrl
lea rcx, [rsp + 0x58]
call fcn.1400075a0
nop
lea r8, [0x1402dc4e0]
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.140007780
nop
lea rcx, [rsp + 0x58]
call fcn.140007730
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret