Function at 0x1800043f0
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 [0x180080060]
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.18001d600
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 0x180004515
mov word [rsp + 0x380], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x382]
call fcn.180044a90
lea r8, [rsp + 0x380]
lea rdx, str.wfchost.exe
xor ecx, ecx
call fcn.180035c98
lea rcx, [rsp + 0x380]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, r15d
jne 0x1800044e8
cmp qword [rsp + 0x118], 8
jb 0x1800044e1
mov rcx, qword [rsp + 0x100]
call fcn.180042a14
xor eax, eax
jmp 0x180004dab
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.1800030e4
lea rbx, [0x180065a10]
cmp rsi, r15
cmovne rbx, rsi
cmp r13, r15
je 0x180004d91
cmp rbp, r15
je 0x180004d91
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.1800030e4
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.1800012e4
nop
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.180027d28
mov rdi, rax
lea rdx, str.title
lea rcx, [rsp + 0x78]
call fcn.180029294
mov rcx, rax
mov rdx, rdi
call fcn.180027fb4
nop
cmp qword [rsp + 0x70], 0x10
jb 0x1800045ec
mov rcx, qword [rsp + 0x58]
call fcn.180042a14
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], r15b
mov esi, 8
cmp qword [rsp + 0x40], rsi
jb 0x180004615
mov rcx, qword [rsp + 0x28]
call fcn.180042a14
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.1800030e4
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.1800012e4
nop
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.180027d28
mov rdi, rax
lea rdx, str.content
lea rcx, [rsp + 0x78]
call fcn.180029294
mov rcx, rax
mov rdx, rdi
call fcn.180027fb4
nop
cmp qword [rsp + 0x70], 0x10
jb 0x1800046a9
mov rcx, qword [rsp + 0x58]
call fcn.180042a14
mov ebp, recvfrom
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], r15b
cmp qword [rsp + 0x40], rsi
jb 0x1800046ce
mov rcx, qword [rsp + 0x28]
call fcn.180042a14
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.1800030e4
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.1800012e4
nop
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.180027d28
mov rdi, rax
lea rdx, str.btnText
lea rcx, [rsp + 0x78]
call fcn.180029294
mov rcx, rax
mov rdx, rdi
call fcn.180027fb4
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180004762
mov rcx, qword [rsp + 0x58]
call fcn.180042a14
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], r15b
cmp qword [rsp + 0x40], rsi
jb 0x180004782
mov rcx, qword [rsp + 0x28]
call fcn.180042a14
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
lea rdx, str.rtmessage.png
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea ebx, [rax + 1]
sub rcx, rbx
mov r8, rcx
lea rcx, [rsp + 0x20]
call fcn.1800030e4
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.1800012e4
nop
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.180027d28
mov rdi, rax
lea rdx, str.icoName
lea rcx, [rsp + 0x78]
call fcn.180029294
mov rcx, rax
mov rdx, rdi
call fcn.180027fb4
nop
cmp qword [rsp + 0x70], 0x10
jb 0x18000481f
mov rcx, qword [rsp + 0x58]
call fcn.180042a14
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], r15b
cmp qword [rsp + 0x40], rsi
jb 0x18000483f
mov rcx, qword [rsp + 0x28]
call fcn.180042a14
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x28], bl
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.180029294
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.180027fb4
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x48], rdx
mov byte [rsp + 0x28], bl
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.180029294
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.180027fb4
cmp r14, r15
je 0x180004998
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, r14
repne scasw ax, word [rdi]
not rcx
sub rcx, rbx
mov r8, rcx
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.1800030e4
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.1800012e4
nop
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.180027d28
mov rdi, rax
lea rdx, str.singleton
lea rcx, [rsp + 0x78]
call fcn.180029294
mov rcx, rax
mov rdx, rdi
call fcn.180027fb4
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180004978
mov rcx, qword [rsp + 0x58]
call fcn.180042a14
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], r15b
cmp qword [rsp + 0x40], rsi
jb 0x180004998
mov rcx, qword [rsp + 0x28]
call fcn.180042a14
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x28], bl
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.180029294
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.180027fb4
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x48], rdx
mov byte [rsp + 0x28], bl
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.180029294
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.180027fb4
lea rcx, [rsp + 0x148]
call fcn.180008ef0
nop
mov word [rsp + 0x170], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x172]
call fcn.180044a90
lea rdx, [rsp + 0x170]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rsp + 0x50]
call fcn.180008f94
cmp qword [rax + 0x20], rsi
jb 0x180004a79
mov rdx, qword [rax + 8]
jmp 0x180004a7d
lea rdx, [rax + 8]
lea rcx, [rsp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x70], rsi
jb 0x180004a9c
mov rcx, qword [rsp + 0x58]
call fcn.180042a14
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.180029850
nop
mov rdx, rax
lea rcx, [rsp + 0x120]
call fcn.18003bc28
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180004acf
mov rcx, qword [rsp + 0x58]
call fcn.180042a14
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.180035d50
lea rcx, [rsp + 0x170]
call fcn.180037d6c
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.180038438
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]
mov edx, ebx
call fcn.180036e9c
mov rdi, rax
cmp rax, r15
jne 0x180004c9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x180004b9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x180004bcb
lea rcx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], rsi
cmovae rcx, qword [rsp + 0xd8]
mov r8d, ebx
xor edx, edx
call fcn.180036cac
mov rdi, rax
cmp rax, r15
jne 0x180004c9f
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 0x180004bf9
mov rcx, qword [rsp + 0xd8]
call fcn.180042a14
mov qword [rsp + 0xf0], 7
mov qword [rsp + 0xe8], r15
mov word [rsp + 0xd8], r15w
cmp qword [rsp + 0x140], 0x10
jb 0x180004c2e
mov rcx, qword [rsp + 0x128]
call fcn.180042a14
mov qword [rsp + 0x140], rbp
mov qword [rsp + 0x138], r15
mov byte [rsp + 0x128], r15b
cmp qword [rsp + 0x168], 0x10
jb 0x180004c5e
mov rcx, qword [rsp + 0x150]
call fcn.180042a14
mov qword [rsp + 0x168], rbp
mov qword [rsp + 0x160], r15
mov byte [rsp + 0x150], r15b
lea rcx, [rsp + 0x78]
call fcn.180027f1c
nop
cmp qword [rsp + 0x118], rsi
jb 0x180004c98
mov rcx, qword [rsp + 0x100]
call fcn.180042a14
xor eax, eax
jmp 0x180004dab
cmp r12, r15
je 0x180004ccd
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180004cc1
mov dword [r12], 0x3f2
jmp 0x180004ccd
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 0x180004cee
mov rcx, qword [rsp + 0xd8]
call fcn.180042a14
mov qword [rsp + 0xf0], 7
mov qword [rsp + 0xe8], r15
mov word [rsp + 0xd8], r15w
cmp qword [rsp + 0x140], 0x10
jb 0x180004d23
mov rcx, qword [rsp + 0x128]
call fcn.180042a14
mov qword [rsp + 0x140], rbp
mov qword [rsp + 0x138], r15
mov byte [rsp + 0x128], r15b
cmp qword [rsp + 0x168], 0x10
jb 0x180004d53
mov rcx, qword [rsp + 0x150]
call fcn.180042a14
mov qword [rsp + 0x168], rbp
mov qword [rsp + 0x160], r15
mov byte [rsp + 0x150], r15b
lea rcx, [rsp + 0x78]
call fcn.180027f1c
nop
cmp qword [rsp + 0x118], rsi
jb 0x180004d8d
mov rcx, qword [rsp + 0x100]
call fcn.180042a14
mov eax, ebx
jmp 0x180004dab
cmp qword [rsp + 0x118], 8
jb 0x180004da9
mov rcx, qword [rsp + 0x100]
call fcn.180042a14
xor eax, eax
mov rcx, qword [rsp + 0x590]
xor rcx, rsp
call fcn.1800423f0
mov rbx, qword [rsp + 0x5f0]
add rsp, 0x5a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret