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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f65d
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 0x487df5
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004dfec0
push 0x104
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.004f5d89
add esp, 0x18
test eax, eax
je 0x487df5
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x410
jne 0x487df5
test al, 2
je 0x487a24
push 0x80
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x487a24
lea eax, [ebp - 0x21c]
push eax
push str.QMTFunction::DeleteFile_setAttri_error_File:_s.
push 0x550bb8
call fcn.0048d900
add esp, 0xc
lea ecx, [ebp - 0x21c]
call fcn.0048a400
test al, al
je 0x487df5
call fcn.00450310
test eax, eax
je 0x487e13
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 0x487aa2
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487a80
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 0x487e13
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 0x487af0
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 0x537f54
push 0x550bb8
call fcn.0048d900
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 0x487b32
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 0x487b50
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 0x487df7
cmp dword [ebp + 0xc], eax
je 0x487df7
call fcn.00450310
test eax, eax
je 0x487e13
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 0x487bd9
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487bb7
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.0048c200
mov ecx, str..tmp
mov eax, dword [eax]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x487c26
test dx, dx
je 0x487c22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x487c26
add eax, 4
add ecx, 4
test dx, dx
jne 0x487c00
xor esi, esi
jmp 0x487c2b
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 0x487c48
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x228]
test esi, esi
je 0x487ddc
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x487e1d
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.004e0757
add esp, 8
test eax, eax
jne 0x487c8b
or eax, 0xffffffff
jmp 0x487c8f
sub eax, edi
sar eax, 1
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x228]
call fcn.0048d250
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 0x487cd0
push 0x104
lea ecx, [ebp - 0x224]
call fcn.0044f7d0
mov esi, dword [ebp - 0x224]
push esi
push 0
push 0x53637c
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push dword [esi - 8]
mov dword [ebp - 0x230], eax
push esi
call fcn.004e34dd
add esp, 8
test eax, eax
js 0x487e27
cmp eax, dword [esi - 8]
jg 0x487e27
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x230], ecx
jne 0x487d3b
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push str._s.tmp
push eax
call fcn.0048d020
mov esi, dword [ebp - 0x224]
add esp, 0xc
jmp 0x487d42
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.004e7727
add esp, 8
push 4
push 0
test eax, eax
jne 0x487d63
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x487d76
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 0x487d97
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 0x487db2
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 0x487df7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
jmp 0x487df7
push 4
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x220], eax
jmp 0x487db8
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.004de0fd
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00450260
push 0x80004005
call fcn.00450260
push 0x80070057
call fcn.00450260
int3