Function at 0x41eb1b
Capabilities:
Copy file
Delete file

Disassembly:
push 0x40
mov eax, 0x48763f
call fcn.0048062c
mov eax, dword [0x4b457c]
or dword [ebp - 0x20], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
mov esi, 0x4b457c
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 3
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 4
push dword [eax + 4]
lea eax, [ebp - 0x24]
push eax
call fcn.00402394
push 0x5c
push 0x2f
lea eax, [ebp - 0x24]
call fcn.0040f1f5
lea esi, [ebp - 0x38]
call fcn.00420b9e
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0040c38f
mov esi, dword [ebp + 0xc]
lea edx, [esi + 4]
push edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0040c38f
lea ecx, [ebp - 0x2c]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0040c38f
add esp, 0x18
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.004024a3
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
call fcn.0040214e
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.0040214e
lea eax, [ebp - 0x38]
push 0x497f68
push eax
mov ecx, edi
call fcn.0040400d
pop ecx
pop ecx
lea edi, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.004024a3
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.0040214e
lea edi, [ebp - 0x4c]
call fcn.0041ef37
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.004024a3
lea eax, [ebp - 0x10]
lea edi, [ebp - 0x48]
call fcn.004024a3
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x40], eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push 0x10
mov ecx, 0x4b2760
mov dword [ebp - 0x44], ebx
call fcn.0042b09a
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
call fcn.0040214e
push dword [ebp - 0x10]
lea ebx, [ebp - 0x2c]
push esi
call fcn.00408d91
test eax, eax
pop ecx
pop ecx
je 0x41eef1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 8]
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x30]
add ecx, 4
push eax
call fcn.0040c38f
lea ecx, [ebp - 0x34]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.0040c38f
lea ecx, [ebp - 0x38]
push 0x490070
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.0040400d
add esp, 0x18
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 0xd
call fcn.004024a3
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
call fcn.0040214e
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.0040214e
push dword [ebp - 0x1c]
push esi
call fcn.00408d91
pop ecx
xor ebx, ebx
test eax, eax
pop ecx
jne 0x41ed84
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [ebp - 0x10]
mov esi, 0x4b4d74
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
push eax
push str.KChannel::DownloadItem_CopyFile_return:_d__src:_ws__dst:_ws
call fcn.00411a60
add esp, 0x10
cmp dword [ebp - 0x14], ebx
je 0x41ed81
mov dword [ebp - 0x20], ebx
jmp 0x41eef5
mov esi, dword [ebp + 0xc]
cmp dword [0x4b4f58], ebx
mov edi, dword [ebp + 8]
je 0x41eda1
push dword [ebp + 0x10]
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x3c]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x41ed79
mov edi, dword [edi + 8]
add edi, 0x18
mov eax, edi
call fcn.0041fe76
test eax, eax
jbe 0x41ee87
lea eax, [esi + 0x14]
add esi, 0x10
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], esi
mov eax, dword [ebp + 0x10]
push dword [eax + 4]
mov esi, ebx
call fcn.00404080
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.0040400d
mov byte [ebp - 4], 0xe
push dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.0040c38f
mov byte [ebp - 4], 0xf
push dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.0040c38f
add esp, 0x18
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 0x10
call fcn.004024a3
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
call fcn.0040214e
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp + 0xc]
push dword [eax + 0x2c]
mov ecx, dword [eax + 0xc]
push ecx
push dword [ebp - 0x10]
push dword [ebp - 0x28]
push dword [ebp - 0x18]
call fcn.00407ba3
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 8]
add esp, 0x14
add eax, 0x18
call fcn.0041fe76
dec eax
cmp ebx, eax
jne 0x41ee6b
push dword [ebp - 0x14]
call fcn.00403ae7
cmp dword [ebp - 0x14], 0
je 0x41ee8d
mov esi, dword [esi + 8]
lea edi, [esi + 0x18]
mov eax, edi
inc ebx
call fcn.0041fe76
cmp ebx, eax
jb 0x41edc2
cmp dword [ebp - 0x14], 0
jne 0x41ee94
mov esi, 0x497e38
jmp 0x41ee99
mov esi, 0x497e40
push dword [ebp - 0x18]
lea eax, [ebp + 8]
push eax
call fcn.00420c50
push esi
mov byte [ebp - 4], 0x11
push dword [ebp - 0x10]
push dword [eax]
push dword [ebp - 0x18]
push 0x497fe8
call fcn.00412193
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
add esp, 0x14
add eax, 0xfffffff0
call fcn.0040214e
cmp dword [ebp - 0x14], 0
je 0x41eef1
push dword [ebp - 0x18]
mov esi, 0x4b4d74
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push str.download_fail__error:_d__file:_ws__url:_ws
call fcn.00411a60
add esp, 0x10
jmp 0x41eef5
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x20]
call fcn.00480704
ret 0xc