Function at 0x487b70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf73b
mov eax, dword fs:[0]
push eax
sub esp, 0xe88
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0xffffffff
mov edi, ecx
jne 0x487bad
mov dword [ebp + 8], 0x7fffffff
lea eax, [ebp - 0xe94]
push eax
call dword [sym.imp.MSVCR100.dll__time64]
lea ecx, [ebp - 0xe94]
push ecx
mov dword [ebp - 0xe94], eax
mov dword [ebp - 0xe90], edx
call dword [sym.imp.MSVCR100.dll__localtime64]
add esp, 8
cmp dword [edi + 0x30], 8
mov esi, eax
jb 0x487be3
mov eax, dword [edi + 0x1c]
jmp 0x487be6
lea eax, [edi + 0x1c]
lea edx, [ebp - 0x628]
push edx
lea ecx, [ebp - 0x830]
push ecx
lea edx, [ebp - 0xa38]
push edx
lea ecx, [ebp - 0xc40]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__wsplitpath]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
lea edx, [ebp - 0x628]
push edx
mov edx, dword [esi + 0x14]
push eax
inc ecx
push ecx
add edx, 0x76c
push edx
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0xa38]
push ecx
lea edx, [ebp - 0xc40]
push edx
push str._s_s_s__d__02d__02d_s
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll__snwprintf]
lea eax, [ebp - 0x218]
add esp, 0x3c
lea edx, [eax + 2]
xor ebx, ebx
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x487c60
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [edi + 0x1c]
call fcn.00405660
lea edx, [ebp - 0x218]
push 0x5c
push edx
call dword [sym.imp.MSVCR100.dll_wcsrchr]
xor ecx, ecx
add esp, 8
mov word [eax], cx
xor eax, eax
jmp 0x487ca0
movzx ecx, word [ebp + eax - 0x218]
mov word [ebp + eax - 0x420], cx
add eax, 2
cmp cx, bx
jne 0x487ca0
lea eax, [ebp - 0x420]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x487cc1
mov edx, dword [0x4e76d0]
mov cx, word [0x4e76d4]
mov dword [eax], edx
mov word [eax + 4], cx
lea eax, [ebp - 0x628]
mov edx, eax
jmp 0x487cf0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x487cf0
lea edi, [ebp - 0x420]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x487d06
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0xe8c]
push edx
lea eax, [ebp - 0x420]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCR100.dll__wfindfirst64i32]
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x487e77
jmp 0x487d50
test byte [ebp - 0xe8c], 0x10
jne 0x487e53
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xe94]
imul eax, eax, 0x15180
cdq
sub ecx, eax
mov eax, dword [ebp - 0xe90]
sbb eax, edx
cmp dword [ebp - 0xe80], eax
jg 0x487e53
jl 0x487d91
cmp dword [ebp - 0xe84], ecx
jae 0x487e53
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0xc48], 7
mov dword [ebp - 0xc4c], ebx
mov word [ebp - 0xc5c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x487db3
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0xc5c]
call fcn.00405660
push 1
push 0x4c7780
lea ecx, [ebp - 0xc5c]
mov dword [ebp - 4], ebx
call fcn.00409380
lea eax, [ebp - 0xe68]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x487df3
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xe68]
push eax
lea ecx, [ebp - 0xc5c]
call fcn.00409380
mov eax, dword [ebp - 0xc5c]
mov esi, 8
cmp dword [ebp - 0xc48], esi
jae 0x487e2e
lea eax, [ebp - 0xc5c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xc48], esi
jb 0x487e53
mov ecx, dword [ebp - 0xc5c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
lea edx, [ebp - 0xe8c]
push edx
push edi
call dword [sym.imp.MSVCR100.dll__wfindnext64i32]
add esp, 8
cmp eax, 0xffffffff
jne 0x487d50
push edi
call dword [sym.imp.MSVCR100.dll__findclose]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 4