Function at 0x10035190
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10164b6c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.10017430
push 0
mov edi, str.timestamps
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.100164f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 4]
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x10035203
cmp eax, 0x2f
je 0x10035203
lea ecx, [ebp - 0x10]
push ecx
mov eax, 0x10197e18
call fcn.10016730
mov esi, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
mov eax, esi
call fcn.10016730
mov byte [ebp - 4], 0
test esi, esi
je 0x10035232
lea eax, [esi - 0xc]
test eax, eax
je 0x10035232
dec dword [esi - 0xc]
lea eax, [esi - 0xc]
jne 0x10035232
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov esi, dword [ebx]
test esi, esi
je 0x1003526e
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x1003524e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
cmp byte [esi + 0xc], 0
je 0x1003525d
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebx]
test esi, esi
je 0x10035268
call fcn.1002e860
mov dword [ebx], 0
push 0x10
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x100352a4
mov edi, dword [ebp - 0x10]
push 0
call fcn.100164f0
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0
mov byte [esi + 0xc], 0
jmp 0x100352a6
xor esi, esi
mov byte [ebp - 4], 0
mov dword [ebx], esi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x100352c2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
cmp byte [esi + 0xc], 0
je 0x100352d1
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call edi
cmp eax, 0xffffffff
jne 0x1003538e
call fcn.10023ad0
mov dword [esi + 8], eax
mov esi, dword [ebx]
cmp dword [esi + 8], 5
jne 0x1003534e
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x1003531a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
cmp byte [esi + 0xc], 0
je 0x10035329
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call edi
cmp eax, 0xffffffff
jne 0x100353d8
call fcn.10023ad0
mov dword [esi + 8], eax
mov edx, dword [ebx]
cmp dword [edx + 8], 2
jne 0x100353fb
mov eax, dword [ebp + 8]
push eax
call fcn.10034f80
test eax, eax
jns 0x100353ed
mov edi, ebx
mov byte [ebx + 0x194], 1
call fcn.10035450
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10035428
lea edx, [eax - 0xc]
test edx, edx
jmp 0x10035415
mov dword [esi + 4], eax
mov byte [esi + 0xc], 0
mov dword [esi + 8], 0
mov eax, dword [ebp - 0x10]
mov byte [ebx + 0x194], 0
test eax, eax
je 0x100353c2
lea edx, [eax - 0xc]
test edx, edx
je 0x100353c2
add eax, 0xfffffff4
dec dword [eax]
jne 0x100353c2
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 4], eax
mov byte [esi + 0xc], 0
mov dword [esi + 8], 0
mov byte [ebx + 0x194], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100353c2
lea ecx, [eax - 0xc]
test ecx, ecx
jmp 0x100353af
mov edi, ebx
mov byte [ebx + 0x194], 1
call fcn.10035450
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10035428
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10035428
add eax, 0xfffffff4
dec dword [eax]
jne 0x10035428
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4