Function at 0x1400521d0
Capabilities:
Resume thread

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xa18]
sub rsp, 0xaf0
mov qword [rsp + 0x78], 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 + 0x9e0], rax
mov r15, rcx
xor r8d, r8d
lea rdx, str.CBaseFuncMgr::FN_CheckInUseOfDriver
lea rcx, [rsp + 0x40]
call fcn.1400075a0
nop
xor r12d, r12d
lea rcx, [rbp - 0x80]
call fcn.140105848
nop
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0x1e0]
lea rdx, str.RENAMEDRV
mov rcx, rax
call qword [r9 + 0x18]
mov rax, qword [r15]
mov rcx, r15
cmp word [rbp + 0x1e0], 0x31
jne 0x14005227b
call qword [rax + 0x20]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x118]
jmp 0x14005228a
call qword [rax + 0x20]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x110]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [0x1402e0308]
lea rdx, str.RETCODE
mov rcx, rax
call qword [r9 + 0x20]
or rsi, 0xffffffffffffffff
mov r8, rsi
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.140105958
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov r13d, eax
mov dword [rsp + 0x38], eax
mov r9d, eax
lea r8, str._t_t_tOld_printers__d_
lea edx, [rsi + 8]
lea rcx, [rsp + 0x40]
call fcn.140007780
xor edi, edi
test r13d, r13d
jle 0x1400523f4
test r12d, r12d
jne 0x1400523f4
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r8, qword [rax]
mov edx, edi
mov rcx, rax
call qword [r8 + WSAStartup]
mov rbx, rax
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, str._t_t_tLoop_ii_d_pInf0x_08x_
lea edx, [r12 + 7]
lea rcx, [rsp + 0x40]
call fcn.140007780
lea rcx, [rsp + 0x50]
call fcn.140105848
nop
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r10, qword [rax]
lea rdx, [rbx + 8]
mov r9d, dword [rbx + 0x3c8c]
lea r8, [rsp + 0x50]
mov rcx, rax
call qword [r10 + 0x340]
mov r12d, eax
mov r9, qword [rsp + 0x60]
lea r8, str._t_t_tstaICCFiles.GetSize_d_
mov edx, 7
lea rcx, [rsp + 0x40]
call fcn.140007780
cmp qword [rsp + 0x60], 0
jle 0x1400523df
mov rdx, qword [r15]
mov rcx, r15
call qword [rdx + 0x18]
mov r8, qword [rax]
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [r8 + 0x180]
test eax, eax
je 0x1400523df
mov rcx, qword [0x1403b9770]
mov rax, qword [rcx]
mov edx, 0x2d
call qword [rax + 0x18]
mov r12d, 0x80010018
mov dword [0x1403b95bc], 0x18
lea rcx, [rsp + 0x50]
call fcn.140105ce4
inc edi
cmp edi, r13d
jl 0x140052300
xor r8d, r8d
mov edx, 0x404
lea rcx, [rbp - 0x20]
call fcn.1401166d0
nop
lea rbx, vtable.CBaseDlgWait.0
mov qword [rbp - 0x20], rbx
lea rcx, [rbp + 0xf8]
call fcn.14010fa00
lea r11, vtable.CButton.0
mov qword [rbp + 0xf8], r11
call fcn.140102a14
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14005244a
mov ecx, 0x80004005
call fcn.140005210
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x1d0], rax
xor r8d, r8d
lea rdx, [0x1402dc4e0]
lea rcx, [rbp + 0x1d0]
call fcn.140005d50
mov qword [rbp + 0x1d8], 0
lea rax, vtable.CPDLDlgWait.0
mov qword [rbp - 0x20], rax
xor edi, edi
xor r14d, r14d
test r13d, r13d
jle 0x140052869
nop dword [rax + rax]
test r12d, r12d
jne 0x140052843
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r8, qword [rax]
mov edx, r14d
mov rcx, rax
call qword [r8 + WSAStartup]
mov r13, rax
mov ecx, dword [rax]
cmp ecx, 6
je 0x140052829
lea rbx, [rax + 0x418]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
mov r9d, r14d
lea r8, str._t_t_tOld_printer__d__s_kind_d_
lea edx, [r12 + 7]
lea rcx, [rsp + 0x40]
call fcn.140007780
mov r11d, dword [r13 + 4]
cmp r11d, 2
je 0x14005250e
cmp r11d, 3
jne 0x140052829
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r8, qword [rax]
lea rdx, [r13 + 0x828]
mov rcx, rax
call qword [r8 + 0x1d0]
test eax, eax
je 0x1400527a5
cmp dword [0x1403b9778], 1
je 0x1400527a5
test edi, edi
jne 0x1400526de
call fcn.140102a14
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
je 0x140052838
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rax, [0x1402dc4e0]
test rax, 0xffffffffffff0000
jne 0x1400525a3
movzx edi, ax
mov ecx, edi
call fcn.1401027e8
test rax, rax
je 0x1400525b8
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140005b00
jmp 0x1400525b3
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140005d50
mov rbx, qword [rsp + 0x30]
mov ecx, 0x3b
call fcn.1401027e8
test rax, rax
je 0x1400525df
mov r8d, 0x3b
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140005b00
mov rbx, qword [rsp + 0x30]
lea rsi, [rbx - 0x18]
mov rdi, qword [rbp + 0x1d0]
add rdi, 0xffffffffffffffe8
cmp rsi, rdi
je 0x140052647
cmp dword [rdi + 0x10], 0
jl 0x140052634
mov rax, qword [rdi]
cmp qword [rsi], rax
jne 0x140052634
mov rcx, rsi
call fcn.140006190
mov rbx, rax
or ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140052627
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [rbp + 0x1d0], rax
jmp 0x140052647
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rbp + 0x1d0]
call fcn.140005d50
xor edx, edx
xor ecx, ecx
call fcn.1401118bc
mov qword [rbp + 0xe0], rax
test rax, rax
je 0x140052680
mov rcx, rax
call fcn.1401162c4
test eax, eax
je 0x140052680
xor edx, edx
mov rcx, qword [rbp + 0xe0]
call fcn.1401162ec
mov dword [rbp + 0x1dc], 1
xor r8d, r8d
mov edx, 0x404
lea rcx, [rbp - 0x20]
call fcn.14011751c
test eax, eax
jne 0x1400526a3
lea rcx, [rbp - 0x20]
mov rax, qword [rbp - 0x20]
call qword [rax + 0x310]
xor edx, edx
lea rcx, [rbp + 0xf8]
call fcn.14011629c
mov edx, 5
lea rcx, [rbp - 0x20]
call fcn.14011629c
mov edi, 1
or eax, 0xffffffff
lock xadd dword [rsi + 0x10], eax
dec eax
test eax, eax
jg 0x1400526de
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
lea rcx, [0x140052190]
call fcn.14010a520
mov rbx, rax
test rax, rax
je 0x140052793
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 0x140052785
nop word [rax + rax]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x58]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140052772
lea rcx, [rbp - 0x58]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 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 0x140052740
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov eax, dword [rax + 0x10]
jmp 0x1400527c5
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x20]
mov r10, qword [rax]
xor r9d, r9d
lea r8d, [r9 + 1]
mov rdx, rbx
mov rcx, rax
call qword [r10 + 0x1c0]
test eax, eax
je 0x1400527e8
test edi, edi
je 0x140052807
lea rcx, [rbp - 0x20]
mov rax, qword [rbp - 0x20]
call qword [rax + 0x310]
lea rcx, [rbp - 0x20]
call fcn.14011131c
xor edi, edi
jmp 0x140052807
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov r8, qword [rax]
lea rdx, [r13 + 8]
mov rcx, rax
call qword [r8 + 0x58]
test eax, eax
je 0x140052829
mov rcx, qword [0x1403b9770]
mov rax, qword [rcx]
mov edx, 0x2d
call qword [rax + 0x18]
mov dword [0x1403b95bc], 0x18
mov r12d, 0x80010018
inc r14d
cmp r14d, dword [rsp + 0x38]
jge 0x140052843
jmp 0x1400524a0
mov ecx, 0x80004005
call fcn.140005210
int3
test edi, edi
je 0x14005285e
lea rcx, [rbp - 0x20]
mov rax, qword [rbp - 0x20]
call qword [rax + 0x310]
lea rcx, [rbp - 0x20]
call fcn.14011131c
lea rbx, vtable.CBaseDlgWait.0
or rsi, 0xffffffffffffffff
mov r9d, r12d
lea r8, str.return__08x
mov edx, 2
lea rcx, [rsp + 0x40]
call fcn.140007780
nop
mov qword [rbp - 0x20], rbx
mov rdx, qword [rbp + 0x1d0]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400528a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp + 0xf8]
call fcn.14010b368
nop
lea rcx, [rbp - 0x20]
call fcn.140116608
nop
lea rcx, [rbp - 0x80]
call fcn.140105ce4
nop
lea rcx, [rsp + 0x40]
call fcn.140007730
mov eax, r12d
mov rcx, qword [rbp + 0x9e0]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0xaf0]
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