Function at 0x1400394b0
Capabilities:
Resume thread

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7d0]
sub rsp, 0x8d0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x920], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
mov rdi, rdx
mov qword [rsp + 0x50], rdx
mov rbx, rcx
xor r8d, r8d
lea rdx, str.______tCBaseDlgPrinterSelectDirect::FindPrinters__.
lea rcx, [rsp + 0x30]
call fcn.1400075a0
nop
mov r9, rdi
lea r8, str.lpIPv4addr___s
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140007780
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_LockWindowUpdate]
mov rax, qword [rbx + 0xe28]
mov dword [rax + 0x1f8], 0
mov rsi, qword [rbx + 0xe28]
test rsi, rsi
je 0x140039550
mov rsi, qword [rsi + 0x40]
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x368]
test eax, eax
je 0x14003971e
mov rdi, qword [rbx + 0xe28]
mov ecx, Ordinal_203
call fcn.1401027e8
test rax, rax
je 0x14003959c
mov r8d, Ordinal_203
mov rdx, rax
lea rcx, [rdi + 0x1f0]
call fcn.140005b00
mov rcx, qword [rbx + 0xe28]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x318]
mov edx, 5
mov rcx, qword [rbx + 0xe28]
call fcn.14011629c
xor ecx, ecx
call qword [rbx + 0xf40]
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x40]
call fcn.14024b970
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp - 0x40]
lea rdx, str.DYNAMICWAKEUPWAITTIME
mov rcx, rax
call qword [r9 + 0x18]
lea rcx, [rbp - 0x40]
call fcn.14024740c
mov r12d, eax
mov edi, 0x3e8
call fcn.1402494cc
mov r13d, eax
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 0x1400396a2
nop
lea rdx, [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x140039668
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_DispatchMessageW]
dec edi
js 0x14003969d
mov rax, qword [rbx + 0xe28]
cmp dword [rax + 0x1f8], 0
jne 0x1400396bf
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
jne 0x140039640
jmp 0x1400396a2
mov edi, 0x3e8
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1402494cc
sub eax, r13d
cmp eax, r12d
jae 0x14003970e
jmp 0x140039620
xor ecx, ecx
call qword [sym.imp.USER32.dll_LockWindowUpdate]
mov rcx, qword [rbx + 0xe28]
mov rax, qword [rcx]
call qword [rax + 0xc0]
lea r8, str._t_t_tDiscovery_cancel.
mov edx, 7
lea rcx, [rsp + 0x30]
call fcn.140007780
mov r9d, 1
lea r8, str.______tCBaseDirectPrintersSilent::FindPrinters___res___08x.
lea edx, [r9 + 1]
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
jmp 0x140039bf9
mov rcx, qword [rbx + 0xe28]
mov rax, qword [rcx]
call qword [rax + 0xc0]
mov rdi, qword [rbx + 0xe28]
mov ecx, 0x82
call fcn.1401027e8
test rax, rax
je 0x140039749
mov r8d, 0x82
mov rdx, rax
lea rcx, [rdi + 0x1f0]
call fcn.140005b00
mov rcx, qword [rbx + 0xe28]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x318]
mov edx, 5
mov rcx, qword [rbx + 0xe28]
call fcn.14011629c
lea r12, [rbx + 0xb98]
mov rcx, qword [0x1403b9760]
lea rdx, [rcx + 8]
cmp rdx, r12
je 0x1400397c0
mov rcx, qword [rdx]
mov rax, qword [r12]
mov qword [rdx], rax
mov qword [r12], rcx
mov rcx, qword [rdx + 8]
mov rax, qword [r12 + 8]
mov qword [rdx + 8], rax
mov qword [r12 + 8], rcx
mov rcx, qword [rdx + 0x10]
mov rax, qword [r12 + 0x10]
mov qword [rdx + 0x10], rax
mov qword [r12 + 0x10], rcx
mov rcx, qword [0x1403b9760]
nop dword [rax]
add rcx, 8
call fcn.140035f10
lea rdi, [rbx + 0xbb8]
mov rcx, qword [0x1403b9760]
lea rdx, [rcx + 0x28]
cmp rdx, rdi
je 0x140039813
mov rcx, qword [rdx]
mov rax, qword [rdi]
mov qword [rdx], rax
mov qword [rdi], rcx
mov rcx, qword [rdx + 8]
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
mov qword [rdi + 8], rcx
mov rcx, qword [rdx + 0x10]
mov rax, qword [rdi + 0x10]
mov qword [rdx + 0x10], rax
mov qword [rdi + 0x10], rcx
mov rcx, qword [0x1403b9760]
add rcx, 0x28
call fcn.140035f10
lea r14, [rbx + 0xbf8]
lea r13, [rbx + 0xbd8]
cmp r13, r14
je 0x140039860
mov rcx, qword [r13]
mov rax, qword [r14]
mov qword [r13], rax
mov qword [r14], rcx
mov rcx, qword [r13 + 8]
mov rax, qword [r14 + 8]
mov qword [r13 + 8], rax
mov qword [r14 + 8], rcx
mov rcx, qword [r13 + 0x10]
mov rax, qword [r14 + 0x10]
mov qword [r13 + 0x10], rax
mov qword [r14 + 0x10], rcx
nop dword [rax]
mov rcx, r13
call fcn.140035f10
mov rdx, qword [rsp + 0x50]
lea rcx, [rbx + 0xf20]
call fcn.1400024b0
mov rcx, qword [rbx + 0xf10]
test rcx, rcx
je 0x140039896
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0xf10], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0xf10], rax
cmp dword [rbx + 0xf0c], 0
je 0x14003991f
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x1400398d3
lea rdx, [0x1402dc4e0]
mov rcx, rax
call fcn.140247088
test eax, eax
jne 0x14003991f
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
lea rcx, [0x140039e20]
call fcn.14010a520
mov qword [rbx + 0xf18], rax
test rax, rax
je 0x14003992c
mov dword [rax + 0x50], 0
mov rcx, qword [rbx + 0xf18]
mov rcx, qword [rcx + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x14003992c
mov rcx, qword [rbx + 0xf10]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [rbx + 0xf48]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0xf10]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0x40]
lea ecx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x140039bac
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 0x1400399b7
lea rdx, [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x1400399b7
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov rax, qword [rbx + 0xe28]
cmp dword [rax + 0x1f8], 0
jne 0x1400399e9
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0x40]
lea ecx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
je 0x140039970
jmp 0x140039bac
mov r8, qword [0x1403b9760]
add r8, 8
cmp r8, r12
je 0x140039a30
mov rcx, qword [r8]
mov rax, qword [r12]
mov qword [r8], rax
mov qword [r12], rcx
mov rdx, qword [r8 + 8]
mov rax, qword [r12 + 8]
mov qword [r8 + 8], rax
mov qword [r12 + 8], rdx
mov rdx, qword [r8 + 0x10]
mov rax, qword [r12 + 0x10]
mov qword [r8 + 0x10], rax
mov qword [r12 + 0x10], rdx
nop dword [rax + rax]
mov rcx, r12
call fcn.140035f10
mov r11, qword [0x1403b9760]
add r11, 0x28
cmp r11, rdi
je 0x140039a74
mov rcx, qword [r11]
mov rax, qword [rdi]
mov qword [r11], rax
mov qword [rdi], rcx
mov rdx, qword [r11 + 8]
mov rax, qword [rdi + 8]
mov qword [r11 + 8], rax
mov qword [rdi + 8], rdx
mov rdx, qword [r11 + 0x10]
mov rax, qword [rdi + 0x10]
mov qword [r11 + 0x10], rax
mov qword [rdi + 0x10], rdx
mov rcx, rdi
call fcn.140035f10
mov rdx, r14
mov rcx, r13
call fcn.140040470
mov rcx, r14
call fcn.140035f10
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x3a0]
mov rcx, qword [rbx + 0x158]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [rbx + 0x230]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [rbx + 0x308]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [rbx + 0xf50]
test rcx, rcx
je 0x140039ad5
call qword [rbx + 0xf38]
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0x40]
lea ecx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x140039b60
nop word [rax + rax]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140039b43
lea rdx, [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x140039b43
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0x40]
lea ecx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
je 0x140039b00
mov rcx, qword [rbx + 0xe28]
mov rax, qword [rcx]
call qword [rax + 0xc0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_LockWindowUpdate]
lea r8, str._t_t_tDiscovery_cancel.
mov edx, 7
lea rcx, [rsp + 0x30]
call fcn.140007780
mov r9d, 1
lea r8, str.______tCBaseDirectPrintersSilent::FindPrinters___res___08x.
lea edx, [r9 + 1]
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
jmp 0x140039bf9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x418]
mov rcx, qword [rbx + 0xe28]
mov rax, qword [rcx]
call qword [rax + 0xc0]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x3a0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_LockWindowUpdate]
mov r9d, 1
lea r8, str.______tCBaseDirectPrintersSilent::FindPrinters___res___08x.
lea edx, [r9 + 1]
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
lea rcx, [rsp + 0x30]
call fcn.140007730
mov eax, 1
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x920]
add rsp, 0x8d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret