Function at 0x180008760
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x1e0
mov qword [rsp + 0x128], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x180097090]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov r13, rcx
call fcn.180007430
mov rsi, rax
test rax, rax
je 0x180008faa
movzx r12d, byte [0x18009d5e1]
cmp qword [rax + 0x98], 8
jb 0x1800087c7
mov rcx, qword [rax + 0x80]
jmp 0x1800087ce
lea rcx, [rax + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800087de
lea rdx, [rsi + 0x78]
jmp 0x1800087e2
lea rdx, [rsi + 0x50]
mov qword [rsp + 0x1a0], 7
xor r14d, r14d
mov qword [rsp + 0x198], r14
mov word [rsp + 0x188], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x180]
call fcn.18000bc30
nop
mov qword [rsp + 0x150], 7
mov qword [rsp + 0x148], r14
mov word [rsp + 0x138], r14w
lea r8d, [r14 + 0xa]
lea rdx, [0x18007ae90]
lea rcx, [rsp + 0x130]
call fcn.18000d5e0
nop
cmp qword [rsi + 0x48], 8
jb 0x18000885a
mov r8, qword [rsi + 0x30]
jmp 0x18000885e
lea r8, [rsi + 0x30]
lea rdx, [0x18007aea8]
lea rcx, [rsp + 0x80]
call fcn.1800295a4
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x130]
call fcn.18000d3a0
nop
cmp qword [rsp + 0xa0], 8
jb 0x1800088a3
mov rcx, qword [rsp + 0x88]
call fcn.1800538dc
lea r8, [rsp + 0x188]
cmp qword [rsp + 0x1a0], 8
cmovae r8, qword [rsp + 0x188]
lea rdx, [0x18007aec0]
lea rcx, [rsp + 0x80]
call fcn.1800295a4
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x130]
call fcn.18000d3a0
nop
cmp qword [rsp + 0xa0], 8
jb 0x180008902
mov rcx, qword [rsp + 0x88]
call fcn.1800538dc
test r12b, r12b
je 0x180008921
mov r8d, 0xa
lea rdx, [0x18007aed0]
lea rcx, [rsp + 0x130]
call fcn.18000d4a0
mov r8d, 0xb
lea rdx, [0x18007aee8]
lea rcx, [rsp + 0x130]
call fcn.18000d4a0
lea r8, str.wfchost.exe
xor edx, edx
lea rcx, [rsp + 0x1a8]
call fcn.180045f9c
nop
mov qword [rsp + 0x178], 7
mov qword [rsp + 0x170], r14
mov word [rsp + 0x160], r14w
mov r8d, 0xe
lea rdx, str._printRequest
lea rcx, [rsp + 0x158]
call fcn.18000d5e0
nop
test r12b, r12b
je 0x180008dfc
and dword [rsp + 0x108], 0xfffffe00
mov qword [rsp + 0x110], r14
mov qword [rsp + 0x118], r14
mov qword [rsp + 0x120], r14
lea rax, [rsp + 0xa8]
mov qword [rsp + 0xd0], rax
lea rcx, [0x18009c860]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rdx, rax
mov qword [rsp + 0xf8], 7
mov qword [rsp + 0xf0], r14
mov word [rsp + 0xe0], r14w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0xd8]
call fcn.18000d5e0
nop
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x80]
call fcn.180001500
nop
mov byte [rsp + 0xb0], 4
bts dword [rsp + 0xb0], 8
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xc8], r14
mov rdx, qword [rax + 0x18]
cmp qword [rax + 0x20], 0x10
jb 0x180008a64
mov rcx, qword [rax + 8]
jmp 0x180008a68
lea rcx, [rax + 8]
call fcn.18003446c
mov qword [rsp + 0xa8], rax
lea r8, [0x18007ad98]
lea rdx, str.procName
lea rcx, [rsp + 0x100]
call fcn.180035dc8
mov rcx, rax
lea rdx, [rsp + 0xa8]
call fcn.180034eac
nop
cmp qword [rsp + 0xa0], 0x10
jb 0x180008ab9
mov rcx, qword [rsp + 0x88]
call fcn.1800538dc
mov qword [rsp + 0xa0], socket
mov qword [rsp + 0x98], r14
mov byte [rsp + 0x88], 0
cmp qword [rsp + 0xf8], 8
jb 0x180008aed
mov rcx, qword [rsp + 0xe0]
call fcn.1800538dc
lea rax, [rsp + 0xa8]
mov qword [rsp + 0xd0], rax
lea rdx, [rsi + 0x28]
lea rcx, [rsp + 0x80]
call fcn.180001500
nop
mov byte [rsp + 0xb0], 4
bts dword [rsp + 0xb0], 8
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xc8], r14
mov rdx, qword [rax + 0x18]
cmp qword [rax + 0x20], 0x10
jb 0x180008b49
mov rcx, qword [rax + 8]
jmp 0x180008b4d
lea rcx, [rax + 8]
call fcn.18003446c
mov qword [rsp + 0xa8], rax
lea r8, [0x18007ad57]
lea rdx, str.printer
lea rcx, [rsp + 0x100]
call fcn.180035dc8
mov rcx, rax
lea rdx, [rsp + 0xa8]
call fcn.180034eac
nop
cmp qword [rsp + 0xa0], 0x10
jb 0x180008b9e
mov rcx, qword [rsp + 0x88]
call fcn.1800538dc
lea rax, [rsp + 0xa8]
mov qword [rsp + 0xd0], rax
lea rdx, [rsi + 0x50]
lea rcx, [rsp + 0x80]
call fcn.180001500
nop
mov byte [rsp + 0xb0], 4
bts dword [rsp + 0xb0], 8
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xc8], r14
mov rdx, qword [rax + 0x18]
cmp qword [rax + 0x20], 0x10
jb 0x180008bfa
mov rcx, qword [rax + 8]
jmp 0x180008bfe
lea rcx, [rax + 8]
call fcn.18003446c
mov qword [rsp + 0xa8], rax
lea r8, [0x18007ad5f]
lea rdx, str.docName
lea rcx, [rsp + 0x100]
call fcn.180035dc8
mov rcx, rax
lea rdx, [rsp + 0xa8]
call fcn.180034eac
nop
cmp qword [rsp + 0xa0], 0x10
jb 0x180008c4f
mov rcx, qword [rsp + 0x88]
call fcn.1800538dc
cmp qword [rsi + 0x98], 8
jb 0x180008c62
mov rcx, qword [rsi + 0x80]
jmp 0x180008c69
lea rcx, [rsi + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180008ce7
lea rax, [rsp + 0xd8]
mov qword [rsp + 0xd0], rax
lea rdx, [rsi + 0x78]
lea rcx, [rsp + 0x80]
call fcn.180001500
nop
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.180034c20
mov rdi, rax
lea r8, [0x18007a8e0]
lea rdx, str.file
lea rcx, [rsp + 0x100]
call fcn.180035dc8
mov rcx, rax
mov rdx, rdi
call fcn.180034eac
nop
cmp qword [rsp + 0xa0], 0x10
jb 0x180008ce7
mov rcx, qword [rsp + 0x88]
call fcn.1800538dc
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x100]
call fcn.180036800
nop
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.18004505c
nop
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.180001470
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x158]
call fcn.18000d3a0
nop
cmp qword [rsp + 0xa0], 8
jb 0x180008d4f
mov rcx, qword [rsp + 0x88]
call fcn.1800538dc
mov qword [rsp + 0xa0], 7
mov qword [rsp + 0x98], r14
mov word [rsp + 0x88], r14w
cmp qword [rsp + 0xf8], 0x10
jb 0x180008d84
mov rcx, qword [rsp + 0xe0]
call fcn.1800538dc
mov qword [rsp + socket8], 0xf
mov qword [rsp + 0xf0], r14
mov byte [rsp + 0xe0], 0
cmp qword [rsp + 0xc8], 0x10
jb 0x180008db9
mov rcx, qword [rsp + 0xb0]
call fcn.1800538dc
nop
lea rcx, [rsp + 0x100]
call fcn.180034e14
lea rdi, [rsp + 0x160]
cmp qword [rsp + 0x178], 8
cmovae rdi, qword [rsp + 0x160]
lea r8, [rsp + 0x1b0]
cmp qword [rsp + 0x1c8], 8
cmovae r8, qword [rsp + 0x1b0]
jmp 0x180008e02
mov rdi, r14
mov r8, r14
mov qword [rsp + 0xa0], 7
mov qword [rsp + 0x98], r14
mov word [rsp + 0x88], r14w
lea rdx, [rsp + 0x138]
cmp qword [rsp + 0x150], 8
cmovae rdx, qword [rsp + 0x138]
mov eax, r14d
test r12b, r12b
sete al
lea rcx, [0x18007af20]
lea r9, [0x18007a790]
test r12b, r12b
cmovne r9, rcx
lea rbx, [0x18007af48]
lea rcx, [0x18007af58]
test r12b, r12b
cmovne rcx, rbx
mov dword [rsp + 0x78], 0xffffffff
lea r10, [rsp + 0x80]
mov qword [rsp + 0x70], r10
mov dword [rsp + 0x68], r14d
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x58], r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r8
lea r8, str.printer.png
call fcn.180002e40
nop
cmp qword [rsp + 0xa0], 8
jb 0x180008ed7
mov rcx, qword [rsp + 0x88]
call fcn.1800538dc
lea rax, [0x18007af68]
test r12b, r12b
cmovne rbx, rax
mov rdx, rbx
mov rcx, r13
call fcn.180007260
nop
cmp qword [rsp + 0x178], 8
jb 0x180008f09
mov rcx, qword [rsp + 0x160]
call fcn.1800538dc
mov qword [rsp + 0x178], 7
mov qword [rsp + 0x170], r14
mov word [rsp + 0x160], r14w
cmp qword [rsp + 0x1c8], 8
jb 0x180008f3e
mov rcx, qword [rsp + 0x1b0]
call fcn.1800538dc
mov qword [rsp + 0x1c8], 7
mov qword [rsp + 0x1c0], r14
mov word [rsp + 0x1b0], r14w
cmp qword [rsp + 0x150], 8
jb 0x180008f73
mov rcx, qword [rsp + 0x138]
call fcn.1800538dc
mov qword [rsp + 0x150], 7
mov qword [rsp + 0x148], r14
mov word [rsp + 0x138], r14w
cmp qword [rsp + 0x1a0], 8
jb 0x180008fb6
mov rcx, qword [rsp + 0x188]
call fcn.1800538dc
jmp 0x180008fb6
lea rcx, str.gb0RSbpS
call fcn.18002cf0c
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.180052d60
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret