Function at 0x140088380
Capabilities:
Delete file

Disassembly:
jmp 0x140088380
mov r11, rsp
mov byte [r11 + 0x18], r8b
mov qword [r11 + 0x10], rdx
push rbx
push rsi
push rdi
push r14
sub rsp, 0x1c8
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1401199f8]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
movdqa xmm0, xmmword [0x1400d1c80]
movdqu xmmword [r11 - 0x68], xmm0
mov word [r11 - 0x78], bx
test r9, r9
je 0x1400883ff
lea rax, [r11 - 0x78]
cmp rax, r9
je 0x1400883ff
mov rdx, r9
cmp qword [r9 + 0x18], 8
jb 0x1400883ee
mov rdx, qword [r9]
mov r8, qword [r9 + 0x10]
lea rcx, [rsp + 0x170]
call fcn.140001f5f
cmp byte [rdi + 0x18], 0
je 0x14008872d
lea rcx, str.BINIO_LOG
call fcn.140003170
cmp dword [rax], 0
je 0x140088708
lea rcx, [rsp + 0x48]
call fcn.140002a09
nop
lea rcx, [rsp + 0x48]
call fcn.140001b8b
mov rsi, rax
test rax, rax
je 0x1400886ca
lea rax, [0x1400cc6e0]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0xe8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x30], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x60], r14
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x68], rax
mov qword [rsp + 0xd0], rbx
mov dword [rsp + 0xd8], 4
xor r8d, r8d
mov rdx, qword [rdi + 0x20]
lea rcx, [rsp + 0x190]
call fcn.140002e32
mov rbx, rax
lea rdx, str.WinHandle::Reset_closing
lea rcx, [rsp + 0x60]
call fcn.14000200e
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140088501
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14000131b
nop
mov rdx, qword [rsp + 0x1a8]
cmp rdx, 0x10
jb 0x140088554
inc rdx
mov rcx, qword [rsp + 0x190]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008854e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008854e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001785
nop
movdqa xmm0, xmmword [0x1400ccc50]
movdqu xmmword [rsp + 0x160], xmm0
mov byte [rsp + 0x150], 0
mov dword [rsp + 0x30], 5
mov ecx, dword [rsp + 0xd8]
test cl, 2
jne 0x1400885c4
mov rax, qword [rsp + 0xa8]
mov r8, qword [rax]
test r8, r8
je 0x1400885c4
mov rax, qword [rsp + 0x88]
mov rdx, qword [rax]
mov qword [rsp + 0x40], r8
cmp r8, qword [rsp + 0xd0]
cmovb r8, qword [rsp + 0xd0]
sub r8, rdx
lea rcx, [rsp + 0x150]
call fcn.140002b8a
jmp 0x140088603
test cl, 4
jne 0x140088603
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
test rcx, rcx
je 0x140088603
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax]
mov rax, qword [rsp + 0xb8]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
lea rcx, [rsp + 0x150]
call fcn.140002b8a
nop
lea rax, [rsp + 0x150]
cmp qword [rsp + 0x168], 0x10
cmovae rax, qword [rsp + 0x150]
mov qword [rsp + 0x20], rax
lea r9, [0x1400ceb78]
mov r8d, 0x24
lea rdx, str.e:w64rel20200312.r.121photoshopmain_sharedpsutil_sourceswinwinhandle.cpp
mov rcx, rsi
call fcn.1400018d4
mov rdx, qword [rsp + 0x168]
cmp rdx, 0x10
jb 0x140088685
inc rdx
mov rcx, qword [rsp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008867f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008867f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001785
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x60], r14
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call fcn.140002761
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0xe8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x140088701
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140088701
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140088701
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x140088708
jmp 0x14008870f
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rdi + 0x28]
cmp qword [rcx + 0x18], 8
jb 0x140088727
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rsp + 0x1f8]
mov qword [rdi + 0x20], rax
movzx eax, byte [rsp + 0x200]
mov byte [rdi + 0x18], al
movups xmm0, xmmword [rdi + 0x28]
movups xmmword [rsp + 0x190], xmm0
movups xmm2, xmmword [rdi + 0x38]
movups xmm0, xmmword [rsp + 0x170]
movups xmmword [rdi + 0x28], xmm0
movups xmm1, xmmword [rsp + 0x180]
movups xmmword [rdi + 0x38], xmm1
psrldq xmm2, 8
movq rdx, xmm2
cmp rdx, 8
jb 0x1400887b9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x190]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400887b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400887b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001785
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140001c17
add rsp, 0x1c8
pop r14
pop rdi
pop rsi
pop rbx
ret