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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ccea2
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x101025ec]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea esi, [ecx + 0xc0]
mov edx, dword [ebp + 0xc]
mov eax, 0x4ec4ec4f
sub edx, dword [ebp + 8]
imul edx
mov dword [ebp - 0x8c], esi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp dword [esi + 0x14], 8
jb 0x1000d5f1
mov eax, dword [esi]
jmp 0x1000d5f3
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000d611
cmp dword [esi + 0x14], 8
jb 0x1000d608
mov eax, dword [esi]
jmp 0x1000d60a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x1000dae3
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x1c], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
and eax, 0xfffffe00
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x64], vtable.Json::FastWriter.0
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
mov word [ebp - 0x48], 0
mov byte [ebp - 0x46], 0
mov byte [ebp - 4], 3
test edi, edi
je 0x1000d944
xor esi, esi
mov dword [ebp - 0x90], esi
mov eax, dword [ebp + 8]
xor edx, edx
cmp byte [esi + eax + 0x30], dl
setne dl
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x80], esp
mov eax, edx
cdq
mov byte [ecx + 8], 1
and dword [ecx + 8], 0xfffffeff
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx], eax
mov dword [ecx + 4], edx
push ecx
push str.success
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.10028a90
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.10027f90
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x38], 0
movq qword [ebp - 0x34], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
and eax, 0xfffffe00
mov dword [ebp - 0x3c], eax
sub esp, 0x18
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
mov ecx, esp
xor edx, edx
add eax, esi
push 0xffffffffffffffff
push edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], dx
call fcn.10001790
lea ecx, [ebp - 0xa8]
call fcn.10004f40
mov ecx, esp
mov byte [ebp - 4], 7
mov dword [ebp - 0x84], esp
mov dword [ebp - 0x80], ecx
mov byte [ecx + 8], 4
or dword [ecx + 8], 0x100
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x1000d77e
mov eax, dword [eax]
mov ecx, eax
call fcn.10027b70
mov ecx, dword [ebp - 0x80]
mov dword [ecx], eax
push ecx
push str.filename
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 8
call fcn.10028a90
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.10027f90
mov byte [ebp - 4], 6
cmp dword [ebp - 0x94], 0x10
jb 0x1000d7c2
push dword [ebp - 0xa8]
call fcn.1002f7b8
add esp, 4
mov eax, dword [ebp + 8]
sub esp, 0x18
mov ecx, esp
xor edx, edx
add eax, 0x18
add eax, esi
push 0xffffffffffffffff
push edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], dx
call fcn.10001790
lea ecx, [ebp - 0xa8]
call fcn.10004f40
mov esi, esp
mov byte [ebp - 4], 9
mov dword [ebp - 0x84], esp
mov byte [esi + 8], 4
or dword [esi + 8], 0x100
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x1000d82d
mov eax, dword [eax]
mov ecx, eax
call fcn.10027b70
mov dword [esi], eax
push ecx
push 0x100f1918
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
call fcn.10028a90
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.10027f90
mov byte [ebp - 4], 6
cmp dword [ebp - 0x94], 0x10
jb 0x1000d86e
push dword [ebp - 0xa8]
call fcn.1002f7b8
add esp, 4
push ecx
push str.files
lea ecx, [ebp - 0x2c]
call fcn.10028a90
sub esp, 0x18
mov esi, eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x84], esp
mov ecx, esp
push eax
call fcn.10027d30
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.100286c0
push eax
mov ecx, esi
call fcn.10028750
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.10027f90
mov byte [ebp - 4], 3
movsx eax, byte [ebp - 0x3c]
cmp eax, 4
je 0x1000d8f1
add eax, 0xfffffffa
cmp eax, 1
ja 0x1000d905
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x1000d905
mov eax, dword [esi]
mov ecx, esi
push eax
push dword [eax]
lea eax, [ebp - 0x88]
push eax
call fcn.10029580
push dword [esi]
call fcn.1002f7b8
add esp, 4
push esi
call fcn.1002f7b8
jmp 0x1000d902
test dword [ebp - 0x3c], 0x100
je 0x1000d905
push dword [ebp - 0x44]
call fcn.100300d6
add esp, 4
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1000d928
push 0x10027c20
push dword [eax - 4]
lea esi, [eax - 4]
push 4
push eax
call fcn.1003768b
push esi
call fcn.10030bd4
add esp, 4
mov esi, dword [ebp - 0x90]
add esi, 0x34
mov dword [ebp - 0x90], esi
dec edi
jne 0x1000d683
mov esi, dword [ebp - 0x8c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x64]
call fcn.10024840
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x7c]
cmp dword [ebp - 0x68], 0x10
mov eax, dword [ebp - 0x6c]
cmovae edx, dword [ebp - 0x7c]
sub esp, 0x18
mov edi, esp
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x88], esp
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [edx], 0
jne 0x1000d98e
xor ecx, ecx
jmp 0x1000d9ad
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x8c], eax
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000d9a0
sub ecx, dword [ebp - 0x8c]
push ecx
push edx
mov ecx, edi
call fcn.10007fb0
mov byte [ebp - 4], 0xd
cmp dword [esi + 0x14], 8
jb 0x1000d9c2
mov esi, dword [esi]
sub esp, 0x18
xor eax, eax
mov edx, esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
cmp word [esi], ax
jne 0x1000d9e3
xor ecx, ecx
jmp 0x1000d9ff
mov ecx, esi
lea edi, [ecx + 2]
jmp 0x1000d9f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d9f0
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.10001b10
mov ecx, dword [ebp - 0x80]
mov byte [ebp - 4], 0xc
call fcn.10006500
add esp, 0x30
cmp dword [ebp - 0x68], 0x10
jb 0x1000da28
push dword [ebp - 0x7c]
call fcn.1002f7b8
add esp, 4
cmp dword [ebp - 0x4c], 0x10
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x64], vtable.Json::FastWriter.0
jb 0x1000da52
push dword [ebp - 0x60]
call fcn.1002f7b8
add esp, 4
mov byte [ebp - 4], 0
movsx eax, byte [ebp - 0x24]
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
mov dword [ebp - 0x64], vtable.Json::Writer.0
cmp eax, 4
je 0x1000daac
add eax, 0xfffffffa
cmp eax, 1
ja 0x1000dac0
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x1000dac0
mov eax, dword [esi]
mov ecx, esi
push eax
push dword [eax]
lea eax, [ebp - 0x88]
push eax
call fcn.10029580
push dword [esi]
call fcn.1002f7b8
add esp, 4
push esi
call fcn.1002f7b8
jmp 0x1000dabd
test dword [ebp - 0x24], 0x100
je 0x1000dac0
push dword [ebp - 0x2c]
call fcn.100300d6
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1000dae3
push 0x10027c20
push dword [eax - 4]
lea esi, [eax - 4]
push 4
push eax
call fcn.1003768b
push esi
call fcn.10030bd4
add esp, 4
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1000db04
push dword [ebp - 0x88]
mov edx, dword [ebp + 0xc]
push ecx
call fcn.10011210
push dword [ebp + 8]
call fcn.1002f7b8
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret 0xc