Function at 0x582a12
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
sub esp, 0x4c
mov eax, 0x6b06b5
call fcn.006426c4
sub esp, 0x15c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ecx, ecx
sub esp, 0x18
mov byte [ebp + 0x4f], cl
mov eax, esp
mov dword [ebp + 0x18], esp
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 0x10
jb 0x582a4b
mov eax, dword [eax]
mov byte [eax], cl
mov esi, dword [ebp + 0x58]
lea eax, [ebp - 0x40]
push esi
push eax
mov dword [ebp - 4], ecx
call fcn.0047e83e
xor ebx, ebx
inc ebx
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], bl
jb 0x582a6b
mov eax, dword [eax]
lea ecx, [ebp + 0x4f]
mov byte [ebp - 4], 2
push ecx
push 0
push eax
lea ecx, [ebp - 0x168]
call fcn.00444bbf
push 0
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0040f95f
mov edi, dword [ebp + 0x60]
mov eax, str.NULL
mov ecx, edi
test edi, edi
jne 0x582aa0
mov ecx, eax
cmp dword [ebp + 0x5c], 0
je 0x582aa9
mov eax, dword [ebp + 0x5c]
push ecx
push eax
push esi
push str.LoadKnownFileType_called_with__s___s___s_n
call fcn.0040e6e4
add esp, 0x10
push 0x6cdb04
push esi
call fcn.0047eaca
test al, al
je 0x582d57
test edi, edi
je 0x582adf
push str.torrent
push edi
call fcn.0047eaca
test al, al
jne 0x582b11
cmp byte [ebp + 0x4f], 0
je 0x582bc6
cmp dword [ebp - 0x124], 0x10
mov eax, dword [ebp - 0x138]
jae 0x582afe
lea eax, [ebp - 0x138]
push 0x6d1e50
push eax
call fcn.0047e54d
test al, al
je 0x582bc6
push dword [ebp + 0x64]
push 0xa0
push 4
push dword [ebp + 0x74]
push dword [ebp + 0x70]
push dword [ebp + 0x5c]
push esi
xor esi, esi
push esi
push 0x57fa93
call fcn.005828cc
push 0x7479ec
lea ecx, [ebp + 0x1c]
call fcn.0040f32f
push str.success
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.0040f32f
push str.http_add_torrent
lea ecx, [ebp]
mov byte [ebp - 4], 6
call fcn.0040f32f
push str.AddTorrent
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 7
call fcn.0040f32f
fld dword [0x6dafd4]
lea eax, [ebp + 0x1c]
push ecx
fstp dword [esp]
push esi
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp]
push eax
lea eax, [ebp + 0x34]
push eax
push esi
call fcn.00539d92
push esi
push ebx
lea ecx, [ebp + 0x34]
call fcn.0040f95f
push esi
push ebx
lea ecx, [ebp]
call fcn.0040f95f
push esi
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040f95f
lea ecx, [ebp + 0x1c]
push esi
push ebx
call fcn.0040f95f
push esi
push esi
jmp 0x582fb8
test edi, edi
je 0x582bd9
push str.btkey
push edi
call fcn.0047eb47
test al, al
jne 0x582c03
cmp byte [ebp + 0x4f], 0
je 0x582c25
cmp dword [ebp - 0x124], 0x10
mov eax, dword [ebp - 0x138]
jae 0x582bf4
lea eax, [ebp - 0x138]
push str..btkey
push eax
call fcn.0047e54d
test al, al
je 0x582c25
xor eax, eax
push eax
push 0xa0
push 4
push eax
push dword [ebp + 0x70]
push dword [ebp + 0x5c]
push esi
push eax
push 0x57f9b3
call fcn.005828cc
jmp 0x582fc9
test edi, edi
je 0x582c38
push 0x7117e4
push edi
call fcn.0047eb47
test al, al
jne 0x582c6a
cmp byte [ebp + 0x4f], 0
je 0x582cea
cmp dword [ebp - 0x124], 0x10
mov eax, dword [ebp - 0x138]
jae 0x582c57
lea eax, [ebp - 0x138]
push str..btinstall
push eax
call fcn.0047e54d
test al, al
je 0x582cea
push 0x38
call fcn.00642424
pop ecx
mov dword [ebp + 0x64], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x582c90
push edi
push esi
push dword [ebp + 0x6c]
mov ecx, eax
push dword [ebp + 0x68]
call fcn.0057ece8
mov edi, eax
jmp 0x582c92
xor edi, edi
push esi
lea eax, [ebp + 0x1c]
mov byte [ebp - 4], 4
push eax
call fcn.0047e83e
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x582cac
mov eax, dword [eax]
push 0x57fd62
push edi
xor edi, edi
push edi
push dword [ebp + 0x5c]
push eax
push edi
call fcn.005b681e
push edi
push ebx
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 4
mov esi, eax
call fcn.0040f95f
test esi, esi
je 0x582fc9
mov ecx, esi
call fcn.0057fc4d
push esi
push edi
push 0x801d
jmp 0x582fbd
test edi, edi
je 0x582cfd
push 0x6d64c4
push edi
call fcn.0047eb47
test al, al
jne 0x582d27
cmp byte [ebp + 0x4f], 0
je 0x582d35
cmp dword [ebp - 0x124], 0x10
mov eax, dword [ebp - 0x138]
jae 0x582d18
lea eax, [ebp - 0x138]
push str..btapp
push eax
call fcn.0047e54d
test al, al
je 0x582d35
push 0
push 0
push 0x8023
jmp 0x582fbd
mov eax, dword [ebp + 0x64]
shr eax, 2
and al, 1
movzx eax, al
push eax
sub esp, 0x18
mov eax, esp
push esi
push eax
call fcn.00429756
call fcn.005dfbac
jmp 0x582fc9
push 0x6c4a4c
push esi
call fcn.0047eb47
test al, al
jne 0x582fc9
push 0x6c4ae8
push esi
call fcn.0047eb47
test al, al
je 0x582db8
push 0
lea eax, [ebp + 0x5c]
push eax
push esi
call fcn.004638b5
push dword [ebp + 0x5c]
mov esi, eax
mov byte [ebp - 4], 0xe
push esi
mov dword [ebp + 0x64], esi
call fcn.005aa07a
jmp 0x582da5
push ebx
push esi
mov dword [ebp - 4], 4
call fcn.00460614
jmp 0x582fc9
push str.magnet:
push esi
call fcn.0047eaca
test al, al
je 0x582e7a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push fcn.004a43a7
push eax
push dword [ebp + 0x5c]
mov eax, dword [ebp + 0x64]
or eax, 0x200
push eax
push esi
call fcn.004cf604
push 0x7479ec
lea ecx, [ebp + 0x34]
call fcn.0040f32f
push str.success
lea ecx, [ebp]
mov byte [ebp - 4], 0x10
call fcn.0040f32f
push str.add_magnetlink
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x11
call fcn.0040f32f
push str.AddTorrent
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0x12
call fcn.0040f32f
fld dword [0x6dafd4]
lea eax, [ebp + 0x34]
push ecx
fstp dword [esp]
xor esi, esi
mov byte [ebp - 4], 0x13
push esi
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x1c]
push eax
push esi
call fcn.00539d92
push esi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.0040f95f
push esi
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040f95f
push esi
push ebx
lea ecx, [ebp]
call fcn.0040f95f
lea ecx, [ebp + 0x34]
jmp 0x582bb8
push 0x6c4b34
push esi
call fcn.0047eb47
test al, al
jne 0x582d27
push 0x6c4b8c
push esi
call fcn.0047eb47
test al, al
je 0x582ebc
push 0x7479ec
push dword [ebp + 0x6c]
push dword [ebp + 0x68]
push dword [ebp + 0x64]
push edi
push ebx
push dword [ebp + 0x5c]
push esi
push 0
call fcn.00582711
jmp 0x582fc9
test edi, edi
je 0x582ecf
push 0x711c88
push edi
call fcn.0047eb47
test al, al
jne 0x582ee2
push 0x6c4a9c
push esi
call fcn.0047eb47
test al, al
je 0x582f9a
push str.current.btskin
lea eax, [ebp + 0x34]
push eax
call fcn.00473f1c
test dword [ebp + 0x64], 0x400
mov byte [ebp - 4], 0x14
je 0x582f15
mov edi, str.user_set
push edi
call fcn.0040f53e
pop ecx
push eax
push edi
mov ecx, 0x7b13d0
call fcn.0040f2b7
push str.default
push esi
call fcn.00667f5f
pop ecx
test eax, eax
mov eax, dword [ebp + 0x34]
pop ecx
jne 0x582f3b
cmp dword [ebp + 0x48], 8
jae 0x582f32
lea eax, [ebp + 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x582f67
cmp dword [ebp + 0x48], 8
jae 0x582f44
lea eax, [ebp + 0x34]
push eax
push esi
call fcn.00667f5f
pop ecx
pop ecx
test eax, eax
je 0x582f67
cmp dword [ebp + 0x48], 8
mov eax, dword [ebp + 0x34]
jae 0x582f5d
lea eax, [ebp + 0x34]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
call fcn.005ee1a5
call fcn.005bd5ad
push ebx
push ebx
call fcn.005b5ce5
call fcn.005f7546
push dword [0x7c1ee4]
call fcn.00584bdd
call fcn.00598190
push 0
push ebx
lea ecx, [ebp + 0x34]
call fcn.004285f6
jmp 0x582fc9
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push fcn.004a43a7
push ebx
push dword [ebp + 0x5c]
push dword [ebp + 0x64]
push esi
call fcn.004cf604
push ebx
push ebx
push 0x803c
push dword [0x7e6a30]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x168]
call fcn.00444d3f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x50]
pop ebp
ret 0x20