Function at 0x606fff
Capabilities:
Delete file
Get file size

Disassembly:
mov eax, 0x61f1ef
call fcn.0060ebd0
sub esp, 0x30c
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x10]
test al, al
jne 0x607030
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x5c], ebx
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x2c
cdq
pop ecx
idiv ecx
cmp eax, ebx
jne 0x607077
mov edi, dword [ebp + 0x18]
cmp edi, ebx
je 0x60701d
push str.INVALID_CRC_TABLE
push ecx
call fcn.0040171c
pop ecx
mov esi, eax
call fcn.0060d9f6
push 2
mov ecx, eax
pop esi
call fcn.00415070
jmp 0x60701d
lea eax, [ebp - 0x1b0]
push eax
call fcn.0060dd95
mov dword [ebp - 4], ebx
push str.TORRENT_STATE_CHECKING
push ecx
call fcn.0040171c
pop ecx
mov esi, eax
call fcn.0060d9f6
mov esi, dword [edi + 8]
push eax
call fcn.00602f63
mov esi, dword [edi + 8]
push ebx
push 0x68c634
call fcn.00602f47
mov eax, dword [edi + 8]
push 0x68c634
lea ecx, [eax + 0x1fc]
call fcn.00401beb
push dword [edi + 8]
call fcn.00602f7f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x28], ebx
call fcn.0040f279
pop ecx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x14]
call fcn.0041316c
pop ecx
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x6070fa
cmp eax, dword [ebp - 0x54]
je 0x6070ff
call fcn.005a6714
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x50]
je 0x6072be
lea esi, [ebp - 0x24]
call fcn.004a72fd
mov esi, eax
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x14], esi
call dword [eax + 0x10]
test al, al
je 0x6072a9
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
jne 0x6072f9
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 0xd], 1
call fcn.0040916d
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x60715b
lea eax, [ebp - 0x48]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x607237
lea ecx, [ebp - 0x60]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x60721e
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
test eax, eax
je 0x60721e
mov eax, dword [esi + 0x28]
mov ecx, dword [ebp - 0x60]
cmp ecx, eax
jne 0x60721e
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
jne 0x60721e
mov eax, dword [ebp - 0x2c]
cmp eax, dword [esi + 0x20]
jne 0x6071c5
mov eax, dword [ebp - 0x30]
cmp eax, dword [esi + 0x24]
je 0x60721b
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [ebp - 0x1c], 0xffffffff
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], ebx
jae 0x6071e1
lea eax, [ebp - 0x48]
push eax
lea esi, [ebp - 0x18]
call fcn.00602b63
pop ecx
cmp al, 1
jne 0x607234
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx + 0x1c]
jne 0x607234
cmp dword [ebp - 0x34], 8
mov ecx, dword [ebp - 0x48]
jae 0x607206
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x14]
push dword [eax + 0x24]
push dword [eax + 0x20]
push ecx
call fcn.0060b24f
mov esi, dword [ebp - 0x14]
add esp, 0xc
mov byte [ebp - 0xd], bl
cmp dword [ebp - 0x1c], 0xffffffff
je 0x60722d
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [ebp - 0xd], bl
je 0x607250
jmp 0x607237
mov esi, dword [ebp - 0x14]
push esi
lea eax, [ebp - 0x1b0]
push eax
call fcn.0060de2f
inc dword [edi + 0xc]
mov eax, dword [esi + 0x28]
add dword [edi + 0x30], eax
adc dword [edi + 0x34], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x2c
cdq
pop ecx
idiv ecx
inc dword [ebp - 0x28]
fild dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
test eax, eax
jge 0x607275
fadd dword [0x692650]
fdivp st(1)
mov eax, dword [edi + 8]
fstp dword [ebp - 0x18]
fld dword [ebp - 0x18]
fstp dword [eax + 0x21c]
push dword [edi + 8]
call fcn.00602f7f
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.00401c85
lea esi, [ebp - 0x24]
call fcn.00403041
jmp 0x6070ee
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1b0]
push eax
call fcn.0060ddfa
jmp 0x60701d
cmp dword [edi + 0xc], ebx
jne 0x607310
push 0x68c634
lea ecx, [ebp - 0xf8]
call fcn.004018f5
mov byte [ebp - 4], 2
mov eax, dword [edi]
push ebx
lea ecx, [ebp - 0xf8]
push ecx
mov ecx, edi
call dword [eax + 8]
mov byte [ebp - 4], bl
push ebx
xor ebx, ebx
inc ebx
push ebx
lea ecx, [ebp - 0xf8]
call fcn.00401c85
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1b0]
push eax
call fcn.0060ddfa
mov eax, ebx
jmp 0x60701f
push str.TORRENT_TOTAL_PROGRESS
push ecx
call fcn.0040171c
pop ecx
mov esi, eax
call fcn.0060d9f6
mov esi, dword [edi + 8]
push eax
call fcn.00602f63
push ebx
push str.TORRENT_STATE_DOWNLOADING
call fcn.0040171c
mov esi, eax
call fcn.0060d9f6
mov esi, dword [edi + 8]
push eax
call fcn.00602f47
mov eax, dword [edi + 8]
push 0x68c634
lea ecx, [eax + 0x1fc]
call fcn.00401beb
push dword [edi + 8]
call fcn.00602f7f
lea eax, [ebp - 0x1b0]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
call fcn.0040f279
pop ecx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 8]
call fcn.0041316c
pop ecx
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x607391
cmp eax, dword [ebp - 0x30]
je 0x607396
call fcn.005a6714
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x2c]
je 0x607706
lea esi, [ebp - 0x24]
call fcn.004a72fd
mov esi, eax
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp + 8], esi
call dword [eax + 0x10]
test al, al
je 0x6072f9
push esi
push dword [ebp + 0x14]
lea eax, [ebp - 0x7c]
push eax
call fcn.0040916d
add esp, 0xc
mov byte [ebp - 4], 3
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x1cc]
push eax
call fcn.0040916d
add esp, 0xc
mov byte [ebp - 4], 4
push 0x6882e0
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00409115
add esp, 0xc
mov byte [ebp - 4], 6
push ebx
push 1
lea ecx, [ebp - 0x1cc]
call fcn.00401c85
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [edi + 0x40]
call fcn.00401b58
mov eax, dword [esi + 0x28]
mov esi, edi
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
call fcn.00606379
mov ecx, dword [ebp - 0x78]
push 8
pop esi
cmp dword [ebp - 0x64], esi
jae 0x607440
lea ecx, [ebp - 0x78]
mov eax, dword [ebp - 0x94]
cmp dword [ebp - 0x80], esi
jae 0x607451
lea eax, [ebp - 0x94]
push dword [ebp + 0x18]
push ecx
push eax
push edi
call fcn.00606d5a
test al, al
je 0x60769f
mov eax, dword [ebp - 0x78]
cmp dword [ebp - 0x64], esi
jae 0x60746f
lea eax, [ebp - 0x78]
push 0x104
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.005aabb4
add esp, 0xc
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0040978f
mov byte [ebp - 4], 7
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp - 0x118]
call fcn.004098e0
mov byte [ebp - 4], 8
push 0x688324
lea ecx, [ebp - 0xf8]
call fcn.0040188e
mov byte [ebp - 4], 9
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x174]
call fcn.00409a93
mov esi, eax
mov byte [ebp - 4], 8
push ebx
push 1
lea ecx, [ebp - 0xf8]
call fcn.00401ac6
cmp esi, ebx
jne 0x607646
push str._texcache.epk
lea eax, [ebp - 0x138]
push eax
call fcn.0040978f
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x1ec]
push eax
lea ecx, [ebp - 0x118]
call fcn.004099bd
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x138]
push ecx
lea ecx, [ebp - 0xd8]
push ecx
push eax
call fcn.0040985a
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x1ec]
call fcn.0040982a
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x138]
call fcn.0040982a
mov eax, dword [ebp - 0xd0]
push 0x10
pop esi
cmp dword [ebp - 0xbc], esi
jae 0x607567
lea eax, [ebp - 0xd0]
push ebx
push eax
call fcn.005aa892
pop ecx
pop ecx
test eax, eax
jne 0x60758f
mov eax, dword [ebp - 0xd0]
cmp dword [ebp - 0xbc], esi
jae 0x607588
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push str._texcache.eix
lea eax, [ebp - 0x158]
push eax
call fcn.0040978f
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x118]
call fcn.004099bd
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x158]
push ecx
lea ecx, [ebp - 0xb8]
push ecx
push eax
call fcn.0040985a
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x20c]
call fcn.0040982a
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x158]
call fcn.0040982a
mov eax, dword [ebp - 0xb0]
cmp dword [ebp - 0x9c], esi
jae 0x607600
lea eax, [ebp - 0xb0]
push ebx
push eax
call fcn.005aa892
pop ecx
pop ecx
test eax, eax
jne 0x607628
mov eax, dword [ebp - 0xb0]
cmp dword [ebp - 0x9c], esi
jae 0x607621
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xb8]
call fcn.0040982a
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xd8]
call fcn.0040982a
mov eax, dword [ebp + 8]
push dword [eax + 0x28]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 8]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x178]
call fcn.0040982a
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x118]
call fcn.0040982a
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x98]
call fcn.00401c85
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x7c]
call fcn.00401c85
lea esi, [ebp - 0x24]
call fcn.00403041
jmp 0x607385
cmp dword [ebp + 0x18], ebx
je 0x6076e6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
test al, al
je 0x6076e6
mov eax, dword [ebp - 0x94]
cmp dword [ebp - 0x80], esi
jae 0x6076c0
lea eax, [ebp - 0x94]
push eax
push str.FAILED_DOWNLOAD_FILE
call fcn.0040171c
mov esi, eax
call fcn.0060d9f6
mov ecx, dword [ebp + 0x18]
push eax
push str._s____s
push 2
pop esi
call fcn.004150a0
add esp, 0xc
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x98]
call fcn.00401c85
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x7c]
jmp 0x6072f4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
xor ebx, ebx
inc ebx
jmp 0x6072f9