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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x5b8
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov rax, qword [0x1800824d0]
xor rax, rsp
mov qword [rsp + 0x5a0], rax
mov rsi, r9
mov r13, r8
mov rbp, rdx
mov qword [rsp + 0xa0], rcx
mov r12, qword [rsp + 0x620]
mov r14, qword [rsp + 0x628]
mov r15, qword [rsp + 0x630]
lea r8, str.wfchost.exe
xor edx, edx
lea rcx, [rsp + 0x100]
call fcn.180038d54
nop
lea rcx, [rsp + 0x108]
cmp qword [rsp + 0x120], 8
cmovae rcx, qword [rsp + 0x108]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor edi, edi
cmp eax, edi
jne 0x1800047a1
mov word [rsp + 0x390], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x392]
call fcn.180045560
mov r9d, 0x104
lea r8, [rsp + 0x390]
lea rdx, str.wfchost.exe
xor ecx, ecx
call fcn.18001f958
lea rcx, [rsp + 0x390]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
jne 0x180004772
cmp qword [rsp + 0x120], 8
jb 0x18000476b
mov rcx, qword [rsp + 0x108]
call fcn.180043070
xor eax, eax
jmp 0x180005196
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x390]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x390]
lea rcx, [rsp + 0x100]
call fcn.18000297c
xor edi, edi
lea rbx, [0x180067fe0]
cmp rsi, rdi
cmovne rbx, rsi
mov rdx, qword [rsp + 0xa0]
cmp rdx, rdi
je 0x18000517c
cmp rbp, rdi
je 0x18000517c
lea rsi, str.rtmessage.png
cmp r13, rdi
cmovne rsi, r13
and dword [rsp + 0x80], 0xfffffe00
xor r13d, r13d
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x98], r13
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r13
mov word [rsp + 0x28], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.18000297c
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.180003fdc
nop
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.18002b148
mov rdi, rax
lea rdx, str.title
lea rcx, [rsp + 0x78]
call fcn.18002c6ac
mov rcx, rax
mov rdx, rdi
call fcn.18002b3d4
nop
cmp qword [rsp + 0x70], 0x10
jb 0x18000488e
mov rcx, qword [rsp + 0x58]
call fcn.180043070
mov qword [rsp + 0x70], 0xf
mov qword [rsp + 0x68], r13
mov byte [rsp + 0x58], r13b
cmp qword [rsp + 0x40], 8
jb 0x1800048b3
mov rcx, qword [rsp + 0x28]
call fcn.180043070
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r13
mov word [rsp + 0x28], r13w
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 + 0x20]
call fcn.18000297c
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.180003fdc
nop
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.18002b148
mov rdi, rax
lea rdx, str.content
lea rcx, [rsp + 0x78]
call fcn.18002c6ac
mov rcx, rax
mov rdx, rdi
call fcn.18002b3d4
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180004947
mov rcx, qword [rsp + 0x58]
call fcn.180043070
mov qword [rsp + 0x70], 0xf
mov qword [rsp + 0x68], r13
mov byte [rsp + 0x58], r13b
mov ebp, 8
cmp qword [rsp + 0x40], rbp
jb 0x180004970
mov rcx, qword [rsp + 0x28]
call fcn.180043070
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r13
mov word [rsp + 0x28], r13w
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 + 0x20]
call fcn.18000297c
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.180003fdc
nop
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.18002b148
mov rdi, rax
lea rdx, str.btnText
lea rcx, [rsp + 0x78]
call fcn.18002c6ac
mov rcx, rax
mov rdx, rdi
call fcn.18002b3d4
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180004a04
mov rcx, qword [rsp + 0x58]
call fcn.180043070
mov ebx, 0xf
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], r13
mov byte [rsp + 0x58], r13b
cmp qword [rsp + 0x40], rbp
jb 0x180004a29
mov rcx, qword [rsp + 0x28]
call fcn.180043070
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r13
mov word [rsp + 0x28], r13w
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 + 0x20]
call fcn.18000297c
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.180003fdc
nop
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.18002b148
mov rdi, rax
lea rdx, str.icoName
lea rcx, [rsp + 0x78]
call fcn.18002c6ac
mov rcx, rax
mov rdx, rdi
call fcn.18002b3d4
nop
mov esi, 0x10
cmp qword [rsp + 0x70], rsi
jb 0x180004ac1
mov rcx, qword [rsp + 0x58]
call fcn.180043070
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], r13
mov byte [rsp + 0x58], r13b
cmp qword [rsp + 0x40], rbp
jb 0x180004ae1
mov rcx, qword [rsp + 0x28]
call fcn.180043070
cmp r12, r13
je 0x180004b9d
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r13
mov word [rsp + 0x28], r13w
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 + 0x20]
call fcn.18000297c
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.180003fdc
nop
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.18002b148
mov rdi, rax
lea rdx, [0x180068028]
lea rcx, [rsp + 0x78]
call fcn.18002c6ac
mov rcx, rax
mov rdx, rdi
call fcn.18002b3d4
nop
cmp qword [rsp + 0x70], rsi
jb 0x180004b7d
mov rcx, qword [rsp + 0x58]
call fcn.180043070
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], r13
mov byte [rsp + 0x58], r13b
cmp qword [rsp + 0x40], rbp
jb 0x180004b9d
mov rcx, qword [rsp + 0x28]
call fcn.180043070
cmp r14, r13
je 0x180004c5d
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x48], rax
mov r12d, 7
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
mov word [rsp + 0x28], r13w
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 + 0x20]
call fcn.18000297c
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.180003fdc
nop
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.18002b148
mov rdi, rax
lea rdx, str.param
lea rcx, [rsp + 0x78]
call fcn.18002c6ac
mov rcx, rax
mov rdx, rdi
call fcn.18002b3d4
nop
cmp qword [rsp + 0x70], rsi
jb 0x180004c3b
mov rcx, qword [rsp + 0x58]
call fcn.180043070
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], r13
mov byte [rsp + 0x58], r13b
cmp qword [rsp + 0x40], rbp
jb 0x180004c63
mov rcx, qword [rsp + 0x28]
call fcn.180043070
jmp 0x180004c63
mov r12d, 7
cmp r15, r13
je 0x180004d1b
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
mov word [rsp + 0x28], r13w
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 + 0x20]
call fcn.18000297c
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.180003fdc
nop
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.18002b148
mov rdi, rax
lea rdx, str.wndClass
lea rcx, [rsp + 0x78]
call fcn.18002c6ac
mov rcx, rax
mov rdx, rdi
call fcn.18002b3d4
nop
cmp qword [rsp + 0x70], rsi
jb 0x180004cfb
mov rcx, qword [rsp + 0x58]
call fcn.180043070
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], r13
mov byte [rsp + 0x58], r13b
cmp qword [rsp + 0x40], rbp
jb 0x180004d1b
mov rcx, qword [rsp + 0x28]
call fcn.180043070
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x28], 1
btr dword [rsp + 0x28], 8
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], r13
mov rax, r13
cmp dword [rsp + 0x638], r13d
setne al
mov qword [rsp + 0x20], rax
lea rdx, str.showNotAlert
lea rcx, [rsp + 0x78]
call fcn.18002c6ac
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.18002b3d4
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x48], rdx
mov byte [rsp + 0x28], 1
btr dword [rsp + 0x28], 8
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x20], r13
lea rdx, str.runas
lea rcx, [rsp + 0x78]
call fcn.18002c6ac
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.18002b3d4
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x48], rdx
mov byte [rsp + 0x28], 1
btr dword [rsp + 0x28], 8
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x20], r13
lea rdx, str.fullscreen
lea rcx, [rsp + 0x78]
call fcn.18002c6ac
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.18002b3d4
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x48], rdx
mov byte [rsp + 0x28], 1
btr dword [rsp + 0x28], 8
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x20], r13
lea rdx, str.closeExpired
lea rcx, [rsp + 0x78]
call fcn.18002c6ac
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.18002b3d4
lea rcx, [rsp + 0x150]
call fcn.180008e10
nop
mov word [rsp + 0x180], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x182]
call fcn.180045560
lea rdx, [rsp + 0x180]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rsp + 0x50]
call fcn.180008eb4
cmp qword [rax + 0x20], rbp
jb 0x180004e9a
mov rdx, qword [rax + 8]
jmp 0x180004e9e
lea rdx, [rax + 8]
lea rcx, [rsp + 0x180]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x70], rbp
jb 0x180004ebd
mov rcx, qword [rsp + 0x58]
call fcn.180043070
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.18002cc94
nop
mov rdx, rax
lea rcx, [rsp + 0x128]
call fcn.18003b5e0
nop
cmp qword [rsp + 0x70], rsi
jb 0x180004eef
mov rcx, qword [rsp + 0x58]
call fcn.180043070
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], r13
mov byte [rsp + 0x58], r13b
lea rdx, [rsp + 0x130]
cmp qword [rsp + 0x148], rsi
cmovae rdx, qword [rsp + 0x130]
mov r8d, dword [rsp + 0x140]
lea rcx, [rsp + 0x180]
call fcn.18001fb70
lea rcx, [rsp + 0x180]
call fcn.180020e08
lea r8, [rsp + 0x108]
cmp qword [rsp + 0x120], rbp
cmovae r8, qword [rsp + 0x108]
lea r9, [rsp + 0x180]
lea rdx, str.__ls___common__ls
lea rcx, [rsp + 0xd8]
call fcn.18002132c
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0xe0]
cmp qword [rsp + 0xf8], rbp
cmovae rcx, qword [rsp + 0xe0]
mov edx, 1
call fcn.1800207d0
cmp rax, r13
jne 0x1800050bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x180004fbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x180004fe8
lea rcx, [rsp + 0xe0]
cmp qword [rsp + 0xf8], rbp
cmovae rcx, qword [rsp + 0xe0]
xor edx, edx
lea r8d, [rdx + 1]
call fcn.1800205b4
cmp rax, r13
jne 0x1800050bb
lea rcx, str.ShowClientNotify_failed:
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
cmp qword [rsp + 0xf8], rbp
jb 0x18000501b
mov rcx, qword [rsp + 0xe0]
call fcn.180043070
mov qword [rsp + 0xf8], r12
mov qword [rsp + 0xf0], r13
mov word [rsp + 0xe0], r13w
cmp qword [rsp + 0x148], rsi
jb 0x18000504b
mov rcx, qword [rsp + 0x130]
call fcn.180043070
mov qword [rsp + 0x148], rbx
mov qword [rsp + 0x140], r13
mov byte [rsp + 0x130], r13b
cmp qword [rsp + 0x170], rsi
jb 0x18000507a
mov rcx, qword [rsp + 0x158]
call fcn.180043070
mov qword [rsp + 0x170], rbx
mov qword [rsp + 0x168], r13
mov byte [rsp + 0x158], r13b
lea rcx, [rsp + 0x78]
call fcn.18002b33c
nop
cmp qword [rsp + 0x120], rbp
jb 0x1800050b4
mov rcx, qword [rsp + 0x108]
call fcn.180043070
xor eax, eax
jmp 0x180005196
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0xf8], rbp
jb 0x1800050dc
mov rcx, qword [rsp + 0xe0]
call fcn.180043070
mov qword [rsp + 0xf8], r12
mov qword [rsp + 0xf0], r13
mov word [rsp + 0xe0], r13w
cmp qword [rsp + 0x148], rsi
jb 0x18000510c
mov rcx, qword [rsp + 0x130]
call fcn.180043070
mov qword [rsp + 0x148], rbx
mov qword [rsp + 0x140], r13
mov byte [rsp + 0x130], r13b
cmp qword [rsp + 0x170], rsi
jb 0x18000513b
mov rcx, qword [rsp + 0x158]
call fcn.180043070
mov qword [rsp + 0x170], rbx
mov qword [rsp + 0x168], r13
mov byte [rsp + 0x158], r13b
lea rcx, [rsp + 0x78]
call fcn.18002b33c
nop
cmp qword [rsp + 0x120], rbp
jb 0x180005175
mov rcx, qword [rsp + 0x108]
call fcn.180043070
mov eax, 1
jmp 0x180005196
cmp qword [rsp + 0x120], 8
jb 0x180005194
mov rcx, qword [rsp + 0x108]
call fcn.180043070
xor eax, eax
mov rcx, qword [rsp + 0x5a0]
xor rcx, rsp
call fcn.180042bb0
add rsp, 0x5b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret