Function at 0x42d360
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450ba0
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x46ab5c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004068d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004068d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004068d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004068d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.004068d0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0xc]
call fcn.00439640
push eax
lea ecx, [ebp - 0x10]
call fcn.004010a0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x10]
call fcn.0040a180
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x46b648
call fcn.0042fbf0
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x7c]
push edx
lea eax, [ebp - 0x44]
push eax
call fcn.0040a290
add esp, 0xc
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x84]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.0040a290
add esp, 0xc
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x8c]
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.0040a290
add esp, 0xc
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x94], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x94]
push edx
lea ecx, [ebp - 0x20]
call fcn.004027e0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4c]
call fcn.00401080
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
call fcn.00401080
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.00401080
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.00401080
push 0x45aee0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.0040aa40
add esp, 0xc
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004027e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x50]
call fcn.00401080
lea ecx, [ebp - 0x38]
call fcn.0042d910
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x38]
call fcn.004027e0
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x34]
call fcn.004027e0
mov dword [ebp - 0x30], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x2c], ecx
push 0
lea edx, [ebp - 0x38]
push edx
push 0x10
call fcn.00441870
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.0042d930
xor eax, eax
jne 0x42d516
lea ecx, [ebp - 0x20]
call fcn.0040f280
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00417450
add esp, 8
test eax, eax
jne 0x42d58f
mov dword [ebp - 0x18], 0
jmp 0x42d8a9
lea ecx, [ebp - 0x20]
call fcn.0040f280
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x456c4c
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
add eax, 4
push eax
mov ecx, dword [ebp - 0x74]
add ecx, 4
push ecx
lea edx, [ebp - 0x54]
push edx
call fcn.0040a290
add esp, 0xc
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xa4]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.0040a290
add esp, 0xc
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0xac]
push ecx
lea edx, [ebp - 0x5c]
push edx
call fcn.0040aa40
add esp, 0xc
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0xb4]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004027e0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x5c]
call fcn.00401080
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x58]
call fcn.00401080
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call fcn.00401080
lea ecx, [ebp - 0x28]
call fcn.0040f280
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00417450
add esp, 8
test eax, eax
jne 0x42d6c2
push 0
lea ecx, [ebp - 0x20]
call fcn.0040f280
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f280
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push str.KChannel::DownloadItem_CopyFile_return:_d__src:_ws__dst:_ws
push 0x46afbc
call fcn.00420980
add esp, 0x14
cmp dword [ebp - 0x24], 0
je 0x42d6c2
mov dword [ebp - 0x18], 0
jmp 0x42d8a9
mov dword [ebp - 0x3c], 0
jmp 0x42d6d4
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x74]
mov ecx, dword [ecx + 8]
add ecx, 0x14
call fcn.00444b40
cmp dword [ebp - 0x3c], eax
jae 0x42d802
mov edx, dword [ebp + 8]
add edx, 0x10
push edx
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00439640
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x74]
mov ecx, dword [edx + 8]
add ecx, 0x14
call fcn.0042e4e0
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040aa40
add esp, 0xc
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], ecx
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0xbc]
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.0040a290
add esp, 0xc
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], ecx
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0xc4]
push edx
lea eax, [ebp - 0x68]
push eax
call fcn.0040a290
add esp, 0xc
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0xcc]
push edx
lea ecx, [ebp - 0x14]
call fcn.004027e0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x68]
call fcn.00401080
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x64]
call fcn.00401080
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x60]
call fcn.00401080
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.0040f280
push eax
lea ecx, [ebp - 0x20]
call fcn.0040f280
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040f280
push eax
lea ecx, [ebp - 0x14]
call fcn.0040f280
push eax
call fcn.00415e20
add esp, 0x14
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x42d7fd
jmp 0x42d802
jmp 0x42d6cb
cmp dword [ebp - 0x24], 0
jne 0x42d814
mov dword [ebp - 0xd0], 0x45aaa4
jmp 0x42d81e
mov dword [ebp - 0xd0], 0x45aa9c
mov edx, dword [ebp - 0xd0]
push edx
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040f280
push eax
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, 0x46b648
call fcn.0042fdc0
mov dword [ebp - 0xd4], eax
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], edx
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0x45ae38
call fcn.00421e50
add esp, 0x14
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x6c]
call fcn.00401080
cmp dword [ebp - 0x24], 0
je 0x42d8a2
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push str.download_fail__error:_d__file:_ws__url:_ws
push 0x46afbc
call fcn.00420980
add esp, 0x14
jmp 0x42d8a9
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.00401080
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00401080
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401080
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00401080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401080
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8