Function at 0x10034f80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10163a6c
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp + 8]
call fcn.10017430
push 0
mov edi, str.timestamps
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.100164f0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x10034fee
cmp eax, 0x2f
je 0x10034fee
lea ecx, [ebp + 8]
push ecx
mov eax, 0x10197e18
call fcn.10016730
mov esi, dword [ebp - 0x10]
lea edx, [ebp + 8]
push edx
mov eax, esi
call fcn.10016730
mov byte [ebp - 4], 0
test esi, esi
je 0x1003501d
lea eax, [esi - 0xc]
test eax, eax
je 0x1003501d
dec dword [esi - 0xc]
lea eax, [esi - 0xc]
jne 0x1003501d
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov esi, dword [ebx]
test esi, esi
je 0x10035059
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x10035039
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
cmp byte [esi + 0xc], 0
je 0x10035048
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebx]
test esi, esi
je 0x10035053
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 - 0x10], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x1003508f
mov edi, dword [ebp + 8]
push 0
call fcn.100164f0
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0
mov byte [esi + 0xc], 0
jmp 0x10035091
xor esi, esi
mov dword [ebx], esi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x100350a9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
cmp byte [esi + 0xc], 0
je 0x100350b8
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10035126
call fcn.10023ad0
mov dword [esi + 8], eax
mov edx, dword [ebx]
mov eax, dword [edx + 8]
test eax, eax
jle 0x100350f0
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x10035111
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10035111
add eax, 0xfffffff4
dec dword [eax]
jne 0x10035111
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x190
lea edx, [ebx + 4]
push 0xffffffffffffffff
push edx
mov dword [esi + 4], eax
mov byte [esi + 0xc], 0
mov dword [esi + 8], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edi, ebx
call fcn.100355a0
mov esi, eax
mov eax, dword [ebp + 8]
test esi, esi
js 0x100350f5
mov byte [ebx + 0x194], 0
test eax, eax
je 0x1003517a
lea edx, [eax - 0xc]
test edx, edx
je 0x1003517a
add eax, 0xfffffff4
dec dword [eax]
jne 0x1003517a
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
mov esp, ebp
pop ebp
ret 4