Function at 0x4206d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575700
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5dbcc8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
or ebx, 0xffffffff
add dword [edi + 0x28], ebx
call fcn.004457a5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42071c
push 0x80004005
call fcn.0040d6e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x28]
push ecx
lea edx, [ebp - 0x10]
push 0x5a90c0
push edx
call fcn.0040cb10
mov ecx, dword [edi + 0x14]
add esp, 0xc
test ecx, ecx
je 0x420759
mov eax, dword [ecx]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + 0x2c]
push edx
call eax
mov eax, dword [esi]
mov ecx, dword [edi + 0x18]
push eax
call dword [sym.imp.DuiLib_u.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CContainerUI::FindSubControl_wchar_t_const__]
cmp dword [ebp + 8], 0
mov esi, eax
je 0x42081d
test esi, esi
je 0x4208ee
cmp dword [esi + 0xd2c], 0
je 0x4207a9
add dword [edi + 0x24], ebx
jne 0x4207a9
push str.controlLoadNotify
mov ecx, 0x5e5994
call dword [sym.imp.DuiLib_u.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
test eax, eax
je 0x4207a9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xcc]
push 0
call eax
mov eax, dword [esi + 0xdc8]
sub eax, 0x10
push eax
call fcn.0040d710
lea ebx, [eax + 0x10]
add esp, 4
mov dword [ebp + 8], ebx
mov eax, 1
mov byte [ebp - 4], al
lea ecx, [esi + 0x4f4]
mov dword [esi + 0xd34], eax
call dword [sym.imp.HttpLoad.dll_public:_void___thiscall_CHttpLoadThreads::StopLoad_void_]
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx + 0x4a0]
mov eax, dword [edx + 0x18]
add ecx, 0x4a0
push esi
call eax
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call esi
push str..temp
push str..mp4
lea ecx, [ebp + 8]
call fcn.00409f60
mov edi, dword [ebp + 8]
push edi
call esi
mov byte [ebp - 4], 0
lea eax, [edi - 0x10]
jmp 0x4208d5
test esi, esi
je 0x4208ee
mov eax, dword [esi + 0xd40]
sub eax, 0x10
push eax
call fcn.0040d710
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xdc8]
sub eax, 0x10
push eax
call fcn.0040d710
lea ebx, [eax + 0x10]
add esp, 8
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 3
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx + 0x4a0]
mov eax, dword [edx + 0x18]
add ecx, 0x4a0
push esi
call eax
mov ecx, dword [0x5e8858]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x4208a4
lea ecx, [ebp + 8]
push ecx
push 0x5e6ec0
call fcn.00415ae0
add esp, 8
test al, al
je 0x4208a4
push 1
mov ecx, 0x5e6c4c
call fcn.00414e40
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add ebx, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4208cb
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4208ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420914
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4