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

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x7b0
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1800ba080]
xor rax, rsp
mov qword [rsp + 0x7a0], rax
mov rbx, rdx
lea r8, str.wfchost.exe
xor edx, edx
lea rcx, [r11 - 0x6c0]
call fcn.18003a698
nop
lea rcx, [rsp + 0x100]
cmp qword [rsp + 0x118], 8
cmovae rcx, qword [rsp + 0x100]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
test eax, eax
jne 0x1800218c6
mov word [rsp + 0x380], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x382]
call fcn.1800729a0
mov r8d, 0x104
lea rdx, [rsp + 0x590]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x180021868
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 0x180021868
lea rdx, [0x18009779c]
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 0x180021899
cmp qword [rsp + 0x118], 8
jb 0x180021892
mov rcx, qword [rsp + 0x100]
call fcn.18006e998
xor eax, eax
jmp 0x1800221e7
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.180006960
test rbx, rbx
je 0x1800221cd
and dword [rsp + 0xa8], 0xfffffe00
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc0], rsi
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], rsi
mov word [rsp + 0x80], si
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x180096f20]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [0x180096f20]
lea rcx, [rsp + 0x78]
call fcn.180006960
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.180001450
nop
mov byte [rsp + 0x28], 4
bts dword [rsp + 0x28], 8
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov rdx, qword [rax + 0x18]
cmp qword [rax + 0x20], 0x10
jb 0x18002197c
mov rcx, qword [rax + 8]
jmp 0x180021980
lea rcx, [rax + 8]
call fcn.1800555f0
mov qword [rsp + 0x20], rax
lea r8, [0x180096bc9]
lea rdx, str.title
lea rcx, [rsp + 0xa0]
call fcn.180056f38
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.18005601c
nop
cmp qword [rsp + 0x70], 0x10
jb 0x1800219c5
mov rcx, qword [rsp + 0x58]
call fcn.18006e998
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], rsi
mov byte [rsp + 0x58], 0
cmp qword [rsp + 0x98], 8
jb 0x1800219f0
mov rcx, qword [rsp + 0x80]
call fcn.18006e998
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], rsi
mov word [rsp + 0x80], si
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.180006960
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.180001450
nop
mov byte [rsp + 0x28], 4
bts dword [rsp + 0x28], 8
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov rdx, qword [rax + 0x18]
cmp qword [rax + 0x20], 0x10
jb 0x180021a72
mov rcx, qword [rax + 8]
jmp 0x180021a76
lea rcx, [rax + 8]
call fcn.1800555f0
mov qword [rsp + 0x20], rax
lea r8, [0x180096b87]
lea rdx, str.content
lea rcx, [rsp + 0xa0]
call fcn.180056f38
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.18005601c
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180021abb
mov rcx, qword [rsp + 0x58]
call fcn.18006e998
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], rsi
mov byte [rsp + 0x58], 0
cmp qword [rsp + 0x98], 8
jb 0x180021ae6
mov rcx, qword [rsp + 0x80]
call fcn.18006e998
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], rsi
mov word [rsp + 0x80], si
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x180096ba0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [0x180096ba0]
lea rcx, [rsp + 0x78]
call fcn.180006960
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.180001450
nop
mov byte [rsp + 0x28], 4
bts dword [rsp + 0x28], 8
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov rdx, qword [rax + 0x18]
cmp qword [rax + 0x20], 0x10
jb 0x180021b70
mov rcx, qword [rax + 8]
jmp 0x180021b74
lea rcx, [rax + 8]
call fcn.1800555f0
mov qword [rsp + 0x20], rax
lea r8, [0x180096bd7]
lea rdx, str.btnText
lea rcx, [rsp + 0xa0]
call fcn.180056f38
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.18005601c
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180021bb9
mov rcx, qword [rsp + 0x58]
call fcn.18006e998
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], rsi
mov byte [rsp + 0x58], 0
cmp qword [rsp + 0x98], 8
jb 0x180021be4
mov rcx, qword [rsp + 0x80]
call fcn.18006e998
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], rsi
mov word [rsp + 0x80], si
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, str.rtmessage.png
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, str.rtmessage.png
lea rcx, [rsp + 0x78]
call fcn.180006960
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.180001450
nop
mov byte [rsp + 0x28], 4
bts dword [rsp + 0x28], 8
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov rdx, qword [rax + 0x18]
cmp qword [rax + 0x20], 0x10
jb 0x180021c6e
mov rcx, qword [rax + 8]
jmp 0x180021c72
lea rcx, [rax + 8]
call fcn.1800555f0
mov qword [rsp + 0x20], rax
lea r8, [0x180096bdf]
lea rdx, str.icoName
lea rcx, [rsp + 0xa0]
call fcn.180056f38
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.18005601c
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180021cb7
mov rcx, qword [rsp + 0x58]
call fcn.18006e998
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], rsi
mov byte [rsp + 0x58], 0
cmp qword [rsp + 0x98], 8
jb 0x180021ce2
mov rcx, qword [rsp + 0x80]
call fcn.18006e998
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x28], 1
btr dword [rsp + 0x28], 8
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x20], 1
lea r8, [0x180096bec]
lea rdx, str.showNotAlert
lea rcx, [rsp + 0xa0]
call fcn.180056f38
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.18005601c
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x48], rdx
mov byte [rsp + 0x28], 1
btr dword [rsp + 0x28], 8
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x20], rsi
lea r8, [0x180096bf5]
lea rdx, str.runas
lea rcx, [rsp + 0xa0]
call fcn.180056f38
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.18005601c
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x48], rdx
mov byte [rsp + 0x28], 1
btr dword [rsp + 0x28], 8
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x20], rsi
lea r8, [0x180096c02]
lea rdx, str.fullscreen
lea rcx, [rsp + 0xa0]
call fcn.180056f38
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.18005601c
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x48], rdx
mov byte [rsp + 0x28], 1
btr dword [rsp + 0x28], 8
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x20], rsi
lea r8, [0x180096c14]
lea rdx, str.closeExpired
lea rcx, [rsp + 0xa0]
call fcn.180056f38
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.18005601c
lea rcx, [rsp + 0x148]
call fcn.18002a9b0
nop
mov word [rsp + 0x170], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x172]
call fcn.1800729a0
lea rdx, [rsp + 0x170]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rsp + 0x50]
call fcn.18002aa60
cmp qword [rax + 0x20], 8
jb 0x180021e7f
mov rdx, qword [rax + 8]
jmp 0x180021e83
lea rdx, [rax + 8]
lea rcx, [rsp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x70], 8
jb 0x180021ea3
mov rcx, qword [rsp + 0x58]
call fcn.18006e998
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xa0]
call fcn.180057934
nop
mov rdx, rax
lea rcx, [rsp + 0x120]
call fcn.180061de0
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180021ed9
mov rcx, qword [rsp + 0x58]
call fcn.18006e998
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], rsi
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.180032344
call fcn.1800336e8
mov rdi, rax
test rax, rax
je 0x180021f64
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 0x180021f4d
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x180021f5c
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, rdi
call fcn.18006e998
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.180033ea8
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.180032ed4
test rax, rax
jne 0x1800220fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x180021fe8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x180022016
lea rcx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rcx, qword [rsp + 0xd8]
xor edx, edx
lea r8d, [rdx + 1]
call fcn.180032ce4
test rax, rax
jne 0x1800220fa
lea rcx, str.ShowClientNotify_failed:
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x180096f20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
cmp qword [rsp + 0xf0], 8
jb 0x180022049
mov rcx, qword [rsp + 0xd8]
call fcn.18006e998
mov qword [rsp + 0xf0], 7
mov qword [rsp + 0xe8], rsi
mov word [rsp + 0xd8], si
cmp qword [rsp + 0x140], 0x10
jb 0x18002207d
mov rcx, qword [rsp + 0x128]
call fcn.18006e998
mov qword [rsp + 0x140], socket
mov qword [rsp + 0x138], rsi
mov byte [rsp + 0x128], 0
cmp qword [rsp + 0x168], 0x10
jb 0x1800220b1
mov rcx, qword [rsp + 0x150]
call fcn.18006e998
mov qword [rsp + 0x168], socket
mov qword [rsp + 0x160], rsi
mov byte [rsp + 0x150], 0
lea rcx, [rsp + 0xa0]
call fcn.180055f84
nop
cmp qword [rsp + 0x118], 8
jb 0x1800220f3
mov rcx, qword [rsp + 0x100]
call fcn.18006e998
xor eax, eax
jmp 0x1800221e7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0xf0], 8
jb 0x18002211c
mov rcx, qword [rsp + 0xd8]
call fcn.18006e998
mov qword [rsp + 0xf0], 7
mov qword [rsp + 0xe8], rsi
mov word [rsp + 0xd8], si
cmp qword [rsp + 0x140], 0x10
jb 0x180022150
mov rcx, qword [rsp + 0x128]
call fcn.18006e998
mov qword [rsp + 0x140], socket
mov qword [rsp + 0x138], rsi
mov byte [rsp + 0x128], 0
cmp qword [rsp + 0x168], 0x10
jb 0x180022184
mov rcx, qword [rsp + 0x150]
call fcn.18006e998
mov qword [rsp + 0x168], socket
mov qword [rsp + 0x160], rsi
mov byte [rsp + 0x150], 0
lea rcx, [rsp + 0xa0]
call fcn.180055f84
nop
cmp qword [rsp + 0x118], 8
jb 0x1800221c6
mov rcx, qword [rsp + 0x100]
call fcn.18006e998
mov eax, 1
jmp 0x1800221e7
cmp qword [rsp + 0x118], 8
jb 0x1800221e5
mov rcx, qword [rsp + 0x100]
call fcn.18006e998
xor eax, eax
mov rcx, qword [rsp + 0x7a0]
xor rcx, rsp
call fcn.18006e130
lea r11, [rsp + 0x7b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret