Function at 0x140002d40
Capabilities:
Delete file

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x140042020]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rcx
xor ebx, ebx
mov r12d, ebx
mov qword [rsp + 0x38], rbx
mov qword [r11 - 0x198], 7
mov qword [r11 - 0x1a0], rbx
mov word [rsp + 0xe8], bx
lea r8d, [rbx + 0xa]
lea rdx, str.es2devedit
lea rcx, [r11 - 0x1b0]
call fcn.140001e30
nop
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0xe8]
call fcn.140002950
nop
cmp qword [rsp + 0x100], 8
jb 0x140002de7
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x100], 7
mov qword [rsp + 0xf8], rbx
mov word [rsp + 0xe8], bx
cmp qword [rsp + 0x170], 0
je 0x140002e42
mov r8d, 1
lea rdx, [0x14002e908]
lea rcx, [rsp + 0x160]
call fcn.140001cd0
mov r8d, 0xa
lea rdx, str.Connection
lea rcx, [rsp + 0x160]
call fcn.140001cd0
mov qword [rsp + 0x150], 7
mov qword [rsp + 0x148], rbx
mov word [rsp + 0x138], bx
mov r8d, 0x12
lea rdx, str.EPSONEpson_Scan_2
lea rcx, [rsp + 0x138]
call fcn.140001e30
nop
mov r8d, 1
lea rdx, [0x14002e908]
lea rcx, [rsp + 0x138]
call fcn.140001cd0
mov r8d, 0xa
lea rdx, str.Connection
lea rcx, [rsp + 0x138]
call fcn.140001cd0
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x50], ax
lea rcx, [rsp + 0x58]
call fcn.140003e30
nop
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbx
movss xmm0, dword [0x140032148]
movss dword [rsp + 0xa0], xmm0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x30]
mov r8d, 0x10
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400043b0
mov qword [rsp + 0x90], 7
mov qword [rsp + 0x98], 8
mov qword [rsp + 0x100], 7
mov qword [rsp + 0xf8], rbx
mov word [rsp + 0xe8], bx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0xe8]
call fcn.140001e30
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xe8]
call fcn.140014e90
nop
cmp qword [rsp + 0x100], 8
jb 0x140002f8b
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
cmp dword [0x140045834], 0
je 0x140002fa5
lea rdx, [rsp + 0x50]
lea rcx, [0x1400457d0]
call fcn.140008870
mov qword [rsp + 0x100], 7
mov qword [rsp + 0xf8], rbx
mov word [rsp + 0xe8], bx
mov r8d, 0xa
lea rdx, str.DeviceList
lea rcx, [rsp + 0xe8]
call fcn.140001e30
nop
mov rdi, qword [rsp + 0x58]
lea r8, [rsp + 0xe8]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140003860
cmp qword [rsp + 0x30], rdi
setne dil
cmp qword [rsp + 0x100], 8
jb 0x14000301a
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
test dil, dil
je 0x14000334b
mov qword [rsp + 0x128], 7
mov qword [rsp + 0x120], rbx
mov word [rsp + 0x110], bx
mov r8d, 0xa
lea rdx, str.DeviceList
lea rcx, [rsp + 0x110]
call fcn.140001e30
nop
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x50]
call fcn.140003660
mov rcx, qword [rax]
test rcx, rcx
je 0x140003084
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rsi, rax
mov qword [rsp + 0x30], rax
jmp 0x14000308c
mov rsi, rbx
mov qword [rsp + 0x30], rbx
cmp qword [rsp + 0x128], 8
jb 0x1400030a5
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x128], 7
mov qword [rsp + 0x120], rbx
mov word [rsp + 0x110], bx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xb8]
call fcn.140004630
nop
mov ecx, 0x38
cmp qword [rsp + 0x170], 0
je 0x14000315f
call qword [sym.imp.MSVCR100.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov r12, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14000315a
lea rdx, [rsp + 0x160]
cmp qword [rsp + 0x178], 8
cmovae rdx, qword [rsp + 0x160]
lea rax, vtable.CDVMFileIO.0
mov qword [r12], rax
mov dword [r12 + 8], ebx
mov qword [r12 + 0x28], 7
mov qword [r12 + 0x20], rbx
mov word [r12 + 0x10], bx
test rdx, rdx
je 0x140003158
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [r12 + 0x10]
call fcn.140001e30
nop
jmp 0x14000315d
mov r12, rbx
jmp 0x140003199
call qword [sym.imp.MSVCR100.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140003196
lea rdx, [rsp + 0x138]
cmp qword [rsp + 0x150], 8
cmovae rdx, qword [rsp + 0x138]
mov rcx, rax
call fcn.140001060
mov r12, rax
jmp 0x140003199
mov r12, rbx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x110], rbx
mov qword [rsp + 0x118], rbx
mov qword [rsp + 0x120], rbx
mov qword [rsp + 0x100], 7
mov qword [rsp + 0xf8], rbx
mov word [rsp + 0xe8], bx
mov r8d, 0xb
lea rdx, str.ConnectInfo
lea rcx, [rsp + 0xe8]
call fcn.140001e30
mov r8d, 4
lea r15, str..dat
mov rdx, r15
lea rcx, [rsp + 0xe8]
call fcn.140001cd0
lea rdx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 8
cmovae rdx, qword [rsp + 0xe8]
lea r8, [rsp + 0x110]
mov rcx, r12
call fcn.140001590
mov r14, qword [rsp + 0x110]
mov rdi, r14
mov r13, qword [rsp + 0x118]
cmp rdi, r13
je 0x140003266
cmp qword [rdi + 0x18], 8
jb 0x140003257
mov rcx, qword [rdi]
jmp 0x14000325a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
add rdi, 0x28
jmp 0x140003246
mov qword [rsp + 0x20], r15
lea r9, str.ConnectInfo
lea r8, str._s_s
mov edx, 0x64
lea rcx, [rsp + 0x190]
call qword [sym.imp.MSVCR100.dll_swprintf_s]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x190]
mov rcx, r12
call fcn.140001200
nop
cmp qword [rsp + 0x100], 8
jb 0x1400032bb
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x100], 7
mov qword [rsp + 0xf8], rbx
mov word [rsp + 0xe8], bx
test r14, r14
je 0x140003314
mov rdi, r14
nop
cmp rdi, r13
je 0x14000330a
cmp qword [rdi + 0x18], 8
jb 0x1400032f5
mov rcx, qword [rdi]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
add rdi, 0x28
jmp 0x1400032e0
mov rcx, r14
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
nop
lea rcx, [rsp + 0xb8]
call fcn.140003b90
nop
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0xb8], rbx
test rsi, rsi
je 0x14000334b
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000335b
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x58]
call fcn.140003ab0
nop
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
nop
cmp qword [rsp + 0x150], 8
jb 0x1400033a7
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x150], 7
mov qword [rsp + 0x148], rbx
mov word [rsp + 0x138], bx
cmp qword [rsp + 0x178], 8
jb 0x1400033dc
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x178], 7
mov qword [rsp + 0x170], rbx
mov word [rsp + 0x160], bx
jmp 0x1400033ff
test r12, r12
je 0x140003412
mov rax, qword [r12]
mov edx, 1
mov rcx, r12
call qword [rax]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140029670
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret