Function at 0x487920
Capabilities:
Delete file
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50fa7d
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x550144]
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
mov esi, dword [ebp + 8]
test esi, esi
je 0x487da5
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004e02e0
push 0x104
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.004f61a9
add esp, 0x18
test eax, eax
je 0x487da5
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x410
jne 0x487da5
test al, 2
je 0x4879d4
push 0x80
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4879d4
lea eax, [ebp - 0x21c]
push eax
push str.QMTFunction::DeleteFile_setAttri_error_File:_s.
push 0x550bb8
call fcn.0048d880
add esp, 0xc
lea ecx, [ebp - 0x21c]
call fcn.0048a390
test al, al
je 0x487da5
call fcn.00450310
test eax, eax
je 0x487dc3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x224]
call fcn.0044f3f0
test al, al
jne 0x487a52
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487a30
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.0044f580
mov dword [ebp - 4], 1
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x487dc3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push str.File:
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.0044f3f0
test al, al
jne 0x487aa0
push 5
push str.File:
lea ecx, [ebp - 0x220]
call fcn.0044f580
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x224]
mov esi, dword [ebp - 0x220]
push edi
push esi
push 0x53814c
push 0x550bb8
call fcn.0048d880
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add esp, 0x10
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x487ae2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x487b00
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x487da7
cmp dword [ebp + 0xc], eax
je 0x487da7
call fcn.00450310
test eax, eax
je 0x487dc3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x228]
call fcn.0044f3f0
test al, al
jne 0x487b89
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487b67
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.0044f580
push 4
lea eax, [ebp - 0x22c]
mov dword [ebp - 4], 5
push eax
lea ecx, [ebp - 0x228]
call fcn.0048c180
mov ecx, str..tmp
mov eax, dword [eax]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x487bd6
test dx, dx
je 0x487bd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x487bd6
add eax, 4
add ecx, 4
test dx, dx
jne 0x487bb0
xor esi, esi
jmp 0x487bdb
sbb esi, esi
or esi, 1
mov edx, dword [ebp - 0x22c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x487bf8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x228]
test esi, esi
je 0x487d8c
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x487dcd
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
push 0x5c
push edi
mov byte [ebp - 4], 6
call fcn.004e0b77
add esp, 8
test eax, eax
jne 0x487c3b
or eax, 0xffffffff
jmp 0x487c3f
sub eax, edi
sar eax, 1
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x228]
call fcn.0048d1d0
mov byte [ebp - 4], 7
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x487c80
push 0x104
lea ecx, [ebp - 0x224]
call fcn.0044f7d0
mov esi, dword [ebp - 0x224]
push esi
push 0
push 0x53656c
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push dword [esi - 8]
mov dword [ebp - 0x230], eax
push esi
call fcn.004e38fd
add esp, 8
test eax, eax
js 0x487dd7
cmp eax, dword [esi - 8]
jg 0x487dd7
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x230], ecx
jne 0x487ceb
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push str._s.tmp
push eax
call fcn.0048cfa0
mov esi, dword [ebp - 0x224]
add esp, 0xc
jmp 0x487cf2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.004e7b47
add esp, 8
push 4
push 0
test eax, eax
jne 0x487d13
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x487d26
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x487d47
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x487d62
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x487da7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
jmp 0x487da7
push 4
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x220], eax
jmp 0x487d68
xor eax, eax
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.004de51d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00450260
push 0x80004005
call fcn.00450260
push 0x80070057
call fcn.00450260
int3