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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d6205
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x634254]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4ce0cb
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ce7cf
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x4c], ecx
jb 0x4ce0fd
mov esi, dword [esi]
mov eax, SysReAllocString
cmp ecx, 8
jae 0x4ce11d
movups xmm0, xmmword [esi]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 7
movups xmmword [ebp - 0x2c], xmm0
jmp 0x4ce1a1
mov edi, ecx
or edi, 7
cmp edi, eax
cmova edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4ce85b
add eax, eax
cmp eax, 0x1000
jb 0x4ce165
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4ce85b
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4ce7ef
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x4ce180
test eax, eax
je 0x4ce17e
push eax
call fcn.005a1c68
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4ce7fd
jmp 0x4ce180
xor ecx, ecx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], ecx
lea eax, [eax*2 + 2]
push eax
push esi
push ecx
call fcn.00570780
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x44], 0
push 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.005a1c68
mov edi, eax
add esp, 4
test edi, edi
je 0x4ce80b
movups xmm0, xmmword [str.tmp_123abc456def789hij.tmp]
mov eax, dword [0x6141f8]
mov dword [ebp - 0x34], 0x1a
movups xmmword [edi], xmm0
mov dword [ebp - 0x30], 0x1f
movups xmm0, xmmword [0x6141d8]
mov dword [ebp - 0x44], edi
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x6141e8]
movups xmmword [edi + 0x20], xmm0
mov dword [edi + 0x30], eax
xor eax, eax
mov word [edi + 0x34], ax
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x50], esi
test esi, esi
jne 0x4ce352
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x58], eax
cmp eax, 0x1a
jb 0x4ce25b
cmp eax, 8
mov dword [ebp - 0x1c], 0x1a
push 0x34
lea esi, [ebp - 0x2c]
cmovae esi, dword [ebp - 0x2c]
push edi
push esi
call fcn.00570d00
add esp, 0xc
xor eax, eax
mov word [esi + 0x34], ax
jmp 0x4ce70e
mov edx, eax
mov ecx, SysReAllocString
shr edx, 1
sub ecx, edx
cmp eax, ecx
jbe 0x4ce278
mov dword [ebp - 0x4c], SysReAllocString
mov eax, 0xfffffffe
jmp 0x4ce29e
add eax, edx
mov esi, 0x1f
cmp eax, esi
cmova esi, eax
mov dword [ebp - 0x4c], esi
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4ce85b
add eax, eax
cmp eax, 0x1000
jb 0x4ce2c5
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4ce85b
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4ce819
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4ce2e0
test eax, eax
je 0x4ce2de
push eax
call fcn.005a1c68
mov esi, eax
add esp, 4
test esi, esi
je 0x4ce827
jmp 0x4ce2e0
xor esi, esi
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0x1a
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x30]
movups xmmword [esi], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [esi + 0x20], xmm0
mov dword [esi + 0x30], eax
xor eax, eax
mov word [esi + 0x34], ax
mov eax, dword [ebp - 0x58]
cmp eax, 8
jb 0x4ce70b
mov ecx, dword [ebp - 0x2c]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ce343
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ce835
push edx
push ecx
call fcn.0056d0c8
add esp, 8
jmp 0x4ce70b
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp edi, 8
mov dword [ebp - 0x58], 0x2f
mov ecx, 0x5c
cmovae eax, edx
mov dword [ebp - 0x48], edi
movzx eax, word [eax + esi*2 - 2]
cmp word [ebp - 0x58], ax
je 0x4ce4fd
cmp cx, ax
je 0x4ce4fd
mov eax, edi
sub eax, esi
cmp eax, 1
jb 0x4ce3b4
cmp edi, 8
lea eax, [ebp - 0x2c]
lea ecx, [esi + 1]
cmovae eax, edx
mov dword [ebp - 0x1c], ecx
mov edx, 0x5c
mov word [eax + esi*2], dx
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x4ce4ec
mov ecx, SysReAllocString
mov eax, ecx
sub eax, esi
cmp eax, 1
jb 0x4ce83a
lea eax, [esi + 1]
mov edx, eax
mov dword [ebp - 0x5c], eax
or edx, 7
cmp edx, ecx
jbe 0x4ce3e1
mov eax, ecx
mov dword [ebp - 0x50], eax
mov eax, 0xfffffffe
jmp 0x4ce424
mov eax, edi
shr eax, 1
mov dword [ebp - 0x58], eax
mov eax, ecx
mov ecx, dword [ebp - 0x58]
sub eax, ecx
cmp edi, eax
jbe 0x4ce402
mov eax, SysReAllocString
mov dword [ebp - 0x50], eax
mov eax, 0xfffffffe
jmp 0x4ce424
lea eax, [ecx + edi]
cmp edx, eax
cmovb edx, eax
mov dword [ebp - 0x50], edx
lea eax, [edx + 1]
cmp eax, 0x7fffffff
ja 0x4ce85b
add eax, eax
cmp eax, 0x1000
jb 0x4ce450
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4ce85b
push ecx
call fcn.005a1c68
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4ce83f
mov edx, dword [ebp - 0x50]
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4ce46f
test eax, eax
je 0x4ce46d
push eax
call fcn.005a1c68
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4ce84d
mov edx, dword [ebp - 0x50]
jmp 0x4ce472
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x18], edx
lea ecx, [esi + 1]
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x1c], ecx
lea ecx, [esi + esi]
lea esi, [ecx + eax]
mov dword [ebp - 0x58], esi
lea edx, [eax + edx*2]
mov dword [ebp - 0x4c], edx
push ecx
cmp edi, 8
jb 0x4ce588
mov esi, dword [ebp - 0x2c]
push esi
push eax
call fcn.00570780
mov eax, dword [ebp - 0x58]
lea edi, [edi*2 + 2]
mov edx, 0x5c
xor ecx, ecx
add esp, 0xc
mov word [eax], dx
mov eax, dword [ebp - 0x4c]
mov word [eax], cx
cmp edi, 0x1000
jb 0x4ce4dc
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x4ce835
mov esi, ecx
push edi
push esi
call fcn.0056d0c8
mov eax, dword [ebp - 0x48]
add esp, 8
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x18]
mov ecx, 0x5c
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x50], esi
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov edx, 0x2f
mov dword [ebp - 0x4c], 0
cmovae eax, dword [ebp - 0x44]
movzx eax, word [eax]
cmp dx, ax
je 0x4ce521
cmp cx, ax
jne 0x4ce528
mov dword [ebp - 0x4c], 1
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x34]
cmovae ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx + eax*2]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
lea edx, [eax + edx*2]
mov eax, edi
sub ecx, edx
mov dword [ebp - 0x58], edx
sar ecx, 1
sub eax, esi
mov dword [ebp - 0x5c], ecx
cmp ecx, eax
ja 0x4ce5be
cmp dword [ebp - 0x48], 8
lea edi, [esi + ecx]
lea eax, [ecx + ecx]
mov dword [ebp - 0x1c], edi
push eax
mov eax, dword [ebp - 0x50]
lea esi, [ebp - 0x2c]
cmovae esi, dword [ebp - 0x2c]
push edx
lea eax, [esi + eax*2]
push eax
call fcn.00570d00
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4ce70e
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.00570780
mov eax, dword [ebp - 0x4c]
mov edx, 0x5c
mov word [esi], dx
add esp, 0xc
mov edi, dword [ebp - 0x18]
xor ecx, ecx
mov esi, dword [ebp - 0x1c]
mov word [eax], cx
mov ecx, edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x50], esi
jmp 0x4ce4fd
mov edx, dword [ebp - 0x5c]
mov ecx, SysReAllocString
mov eax, ecx
sub eax, esi
cmp eax, edx
jb 0x4ce860
lea eax, [esi + edx]
mov esi, eax
mov dword [ebp - 0x4c], eax
or esi, 7
cmp esi, ecx
jbe 0x4ce5eb
mov dword [ebp - 0x48], ecx
mov eax, 0xfffffffe
jmp 0x4ce624
mov eax, edi
shr eax, 1
sub ecx, eax
cmp edi, ecx
jbe 0x4ce603
mov dword [ebp - 0x48], SysReAllocString
mov eax, 0xfffffffe
jmp 0x4ce624
add eax, edi
cmp esi, eax
cmovb esi, eax
mov dword [ebp - 0x48], esi
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4ce85b
add eax, eax
cmp eax, 0x1000
jb 0x4ce64b
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4ce85b
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4ce865
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4ce666
test eax, eax
je 0x4ce664
push eax
call fcn.005a1c68
mov esi, eax
add esp, 4
test esi, esi
je 0x4ce873
jmp 0x4ce666
xor esi, esi
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x50]
lea ecx, [eax + eax]
mov eax, dword [ebp - 0x5c]
add eax, eax
mov dword [ebp - 0x48], eax
lea eax, [esi + ecx]
mov dword [ebp - 0x50], eax
push ecx
cmp edi, 8
jb 0x4ce6e7
mov eax, dword [ebp - 0x2c]
push eax
push esi
mov dword [ebp - 0x5c], eax
call fcn.00570780
push dword [ebp - 0x48]
push dword [ebp - 0x58]
push dword [ebp - 0x50]
call fcn.00570780
mov eax, dword [ebp - 0x4c]
lea edi, [edi*2 + 2]
xor ecx, ecx
add esp, 0x18
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x5c]
cmp edi, 0x1000
jb 0x4ce6db
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ce835
mov eax, ecx
push edi
push eax
call fcn.0056d0c8
add esp, 8
jmp 0x4ce70b
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.00570780
push dword [ebp - 0x48]
push dword [ebp - 0x58]
push dword [ebp - 0x50]
call fcn.00570780
mov eax, dword [ebp - 0x4c]
add esp, 0x18
xor ecx, ecx
mov word [esi + eax*2], cx
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x4ce748
mov edx, dword [ebp - 0x44]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4ce73e
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ce881
push ecx
push edx
call fcn.0056d0c8
add esp, 8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
jne 0x4ce775
xor esi, esi
jmp 0x4ce793
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov esi, 1
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4ce7cd
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ce7c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ce886
push edx
push ecx
call fcn.0056d0c8
add esp, 8
mov eax, esi
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.0056d855
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push 0x630328
lea eax, [ebp - 0x51]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x52]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x5d]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x52]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x51]
push eax
call fcn.0057134b
call fcn.0057b201
call fcn.004072dc
push 0x630328
lea eax, [ebp - 0x52]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x51]
push eax
call fcn.0057134b
call fcn.00407541
call fcn.004072dc
push 0x630328
lea eax, [ebp - 0x5e]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x5f]
push eax
call fcn.0057134b
call fcn.0057b201
call fcn.0057b201
int3