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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012936e
mov eax, dword fs:[0]
push eax
sub esp, 0x3e8
mov eax, dword [0x10176120]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c0], ecx
mov eax, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x2c4], eax
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.100da4a0
add esp, 0xc
call fcn.1000e2a0
lea ecx, [ebp - 0x2b8]
push ecx
mov ecx, eax
call fcn.10029bd0
push str.usercenter.set
push dword [eax]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edx, dword [ebp - 0x2b8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100198bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x21c]
xor edi, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10019c36
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
lea eax, [ebp - 0x234]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.100146f0
add esp, 8
test eax, eax
je 0x10019ae4
xorps xmm0, xmm0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x29c]
movups xmmword [ebp - 0x29c], xmm0
movups xmmword [ebp - 0x28c], xmm0
call fcn.1003a880
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 2
call fcn.1003c8d0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24c]
push edi
mov esi, eax
movq qword [ebp - 0x23c], xmm0
movups xmmword [ebp - 0x24c], xmm0
call fcn.100362d0
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x250], 0xf
mov byte [ebp - 0x264], 0
cmp dword [ebp - 0x220], 0x10
lea edx, [ebp - 0x234]
mov eax, dword [esi]
cmovae edx, dword [ebp - 0x234]
mov ecx, edx
mov byte [ebp - 4], 4
mov eax, dword [eax + 4]
mov dword [ebp - 0x2bc], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x2b8], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100199a0
sub ecx, dword [ebp - 0x2b8]
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [edx + ecx]
mov ecx, esi
push eax
push edx
call dword [ebp - 0x2bc]
test al, al
je 0x10019aae
cmp dword [ebp - 0x254], 0
jne 0x10019aae
mov eax, dword [ebp - 0x2c0]
xorps xmm0, xmm0
add eax, 0x40
movq qword [ebp - 0x26c], xmm0
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x27c]
push eax
movups xmmword [ebp - 0x27c], xmm0
call fcn.10014c40
add esp, 0xc
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 5
call fcn.10038220
test al, al
je 0x10019a60
lea ecx, [ebp - 0x27c]
call fcn.100367d0
lea ecx, [ebp - 0x264]
call fcn.10007680
lea ecx, [ebp - 0x24c]
call fcn.100367d0
lea ecx, [ebp - 0x29c]
call fcn.1003a9a0
lea ecx, [ebp - 0x234]
call fcn.10007680
xor eax, eax
jmp 0x10019c38
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x24c]
call fcn.10039fb0
cmp dword [ebp - 0x2a4], 0
mov byte [ebp - 4], 6
je 0x10019a91
mov ecx, dword [ebp - 0x2c4]
lea eax, [ebp - 0x2b4]
push eax
call fcn.10019380
lea ecx, [ebp - 0x2b4]
mov edi, 1
call fcn.10007680
lea ecx, [ebp - 0x27c]
call fcn.100367d0
jmp 0x10019abb
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea ecx, [ebp - 0x264]
call fcn.10007680
lea ecx, [ebp - 0x24c]
call fcn.100367d0
lea ecx, [ebp - 0x29c]
call fcn.1003a9a0
mov edx, dword [ebp - 0x220]
cmp edx, 0x10
jb 0x10019c36
mov ecx, dword [ebp - 0x234]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10019c2c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10019c56
jmp 0x10019c2c
push edx
push ecx
call fcn.1003171c
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10031a8d
mov esp, ebp
pop ebp
ret 4
call fcn.100ddb23
int3