Function at 0x180003170
Capabilities:
Check if file exists
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x7b8
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov rax, qword [0x180101090]
xor rax, rsp
mov qword [rsp + 0x7a0], rax
mov rsi, r9
mov r12, r8
mov rbp, rdx
mov r13, rcx
mov r14, qword [rsp + 0x820]
mov r15, qword [rsp + 0x828]
lea r8, str.wfchost.exe
xor edx, edx
lea rcx, [rsp + 0xf8]
call fcn.180078e60
nop
lea rcx, [rsp + 0x100]
cmp qword [rsp + 0x118], 8
cmovae rcx, qword [rsp + 0x100]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
jne 0x180003301
mov word [rsp + 0x380], cx
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x382]
call fcn.18009e990
mov r8d, 0x104
lea rdx, [rsp + 0x590]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1800032a3
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 0x1800032a3
lea rdx, [0x1800d1a48]
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 0x1800032d4
cmp qword [rsp + 0x118], 8
jb 0x1800032cd
mov rcx, qword [rsp + 0x100]
call fcn.18009a864
xor eax, eax
jmp 0x180003de8
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.18000f510
lea rbx, [0x1800cdad8]
test rsi, rsi
cmovne rbx, rsi
test r13, r13
je 0x180003dce
test rbp, rbp
je 0x180003dce
lea rsi, str.rtmessage.png
test r12, r12
cmovne rsi, r12
and dword [rsp + 0xa8], 0xfffffe00
xor r12d, r12d
mov qword [rsp + 0xb0], r12
mov qword [rsp + 0xb8], r12
mov qword [rsp + 0xc0], r12
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r12
mov word [rsp + 0x80], r12w
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.18000f510
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.180001590
nop
mov byte [rsp + 0x28], 4
bts dword [rsp + 0x28], 8
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
mov rdx, qword [rax + 0x18]
cmp qword [rax + 0x20], 0x10
jb 0x1800033d8
mov rcx, qword [rax + 8]
jmp 0x1800033dc
lea rcx, [rax + 8]
call fcn.18006587c
mov qword [rsp + 0x20], rax
lea r8, [0x1800cdb01]
lea rdx, str.title
lea rcx, [rsp + 0xa0]
call fcn.1800671b4
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1800662a8
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180003421
mov rcx, qword [rsp + 0x58]
call fcn.18009a864
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], r12
mov byte [rsp + 0x58], 0
cmp qword [rsp + 0x98], 8
jb 0x18000344c
mov rcx, qword [rsp + 0x80]
call fcn.18009a864
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r12
mov word [rsp + 0x80], r12w
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.18000f510
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.180001590
nop
mov byte [rsp + 0x28], 4
bts dword [rsp + 0x28], 8
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
mov rdx, qword [rax + 0x18]
cmp qword [rax + 0x20], 0x10
jb 0x1800034cf
mov rcx, qword [rax + 8]
jmp 0x1800034d3
lea rcx, [rax + 8]
call fcn.18006587c
mov qword [rsp + 0x20], rax
lea r8, [0x1800cda77]
lea rdx, str.content
lea rcx, [rsp + 0xa0]
call fcn.1800671b4
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1800662a8
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180003518
mov rcx, qword [rsp + 0x58]
call fcn.18009a864
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], r12
mov byte [rsp + 0x58], 0
cmp qword [rsp + 0x98], 8
jb 0x180003543
mov rcx, qword [rsp + 0x80]
call fcn.18009a864
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r12
mov word [rsp + 0x80], r12w
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.18000f510
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.180001590
nop
mov byte [rsp + 0x28], 4
bts dword [rsp + 0x28], 8
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
mov rdx, qword [rax + 0x18]
cmp qword [rax + 0x20], 0x10
jb 0x1800035c6
mov rcx, qword [rax + 8]
jmp 0x1800035ca
lea rcx, [rax + 8]
call fcn.18006587c
mov qword [rsp + 0x20], rax
lea r8, [0x1800cdb0f]
lea rdx, str.btnText
lea rcx, [rsp + 0xa0]
call fcn.1800671b4
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1800662a8
nop
cmp qword [rsp + 0x70], 0x10
jb 0x18000360f
mov rcx, qword [rsp + 0x58]
call fcn.18009a864
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], r12
mov byte [rsp + 0x58], 0
cmp qword [rsp + 0x98], 8
jb 0x18000363a
mov rcx, qword [rsp + 0x80]
call fcn.18009a864
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r12
mov word [rsp + 0x80], r12w
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.18000f510
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.180001590
nop
mov byte [rsp + 0x28], 4
bts dword [rsp + 0x28], 8
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
mov rdx, qword [rax + 0x18]
cmp qword [rax + 0x20], 0x10
jb 0x1800036bd
mov rcx, qword [rax + 8]
jmp 0x1800036c1
lea rcx, [rax + 8]
call fcn.18006587c
mov qword [rsp + 0x20], rax
lea r8, [0x1800cdb17]
lea rdx, str.icoName
lea rcx, [rsp + 0xa0]
call fcn.1800671b4
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1800662a8
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180003706
mov rcx, qword [rsp + 0x58]
call fcn.18009a864
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], r12
mov byte [rsp + 0x58], 0
cmp qword [rsp + 0x98], 8
jb 0x180003731
mov rcx, qword [rsp + 0x80]
call fcn.18009a864
test r14, r14
je 0x180003806
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r12
mov word [rsp + 0x80], r12w
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.18000f510
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.180001590
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.18006601c
mov rdi, rax
lea r8, [0x1800cdb1b]
lea rdx, [0x1800cdb18]
lea rcx, [rsp + 0xa0]
call fcn.1800671b4
mov rcx, rax
mov rdx, rdi
call fcn.1800662a8
nop
cmp qword [rsp + 0x70], 0x10
jb 0x1800037db
mov rcx, qword [rsp + 0x58]
call fcn.18009a864
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], r12
mov byte [rsp + 0x58], 0
cmp qword [rsp + 0x98], 8
jb 0x180003806
mov rcx, qword [rsp + 0x80]
call fcn.18009a864
test r15, r15
je 0x1800038db
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r12
mov word [rsp + 0x80], r12w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r15
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.18000f510
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.180001590
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.18006601c
mov rdi, rax
lea r8, [0x1800cdb21]
lea rdx, str.param
lea rcx, [rsp + 0xa0]
call fcn.1800671b4
mov rcx, rax
mov rdx, rdi
call fcn.1800662a8
nop
cmp qword [rsp + 0x70], 0x10
jb 0x1800038b0
mov rcx, qword [rsp + 0x58]
call fcn.18009a864
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], r12
mov byte [rsp + 0x58], 0
cmp qword [rsp + 0x98], 8
jb 0x1800038db
mov rcx, qword [rsp + 0x80]
call fcn.18009a864
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x28], 1
btr dword [rsp + 0x28], 8
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
mov rax, r12
cmp dword [rsp + 0x838], eax
setne al
mov qword [rsp + 0x20], rax
lea r8, [0x1800cdb34]
lea rdx, str.showNotAlert
lea rcx, [rsp + 0xa0]
call fcn.1800671b4
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1800662a8
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x48], rdx
mov byte [rsp + 0x28], 1
btr dword [rsp + 0x28], 8
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x20], r12
lea r8, [0x1800cdb3d]
lea rdx, str.runas
lea rcx, [rsp + 0xa0]
call fcn.1800671b4
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1800662a8
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x48], rdx
mov byte [rsp + 0x28], 1
btr dword [rsp + 0x28], 8
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x20], r12
lea r8, [0x1800cdb4a]
lea rdx, str.fullscreen
lea rcx, [rsp + 0xa0]
call fcn.1800671b4
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1800662a8
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x48], rdx
mov byte [rsp + 0x28], 1
btr dword [rsp + 0x28], 8
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x20], r12
lea r8, [0x1800cdb5c]
lea rdx, str.closeExpired
lea rcx, [rsp + 0xa0]
call fcn.1800671b4
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1800662a8
lea rcx, [rsp + 0x148]
call fcn.1800126e0
nop
mov word [rsp + 0x170], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x172]
call fcn.18009e990
lea rdx, [rsp + 0x170]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rsp + 0x50]
call fcn.180012790
cmp qword [rax + 0x20], 8
jb 0x180003a82
mov rdx, qword [rax + 8]
jmp 0x180003a86
lea rdx, [rax + 8]
lea rcx, [rsp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x70], 8
jb 0x180003aa6
mov rcx, qword [rsp + 0x58]
call fcn.18009a864
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xa0]
call fcn.180067bb0
nop
mov rdx, rax
lea rcx, [rsp + 0x120]
call fcn.180077d28
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180003adc
mov rcx, qword [rsp + 0x58]
call fcn.18009a864
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], r12
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.180051508
call fcn.180053088
mov rdi, rax
test rax, rax
je 0x180003b67
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 0x180003b50
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x180003b5f
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, rdi
call fcn.18009a864
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.180053a60
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.180052330
test rax, rax
jne 0x180003cfa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x180003beb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x180003c19
lea rcx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rcx, qword [rsp + 0xd8]
xor edx, edx
lea r8d, [rdx + 1]
call fcn.180052114
test rax, rax
jne 0x180003cfa
lea rcx, str.ShowClientNotify_failed:
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
cmp qword [rsp + 0xf0], 8
jb 0x180003c48
mov rcx, qword [rsp + 0xd8]
call fcn.18009a864
mov qword [rsp + 0xf0], 7
mov qword [rsp + 0xe8], r12
mov word [rsp + 0xd8], r12w
cmp qword [rsp + 0x140], 0x10
jb 0x180003c7d
mov rcx, qword [rsp + 0x128]
call fcn.18009a864
mov qword [rsp + 0x140], socket
mov qword [rsp + 0x138], r12
mov byte [rsp + 0x128], 0
cmp qword [rsp + 0x168], 0x10
jb 0x180003cb1
mov rcx, qword [rsp + 0x150]
call fcn.18009a864
mov qword [rsp + 0x168], socket
mov qword [rsp + 0x160], r12
mov byte [rsp + 0x150], 0
lea rcx, [rsp + 0xa0]
call fcn.180066210
nop
cmp qword [rsp + 0x118], 8
jb 0x180003cf3
mov rcx, qword [rsp + 0x100]
call fcn.18009a864
xor eax, eax
jmp 0x180003de8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0xf0], 8
jb 0x180003d1c
mov rcx, qword [rsp + 0xd8]
call fcn.18009a864
mov qword [rsp + 0xf0], 7
mov qword [rsp + 0xe8], r12
mov word [rsp + 0xd8], r12w
cmp qword [rsp + 0x140], 0x10
jb 0x180003d51
mov rcx, qword [rsp + 0x128]
call fcn.18009a864
mov qword [rsp + 0x140], socket
mov qword [rsp + 0x138], r12
mov byte [rsp + 0x128], 0
cmp qword [rsp + 0x168], 0x10
jb 0x180003d85
mov rcx, qword [rsp + 0x150]
call fcn.18009a864
mov qword [rsp + 0x168], socket
mov qword [rsp + 0x160], r12
mov byte [rsp + 0x150], 0
lea rcx, [rsp + 0xa0]
call fcn.180066210
nop
cmp qword [rsp + 0x118], 8
jb 0x180003dc7
mov rcx, qword [rsp + 0x100]
call fcn.18009a864
mov eax, 1
jmp 0x180003de8
cmp qword [rsp + 0x118], 8
jb 0x180003de6
mov rcx, qword [rsp + 0x100]
call fcn.18009a864
xor eax, eax
mov rcx, qword [rsp + 0x7a0]
xor rcx, rsp
call fcn.180099fe0
add rsp, 0x7b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret