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

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x5a0
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x18008a090]
xor rax, rsp
mov qword [rsp + 0x590], rax
mov rsi, r9
mov rbp, rdx
mov r13, rcx
mov r12, qword [rsp + 0x628]
mov r14, qword [rsp + 0x630]
lea r8, str.wfchost.exe
xor edx, edx
lea rcx, [r11 - 0x4e0]
call fcn.18001e974
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
cmp eax, r15d
jne 0x180004603
mov word [rsp + 0x380], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x382]
call fcn.18004a190
mov r9d, 0x104
lea r8, [rsp + 0x380]
lea rdx, str.wfchost.exe
xor ecx, ecx
call fcn.180037814
lea rcx, [rsp + 0x380]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, r15d
jne 0x1800045d6
cmp qword [rsp + 0x118], 8
jb 0x1800045cf
mov rcx, qword [rsp + 0x100]
call fcn.180048114
xor eax, eax
jmp 0x180004e92
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.180003158
lea rbx, [0x18006cb70]
cmp rsi, r15
cmovne rbx, rsi
cmp r13, r15
je 0x180004e78
cmp rbp, r15
je 0x180004e78
and dword [rsp + 0x80], 0xfffffe00
mov qword [rsp + 0x88], r15
mov qword [rsp + 0x90], r15
mov qword [rsp + 0x98], r15
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r15
mov word [rsp + 0x28], 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 + 0x20]
call fcn.180003158
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.180001328
nop
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.1800290b0
mov rdi, rax
lea rdx, str.title
lea rcx, [rsp + 0x78]
call fcn.18002a61c
mov rcx, rax
mov rdx, rdi
call fcn.18002933c
nop
cmp qword [rsp + 0x70], 0x10
jb 0x1800046da
mov rcx, qword [rsp + 0x58]
call fcn.180048114
mov qword [rsp + 0x70], sendto
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], r15b
mov esi, 8
cmp qword [rsp + 0x40], rsi
jb 0x180004703
mov rcx, qword [rsp + 0x28]
call fcn.180048114
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r15
mov word [rsp + 0x28], 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 + 0x20]
call fcn.180003158
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.180001328
nop
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.1800290b0
mov rdi, rax
lea rdx, str.content
lea rcx, [rsp + 0x78]
call fcn.18002a61c
mov rcx, rax
mov rdx, rdi
call fcn.18002933c
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180004797
mov rcx, qword [rsp + 0x58]
call fcn.180048114
mov ebp, InitCommonControls
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], r15b
cmp qword [rsp + 0x40], rsi
jb 0x1800047bc
mov rcx, qword [rsp + 0x28]
call fcn.180048114
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r15
mov word [rsp + 0x28], 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 + 0x20]
call fcn.180003158
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.180001328
nop
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.1800290b0
mov rdi, rax
lea rdx, str.btnText
lea rcx, [rsp + 0x78]
call fcn.18002a61c
mov rcx, rax
mov rdx, rdi
call fcn.18002933c
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180004850
mov rcx, qword [rsp + 0x58]
call fcn.180048114
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], r15b
cmp qword [rsp + 0x40], rsi
jb 0x180004870
mov rcx, qword [rsp + 0x28]
call fcn.180048114
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x48], rax
mov ebx, 7
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r15
mov word [rsp + 0x28], r15w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdx, str.rtmessage.png
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.180003158
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.180001328
nop
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.1800290b0
mov rdi, rax
lea rdx, str.icoName
lea rcx, [rsp + 0x78]
call fcn.18002a61c
mov rcx, rax
mov rdx, rdi
call fcn.18002933c
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180004909
mov rcx, qword [rsp + 0x58]
call fcn.180048114
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], r15b
cmp qword [rsp + 0x40], rsi
jb 0x180004929
mov rcx, qword [rsp + 0x28]
call fcn.180048114
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 + 0x618], r15d
setne al
mov qword [rsp + 0x20], rax
lea rdx, str.showNotAlert
lea rcx, [rsp + 0x78]
call fcn.18002a61c
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.18002933c
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 rdx, str.runas
lea rcx, [rsp + 0x78]
call fcn.18002a61c
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.18002933c
cmp r14, r15
je 0x180004a7e
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r15
mov word [rsp + 0x28], 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 + 0x20]
call fcn.180003158
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.180001328
nop
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.1800290b0
mov rdi, rax
lea rdx, str.singleton
lea rcx, [rsp + 0x78]
call fcn.18002a61c
mov rcx, rax
mov rdx, rdi
call fcn.18002933c
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180004a5e
mov rcx, qword [rsp + 0x58]
call fcn.180048114
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], r15b
cmp qword [rsp + 0x40], rsi
jb 0x180004a7e
mov rcx, qword [rsp + 0x28]
call fcn.180048114
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 qword [rsp + 0x20], r15
lea rdx, str.fullscreen
lea rcx, [rsp + 0x78]
call fcn.18002a61c
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.18002933c
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 rdx, str.closeExpired
lea rcx, [rsp + 0x78]
call fcn.18002a61c
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.18002933c
lea rcx, [rsp + 0x148]
call fcn.180008f90
nop
mov word [rsp + 0x170], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x172]
call fcn.18004a190
lea rdx, [rsp + 0x170]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rsp + 0x50]
call fcn.180009034
cmp qword [rax + 0x20], rsi
jb 0x180004b61
mov rdx, qword [rax + 8]
jmp 0x180004b65
lea rdx, [rax + 8]
lea rcx, [rsp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x70], rsi
jb 0x180004b84
mov rcx, qword [rsp + 0x58]
call fcn.180048114
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.18002ac20
nop
mov rdx, rax
lea rcx, [rsp + 0x120]
call fcn.18003e554
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180004bb7
mov rcx, qword [rsp + 0x58]
call fcn.180048114
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], r15b
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.1800378dc
lea rcx, [rsp + 0x170]
call fcn.180039670
lea r8, [rsp + 0x100]
cmp qword [rsp + 0x118], rsi
cmovae r8, qword [rsp + 0x100]
lea r9, [rsp + 0x170]
lea rdx, str.__ls___common__ls
lea rcx, [rsp + 0xd0]
call fcn.180039d40
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], rsi
cmovae rcx, qword [rsp + 0xd8]
cmp rcx, r15
je 0x180004c6b
call fcn.180038b78
mov rdi, rax
cmp rax, r15
jne 0x180004cb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x180004c87
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x180004dab
lea rcx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], rsi
cmovae rcx, qword [rsp + 0xd8]
xor edx, edx
lea r8d, [rdx + 1]
call fcn.180038988
mov rdi, rax
cmp rax, r15
je 0x180004dab
cmp r12, r15
je 0x180004ce5
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180004cd9
mov dword [r12], 0x3f2
jmp 0x180004ce5
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0xf0], rsi
jb 0x180004d06
mov rcx, qword [rsp + 0xd8]
call fcn.180048114
mov qword [rsp + 0xf0], rbx
mov qword [rsp + 0xe8], r15
mov word [rsp + 0xd8], r15w
cmp qword [rsp + 0x140], 0x10
jb 0x180004d37
mov rcx, qword [rsp + 0x128]
call fcn.180048114
mov qword [rsp + 0x140], rbp
mov qword [rsp + 0x138], r15
mov byte [rsp + 0x128], r15b
cmp qword [rsp + 0x168], 0x10
jb 0x180004d67
mov rcx, qword [rsp + 0x150]
call fcn.180048114
mov qword [rsp + 0x168], rbp
mov qword [rsp + 0x160], r15
mov byte [rsp + 0x150], r15b
lea rcx, [rsp + 0x78]
call fcn.1800292a4
nop
cmp qword [rsp + 0x118], rsi
jb 0x180004da1
mov rcx, qword [rsp + 0x100]
call fcn.180048114
mov eax, 1
jmp 0x180004e92
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], rsi
jb 0x180004dd9
mov rcx, qword [rsp + 0xd8]
call fcn.180048114
mov qword [rsp + 0xf0], rbx
mov qword [rsp + 0xe8], r15
mov word [rsp + 0xd8], r15w
cmp qword [rsp + 0x140], 0x10
jb 0x180004e0a
mov rcx, qword [rsp + 0x128]
call fcn.180048114
mov qword [rsp + 0x140], rbp
mov qword [rsp + 0x138], r15
mov byte [rsp + 0x128], r15b
cmp qword [rsp + 0x168], 0x10
jb 0x180004e3a
mov rcx, qword [rsp + 0x150]
call fcn.180048114
mov qword [rsp + 0x168], rbp
mov qword [rsp + 0x160], r15
mov byte [rsp + 0x150], r15b
lea rcx, [rsp + 0x78]
call fcn.1800292a4
nop
cmp qword [rsp + 0x118], rsi
jb 0x180004e74
mov rcx, qword [rsp + 0x100]
call fcn.180048114
xor eax, eax
jmp 0x180004e92
cmp qword [rsp + 0x118], 8
jb 0x180004e90
mov rcx, qword [rsp + 0x100]
call fcn.180048114
xor eax, eax
mov rcx, qword [rsp + 0x590]
xor rcx, rsp
call fcn.180047b20
mov rbx, qword [rsp + 0x5f0]
add rsp, 0x5a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret