Function at 0x140001200
Capabilities:
Check if file exists
Delete file

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0xd0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x140042020]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov r12, r8
mov rsi, rdx
mov rdi, rcx
lea rax, str._____________ENTER
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x63
lea r9, str...ES2DevMgrDVMFileIO.cpp
lea r8, str.CDVMFileIO::WriteDictionary
mov edx, 1
lea rcx, [0x1400457d0]
call fcn.140007dd0
mov bl, 1
mov qword [rsp + 0x68], 7
xor r13d, r13d
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
lea rdx, [rdi + 0x10]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.140001ad0
nop
lea r8d, [r13 + 1]
lea rdx, [0x14002e908]
lea rcx, [rsp + 0x50]
call fcn.140001cd0
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 + 0x50]
call fcn.140001cd0
cmp qword [rsp + 0x60], r13
je 0x1400012e4
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
jmp 0x1400012eb
lea rax, str.null
mov qword [rsp + 0x30], rax
lea rax, str.szFilePath___s
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x6a
lea r9, str...ES2DevMgrDVMFileIO.cpp
lea r8, str.CDVMFileIO::WriteDictionary
mov edx, 2
lea rcx, [0x1400457d0]
call fcn.140007dd0
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov qword [rsp + 0x90], 7
mov qword [rsp + 0x88], r13
mov word [rsp + 0x78], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x78]
call fcn.140001e30
lea rcx, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400013ac
lea rcx, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
mov eax, 1
je 0x1400013af
mov eax, r13d
test eax, eax
sete dil
cmp qword [rsp + 0x90], 8
jb 0x1400013cb
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
test dil, dil
je 0x14000147f
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov qword [rsp + 0x90], 7
mov qword [rsp + 0x88], r13
mov word [rsp + 0x78], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x78]
call fcn.140001e30
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0xa0]
call fcn.140028d00
nop
cmp qword [rsp + 0x90], 8
jb 0x140001446
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
lea rcx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 0x10
cmovae rcx, qword [rsp + 0xa0]
call qword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
cmp qword [rsp + 0xb8], 0x10
jb 0x14000147f
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
cmp qword [r12 + 0x10], 0
jne 0x1400014a0
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400014ec
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.140014cf0
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400014e7
lea rax, str.ES_JSON_INVALID_ERR
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x77
lea r9, str...ES2DevMgrDVMFileIO.cpp
lea r8, str.CDVMFileIO::WriteDictionary
mov edx, 2
lea rcx, [0x1400457d0]
call fcn.140007dd0
test edi, edi
sete bl
cmp qword [rsp + 0x68], 8
jb 0x140001500
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
nop
jmp 0x140001507
lea rcx, str.true
lea rax, str.false
test bl, bl
cmovne rax, rcx
mov qword [rsp + 0x38], rax
lea rax, str._____________LEAVE
mov qword [rsp + 0x30], rax
lea rax, str._s_return___s
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x80
lea r9, str...ES2DevMgrDVMFileIO.cpp
lea r8, str.CDVMFileIO::WriteDictionary
mov edx, 1
lea rcx, [0x1400457d0]
call fcn.140007dd0
movzx eax, bl
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140029670
add rsp, 0xd0
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret