Function at 0x41028a
Capabilities:
Delete file
Get file size

Disassembly:
mov eax, 0x630b66
call fcn.0060d220
sub esp, 0x28c
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x10]
test al, al
jne 0x4102bb
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 0x410302
mov edi, dword [ebp + 0x18]
cmp edi, ebx
je 0x4102a8
push str.INVALID_CRC_TABLE
push ecx
call fcn.00402e56
pop ecx
mov esi, eax
call fcn.00405362
push 2
mov ecx, eax
pop esi
call fcn.004225f0
jmp 0x4102a8
lea eax, [ebp - 0x13c]
push eax
call fcn.00403a89
mov dword [ebp - 4], ebx
push str.TORRENT_STATE_CHECKING
push ecx
call fcn.00402e56
pop ecx
mov esi, eax
call fcn.00405362
mov esi, dword [edi + 8]
push eax
call fcn.0041546a
mov esi, dword [edi + 8]
push ebx
push 0x683698
call fcn.00415486
mov eax, dword [edi + 8]
push 0x683698
lea ecx, [eax + 0x1fc]
call fcn.004030a2
push dword [edi + 8]
call fcn.004153f7
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.004170df
pop ecx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x14]
call fcn.00411b1c
pop ecx
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x410385
cmp eax, dword [ebp - 0x78]
je 0x41038a
call fcn.005b544b
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x74]
je 0x410549
lea esi, [ebp - 0x24]
call fcn.0049297c
mov esi, eax
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x14], esi
call dword [eax + 0x10]
test al, al
je 0x410534
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
jne 0x41057b
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 0xd], 1
call fcn.0040f28a
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x4103e6
lea eax, [ebp - 0x64]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x4104c2
lea ecx, [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4104a9
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4104a9
mov eax, dword [esi + 0x28]
mov ecx, dword [ebp - 0x70]
cmp ecx, eax
jne 0x4104a9
mov eax, dword [ebp - 0x6c]
cmp eax, ebx
jne 0x4104a9
mov eax, dword [ebp - 0x2c]
cmp eax, dword [esi + 0x20]
jne 0x410450
mov eax, dword [ebp - 0x30]
cmp eax, dword [esi + 0x24]
je 0x4104a6
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x18], 0xffffffff
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x1c], ebx
jae 0x41046c
lea eax, [ebp - 0x64]
push eax
lea esi, [ebp - 0x1c]
call fcn.004146f2
pop ecx
cmp al, 1
jne 0x4104bf
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx + 0x1c]
jne 0x4104bf
cmp dword [ebp - 0x50], 8
mov ecx, dword [ebp - 0x64]
jae 0x410491
lea ecx, [ebp - 0x64]
mov eax, dword [ebp - 0x14]
push dword [eax + 0x24]
push dword [eax + 0x20]
push ecx
call fcn.00406d82
mov esi, dword [ebp - 0x14]
add esp, 0xc
mov byte [ebp - 0xd], bl
cmp dword [ebp - 0x18], 0xffffffff
je 0x4104b8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xd], bl
je 0x4104db
jmp 0x4104c2
mov esi, dword [ebp - 0x14]
push esi
lea eax, [ebp - 0x13c]
push eax
call fcn.00403e30
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 - 0x1c], eax
fild dword [ebp - 0x1c]
test eax, eax
jge 0x410500
fadd dword [0x68f5b8]
fdivp st(1)
mov eax, dword [edi + 8]
fstp dword [ebp - 0x1c]
fld dword [ebp - 0x1c]
fstp dword [eax + 0x21c]
push dword [edi + 8]
call fcn.004153f7
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.0040337f
lea esi, [ebp - 0x24]
call fcn.00404515
jmp 0x410379
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x13c]
push eax
call fcn.00403b12
jmp 0x4102a8
cmp dword [edi + 0xc], ebx
jne 0x410592
push 0x683698
lea ecx, [ebp - 0x4c]
call fcn.004030bf
mov byte [ebp - 4], 2
mov eax, dword [edi]
push ebx
lea ecx, [ebp - 0x4c]
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 - 0x4c]
call fcn.0040337f
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x13c]
push eax
call fcn.00403b12
mov eax, ebx
jmp 0x4102aa
push str.TORRENT_TOTAL_PROGRESS
push ecx
call fcn.00402e56
pop ecx
mov esi, eax
call fcn.00405362
mov esi, dword [edi + 8]
push eax
call fcn.0041546a
push ebx
push str.TORRENT_STATE_DOWNLOADING
call fcn.00402e56
mov esi, eax
call fcn.00405362
mov esi, dword [edi + 8]
push eax
call fcn.00415486
mov eax, dword [edi + 8]
push 0x683698
lea ecx, [eax + 0x1fc]
call fcn.004030a2
push dword [edi + 8]
call fcn.004153f7
lea eax, [ebp - 0x13c]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
call fcn.004170df
pop ecx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 8]
call fcn.00411b1c
pop ecx
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x410613
cmp eax, dword [ebp - 0x30]
je 0x410618
call fcn.005b544b
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x2c]
je 0x410942
lea esi, [ebp - 0x24]
call fcn.0049297c
mov esi, eax
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp + 8], esi
call dword [eax + 0x10]
test al, al
je 0x41057b
push esi
push dword [ebp + 0x14]
lea eax, [ebp - 0xb0]
push eax
call fcn.0040f28a
add esp, 0xc
mov byte [ebp - 4], 3
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x158]
push eax
call fcn.0040f28a
add esp, 0xc
mov byte [ebp - 4], 4
push 0x685260
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0040f232
add esp, 0xc
mov byte [ebp - 4], 6
push ebx
push 1
lea ecx, [ebp - 0x158]
call fcn.0040337f
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [edi + 0x40]
call fcn.00403484
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.00411560
mov ecx, dword [ebp - 0xac]
push 8
pop esi
cmp dword [ebp - 0x98], esi
jae 0x4106ce
lea ecx, [ebp - 0xac]
mov eax, dword [ebp - 0x90]
cmp dword [ebp - 0x7c], esi
jae 0x4106df
lea eax, [ebp - 0x90]
push dword [ebp + 0x18]
push ecx
push eax
push edi
call fcn.0041115b
test al, al
je 0x4108d8
mov eax, dword [ebp - 0xac]
cmp dword [ebp - 0x98], esi
jae 0x410706
lea eax, [ebp - 0xac]
push 0x104
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.005b95d1
add esp, 0xc
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0xe8]
call fcn.004028e2
mov byte [ebp - 4], 7
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040ff28
mov byte [ebp - 4], 8
mov esi, 0x6852a4
push esi
call fcn.005b5460
add esp, 0xc
push eax
push esi
push dword [ebp - 0xf0]
lea ecx, [ebp - 0x104]
push ebx
call fcn.00411bdc
test eax, eax
jne 0x410877
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.0040ffcd
mov byte [ebp - 4], 9
push str._texcache.epk
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00411b46
add esp, 0x14
mov byte [ebp - 4], 0xb
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x174]
call fcn.00403762
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x4107bb
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.005b974e
pop ecx
pop ecx
test eax, eax
jne 0x4107db
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x4107d4
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.0040ffcd
mov byte [ebp - 4], 0xc
push str._texcache.eix
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00411b46
add esp, 0x14
mov byte [ebp - 4], 0xe
push ebx
push esi
lea ecx, [ebp - 0x190]
call fcn.00403762
cmp dword [ebp - 0xb4], 0x10
mov eax, dword [ebp - 0xc8]
jae 0x41082d
lea eax, [ebp - 0xc8]
push ebx
push eax
call fcn.005b974e
pop ecx
pop ecx
test eax, eax
jne 0x410856
cmp dword [ebp - 0xb4], 0x10
mov eax, dword [ebp - 0xc8]
jae 0x41084f
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 0xb
push ebx
push esi
lea ecx, [ebp - 0xcc]
call fcn.00403762
mov byte [ebp - 4], 8
push ebx
push esi
lea ecx, [ebp - 0x4c]
call fcn.00403762
jmp 0x41087a
xor esi, esi
inc esi
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
push ebx
push esi
lea ecx, [ebp - 0x104]
call fcn.00403762
mov byte [ebp - 4], 6
push ebx
push esi
lea ecx, [ebp - 0xe8]
call fcn.00403762
mov byte [ebp - 4], 3
push ebx
push esi
lea ecx, [ebp - 0x94]
call fcn.0040337f
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp - 0xb0]
call fcn.0040337f
lea esi, [ebp - 0x24]
call fcn.00404515
jmp 0x410607
cmp dword [ebp + 0x18], ebx
je 0x41091f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
test al, al
je 0x41091f
mov eax, dword [ebp - 0x90]
cmp dword [ebp - 0x7c], esi
jae 0x4108f9
lea eax, [ebp - 0x90]
push eax
push str.FAILED_DOWNLOAD_FILE
call fcn.00402e56
mov esi, eax
call fcn.00405362
mov ecx, dword [ebp + 0x18]
push eax
push str._s____s
push 2
pop esi
call fcn.00422620
add esp, 0xc
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x94]
call fcn.0040337f
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0xb0]
jmp 0x410576
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
xor ebx, ebx
inc ebx
jmp 0x41057b