Function at 0x45df48
Capabilities:
Copy file
Delete file

Disassembly:
push 0x3c
mov eax, 0x472060
call fcn.0044f632
mov dword [ebp - 0x20], ecx
mov edi, 0x48a9dc
lea ecx, [ebp - 0x1c]
or ebx, 0xffffffff
push edi
mov esi, ebx
call fcn.0040651c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push edi
call fcn.0040651c
push edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040651c
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040651c
push edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0040651c
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
push dword [eax + 4]
call fcn.004064f3
push 0x5c
push 0x2f
lea ecx, [ebp - 0x24]
call fcn.00409b42
lea eax, [ebp - 0x38]
push eax
call fcn.0045fd68
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x34]
call fcn.0040404b
pop ecx
mov byte [ebp - 4], 6
mov edx, eax
mov edi, dword [ebp + 8]
lea ecx, [edi + 4]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040404b
pop ecx
push edi
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
call fcn.0040404b
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.004042c7
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.0040630c
push 0x48a5e8
lea edx, [ebp - 0x14]
lea ecx, [ebp + 8]
call fcn.00406651
pop ecx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.004042c7
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040630c
push 0
push 0
push 0x11
mov ecx, 0x49db40
call fcn.00467293
push 0x49ccf0
lea ecx, [ebp - 0x48]
call fcn.00406102
push 0x49ccf0
lea ecx, [ebp - 0x44]
call fcn.00406102
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x48]
call fcn.004042c7
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x44]
call fcn.004042c7
mov eax, dword [edi + 0x2c]
mov ecx, 0x49db40
and dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
push 0
push eax
push 0x10
call fcn.00467293
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov edx, dword [ebp - 0x14]
mov ecx, edi
call fcn.004625e3
test eax, eax
je 0x45e2d2
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x20]
lea eax, [edi + 4]
push eax
add edx, 4
lea ecx, [ebp - 0x34]
call fcn.0040404b
pop ecx
push edi
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x38]
call fcn.0040404b
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 8]
mov edx, eax
mov dword [esp], 0x48a3bc
call fcn.00406651
pop ecx
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xd
call fcn.004042c7
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov edx, dword [ebp - 0x18]
mov ecx, edi
call fcn.004625e3
test eax, eax
jne 0x45e1cd
mov edx, dword [ebp - 0x14]
lea ecx, [ebp + 8]
call fcn.0046d791
mov byte [ebp - 4], 0xe
mov ecx, dword [eax]
call fcn.0046d706
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040630c
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [ebp - 0x14]
mov esi, eax
push dword [ebp - 0x18]
push esi
push str.KChannel::DownloadItem_CopyFile_return:_d__src:_ws__dst:_ws
push 0x49db70
call fcn.0046ad90
add esp, 0x14
test esi, esi
jne 0x45e2d2
cmp dword [0x49d9d0], 0
je 0x45e1ec
mov ecx, dword [ebp - 0x20]
push dword [ebp + 0xc]
push edi
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov esi, eax
test esi, esi
je 0x45e2d2
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dword [ebp + 8], edx
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x1c]
add ecx, 0x18
sub eax, dword [ecx]
sar eax, 2
test eax, eax
je 0x45e2b3
mov eax, dword [ecx]
lea ecx, [ebp - 0x30]
lea edx, [eax + edx*4]
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call fcn.00406651
pop ecx
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xf
push ecx
mov edx, eax
lea ecx, [ebp - 0x34]
call fcn.0040404b
pop ecx
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 0x10
push ecx
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.0040404b
pop ecx
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x11
call fcn.004042c7
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.0040630c
push dword [edi + 0x2c]
mov edx, dword [ebp - 0x28]
push dword [edi + 0xc]
mov ecx, dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.00462732
mov esi, eax
add esp, 0xc
test esi, esi
je 0x45e2d2
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
inc edx
mov dword [ebp + 8], edx
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x1c]
add ecx, 0x18
sub eax, dword [ecx]
sar eax, 2
cmp edx, eax
jb 0x45e20a
test esi, esi
je 0x45e2d2
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push esi
push str.download_fail__error:_d__file:_ws__url:_ws
push 0x49db70
call fcn.0046ad90
add esp, 0x14
jmp 0x45e2d4
xor ebx, ebx
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040630c
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040630c
mov eax, ebx
call fcn.0044f60c
ret 8