Function at 0x14007f860
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2eb0]
mov eax, 0x2fb0
call fcn.14024c240
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x2ff0], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x2ea0], rax
mov r15, r9
mov rsi, r8
mov r12, rdx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_GetAddPrinterInfo
lea rcx, [rsp + 0x50]
call fcn.1400075a0
nop
xor edx, edx
mov r8d, 0x1a74
lea rcx, [rsp + 0x70]
call fcn.14024b970
cmp qword [r15 + 8], 0
jne 0x14007f91a
lea r8, str._t_t_tInvalid_parameter.
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x50]
call fcn.140007780
nop
lea rcx, [rsp + 0x50]
call fcn.140007730
xor eax, eax
jmp 0x14008049a
xor edx, edx
mov r8d, 0x7b10
mov rcx, rsi
call fcn.14024b970
mov eax, dword [r12 + 0x1870]
mov dword [rsi + 0x4080], eax
mov eax, dword [r12 + 0x1870]
cmp eax, 3
je 0x14007f995
cmp eax, 5
je 0x14007f98c
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xa0]
mov dword [rsi + 0x4080], eax
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rsi + 0x1450]
mov r8, qword [rax]
mov rdx, rbx
mov rcx, rax
call qword [r8 + 0x20]
jmp 0x14007f9ac
lea rdx, str.Windows_x64
jmp 0x14007f99c
lea rdx, str.Windows_NT_x86
lea rbx, [rsi + 0x1450]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [rsi + 0x4080]
mov dword [rsp + 0x20], eax
mov r9d, dword [r12 + 0x1870]
lea r8, str._t_t_tnVersion_X___X
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14007fa22
lea r8, str._t_t_tINI_FILE_not_found
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x50]
call fcn.140007780
nop
lea rcx, [rsp + 0x50]
call fcn.140007730
xor eax, eax
jmp 0x14008049a
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r9, qword [rax]
mov r8, rbx
lea rdx, [rbp + 0x2c90]
mov rcx, rax
call qword [r9 + 0x238]
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r10, qword [rax]
mov dword [rsp + 0x20], 0x208
mov r9d, dword [r12 + 0x1870]
lea r8, [r12 + 0x618]
lea rdx, [r12 + 0x208]
mov rcx, rax
call qword [r10 + pe_nt_image_headers64]
lea r9, [r12 + 0x208]
lea r8, str._t_t_tSection_s_
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
lea rdx, [r12 + 0x1e8c]
mov r8d, 0x2c44
lea rcx, [rsi + 0x4ecc]
call fcn.140246c50
lea r9, [rsi + 0x4ecc]
lea r8, str._t_t_t_lpAddPrtInfo2__transfPrinterInfo__d
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov r8, qword [rax]
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [r8 + 0x18]
mov edi, dword [rbp + 0x2f10]
cmp edi, 1
jne 0x14007fc43
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x208
mov r9, rsi
lea r8, [rbp + 0x79c]
lea rdx, str.Printer_Name
lea rcx, [r12 + 0x208]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x14007fb39
cmp word [rsi], 0
jne 0x14007fb4a
lea rdx, [r12 + 0xa28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x208
lea r9, [rsi + 0x820]
lea r8, [rbp + 0xfbc]
lea rdx, str.Port_Name
lea rcx, [r12 + 0x208]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x14007fb88
cmp word [rsi + 0x820], 0
jne 0x14007fb9d
lea rdx, [r12 + 0xe38]
lea rcx, [rsi + 0x820]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x208
lea r9, [rsi + 0xc30]
lea r8, [rbp + 0x13cc]
lea rdx, str.Driver_Name
lea rcx, [r12 + 0x208]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x14007fbdb
cmp word [rsi + 0xc30], 0
jne 0x14007fbf0
lea rdx, [r12 + 0x618]
lea rcx, [rsi + 0xc30]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x208
lea r9, [rsi + 0x410]
lea r8, [rbp + 0xbac]
lea rdx, str.Share_Name
lea rcx, [r12 + 0x208]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x14007fc2e
cmp word [rsi + 0x410], 0
jne 0x14007fc43
lea rdx, [r12 + 0x1a7c]
lea rcx, [rsi + 0x410]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0x2490]
lea rdx, str.USEPRINTUI
mov rcx, rax
call qword [r9 + 0x18]
lea rdx, [0x1402e0308]
lea rcx, [rbp + 0x2490]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
xor r13d, r13d
test eax, eax
je 0x14007ff75
cmp edi, 1
jne 0x14007ff75
mov rdx, qword [r15 + 0x40]
lea rcx, [rsi + 0x1040]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, qword [r15 + 0x98]
lea rcx, [rsi + 0x4094]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r9, [rsi + 0x1040]
lea r8, str._t_t_tMonitor_Name_s_
lea edx, [rdi + 6]
lea rcx, [rsp + 0x50]
call fcn.140007780
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x1e60]
call fcn.14024b970
mov rdx, qword [r15 + 0x98]
lea rcx, [rbp + 0x1e60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1402eea1c]
lea rcx, [rbp + 0x1e60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1402dc4e0]
lea rcx, [rsi + 0x4094]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov rcx, qword [0x1403b9750]
test eax, eax
mov rax, qword [rcx]
je 0x14007fd3a
call qword [rax + 0x48]
lea r8, [rbp + 0x1e60]
jmp 0x14007fd44
call qword [rax + 0x48]
lea r8, [0x1402dc4e0]
mov r9, qword [rax]
lea rdx, str.USEMONITORFILE
mov rcx, rax
call qword [r9 + 0x20]
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x2490]
call fcn.14024b970
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xf0]
test eax, eax
je 0x14007feea
mov edi, dword [r12 + 0x1870]
cmp edi, 0x400
cmove edi, r13d
mov word [rbp + 0x1a40], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1a42]
call fcn.14024b970
mov word [rbp + 0x2280], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x2282]
call fcn.14024b970
mov word [rbp + 0x19f0], r13w
xor eax, eax
mov qword [rbp + 0x19f2], rax
mov dword [rbp + 0x19fa], eax
mov word [rbp + 0x19fe], ax
mov word [rbp + 0x1c50], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1c52]
call fcn.14024b970
test edi, edi
je 0x14007fe14
dec edi
mov ebx, r13d
nop word [rax + rax]
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r10, qword [rax]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], ebx
lea rcx, [rbp + 0x2280]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x1a40]
mov r8d, edi
lea rdx, [rsi + 0xc30]
mov rcx, rax
call qword [r10 + 0x328]
lea rdx, [0x1402dc4e0]
lea rcx, [rbp + 0x1a40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14007fe82
inc ebx
cmp ebx, 2
jl 0x14007fe20
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], 0x104
lea r9, [rbp + 0x1c50]
mov r8d, 8
lea rdx, [rbp + 0x19f0]
lea rcx, [rbp + 0x1a40]
call fcn.140247424
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x1c50]
lea r8, [rbp + 0x19f0]
mov edx, 0x400
lea rcx, [rbp + 0x2490]
call fcn.140248e70
jmp 0x14007ff0f
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0x2490]
lea rdx, str.TEMPPATH
mov rcx, rax
call qword [r9 + 0x18]
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r8, qword [rax]
lea rdx, [rbp + 0x2490]
mov rcx, rax
call qword [r8 + WSAStartup]
test eax, eax
jne 0x14007ff6f
lea r8, str._t_t_tCancel_Installation.__CopyMonitorFile_.
lea edx, [rax + 7]
lea rcx, [rsp + 0x50]
call fcn.140007780
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x50]
call fcn.140007780
nop
lea rcx, [rsp + 0x50]
call fcn.140007730
xor eax, eax
jmp 0x14008049a
mov edi, dword [rbp + 0x2f10]
call fcn.1400234c0
test eax, eax
je 0x14007ff86
test edi, edi
jne 0x140080246
mov rdx, qword [r15 + 0x18]
lea rcx, [rsi + 0x1658]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov qword [rsp + 0x40], 0x20
lea rax, [rbp + 0x1a00]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x104
lea rax, [rbp + 0x2070]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [r15 + 0x18]
call fcn.140247424
lea rax, [rbp + 0x1a00]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2070]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x104
lea rcx, [r12 + 0x1248]
call fcn.140248e70
lea r9, [rsi + 0x1658]
lea r8, str._t_t_tlpAddPrtInfo2__szDriverFile_s_
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
lea r9, [r12 + 0x1248]
lea r8, str._t_t_tlpszInfo__szDriverFile______s_
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
mov rdx, qword [r15 + 0x20]
lea rcx, [rsi + 0x1860]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov qword [rsp + 0x40], 0x20
lea rax, [rbp + 0x1a00]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x104
lea rax, [rbp + 0x2070]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [r15 + 0x20]
call fcn.140247424
lea rax, [rbp + 0x1a00]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2070]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x104
lea rcx, [r12 + 0x1450]
call fcn.140248e70
lea r9, [rsi + 0x1860]
lea r8, str._t_t_tlpAddPrtInfo2__szDataFile_s_
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
lea r9, [r12 + 0x1450]
lea r8, str._t_t_tlpszInfo__szDataFile______s_
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
mov rdx, qword [r15 + 0x28]
lea rcx, [rsi + 0x1a68]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov qword [rsp + 0x40], 0x20
lea rax, [rbp + 0x1a00]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x104
lea rax, [rbp + 0x2070]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [r15 + 0x28]
call fcn.140247424
lea rax, [rbp + 0x1a00]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2070]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x104
lea rcx, [r12 + 0x1658]
call fcn.140248e70
lea r9, [rsi + 0x1a68]
lea r8, str._t_t_tlpAddPrtInfo2__szConfigFile_s_
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
lea r9, [r12 + 0x1658]
lea r8, str._t_t_tlpszInfo__szConfigFile______s_
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
mov rdi, qword [r15 + 0x38]
cmp word [rdi], 0
je 0x1400801ff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [rax + 1]
add r13d, ebx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, str._t_t_tDepend_File___s____d_:__d__
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
lea rdi, [rdi + rbx*2]
cmp word [rdi], 0
jne 0x1400801c4
mov r8d, r13d
lea rcx, [rsi + 0x1c70]
mov rdx, qword [r15 + 0x38]
call fcn.140246c50
mov rdx, qword [r15 + 0x30]
lea rcx, [rsi + 0x3c70]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r9, [rsi + 0x3c70]
lea r8, str._t_t_tlpAddPrtInfo2__szDataFile_s_
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
mov edi, dword [rbp + 0x2f10]
cmp edi, 1
jne 0x140080426
lea r9, [rsi + 0x3e78]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x104
lea r8, [rsp + 0x70]
lea rdx, str.Data_Type
lea rcx, [r12 + 0x208]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea r9, [rsi + 0x1248]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x104
lea r8, [rbp + 0x178]
lea rdx, str.PrintProcessor
lea rcx, [r12 + 0x208]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ebx, ebx
mov word [rbp + 0x1c50], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1c52]
call fcn.14024b970
mov word [rbp + 0x1e60], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1e62]
call fcn.14024b970
mov word [rbp + 0x1a40], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1a42]
call fcn.14024b970
lea r9d, [rdi + 9]
mov r8d, 0x104
lea rdx, [rbp + 0x1c50]
mov ecx, dword [rbp + 0x380]
call fcn.1402499d0
lea r9d, [rdi + 9]
mov r8d, 0x104
lea rdx, [rbp + 0x1e60]
mov ecx, dword [rbp + 0x384]
call fcn.1402499d0
lea r9d, [rdi + 9]
mov r8d, 0x104
lea rdx, [rbp + 0x1a40]
mov ecx, dword [rbp + 0x388]
call fcn.1402499d0
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0x1c50]
lea r8, [rbp + 0x1c50]
lea rdx, str.Priority
lea rcx, [r12 + 0x208]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rbp + 0x1c50]
call fcn.14024740c
mov dword [rsi + 0x4084], eax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0x1e60]
lea r8, [rbp + 0x1e60]
lea rdx, str.TransmissionRetryTimeout
lea rcx, [r12 + 0x208]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rbp + 0x1e60]
call fcn.14024740c
imul eax, eax, 0x3e8
mov dword [rsi + 0x4088], eax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0x1a40]
lea r8, [rbp + 0x1a40]
lea rdx, str.DeviceNotSelectedTimeout
lea rcx, [r12 + 0x208]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rbp + 0x1a40]
call fcn.14024740c
imul eax, eax, 0x3e8
mov dword [rsi + 0x408c], eax
mov eax, dword [r12 + 0x1860]
mov dword [rsi + 0x4090], eax
call fcn.1400234c0
test eax, eax
je 0x140080441
test edi, edi
jne 0x140080452
lea rcx, [rsi + 0x46ac]
mov rdx, qword [r15 + 0x78]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov r9d, dword [rsi + 0x4080]
lea r8, str._t_t_tnVersion_X
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
lea rcx, [rsp + 0x50]
call fcn.140007780
nop
lea rcx, [rsp + 0x50]
call fcn.140007730
mov eax, 1
mov rcx, qword [rbp + 0x2ea0]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x2ff0]
add rsp, 0x2fb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret