Function at 0x416328
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x5e7ccb
call fcn.005c3f5c
sub esp, 0x6c4
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x14], ebx
jne 0x41637c
cmp dword [ebp + 0x18], ebx
je 0x416369
push str.TORRENT_DATA_EMPTY
push ecx
call fcn.00403080
add esp, 4
call fcn.00405670
push 2
mov ecx, eax
mov eax, dword [ebp + 0x18]
pop esi
call fcn.004203d0
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
lea eax, [ebp - 0x100]
push eax
mov eax, edi
call fcn.00417474
mov esi, eax
lea eax, [ebp - 0xf8]
push eax
mov eax, edi
call fcn.00409660
push dword [esi + 4]
push dword [esi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x1a0]
push eax
call fcn.00418c69
add esp, 0x14
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x478]
push eax
call fcn.00421e9f
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x45c]
sub eax, dword [ebp - 0x460]
push 0x60
cdq
pop ecx
idiv ecx
xor edi, edi
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x41645e
push edi
lea esi, [ebp - 0x470]
call fcn.00415cb0
push dword [ebp - 0x430]
mov esi, eax
push esi
lea eax, [ebp - 0x444]
call fcn.00417499
test eax, eax
jne 0x416458
mov eax, dword [ebp - 0x430]
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0x11c]
push eax
mov ecx, esi
call fcn.00404164
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x478]
call fcn.00422255
lea eax, [ebp - 0x11c]
push eax
push edi
lea eax, [ebp - 0x470]
call fcn.0042875d
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x11c]
call fcn.004034fc
inc edi
cmp edi, dword [ebp - 0x24]
jne 0x4163e8
push 2
mov esi, str.temp
push esi
call fcn.00580aa7
pop ecx
pop ecx
test eax, eax
je 0x416478
push esi
call fcn.00578b9b
pop ecx
push esi
lea eax, [ebp - 0xd0]
push eax
call fcn.004174ec
mov byte [ebp - 4], 3
push str..fastresume
push dword [ebp + 0x14]
lea eax, [ebp - 0x1f4]
push eax
call fcn.00418c11
add esp, 0xc
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xd0]
call fcn.00417549
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x1f4]
call fcn.004034fc
lea eax, [ebp - 0xa4]
push eax
call fcn.00423489
mov byte [ebp - 4], 5
cmp dword [ebp - 0xb8], 0x10
mov eax, dword [ebp - 0xcc]
jae 0x4164e7
lea eax, [ebp - 0xcc]
push 0x62dbc8
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00574b60
add esp, 0xc
test eax, eax
jne 0x416552
push 2
push ebx
push dword [ebp - 0x20]
call fcn.005774ca
add esp, 0xc
push dword [ebp - 0x20]
call fcn.005776ec
pop ecx
push ebx
push ebx
push dword [ebp - 0x20]
mov esi, eax
call fcn.005774ca
add esp, 0xc
push esi
lea eax, [ebp - 0xa4]
call fcn.004112f3
push dword [ebp - 0x20]
push 1
push esi
push ebx
lea esi, [ebp - 0xa4]
call fcn.0040eb33
push eax
call fcn.005779fa
push dword [ebp - 0x20]
call fcn.00574721
add esp, 0x14
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x34], 8
jb 0x416560
mov eax, dword [esi + 0x20]
jmp 0x416563
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 0x298]
call fcn.0041128d
mov byte [ebp - 4], 6
lea eax, [ebp - 0x178]
push eax
call fcn.00415cd4
mov byte [ebp - 4], 7
push 0x158
call fcn.005740d0
pop ecx
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x4165a8
lea ecx, [ebp - 0x478]
push ecx
push eax
call fcn.00421c55
jmp 0x4165aa
xor eax, eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x4165be
xor edx, edx
mov ecx, eax
inc edx
lock xadd dword [ecx], edx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x178]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x178], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x38]
call fcn.00433403
mov edi, dword [ebp - 0x298]
lea eax, [ebp - 0x158]
push eax
call fcn.00409554
push edi
lea ecx, [ebp - 0x158]
call fcn.00418902
mov eax, dword [ebp - 0x94]
sub eax, dword [ebp - 0x98]
je 0x416615
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x8c], ebx
call fcn.005a5950
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00429a18
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1c]
call fcn.0042b333
mov ecx, dword [esi + 0xe4]
lea edx, [ebp - 0x1c]
call fcn.0042b19d
mov ecx, dword [esi + 0xe8]
lea edx, [ebp - 0x1c]
call fcn.0042b227
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042b6d0
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0xf0]
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], eax
lea edi, [ebp - 0x64]
lea esi, [ebp - 0x4c]
call fcn.0045299b
test al, al
jne 0x4166c9
call fcn.004191fa
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042b64d
call fcn.00445603
jmp 0x4166a5
lea ecx, [ebp - 0x1c]
call fcn.0042b42f
fldz
and dword [ebp - 0x28], 0
fstp dword [ebp - 0x2c]
mov byte [ebp + 0x17], 0
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
jmp 0x416b25
cmp byte [ebp + 0x17], 0
jne 0x416b35
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
call dword [eax + 4]
test al, al
jne 0x416b35
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
jne 0x416b35
xor esi, esi
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0xc
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x54]
push eax
call fcn.00429bfc
mov byte [ebp - 4], 0xd
mov ecx, dword [eax]
push ecx
lea edi, [ebp - 0x10]
mov dword [eax], esi
call fcn.00417d0e
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x54]
cmp ecx, esi
je 0x41674c
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [ebp - 0x10], esi
je 0x416919
xor edi, edi
push edi
push 0x685cec
mov esi, 0x685ccc
push esi
push edi
push dword [ebp - 0x10]
call fcn.005c428a
add esp, 0x14
cmp eax, edi
jne 0x416c3e
push edi
push 0x685d18
push esi
push edi
push dword [ebp - 0x10]
call fcn.005c428a
add esp, 0x14
cmp eax, edi
jne 0x416c3e
push edi
push 0x685d48
push esi
push edi
push dword [ebp - 0x10]
call fcn.005c428a
add esp, 0x14
cmp eax, edi
jne 0x416c3e
push edi
push 0x685d78
push esi
push edi
push dword [ebp - 0x10]
call fcn.005c428a
add esp, 0x14
cmp eax, edi
jne 0x416c3e
push edi
push 0x685da0
push esi
push edi
push dword [ebp - 0x10]
call fcn.005c428a
add esp, 0x14
cmp eax, edi
jne 0x416c3e
push edi
push 0x685dd8
push esi
push edi
push dword [ebp - 0x10]
call fcn.005c428a
add esp, 0x14
cmp eax, edi
jne 0x416c3e
push edi
push 0x685e08
push esi
push edi
push dword [ebp - 0x10]
call fcn.005c428a
add esp, 0x14
cmp eax, edi
jne 0x416c3e
push edi
push 0x685e3c
push esi
push edi
push dword [ebp - 0x10]
call fcn.005c428a
add esp, 0x14
cmp eax, edi
jne 0x416c3e
push edi
push 0x685da0
push esi
push edi
push dword [ebp - 0x10]
call fcn.005c428a
add esp, 0x14
cmp eax, edi
jne 0x416c3e
push edi
push 0x685e70
push esi
push edi
push dword [ebp - 0x10]
call fcn.005c428a
add esp, 0x14
cmp eax, edi
jne 0x4168e0
push edi
push 0x685ea0
push esi
mov esi, dword [ebp - 0x10]
push edi
push esi
call fcn.005c428a
add esp, 0x14
push 0x62dbcc
lea eax, [ebp - 0x34]
push str.temppatch.log
push eax
call fcn.00574b60
add esp, 0xc
test eax, eax
jne 0x4168e0
mov eax, dword [esi]
lea ecx, [ebp - 0x1bc]
push ecx
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 0x11
cmp dword [eax + 0x18], 0x10
jb 0x4168b1
mov eax, dword [eax + 4]
jmp 0x4168b4
add eax, 4
push eax
push 0x62dbe0
push dword [ebp - 0x34]
call fcn.0057468f
add esp, 0xc
mov byte [ebp - 4], 0xc
push edi
push 1
lea ecx, [ebp - 0x1bc]
call fcn.004034fc
push dword [ebp - 0x34]
call fcn.00574721
pop ecx
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x58]
push eax
call fcn.00429bfc
mov byte [ebp - 4], 0x12
mov ecx, dword [eax]
and dword [eax], 0
push ecx
lea edi, [ebp - 0x10]
call fcn.00417d0e
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x41690f
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [ebp - 0x10], 0
jne 0x416755
lea ecx, [ebp - 0x1c]
call fcn.0042b2b1
test al, al
je 0x416929
mov byte [ebp + 0x17], 1
mov eax, dword [0x68cc7c]
add eax, 0x54
mov ecx, dword [eax]
mov ecx, dword [ecx]
test ecx, ecx
je 0x416975
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
add eax, 0xfc
cmp esi, dword [eax]
je 0x416975
mov dword [eax], esi
mov edx, dword [ebx + 4]
test esi, esi
jne 0x416964
or ecx, 0xffffffff
call fcn.00429b96
or ecx, 0xffffffff
jmp 0x41696d
mov ecx, esi
call fcn.00429b96
mov ecx, esi
mov edx, dword [ebx + 4]
call fcn.00429b30
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea eax, [ebp - 0x5c8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042b4ab
mov byte [ebp - 4], 0x13
mov eax, dword [ebp + 0x10]
cmp byte [eax + 0xf8], 0
je 0x416a39
cmp byte [ebp - 0x12], 0
jne 0x416a39
cmp dword [ebp - 0x5c8], 3
jne 0x4169b6
inc dword [ebp - 0x28]
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x38]
imul eax, eax, 0xa
cmp dword [ebp - 0x28], eax
jb 0x416a39
lea ecx, [ebp - 0x1c]
call fcn.0042b333
mov ebx, dword [edi + 0xc]
lea esi, [ebp - 0x7c]
mov dword [ebp - 0xac], edi
call fcn.00424e0d
mov eax, dword [ebp - 0x7c]
mov ebx, dword [edi + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x78]
lea esi, [ebp - 0x84]
mov dword [ebp - 0x40], eax
call fcn.00424e0d
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x70], eax
lea edi, [ebp - 0x74]
lea esi, [ebp - 0x44]
call fcn.0045299b
test al, al
jne 0x416a2a
call fcn.00438751
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042b5ca
call fcn.00414c85
jmp 0x416a06
lea ecx, [ebp - 0x1c]
call fcn.0042b42f
mov ebx, dword [ebp + 8]
mov byte [ebp - 0x12], 1
push 0x62dbe4
push ecx
call fcn.00403080
add esp, 4
call fcn.00405670
mov esi, eax
mov eax, dword [ebp - 0x5c8]
cmp eax, 8
jge 0x416a70
push dword [eax*4 + 0x68481c]
push ecx
call fcn.00403080
add esp, 4
call fcn.00405670
mov esi, eax
cmp byte [ebp - 0x11], 0
jne 0x416a8c
cmp dword [ebp - 0x5c8], 3
fld dword [ebp - 0x5c0]
jne 0x416abb
fstp dword [ebp - 0x2c]
mov byte [ebp - 0x11], 1
fld dword [ebp - 0x5c0]
mov eax, dword [ebx + 8]
fsub dword [ebp - 0x2c]
push ecx
fld dword [ebp - 0x2c]
fld1
fsubrp st(1)
fdivp st(1)
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x3c]
fstp dword [eax + 0x200]
fld dword [ebp - 0x3c]
fstp dword [esp]
call fcn.00414262
jmp 0x416ac4
mov eax, dword [ebx + 8]
fstp dword [eax + 0x200]
xor ecx, ecx
cmp dword [ebp - 0x5c8], 3
sete cl
push ecx
push esi
mov esi, eax
call fcn.00414246
push str.TORRENT_TOTAL_PROGRESS
push ecx
call fcn.00403080
add esp, 4
call fcn.00405670
mov esi, dword [ebx + 8]
push eax
call fcn.0041422a
mov edi, ebx
call fcn.00416147
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x5c8]
push eax
call fcn.004162cd
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x416b25
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
call dword [eax + 0x10]
test al, al
jne 0x4166eb
lea ecx, [ebp - 0x1c]
call fcn.0042b2b1
test al, al
je 0x416e7a
push 0
push str.TORRENT_SAVING_RESUME_DATA
call fcn.00403080
call fcn.00405670
mov esi, dword [ebx + 8]
push eax
call fcn.00414246
mov ebx, dword [ebx + 8]
call fcn.004141be
lea ecx, [ebp - 0x1c]
call fcn.0042b333
lea ecx, [ebp - 0x1c]
call fcn.0042b3b1
and dword [ebp + 0xc], 0
mov byte [ebp + 0x13], 1
cmp byte [ebp + 0x13], 0
je 0x416e72
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x50]
push eax
call fcn.00429bfc
mov byte [ebp - 4], 0x14
mov esi, dword [eax]
and dword [eax], 0
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x416bb5
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp + 0x18], esi
test esi, esi
je 0x416e46
push 0
push 0x685ed0
mov esi, 0x685ccc
push esi
push 0
push dword [ebp + 0x18]
call fcn.005c428a
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x416d4d
push eax
push 0x685f08
push esi
push eax
push dword [ebp + 0x18]
call fcn.005c428a
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x416dbd
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x5c]
push eax
call fcn.00429bfc
mov byte [ebp - 4], 0x1a
mov ecx, dword [eax]
and dword [eax], esi
push ecx
lea edi, [ebp - 0x30]
call fcn.00417d0e
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x416c2f
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x30]
mov dword [ebp + 0x18], eax
test eax, eax
jne 0x416bc0
jmp 0x416e46
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
lea edx, [ebp - 0x210]
push edx
call dword [eax + 8]
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x18], 0x10
jb 0x416c5c
mov eax, dword [eax + 4]
jmp 0x416c5f
add eax, 4
push eax
lea ecx, [ebp - 0x6d0]
call fcn.0040593a
mov byte [ebp - 4], 0x10
push 0
push 1
lea ecx, [ebp - 0x210]
call fcn.004034fc
push dword [ebp - 0x6d0]
mov edi, dword [ebp + 0x18]
push 2
pop esi
call fcn.00420400
pop ecx
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x6cc]
cmp dword [ebp - 0x6d0], eax
je 0x416cae
push dword [ebp - 0x6d0]
call fcn.00574f18
pop ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
push 1
call dword [eax]
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xf0]
push eax
call fcn.00416f00
mov byte [ebp - 4], 7
lea eax, [ebp - 0x1c]
push eax
call fcn.0046db41
mov byte [ebp - 4], 6
lea eax, [ebp - 0x178]
push eax
call fcn.00416ecc
mov byte [ebp - 4], 5
lea eax, [ebp - 0x294]
cmp dword [ebp - 0x298], eax
je 0x416d06
push dword [ebp - 0x298]
call fcn.00574f18
pop ecx
xor bl, bl
mov byte [ebp - 4], 3
lea eax, [ebp - 0xa4]
push eax
call fcn.004830dd
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd0]
call fcn.00417522
mov byte [ebp - 4], 0
lea eax, [ebp - 0x478]
push eax
call fcn.0042218c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a0]
call fcn.0042c59d
mov al, bl
jmp 0x41636b
push 0x62dbcc
lea eax, [ebp - 0x24]
push str.temppatch.log
push eax
call fcn.00574b60
add esp, 0xc
test eax, eax
jne 0x416db4
mov eax, dword [edi]
lea ecx, [ebp - 0x1d8]
push ecx
mov ecx, edi
call dword [eax + 8]
mov byte [ebp - 4], 0x17
cmp dword [eax + 0x18], 0x10
jb 0x416d84
mov eax, dword [eax + 4]
jmp 0x416d87
add eax, 4
push eax
push 0x62dbe0
push dword [ebp - 0x24]
call fcn.0057468f
add esp, 0xc
mov byte [ebp - 4], 0x16
push 0
push 1
lea ecx, [ebp - 0x1d8]
call fcn.004034fc
push dword [ebp - 0x24]
call fcn.00574721
pop ecx
mov byte [ebp + 0x13], 0
jmp 0x416e54
lea eax, [ebp - 0xb4]
lea ecx, [esi + 0x10]
push eax
call fcn.0043b7ea
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.00418cea
mov byte [ebp - 4], 0x19
mov eax, dword [ebp - 0x320]
mov eax, dword [eax + 4]
mov esi, dword [esi + 0x18]
lea eax, [ebp + eax - 0x320]
and dword [eax + 0x10], 0xfffffffe
lea eax, [ebp - 0x320]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x6c]
xor ecx, ecx
push esi
push eax
mov dword [ebp - 0x6c], ecx
call fcn.004197f9
pop ecx
pop ecx
mov byte [ebp + 0x13], 0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2cc]
call fcn.00417dc3
lea ecx, [ebp - 0x2cc]
call fcn.0041ab63
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0xb4]
push eax
call fcn.0046db41
cmp byte [ebp + 0x13], 1
jne 0x416e54
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x416e65
mov eax, dword [ecx]
push 1
call dword [eax]
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x64
jne 0x416b7f
lea ecx, [ebp - 0x1c]
call fcn.0042b42f
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xf0]
push eax
call fcn.00416f00
mov byte [ebp - 4], 7
lea eax, [ebp - 0x1c]
push eax
call fcn.0046db41
mov byte [ebp - 4], 6
lea eax, [ebp - 0x178]
push eax
call fcn.00416ecc
mov byte [ebp - 4], 5
lea eax, [ebp - 0x294]
cmp dword [ebp - 0x298], eax
je 0x416ec5
push dword [ebp - 0x298]
call fcn.00574f18
pop ecx
mov bl, 1
jmp 0x416d08