Function at 0x1400bc850
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4e0
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov rsi, rcx
mov qword [rsp + 0x88], rcx
xor r8d, r8d
lea rdx, str.CBaseInfoPrinterEx::RestoreDetailsPrinterInfo
lea rcx, [rsp + 0x38]
call fcn.1400075a0
nop
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x4c], r12d
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
lea r8, [rsp + 0xd0]
mov edx, pe_nt_image_headers64
call qword [rax + 0x178]
nop
lea rcx, [rsi + 0x210]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400bc913
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rax + 2]
lea rcx, [rsp + 0x38]
call fcn.140007780
nop
lea rcx, [rsp + 0x38]
call fcn.140007730
xor eax, eax
jmp 0x1400bd05f
lea rdi, [rsi + 0x418]
lea rcx, [rdi + 0x10]
mov r8d, 0x21
lea rdx, [rsi + 0x210]
call fcn.1400ab810
test rax, rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
jne 0x1400bc95f
add rcx, rdi
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1400bc94f
or edx, 4
xor r8d, r8d
call fcn.1400015e0
mov r15d, 4
jmp 0x1400bc97b
add rcx, rdi
mov edx, r12d
mov r15d, 4
cmp qword [rcx + 0x48], rdx
cmove edx, r15d
xor r8d, r8d
call fcn.1400015e0
cmp qword [rsi + 0x4c0], 0
je 0x1400bd024
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call fcn.1400a9f20
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x1400bc9d2
mov rcx, qword [rcx + rdi + 0x48]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 1
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x70]
call qword [rax + 0x50]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
jmp 0x1400bc9dc
mov rcx, qword [0x1402dbdb8]
mov rax, r12
add eax, ecx
jne 0x1400bca28
mov rcx, rdi
call fcn.1400ab250
lea r8, str._t_t_tFile_Size_is_Zero.
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140007780
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x38]
call fcn.140007780
nop
lea rcx, [rsp + 0x38]
call fcn.140007730
xor eax, eax
jmp 0x1400bd05f
mov rcx, qword [rdi]
movsxd rax, dword [rcx + 4]
test byte [rax + rdi + 0x10], 6
jne 0x1400bca8d
movsxd rax, dword [rcx + 4]
mov rcx, qword [rax + rdi + 0x48]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x70]
call qword [rax + 0x50]
movsxd rax, dword [rsp + 0x78]
add rax, qword [rsp + 0x70]
cmp rax, qword [0x1402dbdb8]
jne 0x1400bca8d
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1400bca85
or edx, 4
xor r8d, r8d
call fcn.1400015e0
mov rax, qword [rsi]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rsi
call qword [rax + 0xd8]
mov ebx, eax
test eax, eax
jne 0x1400bcbd3
cmp dword [rsp + 0x30], 0xe0fffff0
je 0x1400bcaec
lea r8, str._t_t_tFILE_ST_RESDETAIL_FILE_is_not_found.
lea edx, [rax + 7]
lea rcx, [rsp + 0x38]
call fcn.140007780
mov dword [0x1403b95bc], 6
mov dword [rsp + 0x54], 0x80010006
lea rdx, [0x14038c778]
lea rcx, [rsp + 0x54]
call fcn.14024b7b0
mov rax, qword [rsi]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rsi
call qword [rax + 0xd8]
mov ebx, eax
cmp dword [rsp + 0x30], 0x10000
je 0x1400bcb45
lea r8, str._t_t_tFILE_VER_RESDETAIL_FILE_is_not_found.
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140007780
mov dword [0x1403b95bc], 6
mov dword [rsp + 0x5c], 0x80010006
lea rdx, [0x14038c778]
lea rcx, [rsp + 0x5c]
call fcn.14024b7b0
test eax, eax
jne 0x1400bcbd3
mov rax, qword [rsi]
lea r9, [rsp + 0x2d0]
mov r8d, 0x200
mov rdx, rdi
mov rcx, rsi
call qword [rax + 0x108]
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0x2d0]
call qword [rax + 0x180]
mov ebx, eax
test eax, eax
jns 0x1400bcbbb
lea r8, str._t_t_tthis_file_is_other_PDL_data.
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140007780
mov dword [rsp + 0x68], ebx
lea rdx, [0x14038c778]
lea rcx, [rsp + 0x68]
call fcn.14024b7b0
jne 0x1400bcbd3
mov rax, qword [rsi]
lea r8, [rsp + 0x48]
mov rdx, rdi
mov rcx, rsi
call qword [rax + 0xd8]
mov ebx, eax
mov r14d, r12d
nop word [rax + rax]
cmp r14d, dword [rsp + 0x48]
jae 0x1400bcf39
test ebx, ebx
jne 0x1400bcfb8
mov edx, 0x2b10
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test rax, rax
jne 0x1400bcc1d
mov ebx, 0x80010002
mov dword [0x1403b95bc], 2
jmp 0x1400bcf31
mov rax, qword [rsi]
lea r8, [rsp + 0x30]
lea rdx, [rsi + 0x418]
mov rcx, rsi
call qword [rax + 0xd8]
mov ebx, eax
cmp dword [rsp + 0x30], 0xe0ffffe0
je 0x1400bcc7a
lea r8, str._t_t_tFILE_ST_RESDETAIL_PRN_is_not_found.
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140007780
mov dword [0x1403b95bc], 6
mov dword [rsp + 0x58], 0x80010006
lea rdx, [0x14038c778]
lea rcx, [rsp + 0x58]
call fcn.14024b7b0
test eax, eax
jne 0x1400bcf31
mov rax, qword [rsi]
mov r8, r12
lea rdx, [rsi + 0x418]
mov rcx, rsi
call qword [rax + 0x150]
mov ebx, eax
test eax, eax
jne 0x1400bcf31
mov rax, qword [rsi]
lea r8, [r12 + 0x2ae0]
lea rdx, [rsi + 0x418]
mov rcx, rsi
call qword [rax + 0xd8]
mov ebx, eax
test eax, eax
jne 0x1400bcf31
mov eax, dword [r12 + 0x2ae0]
test eax, eax
je 0x1400bcd22
mov edx, eax
imul rdx, rdx, 0x428
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r9, rax
mov qword [r12 + 0x2ae8], rax
test rax, rax
je 0x1400bcc09
mov rax, qword [rsi]
mov r8d, dword [r12 + 0x2ae0]
lea rdx, [rsi + 0x418]
mov rcx, rsi
call qword [rax + 0x158]
mov ebx, eax
test eax, eax
jne 0x1400bcf31
xor edi, edi
jmp 0x1400bcd2c
xor edi, edi
mov qword [r12 + 0x2ae8], rdi
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
test eax, eax
je 0x1400bcdb5
mov edx, 0x20
lea ecx, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r8, rax
mov qword [r12 + 0x2af8], rax
test rax, rax
je 0x1400bcd7b
mov rax, qword [rsi]
lea rdx, [rsi + 0x418]
mov rcx, rsi
call qword [rax + 0x160]
mov ebx, eax
jmp 0x1400bcd8a
mov ebx, 0x80010002
mov dword [0x1403b95bc], 2
cmp bx, 0x54
jne 0x1400bcdad
mov rcx, qword [r12 + 0x2af8]
test rcx, rcx
je 0x1400bcdb5
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [r12 + 0x2af8], rdi
jmp 0x1400bcdb5
test ebx, ebx
jne 0x1400bcf31
mov rax, qword [rsi]
lea r8, [r12 + 0x2b00]
lea rdx, [rsi + 0x418]
mov rcx, rsi
call qword [rax + 0xd8]
mov ebx, eax
test eax, eax
jne 0x1400bcf31
mov eax, dword [r12 + 0x2b00]
test eax, eax
je 0x1400bce35
mov edx, eax
imul rdx, rdx, 0x208
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r9, rax
mov qword [r12 + 0x2b08], rax
test rax, rax
je 0x1400bcc09
mov rax, qword [rsi]
mov r8d, dword [r12 + 0x2b00]
lea rdx, [rsi + 0x418]
mov rcx, rsi
call qword [rax + 0x168]
mov ebx, eax
test eax, eax
jne 0x1400bcf31
xor edi, edi
jmp 0x1400bce3f
xor edi, edi
mov qword [r12 + 0x2b08], rdi
mov rax, qword [rsi]
lea r8, [rsp + 0x30]
lea rdx, [rsi + 0x418]
mov rcx, rsi
call qword [rax + 0xd8]
mov ebx, eax
cmp dword [rsp + 0x30], 0xe0ffffee
je 0x1400bce9c
lea r8, str._t_t_tFILE_ST_RESDETAIL_PRN_is_not_found.
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140007780
mov dword [0x1403b95bc], 6
mov dword [rsp + 0x64], 0x80010006
lea rdx, [0x14038c778]
lea rcx, [rsp + 0x64]
call fcn.14024b7b0
test eax, eax
jne 0x1400bcf31
lea rdx, [r12 + 0x208]
mov qword [rsp + 0xb8], 7
mov qword [rsp + 0xb0], rdi
mov word [rsp + 0xa0], di
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0xa0]
call fcn.140001f40
mov qword [rsp + 0xc8], r12
lea rdx, [rsp + 0xa0]
lea rcx, [rsi + 0x640]
call fcn.1400c19c0
mov r8, rax
lea rdx, [rsp + 0x70]
lea rcx, [rsi + 0x640]
call fcn.1400a20e0
nop
cmp qword [rsp + 0xb8], 8
jb 0x1400bcf31
mov rcx, qword [rsp + 0xa0]
call fcn.1401026ec
inc r14d
jmp 0x1400bcbe0
test ebx, ebx
jne 0x1400bcfb8
mov rax, qword [rsi]
lea r8, [rsp + 0x30]
lea rdx, [rsi + 0x418]
mov rcx, rsi
call qword [rax + 0xd8]
mov ebx, eax
cmp dword [rsp + 0x30], 0xe0ffffff
je 0x1400bcf9a
lea r8, str._t_t_tFILE_ED_RESDETAIL_FILE_is_not_found.
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140007780
mov dword [0x1403b95bc], 6
mov dword [rsp + 0x50], 0x80010006
lea rdx, [0x14038c778]
lea rcx, [rsp + 0x50]
call fcn.14024b7b0
test eax, eax
jne 0x1400bcfb8
mov rax, qword [rsi]
lea r8, [rsp + 0x4c]
lea rdx, [rsi + 0x418]
mov rcx, rsi
call qword [rax + 0xd8]
mov ebx, eax
lea rdi, [rsi + 0x418]
lea rcx, [rdi + 0x10]
call fcn.1400ab900
test rax, rax
jne 0x1400bcfef
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1400bcfe7
or edx, 4
xor r8d, r8d
call fcn.1400015e0
test ebx, ebx
jne 0x1400bd033
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
lea rdx, [rsi + 0x210]
mov r8d, r15d
call qword [rax + 0x188]
cmp dword [rsp + 0x4c], eax
je 0x1400bd033
mov ebx, 0x80010052
mov dword [0x1403b95bc], 0x52
jmp 0x1400bd033
mov ebx, 0x80010005
mov dword [0x1403b95bc], 5
jmp 0x1400bd039
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.140007780
nop
lea rcx, [rsp + 0x38]
call fcn.140007730
mov eax, ebx
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret