Function at 0x49f620
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e528
mov eax, dword fs:[0]
push eax
sub esp, 0xc38
mov eax, dword [0x61ce74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x628]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00540d70
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x628]
add esp, 0xc
push 0
push 2
push eax
push 0
call esi
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x49f752
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49f694
sub ecx, edx
sar ecx, 1
je 0x49f752
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00540d70
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00554202
push 0x5b14ac
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0055418d
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0055418d
push 1
lea eax, [ebp - 0x218]
push 1
push eax
call fcn.00470770
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00554202
add esp, 0x48
lea eax, [ebp - 0x218]
push 0x5c4174
push 0x104
push eax
call fcn.0055418d
push 1
lea eax, [ebp - 0x218]
push 1
push eax
call fcn.00470770
add esp, 0x18
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00540d70
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0x10
push eax
push 0
call esi
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49f780
sub ecx, edx
sar ecx, 1
je 0x49f8c9
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00540d70
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00540d70
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00540d70
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.00540d70
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00554202
push 0x5c419c
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0055418d
add esp, 0x48
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.00554202
push 0x5c41b4
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.0055418d
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xa38]
push 0x104
push eax
call fcn.00554202
push str.WPS
lea eax, [ebp - 0xa38]
push 0x104
push eax
call fcn.0055418d
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xc40]
push 0x104
push eax
call fcn.00554202
push 0x5c8b1c
lea eax, [ebp - 0xc40]
push 0x104
push eax
call fcn.0055418d
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x218]
add esp, 0x48
push eax
call esi
lea eax, [ebp - 0x830]
push eax
call esi
lea eax, [ebp - 0xa38]
push eax
call esi
lea eax, [ebp - 0xc40]
push eax
call esi
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49f8eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053d079
mov esp, ebp
pop ebp
ret