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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c39d
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x54b144]
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 0x487bb5
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004dcc10
push 0x104
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.004f29e9
add esp, 0x18
test eax, eax
je 0x487bb5
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x410
jne 0x487bb5
test al, 2
je 0x4877e4
push 0x80
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4877e4
lea eax, [ebp - 0x21c]
push eax
push str.QMTFunction::DeleteFile_setAttri_error_File:_s.
push 0x54bba8
call fcn.0048d420
add esp, 0xc
lea ecx, [ebp - 0x21c]
call fcn.0048a1a0
test al, al
je 0x487bb5
call fcn.004501e0
test eax, eax
je 0x487bd3
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.0044f2b0
test al, al
jne 0x487862
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487840
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.0044f440
mov dword [ebp - 4], 1
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x487bd3
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.0044f2b0
test al, al
jne 0x4878b0
push 5
push str.File:
lea ecx, [ebp - 0x220]
call fcn.0044f440
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x224]
mov esi, dword [ebp - 0x220]
push edi
push esi
push 0x533fb4
push 0x54bba8
call fcn.0048d420
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 0x4878f2
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 0x487910
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 0x487bb7
cmp dword [ebp + 0xc], eax
je 0x487bb7
call fcn.004501e0
test eax, eax
je 0x487bd3
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.0044f2b0
test al, al
jne 0x487999
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487977
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.0044f440
push 4
lea eax, [ebp - 0x22c]
mov dword [ebp - 4], 5
push eax
lea ecx, [ebp - 0x228]
call fcn.0048bd20
mov ecx, str..tmp
mov eax, dword [eax]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4879e6
test dx, dx
je 0x4879e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4879e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4879c0
xor esi, esi
jmp 0x4879eb
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 0x487a08
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x228]
test esi, esi
je 0x487b9c
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x487bdd
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.004dd4a7
add esp, 8
test eax, eax
jne 0x487a4b
or eax, 0xffffffff
jmp 0x487a4f
sub eax, edi
sar eax, 1
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x228]
call fcn.0048cd70
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 0x487a90
push 0x104
lea ecx, [ebp - 0x224]
call fcn.0044f690
mov esi, dword [ebp - 0x224]
push esi
push 0
push 0x5323dc
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push dword [esi - 8]
mov dword [ebp - 0x230], eax
push esi
call fcn.004e022f
add esp, 8
test eax, eax
js 0x487be7
cmp eax, dword [esi - 8]
jg 0x487be7
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x230], ecx
jne 0x487afb
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push str._s.tmp
push eax
call fcn.0048cb40
mov esi, dword [ebp - 0x224]
add esp, 0xc
jmp 0x487b02
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.004e4479
add esp, 8
push 4
push 0
test eax, eax
jne 0x487b23
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x487b36
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 0x487b57
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 0x487b72
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 0x487bb7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
jmp 0x487bb7
push 4
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x220], eax
jmp 0x487b78
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.004dafe6
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00450130
push 0x80004005
call fcn.00450130
push 0x80070057
call fcn.00450130
int3