Function at 0x180002e40
Capabilities:
Check if file exists
Get common file path
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x7b0
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov qword [rsp + 0x800], rbx
mov rax, qword [0x180097090]
xor rax, rsp
mov qword [rsp + 0x7a0], rax
mov rsi, r9
mov rbp, rdx
mov r12, rcx
mov r13, qword [rsp + 0x810]
mov r14, qword [rsp + 0x818]
lea rdi, str.printer.png
lea r8, str.wfchost.exe
xor edx, edx
lea rcx, [rsp + 0xf8]
call fcn.180045f9c
nop
lea rcx, [rsp + 0x100]
cmp qword [rsp + 0x118], 8
cmovae rcx, qword [rsp + 0x100]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor r15d, r15d
test eax, eax
jne 0x180002fe5
mov word [rsp + 0x380], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x382]
call fcn.1800575a0
mov r8d, 0x104
lea rdx, [rsp + 0x590]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x180002f80
lea rcx, [rsp + 0x590]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea rcx, str.wfchost.exe
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add edi, eax
cmp edi, 0x104
jge 0x180002f80
lea rdx, [0x18007be84]
lea rcx, [rsp + 0x590]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, str.wfchost.exe
lea rcx, [rsp + 0x590]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov r8d, 0x104
lea rdx, [rsp + 0x590]
lea rcx, [rsp + 0x380]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rcx, [rsp + 0x380]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180002fb1
cmp qword [rsp + 0x118], 8
jb 0x180002faa
mov rcx, qword [rsp + 0x100]
call fcn.1800538dc
xor eax, eax
jmp 0x180003ac9
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x380]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x380]
lea rcx, [rsp + 0xf8]
call fcn.18000d5e0
lea rdi, str.printer.png
lea rbx, [0x18007a790]
test rsi, rsi
cmovne rbx, rsi
test r12, r12
je 0x180003aaf
test rbp, rbp
je 0x180003aaf
lea rsi, str.rtmessage.png
test rdi, rdi
cmovne rsi, rdi
and dword [rsp + 0xa8], 0xfffffe00
mov qword [rsp + 0xb0], r15
mov qword [rsp + 0xb8], r15
mov qword [rsp + 0xc0], r15
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r15
mov word [rsp + 0x80], r15w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r12
lea rcx, [rsp + 0x78]
call fcn.18000d5e0
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.180001500
nop
mov byte [rsp + 0x28], 4
bts dword [rsp + 0x28], 8
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov rdx, qword [rax + 0x18]
cmp qword [rax + 0x20], 0x10
jb 0x1800030b9
mov rcx, qword [rax + 8]
jmp 0x1800030bd
lea rcx, [rax + 8]
call fcn.18003446c
mov qword [rsp + 0x20], rax
lea r8, [0x18007a7b9]
lea rdx, str.title
lea rcx, [rsp + 0xa0]
call fcn.180035dc8
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.180034eac
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180003102
mov rcx, qword [rsp + 0x58]
call fcn.1800538dc
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], 0
cmp qword [rsp + 0x98], 8
jb 0x18000312d
mov rcx, qword [rsp + 0x80]
call fcn.1800538dc
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r15
mov word [rsp + 0x80], r15w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbp
lea rcx, [rsp + 0x78]
call fcn.18000d5e0
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.180001500
nop
mov byte [rsp + 0x28], 4
bts dword [rsp + 0x28], 8
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov rdx, qword [rax + 0x18]
cmp qword [rax + 0x20], 0x10
jb 0x1800031b0
mov rcx, qword [rax + 8]
jmp 0x1800031b4
lea rcx, [rax + 8]
call fcn.18003446c
mov qword [rsp + 0x20], rax
lea r8, [0x18007a6c7]
lea rdx, str.content
lea rcx, [rsp + 0xa0]
call fcn.180035dc8
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.180034eac
nop
cmp qword [rsp + 0x70], 0x10
jb 0x1800031f9
mov rcx, qword [rsp + 0x58]
call fcn.1800538dc
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], 0
cmp qword [rsp + 0x98], 8
jb 0x180003224
mov rcx, qword [rsp + 0x80]
call fcn.1800538dc
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r15
mov word [rsp + 0x80], r15w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.18000d5e0
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.180001500
nop
mov byte [rsp + 0x28], 4
bts dword [rsp + 0x28], 8
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov rdx, qword [rax + 0x18]
cmp qword [rax + 0x20], 0x10
jb 0x1800032a7
mov rcx, qword [rax + 8]
jmp 0x1800032ab
lea rcx, [rax + 8]
call fcn.18003446c
mov qword [rsp + 0x20], rax
lea r8, [0x18007a7c7]
lea rdx, str.btnText
lea rcx, [rsp + 0xa0]
call fcn.180035dc8
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.180034eac
nop
cmp qword [rsp + 0x70], 0x10
jb 0x1800032f0
mov rcx, qword [rsp + 0x58]
call fcn.1800538dc
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], 0
cmp qword [rsp + 0x98], 8
jb 0x18000331b
mov rcx, qword [rsp + 0x80]
call fcn.1800538dc
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r15
mov word [rsp + 0x80], r15w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.18000d5e0
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.180001500
nop
mov byte [rsp + 0x28], 4
bts dword [rsp + 0x28], 8
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov rdx, qword [rax + 0x18]
cmp qword [rax + 0x20], 0x10
jb 0x18000339e
mov rcx, qword [rax + 8]
jmp 0x1800033a2
lea rcx, [rax + 8]
call fcn.18003446c
mov qword [rsp + 0x20], rax
lea r8, [0x18007a7cf]
lea rdx, str.icoName
lea rcx, [rsp + 0xa0]
call fcn.180035dc8
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.180034eac
nop
cmp qword [rsp + 0x70], 0x10
jb 0x1800033e7
mov rcx, qword [rsp + 0x58]
call fcn.1800538dc
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], 0
cmp qword [rsp + 0x98], 8
jb 0x180003412
mov rcx, qword [rsp + 0x80]
call fcn.1800538dc
test r13, r13
je 0x1800034e7
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r15
mov word [rsp + 0x80], r15w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r13
lea rcx, [rsp + 0x78]
call fcn.18000d5e0
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.180001500
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.180034c20
mov rdi, rax
lea r8, [0x18007a7d3]
lea rdx, [0x18007a7d0]
lea rcx, [rsp + 0xa0]
call fcn.180035dc8
mov rcx, rax
mov rdx, rdi
call fcn.180034eac
nop
cmp qword [rsp + 0x70], 0x10
jb 0x1800034bc
mov rcx, qword [rsp + 0x58]
call fcn.1800538dc
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], 0
cmp qword [rsp + 0x98], 8
jb 0x1800034e7
mov rcx, qword [rsp + 0x80]
call fcn.1800538dc
test r14, r14
je 0x1800035bc
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r15
mov word [rsp + 0x80], r15w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.18000d5e0
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.180001500
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.180034c20
mov rdi, rax
lea r8, [0x18007a7d9]
lea rdx, str.param
lea rcx, [rsp + 0xa0]
call fcn.180035dc8
mov rcx, rax
mov rdx, rdi
call fcn.180034eac
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180003591
mov rcx, qword [rsp + 0x58]
call fcn.1800538dc
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], 0
cmp qword [rsp + 0x98], 8
jb 0x1800035bc
mov rcx, qword [rsp + 0x80]
call fcn.1800538dc
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x28], 1
btr dword [rsp + 0x28], 8
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov rax, r15
cmp dword [rsp + 0x828], eax
setne al
mov qword [rsp + 0x20], rax
lea r8, [0x18007a7ec]
lea rdx, str.showNotAlert
lea rcx, [rsp + 0xa0]
call fcn.180035dc8
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.180034eac
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x48], rdx
mov byte [rsp + 0x28], 1
btr dword [rsp + 0x28], 8
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x20], r15
lea r8, [0x18007a7f5]
lea rdx, str.runas
lea rcx, [rsp + 0xa0]
call fcn.180035dc8
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.180034eac
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x48], rdx
mov byte [rsp + 0x28], 1
btr dword [rsp + 0x28], 8
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x20], r15
lea r8, [0x18007a802]
lea rdx, str.fullscreen
lea rcx, [rsp + 0xa0]
call fcn.180035dc8
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.180034eac
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x48], rdx
mov byte [rsp + 0x28], 1
btr dword [rsp + 0x28], 8
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x20], r15
lea r8, [0x18007a814]
lea rdx, str.closeExpired
lea rcx, [rsp + 0xa0]
call fcn.180035dc8
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.180034eac
lea rcx, [rsp + 0x148]
call fcn.180010a40
nop
mov word [rsp + 0x170], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x172]
call fcn.1800575a0
lea rdx, [rsp + 0x170]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rsp + 0x50]
call fcn.180010af0
cmp qword [rax + 0x20], 8
jb 0x180003763
mov rdx, qword [rax + 8]
jmp 0x180003767
lea rdx, [rax + 8]
lea rcx, [rsp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x70], 8
jb 0x180003787
mov rcx, qword [rsp + 0x58]
call fcn.1800538dc
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xa0]
call fcn.180036800
nop
mov rdx, rax
lea rcx, [rsp + 0x120]
call fcn.18004505c
nop
cmp qword [rsp + 0x70], 0x10
jb 0x1800037bd
mov rcx, qword [rsp + 0x58]
call fcn.1800538dc
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], 0
lea rdx, [rsp + 0x128]
cmp qword [rsp + 0x140], 0x10
cmovae rdx, qword [rsp + 0x128]
mov r8d, dword [rsp + 0x138]
lea rcx, [rsp + 0x170]
call fcn.180028150
call fcn.180029060
mov rdi, rax
test rax, rax
je 0x180003848
mov r8, rax
mov edx, 4
lea rcx, [rsp + 0x170]
call qword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x180003831
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x180003840
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, rdi
call fcn.1800538dc
lea r8, [rsp + 0x100]
cmp qword [rsp + 0x118], 8
cmovae r8, qword [rsp + 0x100]
lea r9, [rsp + 0x170]
lea rdx, str.__ls___common__ls
lea rcx, [rsp + 0xd0]
call fcn.1800295a4
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rcx, qword [rsp + 0xd8]
mov edx, 1
call fcn.180028ad8
test rax, rax
jne 0x1800039db
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1800038cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x1800038fa
lea rcx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rcx, qword [rsp + 0xd8]
xor edx, edx
lea r8d, [rdx + 1]
call fcn.1800288e8
test rax, rax
jne 0x1800039db
lea rcx, str.ShowClientNotify_failed:
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
cmp qword [rsp + 0xf0], 8
jb 0x180003929
mov rcx, qword [rsp + 0xd8]
call fcn.1800538dc
mov qword [rsp + 0xf0], 7
mov qword [rsp + 0xe8], r15
mov word [rsp + 0xd8], r15w
cmp qword [rsp + 0x140], 0x10
jb 0x18000395e
mov rcx, qword [rsp + 0x128]
call fcn.1800538dc
mov qword [rsp + 0x140], socket
mov qword [rsp + 0x138], r15
mov byte [rsp + 0x128], 0
cmp qword [rsp + 0x168], 0x10
jb 0x180003992
mov rcx, qword [rsp + 0x150]
call fcn.1800538dc
mov qword [rsp + 0x168], socket
mov qword [rsp + 0x160], r15
mov byte [rsp + 0x150], 0
lea rcx, [rsp + 0xa0]
call fcn.180034e14
nop
cmp qword [rsp + 0x118], 8
jb 0x1800039d4
mov rcx, qword [rsp + 0x100]
call fcn.1800538dc
xor eax, eax
jmp 0x180003ac9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0xf0], 8
jb 0x1800039fd
mov rcx, qword [rsp + 0xd8]
call fcn.1800538dc
mov qword [rsp + 0xf0], 7
mov qword [rsp + 0xe8], r15
mov word [rsp + 0xd8], r15w
cmp qword [rsp + 0x140], 0x10
jb 0x180003a32
mov rcx, qword [rsp + 0x128]
call fcn.1800538dc
mov qword [rsp + 0x140], socket
mov qword [rsp + 0x138], r15
mov byte [rsp + 0x128], 0
cmp qword [rsp + 0x168], 0x10
jb 0x180003a66
mov rcx, qword [rsp + 0x150]
call fcn.1800538dc
mov qword [rsp + 0x168], socket
mov qword [rsp + 0x160], r15
mov byte [rsp + 0x150], 0
lea rcx, [rsp + 0xa0]
call fcn.180034e14
nop
cmp qword [rsp + 0x118], 8
jb 0x180003aa8
mov rcx, qword [rsp + 0x100]
call fcn.1800538dc
mov eax, 1
jmp 0x180003ac9
cmp qword [rsp + 0x118], 8
jb 0x180003ac7
mov rcx, qword [rsp + 0x100]
call fcn.1800538dc
xor eax, eax
mov rcx, qword [rsp + 0x7a0]
xor rcx, rsp
call fcn.180052d60
mov rbx, qword [rsp + 0x800]
add rsp, 0x7b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret