Function at 0x414820
Capabilities:
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 0x47cbf1
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1b8
mov eax, dword [0x4a5018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x1a0], edi
mov eax, ecx
mov dword [ebp - 0x19c], eax
mov esi, dword [ebx + 8]
test eax, eax
je 0x414de2
test edi, edi
je 0x414de2
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x194]
xorps xmm0, xmm0
push eax
push 0
push edi
movups xmmword [ebp - 0x170], xmm0
movups xmmword [ebp - 0x138], xmm0
movq qword [ebp - 0x140], xmm0
movq qword [ebp - 0x128], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x41495b
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x170]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
movzx eax, word [ebp - 0x148]
mov dword [ebp - 0x124], eax
movzx eax, word [ebp - 0x146]
dec eax
mov dword [ebp - 0x128], eax
movzx eax, word [ebp - 0x142]
movq xmm0, qword [ebp - 0x128]
mov dword [ebp - 0x12c], eax
movzx eax, word [ebp - 0x140]
mov dword [ebp - 0x130], eax
movzx eax, word [ebp - 0x13e]
mov dword [ebp - 0x134], eax
movzx eax, word [ebp - 0x13c]
mov dword [ebp - 0x138], eax
movq qword [ebp - 0x140], xmm0
movups xmm0, xmmword [ebp - 0x138]
movups xmmword [ebp - 0x170], xmm0
push 0x104
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004573c0
add esp, 0xc
test esi, esi
je 0x414aa4
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, edi
jne 0x414aa4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 7
lea edx, [edi + eax*2]
xor eax, eax
mov ecx, edx
mov word [ebp - 0x138], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4149c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x138]
call fcn.00405dc0
lea edx, [ebp - 0x138]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x160]
call fcn.00414e20
cmp dword [eax + 0x14], 0x10
jb 0x4149fc
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x120]
call fcn.00414fe0
mov edx, dword [ebp - 0x14c]
cmp edx, 0x10
jb 0x414a42
mov ecx, dword [ebp - 0x160]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x414a38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414e02
push edx
push ecx
call fcn.00455202
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0xf
mov byte [ebp - 0x160], 0
cmp edx, 8
jb 0x414aa4
mov ecx, dword [ebp - 0x138]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414a9a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414e02
push edx
push ecx
call fcn.00455202
add esp, 8
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x414bd4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
mov dword [ebp - 0x138], 0
mov ecx, edx
mov dword [ebp - 0x128], 0
xor eax, eax
mov dword [ebp - 0x124], 7
mov word [ebp - 0x138], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414af0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x138]
call fcn.00405dc0
lea edx, [ebp - 0x138]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x160]
call fcn.00414e20
cmp dword [eax + 0x14], 0x10
jb 0x414b2c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x120]
call fcn.00414fe0
mov edx, dword [ebp - 0x14c]
cmp edx, 0x10
jb 0x414b72
mov ecx, dword [ebp - 0x160]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x414b68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414e07
push edx
push ecx
call fcn.00455202
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0xf
mov byte [ebp - 0x160], 0
cmp edx, 8
jb 0x414bd4
mov ecx, dword [ebp - 0x138]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414bca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414e07
push edx
push ecx
call fcn.00455202
add esp, 8
mov esi, dword [ebp - 0x19c]
xor edi, edi
mov ecx, esi
mov dword [ebp - 0x138], edi
xor eax, eax
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x124], 7
mov word [ebp - 0x138], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414c00
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x138]
call fcn.00405dc0
lea edx, [ebp - 0x138]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x160]
call fcn.00414e20
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x414c40
mov eax, dword [eax]
sub esp, 8
mov ecx, eax
call fcn.0044af10
mov byte [ebp - 4], 2
add esp, 8
mov edx, dword [ebp - 0x14c]
mov esi, eax
cmp edx, 0x10
jb 0x414c8d
mov ecx, dword [ebp - 0x160]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x414c83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414e0c
push edx
push ecx
call fcn.00455202
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0xf
mov byte [ebp - 0x160], 0
cmp edx, 8
jb 0x414cef
mov ecx, dword [ebp - 0x138]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414ce5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414e0c
push edx
push ecx
call fcn.00455202
add esp, 8
xor eax, eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 7
mov word [ebp - 0x138], ax
test esi, esi
je 0x414dd2
xorps xmm0, xmm0
lea eax, [ebp - 0x1c4]
movups xmmword [ebp - 0x1c0], xmm0
sub esp, 0x34
lea edx, [ebp - 0x120]
movups xmmword [ebp - 0x1b0], xmm0
mov ecx, esi
movups xmm0, xmmword [ebp - 0x170]
push eax
movups xmmword [ebp - 0x1c4], xmm0
movq xmm0, qword [ebp - 0x140]
movq qword [ebp - 0x1b4], xmm0
call fcn.0044b020
add esp, 0x38
test eax, eax
jne 0x414dc7
mov ecx, dword [ebp - 0x1a0]
lea edx, [ebp - 0x198]
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x13c]
push eax
call fcn.00414760
mov eax, dword [ebp - 0x198]
add esp, 4
test eax, eax
je 0x414dbc
push dword [ebp - 0x13c]
mov edx, eax
mov ecx, esi
call fcn.0044b5e0
add esp, 4
mov ecx, 1
test eax, eax
cmove edi, ecx
push dword [ebp - 0x198]
call fcn.00455405
add esp, 4
push ecx
mov ecx, esi
call fcn.0044b6f0
add esp, 4
mov ecx, esi
call fcn.0044b990
test edi, edi
jne 0x414dde
push dword [ebp - 0x19c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
jmp 0x414de4
xor eax, eax
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.00454d47
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00459a0a
call fcn.00459a0a
call fcn.00459a0a
int3