Function at 0x140103c90
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov rdi, rcx
mov rcx, qword [0x1402bbf60]
mov rax, qword [rcx]
mov rax, qword [rax + 0x120]
call qword [case.0x1400136d6.0]
cmp eax, 1
je 0x140104205
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x1b0]
call fcn.1401e7e40
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, qword [rdi + 0xaa8]
call qword [sym.imp.USER32.dll_SendMessageW]
movsxd r8, eax
lea r9, [rbp + 0x1b0]
mov edx, 0x148
mov rcx, qword [rdi + 0xaa8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1402bbf58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov r8, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x190]
lea rdx, [rbp + 0x1b0]
mov rcx, r8
call qword [case.0x1400136d6.0]
lea r12, [0x140251dfc]
mov r14, 0xffffffffffffffff
mov r15d, 1
cmp eax, r15d
jne 0x140104056
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.14010e250
nop
xor r13d, r13d
mov dword [rdi + 0x1a04], r13d
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x140104240
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
add rax, 0x18
mov qword [rsp + 0x30], rax
cmp r12, 0x10000
jae 0x140103dd7
movzx edx, r12w
lea rcx, [rsp + 0x30]
call fcn.1400041d0
jmp 0x140103dfc
mov rax, r14
nop word [rax + rax]
inc rax
cmp word [r12 + rax*2], 0
jne 0x140103de0
mov r8d, eax
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.140004e60
nop
mov edx, 0x3b
lea rcx, [rsp + 0x30]
call fcn.1400041d0
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx - 0x18]
mov rsi, qword [rbp + 0x198]
add rsi, 0xffffffffffffffe8
cmp rcx, rsi
je 0x140103e85
cmp dword [rsi + 0x10], 0
jl 0x140103e72
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x140103e72
call fcn.140004d00
mov rbx, rax
mov ecx, r14d
lock xadd dword [rsi + 0x10], ecx
sub ecx, 1
jg 0x140103e60
lfence
mov r8, qword [rsi]
mov rcx, qword [r8]
mov rax, qword [rcx + 8]
mov rdx, rsi
mov rcx, r8
call qword [case.0x1400136d6.0]
lea rax, [rbx + 0x18]
mov qword [rbp + 0x198], rax
mov rbx, qword [rsp + 0x30]
jmp 0x140103e85
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rbp + 0x198]
call fcn.140004e60
xor edx, edx
mov rcx, rdi
call fcn.1401c00b8
mov qword [rbp + 0x90], rax
test rax, rax
je 0x140103ebc
mov rcx, rax
call fcn.1401c5abc
test eax, eax
je 0x140103ebc
xor edx, edx
mov rcx, qword [rbp + 0x90]
call fcn.1401c57e8
mov dword [rbp + 0x1a4], r15d
mov r8, rdi
mov edx, 0x404
lea rcx, [rbp - 0x80]
call fcn.1401c6060
test eax, eax
jne 0x140103ee6
mov rax, qword [rbp - 0x80]
lea rcx, [rbp - 0x80]
mov rax, qword [rax + 0x318]
call qword [case.0x1400136d6.0]
xor edx, edx
lea rcx, [rbp + 0xb0]
call fcn.1401c5d54
mov edx, 5
lea rcx, [rbp - 0x80]
call fcn.1401c5d54
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
lea rcx, [0x140103c70]
call fcn.1401ca984
mov rsi, rax
test rax, rax
je 0x140103fd7
mov dword [rax + 0x50], r13d
mov rcx, qword [rax + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor edx, edx
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140103fc4
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140103f83
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [rdi + 0x1a04], 0
je 0x140103fb1
mov rax, qword [rbp - 0x80]
lea rcx, [rbp - 0x80]
mov rax, qword [rax + 0x318]
call qword [case.0x1400136d6.0]
lea rcx, [rbp - 0x80]
call fcn.1401bf7a0
mov dword [rdi + 0x1a04], r13d
xor edx, edx
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x140103f51
mov rax, qword [rsi]
mov edx, r15d
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
mov esi, dword [rdi + 0x1a00]
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140104002
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
nop
lea rax, vtable.CBaseDlgWait.0
mov qword [rbp - 0x80], rax
mov rdx, qword [rbp + 0x198]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140104038
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
lea rcx, [rbp + 0xb0]
call fcn.1401c6f3c
lea rcx, [rbp - 0x80]
call fcn.1401c5dfc
cmp esi, 1
jne 0x140104205
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x398]
call qword [case.0x1400136d6.0]
lea rcx, [rsp + 0x40]
call fcn.1400dddb0
nop
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x140104235
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
add rax, 0x18
mov qword [rsp + 0x38], rax
cmp r12, 0x10000
jae 0x1401040b4
movzx edx, r12w
lea rcx, [rsp + 0x38]
call fcn.1400041d0
jmp 0x1401040dc
mov rax, r14
nop word [rax + rax]
inc rax
cmp word [r12 + rax*2], 0
jne 0x1401040c0
mov r8d, eax
mov rdx, r12
lea rcx, [rsp + 0x38]
call fcn.140004e60
nop
call fcn.1400d43e0
cmp eax, 1
jne 0x140104161
xor r9d, r9d
xor r8d, r8d
mov edx, 0x468
mov rcx, qword [rdi + 0x14a0]
call qword [sym.imp.USER32.dll_SendMessageW]
movzx ecx, ax
cmp ecx, 1
jb 0x140104115
mov eax, dword [rdi + 0x1a08]
mov r15d, ecx
cmp ecx, eax
cmova r15d, eax
mov r8d, r15d
lea rdx, [0x1402524b4]
lea rcx, [rsp + 0x38]
call fcn.140018e20
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
mov rbx, qword [rsp + 0x38]
mov r8, rbx
lea rdx, str.SET_PRINTER_SELECT_SPIN
mov rcx, r9
call qword [case.0x1400136d6.0]
jmp 0x14010419b
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
lea r8, [0x140252f04]
lea rdx, str.SET_PRINTER_SELECT_SPIN
mov rcx, r9
call qword [case.0x1400136d6.0]
mov rbx, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.1400e0730
mov esi, eax
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x1401041cd
lfence
mov r8, qword [rdx]
mov rcx, qword [r8]
mov rax, qword [rcx + 8]
mov rcx, r8
call qword [case.0x1400136d6.0]
bt esi, 0x18
jb 0x1401041fb
mov rcx, qword [0x1402bbf60]
mov rax, qword [rcx]
mov rdx, rdi
mov rax, qword [rax + 0x100]
call qword [case.0x1400136d6.0]
mov edx, 0xbb8
mov rcx, rdi
call fcn.1401c6798
nop
lea rcx, [rsp + 0x40]
call fcn.1400ddf60
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x6d0]
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
mov ecx, 0x80004005
call fcn.140001470
nop
mov ecx, 0x80004005
call fcn.140001470
int3