Function at 0x140012700
Capabilities:
Delete file
Read .ini file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x240
mov rax, qword [0x140074c00]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r13, rcx
mov rbx, r8
mov rsi, rdx
lea rcx, [rsp + 0x32]
xor r14d, r14d
xor edx, edx
mov r8d, 0x1fe
mov r12d, 1
mov word [rsp + 0x30], r14w
call fcn.14003ea70
lea r9, [0x14007b800]
lea rdx, str.TonerRemain
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r11d, eax
movzx eax, byte [rsi + 2]
cmp eax, r11d
jne 0x140012803
lea r9, [0x14007b800]
lea rdx, str.TonerLow
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r11d, eax
movzx eax, byte [rsi + 3]
cmp eax, r11d
jne 0x140012803
mov edi, 5
mov ebp, edi
nop dword [rax]
lea r9, [0x14007b800]
lea r8, [0x140060588]
lea rdx, str.TonerStatusChange
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x140012874
sub ebp, r12d
jne 0x1400127b0
lea rcx, [0x14007b800]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [0x14007b800]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r8, [0x140060588]
jmp 0x14001285d
mov edi, 5
mov ebp, edi
nop word [rax + rax]
lea r9, [0x14007b800]
lea r8, [0x140061c30]
lea rdx, str.TonerStatusChange
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x140012874
sub ebp, r12d
jne 0x140012810
lea rcx, [0x14007b800]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [0x14007b800]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r8, [0x140061c30]
lea r9, [0x14007b800]
lea rdx, str.TonerStatusChange
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
movzx r9d, byte [rsi + 1]
lea r8, [0x140062300]
lea rcx, [rsp + 0x30]
mov edx, 0x200
call fcn.140004960
mov ebp, edi
lea r9, [0x14007b800]
lea r8, [rsp + 0x30]
lea rdx, str.SleepTime
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x1400128f1
sub ebp, r12d
jne 0x140012891
lea rcx, [0x14007b800]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [0x14007b800]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r9, [0x14007b800]
lea r8, [rsp + 0x30]
lea rdx, str.SleepTime
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
movzx r9d, byte [rsi + 2]
lea r8, [0x140062300]
lea rcx, [rsp + 0x30]
mov edx, 0x200
call fcn.140004960
mov ebp, edi
nop
lea r9, [0x14007b800]
lea r8, [rsp + 0x30]
lea rdx, str.TonerRemain
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x140012970
sub ebp, r12d
jne 0x140012910
lea rcx, [0x14007b800]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [0x14007b800]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r9, [0x14007b800]
lea r8, [rsp + 0x30]
lea rdx, str.TonerRemain
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
movzx r9d, byte [rsi + 3]
lea r8, [0x140062300]
lea rcx, [rsp + 0x30]
mov edx, 0x200
call fcn.140004960
mov ebp, edi
nop dword [rax]
lea r9, [0x14007b800]
lea r8, [rsp + 0x30]
lea rdx, str.TonerLow
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x1400129f0
sub ebp, r12d
jne 0x140012990
lea rcx, [0x14007b800]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [0x14007b800]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r9, [0x14007b800]
lea r8, [rsp + 0x30]
lea rdx, str.TonerLow
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x200
call fcn.14003ea70
cmp dword [r13 + 0x8c], 2
jne 0x140012a7f
xor edx, edx
lea rax, [rsp + 0x30]
lea r8, [rsi + 4]
lea r9d, [rdx + 0x20]
xor ecx, ecx
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r9, [0x14007b800]
lea r8, [rsp + 0x30]
lea rdx, str.JobOwner
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x140012b01
sub edi, r12d
jne 0x140012a30
lea rcx, [0x14007b800]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [0x14007b800]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r8, [rsp + 0x30]
jmp 0x140012aea
mov rax, qword [rsi + 4]
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
mov rax, qword [rsi + 0xc]
mov qword [rcx + 8], rax
mov rax, qword [rsi + 0x14]
mov qword [rcx + 0x10], rax
mov rax, qword [rsi + 0x1c]
mov qword [rcx + 0x18], rax
lea r9, [0x14007b800]
lea r8, [rsi + 4]
lea rdx, str.JobOwner
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x140012b01
sub edi, r12d
jne 0x140012aa3
lea rcx, [0x14007b800]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [0x14007b800]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r8, [rsi + 4]
lea r9, [0x14007b800]
lea rdx, str.JobOwner
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
movzx eax, byte [rsi]
and eax, 0x7f
cmp eax, 7
ja case.default.0x140012b23
lea rdx, [0x140002000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x10d50]
add rcx, rdx
jmp rcx
lea rcx, str.ParseDynamicStatus::printer_status_is_Initializing_0_
mov byte [rbx + 0x488], 0x80
mov byte [rbx + 0x489], 0x80
call fcn.140005be0
jmp 0x140012d1e
lea rcx, str.ParseDynamicStatus::printer_status_is_Sleeping_1_
mov byte [rbx + 0x488], 0x80
mov byte [rbx + 0x489], 0x85
call fcn.140005be0
jmp 0x140012d1e
mov byte [rbx + 0x488], 0x80
mov byte [rbx + 0x489], 0x82
jmp 0x140012d1e
mov byte [rbx + 0x488], 0x80
mov byte [rbx + 0x489], 0x83
jmp 0x140012d1e
mov byte [rbx + 0x488], 0x80
mov byte [rbx + 0x489], 0x84
jmp 0x140012d1e
mov eax, dword [rsi + 0x24]
not eax
test r12b, al
je 0x140012bc8
lea rcx, [0x140063298]
call fcn.140005be0
mov byte [rbx + 0x488], r12b
movzx eax, byte [rsi + 0x28]
mov byte [rbx + 0x489], al
jmp 0x140012d1e
test al, 2
je 0x140012bee
lea rcx, [0x1400632a8]
call fcn.140005be0
mov byte [rbx + 0x488], 2
movzx eax, byte [rsi + 0x29]
mov byte [rbx + 0x489], al
jmp 0x140012d1e
test al, 4
je 0x140012c5d
lea rcx, [0x1400632b8]
call fcn.140005be0
mov byte [rbx + 0x488], 4
movzx r8d, byte [rsi + 0x2a]
mov byte [rbx + 0x489], r8b
movzx ecx, byte [rsi + 0x2f]
mov edx, ecx
sub edx, r12d
je 0x140012c4c
sub edx, r12d
je 0x140012c3b
cmp edx, r12d
jne 0x140012d1e
add cl, r8b
add cl, 9
mov byte [rbx + 0x489], cl
jmp 0x140012d1e
add cl, r8b
add cl, 6
mov byte [rbx + 0x489], cl
jmp 0x140012d1e
add cl, r8b
add cl, 3
mov byte [rbx + 0x489], cl
jmp 0x140012d1e
test al, 0x10
je 0x140012c83
lea rcx, [0x1400632c8]
call fcn.140005be0
mov byte [rbx + 0x488], 0x10
movzx eax, byte [rsi + 0x2c]
mov byte [rbx + 0x489], al
jmp 0x140012d1e
test al, 8
je 0x140012ca6
lea rcx, [0x1400632d8]
call fcn.140005be0
mov byte [rbx + 0x488], 8
movzx eax, byte [rsi + 0x2b]
mov byte [rbx + 0x489], al
jmp 0x140012d1e
test al, 0x20
je 0x140012cc9
lea rcx, [0x1400632e8]
call fcn.140005be0
mov byte [rbx + 0x488], 0x20
movzx eax, byte [rsi + 0x2d]
mov byte [rbx + 0x489], al
jmp 0x140012d1e
test al, 0x40
je 0x140012cec
lea rcx, [0x1400632f8]
call fcn.140005be0
mov byte [rbx + 0x488], 0x40
movzx eax, byte [rsi + 0x2e]
mov byte [rbx + 0x489], al
jmp 0x140012d1e
lea rcx, [0x140063308]
call fcn.140005be0
mov r12d, r14d
mov byte [rbx + 0x488], 0x80
mov byte [rbx + 0x489], 0x86
jmp 0x140012d1e
mov byte [rbx + 0x488], 0x80
mov byte [rbx + 0x489], 0x88
jmp 0x140012d1e
mov r12d, r14d
mov eax, r12d
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14003d6d0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret