Function at 0x49dfe0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9a51
mov eax, dword fs:[0]
push eax
sub esp, 0x3f4
mov eax, dword [0x649ffc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x244], ebx
cmp dword [esi + 0x10], 0x104
jb 0x49e028
xor al, al
jmp 0x49e362
cmp byte [ebp + 0xc], bl
jne 0x49e176
lea ecx, [ebp - 0x290]
call fcn.004ac670
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 4], 0
jb 0x49e04d
mov eax, dword [esi]
lea ecx, [ebp - 0x240]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x49e13b
mov eax, dword [ebp - 0x220]
push dword [ebp - 0x228]
mov ecx, dword [ebp - 0x224]
push dword [ebp - 0x22c]
mov dword [ebp - 0x290], eax
mov eax, dword [ebp - 0x240]
shr eax, 4
and al, 1
mov dword [ebp - 0x28c], ecx
mov byte [ebp - 0x288], al
lea eax, [ebp - 0x248]
push eax
call fcn.004a5b00
push dword [ebp - 0x230]
push dword [ebp - 0x234]
mov ecx, dword [eax]
mov dword [ebp - 0x280], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x298]
push eax
call fcn.004a5b00
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
mov ecx, dword [eax]
mov dword [ebp - 0x278], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.004a5b00
add esp, 0x24
cmp byte [ebp - 0x288], 0
mov ecx, dword [eax]
mov dword [ebp - 0x270], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x26c], eax
je 0x49e13b
cmp dword [esi + 0x14], 8
jb 0x49e11d
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
lea ecx, [ebp - 0x290]
setne bl
call sym.yuntun.exe_public:_void___thiscall_ShellResourceRequestDetails::destructor_void_
mov al, bl
jmp 0x49e362
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x49e145
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x49e164
lea ecx, [ebp - 0x290]
mov bl, 1
call sym.yuntun.exe_public:_void___thiscall_ShellResourceRequestDetails::destructor_void_
mov al, bl
jmp 0x49e362
lea ecx, [ebp - 0x290]
mov dword [ebp - 4], 0xffffffff
call sym.yuntun.exe_public:_void___thiscall_ShellResourceRequestDetails::destructor_void_
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00586790
add esp, 0xc
cmp byte [0x64f34f], 0
je 0x49e1f0
call fcn.004a0ec0
cmp eax, 1
jg 0x49e1d6
push 1
push 0x67
push str.e:others360downloadmanager_src_base_file_util_win.cc
lea ecx, [ebp - 0x350]
call fcn.004a0750
add eax, 8
mov dword [ebp - 4], 1
push str.copying
mov ebx, 1
push eax
mov dword [ebp - 0x244], ebx
call fcn.00407ad3
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x49e1f0
lea ecx, [ebp - 0x350]
and ebx, 0xfffffffe
call fcn.004a08f0
cmp dword [esi + 0x14], 8
jb 0x49e1f8
mov esi, dword [esi]
lea ecx, [ebp - 0x21c]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x49e200
cmp byte [ebp + 0xc], 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x260], eax
xorps xmm0, xmm0
mov eax, 0x414
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x25c], 0
movlpd qword [ebp - 0x256], xmm0
mov dword [ebp - 0x24e], 0
mov dword [ebp - 0x264], 3
mov word [ebp - 0x258], ax
jne 0x49e26d
mov eax, 0x1494
mov word [ebp - 0x258], ax
cmp byte [0x64f34f], 0
je 0x49e2cf
call fcn.004a0ec0
cmp eax, 1
jg 0x49e2b5
push 1
push 0x71
push str.e:others360downloadmanager_src_base_file_util_win.cc
lea ecx, [ebp - 0x350]
call fcn.004a0750
add eax, 8
mov dword [ebp - 4], 2
push str.Performing_shell_operation
or ebx, 2
push eax
mov dword [ebp - 0x244], ebx
call fcn.00407ad3
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x49e2cf
lea ecx, [ebp - 0x350]
and ebx, 0xfffffffd
call fcn.004a08f0
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp byte [0x64f34f], 0
mov esi, eax
je 0x49e33e
call fcn.004a0ec0
cmp eax, 1
jg 0x49e32e
push 1
push 0x74
push str.e:others360downloadmanager_src_base_file_util_win.cc
lea ecx, [ebp - 0x400]
call fcn.004a0750
push esi
add eax, 8
mov dword [ebp - 4], 3
push str.Done:
or ebx, 4
push eax
mov dword [ebp - 0x244], ebx
call fcn.00407ad3
add esp, 8
mov ecx, eax
call fcn.004064d5
test bl, 4
je 0x49e33e
lea ecx, [ebp - 0x400]
call fcn.004a08f0
cmp dword [ebp - 0x256], 0
jne 0x49e021
test esi, esi
je 0x49e360
cmp esi, 2
je 0x49e360
cmp esi, 0x402
jne 0x49e021
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056e987
mov esp, ebp
pop ebp
ret