Function at 0x58c0d1
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
sub esp, 0x48
mov eax, 0x6bb839
call fcn.00664608
sub esp, 0x160
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
sub esp, 0x18
mov byte [ebp + 0x4b], bl
mov eax, esp
mov dword [ebp - 0x2c], esp
mov dword [eax], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], 0xf
mov esi, dword [ebp + 0x54]
lea eax, [ebp - 0x44]
push esi
push eax
mov dword [ebp - 4], ebx
call fcn.0047181f
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 1
jb 0x58c120
mov eax, dword [eax]
lea ecx, [ebp + 0x4b]
mov byte [ebp - 4], 2
push ecx
push ebx
push eax
lea ecx, [ebp - 0x16c]
call fcn.0044078b
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.00410858
mov edi, dword [ebp + 0x5c]
mov eax, str.NULL
mov ecx, edi
test edi, edi
jne 0x58c151
mov ecx, eax
mov ebx, dword [ebp + 0x58]
test ebx, ebx
je 0x58c15a
mov eax, ebx
push ecx
push eax
push esi
push str.LoadKnownFileType_called_with__s___s___s_n
call fcn.00427b28
add esp, 0x10
push 0x6d51d0
push esi
call fcn.00471afd
test al, al
je 0x58c506
test edi, edi
je 0x58c190
push str.torrent
push edi
call fcn.00471afd
test al, al
jne 0x58c1c2
cmp byte [ebp + 0x4b], 0
je 0x58c37f
cmp dword [ebp - 0x128], 0x10
lea eax, [ebp - 0x13c]
jb 0x58c1af
mov eax, dword [ebp - 0x13c]
push 0x6d8448
push eax
call fcn.00471464
test al, al
je 0x58c37f
push dword [ebp + 0x60]
push 0xa0
push 4
push dword [ebp + 0x70]
push dword [ebp + 0x6c]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x588c3d
call fcn.0058bf2f
push 0xf
pop esi
push ebx
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x28]
push 0x7526ce
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], bl
call fcn.00410407
push 7
mov dword [ebp + 0x30], ebx
lea ecx, [ebp + 0x30]
push str.success
mov byte [ebp - 4], 5
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], esi
mov byte [ebp + 0x30], bl
call fcn.00410407
push str.http_add_torrent
mov byte [ebp + 0x60], bl
lea ecx, [ebp]
push dword [ebp + 0x60]
mov dword [ebp], ebx
push 0x10
pop edi
push edi
mov byte [ebp - 4], 6
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], esi
mov byte [ebp], bl
call fcn.0041039b
push 0xa
mov dword [ebp + 0x18], ebx
lea ecx, [ebp + 0x18]
push str.AddTorrent
mov byte [ebp - 4], 7
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], esi
mov byte [ebp + 0x18], bl
call fcn.00410407
fld dword [0x6e1654]
lea eax, [ebp - 0x28]
push ecx
fstp dword [esp]
push ebx
push eax
lea eax, [ebp + 0x30]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp]
push eax
lea eax, [ebp + 0x18]
push eax
push ebx
call fcn.0052ae4a
mov eax, dword [ebp + 0x2c]
mov esi, 0x1000
cmp eax, edi
jb 0x58c2be
mov ecx, dword [ebp + 0x18]
inc eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x6c], ecx
cmp eax, esi
jb 0x58c2b5
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], 0xf
mov byte [ebp + 0x18], bl
cmp eax, edi
jb 0x58c2fc
mov ecx, dword [ebp]
inc eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x6c], ecx
cmp eax, esi
jb 0x58c2f3
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov eax, dword [ebp + 0x44]
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], 0xf
mov byte [ebp], bl
cmp eax, edi
jb 0x58c33a
mov ecx, dword [ebp + 0x30]
inc eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x6c], ecx
cmp eax, esi
jb 0x58c331
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], 0xf
mov byte [ebp + 0x30], bl
mov eax, dword [ebp - 0x14]
cmp eax, edi
jb 0x58c378
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp + 0x6c], ecx
mov dword [ebp + 0x60], eax
cmp eax, esi
jb 0x58c36f
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
push ebx
push ebx
jmp 0x58c835
test edi, edi
je 0x58c392
push str.btkey
push edi
call fcn.00471b86
test al, al
jne 0x58c3bc
cmp byte [ebp + 0x4b], 0
je 0x58c3dc
cmp dword [ebp - 0x128], 0x10
lea eax, [ebp - 0x13c]
jb 0x58c3ad
mov eax, dword [ebp - 0x13c]
push str..btkey
push eax
call fcn.00471464
test al, al
je 0x58c3dc
xor eax, eax
push eax
push 0xa0
push 4
push eax
push dword [ebp + 0x6c]
push ebx
push esi
push eax
push 0x588b62
call fcn.0058bf2f
jmp 0x58c846
test edi, edi
je 0x58c3ef
push str.btinstall
push edi
call fcn.00471b86
test al, al
jne 0x58c41d
cmp byte [ebp + 0x4b], 0
je 0x58c499
cmp dword [ebp - 0x128], 0x10
lea eax, [ebp - 0x13c]
jb 0x58c40e
mov eax, dword [ebp - 0x13c]
push str..btinstall
push eax
call fcn.00471464
test al, al
je 0x58c499
push 0x38
call fcn.00664379
pop ecx
mov dword [ebp + 0x60], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x58c443
push edi
push esi
push dword [ebp + 0x68]
mov ecx, eax
push dword [ebp + 0x64]
call fcn.00587f2f
mov edi, eax
jmp 0x58c445
xor edi, edi
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
call fcn.0047181f
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x58c45f
mov eax, dword [eax]
push 0x588eef
push edi
xor edi, edi
push edi
push ebx
push eax
push edi
call fcn.005cb315
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
mov esi, eax
call fcn.00410858
test esi, esi
je 0x58c846
mov ecx, esi
call fcn.00588dd9
push esi
push edi
push 0x801d
jmp 0x58c83a
test edi, edi
je 0x58c4ac
push 0x6dbbc4
push edi
call fcn.00471b86
test al, al
jne 0x58c4d6
cmp byte [ebp + 0x4b], 0
je 0x58c4e4
cmp dword [ebp - 0x128], 0x10
lea eax, [ebp - 0x13c]
jb 0x58c4c7
mov eax, dword [ebp - 0x13c]
push str..btapp
push eax
call fcn.00471464
test al, al
je 0x58c4e4
push 0
push 0
push 0x8023
jmp 0x58c83a
mov eax, dword [ebp + 0x60]
shr eax, 2
and al, 1
movzx eax, al
push eax
sub esp, 0x18
mov eax, esp
push esi
push eax
call fcn.00428e6f
call fcn.005fce28
jmp 0x58c846
push 0x6cea14
push esi
call fcn.00471b86
test al, al
jne 0x58c846
push 0x6ceab0
push esi
call fcn.00471b86
test al, al
je 0x58c565
push 0
lea eax, [ebp + 0x60]
push eax
push esi
call fcn.00455163
push dword [ebp + 0x60]
mov esi, eax
mov byte [ebp - 4], 0xb
push esi
mov dword [ebp + 0x6c], esi
call fcn.005bd388
jmp 0x58c551
push 1
push esi
mov dword [ebp - 4], 4
call fcn.004513a7
jmp 0x58c846
push 0x6d4824
push esi
call fcn.00471afd
test al, al
je 0x58c700
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push fcn.00497a4c
push eax
mov eax, dword [ebp + 0x60]
push ebx
or eax, 0x200
push eax
push esi
call fcn.004c2f77
push 0xf
xor ebx, ebx
lea ecx, [ebp - 0x28]
pop esi
push ebx
mov dword [ebp - 0x28], ebx
push 0x7526ce
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], bl
call fcn.00410407
push 7
mov dword [ebp + 0x18], ebx
lea ecx, [ebp + 0x18]
push str.success
mov byte [ebp - 4], 0xd
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], esi
mov byte [ebp + 0x18], bl
call fcn.00410407
push 0xe
mov dword [ebp], ebx
lea ecx, [ebp]
push str.add_magnetlink
mov byte [ebp - 4], 0xe
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], esi
mov byte [ebp], bl
call fcn.00410407
push 0xa
mov dword [ebp + 0x30], ebx
lea ecx, [ebp + 0x30]
push str.AddTorrent
mov byte [ebp - 4], 0xf
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], esi
mov byte [ebp + 0x30], bl
call fcn.00410407
fld dword [0x6e1654]
lea eax, [ebp - 0x28]
push ecx
fstp dword [esp]
push ebx
push eax
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp]
push eax
lea eax, [ebp + 0x30]
push eax
push ebx
call fcn.0052ae4a
mov eax, dword [ebp + 0x44]
mov esi, 0x1000
push 0x10
pop edi
cmp eax, edi
jb 0x58c672
mov ecx, dword [ebp + 0x30]
inc eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x6c], ecx
cmp eax, esi
jb 0x58c669
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], 0xf
mov byte [ebp + 0x30], bl
cmp eax, edi
jb 0x58c6b0
mov ecx, dword [ebp]
inc eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x6c], ecx
cmp eax, esi
jb 0x58c6a7
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], 0xf
mov byte [ebp], bl
cmp eax, edi
jb 0x58c6ee
mov ecx, dword [ebp + 0x18]
inc eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x6c], ecx
cmp eax, esi
jb 0x58c6e5
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], 0xf
mov byte [ebp + 0x18], bl
jmp 0x58c347
push 0x6ceafc
push esi
call fcn.00471b86
test al, al
jne 0x58c4d6
push 0x6ceb54
push esi
call fcn.00471b86
test al, al
je 0x58c741
push 0x7526ce
push dword [ebp + 0x68]
push dword [ebp + 0x64]
push dword [ebp + 0x60]
push edi
push 1
push ebx
push esi
push 0
call fcn.0058bd4c
jmp 0x58c846
test edi, edi
je 0x58c754
push 0x71bd68
push edi
call fcn.00471b86
test al, al
jne 0x58c767
push 0x6cea64
push esi
call fcn.00471b86
test al, al
je 0x58c817
push str.current.btskin
lea eax, [ebp + 0x30]
push eax
call fcn.0046665e
test dword [ebp + 0x60], 0x400
mov byte [ebp - 4], 0x11
je 0x58c793
push 8
push str.user_set
mov ecx, 0x7b6b78
call fcn.00410407
push str.default
push esi
call fcn.00673939
pop ecx
test eax, eax
lea eax, [ebp + 0x30]
pop ecx
jne 0x58c7b9
cmp dword [ebp + 0x44], 8
jb 0x58c7b0
mov eax, dword [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x58c7e5
cmp dword [ebp + 0x44], 8
jb 0x58c7c2
mov eax, dword [ebp + 0x30]
push eax
push esi
call fcn.00673939
pop ecx
pop ecx
test eax, eax
je 0x58c7e5
cmp dword [ebp + 0x44], 8
lea eax, [ebp + 0x30]
jb 0x58c7db
mov eax, dword [ebp + 0x30]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
call fcn.0060dfb1
call fcn.005d314e
push 1
push 1
call fcn.005ca3bd
call fcn.006135fd
push dword [0x7c8a28]
call fcn.0058e736
call fcn.005a4faa
lea ecx, [ebp + 0x30]
call fcn.00427afc
jmp 0x58c846
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push fcn.00497a4c
push eax
push ebx
push dword [ebp + 0x60]
push esi
call fcn.004c2f77
push 0
push 0
push 0x803c
push dword [0x7ed500]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x16c]
call fcn.004408fb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x4c
leave
ret 0x20