Function at 0x6017bd
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x61fb09
call fcn.0060ebd0
sub esp, 0x6c4
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x14], ebx
jne 0x601811
cmp dword [ebp + 0x18], ebx
je 0x6017fe
push str.TORRENT_DATA_EMPTY
push ecx
call fcn.0040171c
pop ecx
mov esi, eax
call fcn.0060d9f6
mov edi, dword [ebp + 0x18]
push 2
mov ecx, eax
pop esi
call fcn.00415070
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.0041045f
mov esi, eax
lea eax, [ebp - 0xf8]
push eax
mov eax, edi
call fcn.0041043f
push dword [esi + 4]
push dword [esi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x1a0]
push eax
call fcn.00411216
add esp, 0x14
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x478]
push eax
call fcn.004167b1
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 0x6018f3
push edi
lea esi, [ebp - 0x470]
call fcn.004101fe
push dword [ebp - 0x430]
mov esi, eax
push esi
lea eax, [ebp - 0x444]
call fcn.00410484
test eax, eax
jne 0x6018ed
mov eax, dword [ebp - 0x430]
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0x11c]
push eax
mov ecx, esi
call fcn.00402aa8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x478]
call fcn.00416b61
lea eax, [ebp - 0x11c]
push eax
push edi
lea eax, [ebp - 0x470]
call fcn.0041ee60
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x11c]
call fcn.00401ac6
inc edi
cmp edi, dword [ebp - 0x24]
jne 0x60187d
push 2
mov esi, str.temp
push esi
call fcn.005aa892
pop ecx
pop ecx
test eax, eax
je 0x60190d
push esi
call fcn.005ac5d7
pop ecx
push esi
lea eax, [ebp - 0xd0]
push eax
call fcn.004104e7
mov byte [ebp - 4], 3
push str..fastresume
push dword [ebp + 0x14]
lea eax, [ebp - 0x1f4]
push eax
call fcn.0040f010
add esp, 0xc
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xd0]
call fcn.0042d882
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x1f4]
call fcn.00401ac6
lea eax, [ebp - 0xa4]
push eax
call fcn.00418161
mov byte [ebp - 4], 5
cmp dword [ebp - 0xb8], 0x10
mov eax, dword [ebp - 0xcc]
jae 0x60197c
lea eax, [ebp - 0xcc]
push 0x688ec4
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.005a706c
add esp, 0xc
test eax, eax
jne 0x6019e7
push 2
push ebx
push dword [ebp - 0x1c]
call fcn.005a9a8c
add esp, 0xc
push dword [ebp - 0x1c]
call fcn.005a9994
pop ecx
push ebx
push ebx
push dword [ebp - 0x1c]
mov esi, eax
call fcn.005a9a8c
add esp, 0xc
push esi
lea eax, [ebp - 0xa4]
call fcn.00409c60
push dword [ebp - 0x1c]
push 1
push esi
push ebx
lea esi, [ebp - 0xa4]
call fcn.00409ab7
push eax
call fcn.005a97da
push dword [ebp - 0x1c]
call fcn.005a6aa0
add esp, 0x14
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x34], 8
jb 0x6019f5
mov eax, dword [esi + 0x20]
jmp 0x6019f8
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 0x298]
call fcn.00409b0d
mov byte [ebp - 4], 6
lea eax, [ebp - 0x178]
push eax
call fcn.00410222
mov byte [ebp - 4], 7
push 0x158
call fcn.005a6b1c
pop ecx
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x601a3d
lea ecx, [ebp - 0x478]
push ecx
push eax
call fcn.00416567
jmp 0x601a3f
xor eax, eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x601a53
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.004105aa
mov edi, dword [ebp - 0x298]
lea eax, [ebp - 0x158]
push eax
call fcn.004062fb
push edi
lea ecx, [ebp - 0x158]
call fcn.00410efb
mov eax, dword [ebp - 0x94]
sub eax, dword [ebp - 0x98]
je 0x601aaa
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x8c], ebx
call fcn.005dcfc0
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
call fcn.0042e789
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x18]
push eax
call fcn.0041d598
mov ecx, dword [esi + 0xe4]
lea eax, [ebp - 0x18]
push eax
call fcn.0041d3f9
mov ecx, dword [esi + 0xe8]
lea eax, [ebp - 0x18]
push eax
call fcn.0041d486
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041d942
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.0049df96
test al, al
jne 0x601b62
call fcn.0043a0c5
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041d8be
call fcn.00410eae
jmp 0x601b3d
lea eax, [ebp - 0x18]
push eax
call fcn.0041d69a
fldz
mov edi, dword [ebp + 8]
fstp dword [ebp - 0x2c]
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
mov byte [ebp + 0x17], bl
mov byte [ebp - 0xe], bl
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0xd], bl
call dword [eax + 0x10]
mov esi, 0x6f1404
test al, al
je 0x6020bf
cmp byte [ebp + 0x17], bl
jne 0x6020bf
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
call dword [eax + 4]
test al, al
jne 0x6020bf
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
jne 0x6020bf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
call fcn.0042e96c
mov byte [ebp - 4], 0xd
mov ecx, dword [eax]
push ecx
lea edi, [ebp - 0x20]
mov dword [eax], ebx
call fcn.0041061a
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x54]
jmp 0x601d84
push ebx
push 0x6f1424
push esi
push ebx
push edi
call fcn.0060eefe
add esp, 0x14
cmp eax, ebx
jne 0x601fb2
push ebx
push 0x6f1450
push esi
push ebx
push edi
call fcn.0060eefe
add esp, 0x14
cmp eax, ebx
jne 0x601fb2
push ebx
push 0x6f1480
push esi
push ebx
push edi
call fcn.0060eefe
add esp, 0x14
cmp eax, ebx
jne 0x601fb2
push ebx
push 0x6f14b0
push esi
push ebx
push edi
call fcn.0060eefe
add esp, 0x14
cmp eax, ebx
jne 0x601fb2
push ebx
push 0x6f14d8
push esi
push ebx
push edi
call fcn.0060eefe
add esp, 0x14
cmp eax, ebx
jne 0x601fb2
push ebx
push 0x6f1510
push esi
push ebx
push edi
call fcn.0060eefe
add esp, 0x14
cmp eax, ebx
jne 0x601fb2
push ebx
push 0x6f1540
push esi
push ebx
push edi
call fcn.0060eefe
add esp, 0x14
cmp eax, ebx
jne 0x601fb2
push ebx
push 0x6f1574
push esi
push ebx
push edi
call fcn.0060eefe
add esp, 0x14
cmp eax, ebx
jne 0x601fb2
push ebx
push 0x6f14d8
push esi
push ebx
push edi
call fcn.0060eefe
add esp, 0x14
cmp eax, ebx
jne 0x601fb2
push ebx
push 0x6f15a8
push esi
push ebx
push edi
call fcn.0060eefe
add esp, 0x14
cmp eax, ebx
jne 0x601d5d
push ebx
push 0x6f15d8
push esi
push ebx
push edi
call fcn.0060eefe
add esp, 0x14
push 0x688ec8
lea eax, [ebp - 0x34]
push str.temppatch.log
push eax
call fcn.005a706c
add esp, 0xc
test eax, eax
jne 0x601d5d
mov eax, dword [edi]
lea ecx, [ebp - 0x1bc]
push ecx
mov ecx, edi
call dword [eax + 8]
mov byte [ebp - 4], 0x11
cmp dword [eax + 0x18], 0x10
jb 0x601d2e
mov eax, dword [eax + 4]
jmp 0x601d31
add eax, 4
push eax
push 0x688edc
push dword [ebp - 0x34]
call fcn.005a6840
add esp, 0xc
mov byte [ebp - 4], 0xc
push ebx
push 1
lea ecx, [ebp - 0x1bc]
call fcn.00401ac6
push dword [ebp - 0x34]
call fcn.005a6aa0
pop ecx
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
call fcn.0042e96c
mov byte [ebp - 4], 0x12
mov ecx, dword [eax]
push ecx
lea edi, [ebp - 0x20]
mov dword [eax], ebx
call fcn.0041061a
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x58]
cmp ecx, ebx
je 0x601d8e
mov eax, dword [ecx]
push 1
call dword [eax]
mov edi, dword [ebp - 0x20]
cmp edi, ebx
jne 0x601bf0
lea eax, [ebp - 0x18]
push eax
call fcn.0041d513
test al, al
je 0x601daa
mov byte [ebp + 0x17], 1
mov eax, dword [0x6f9ea4]
add eax, 0x54
mov ecx, dword [eax]
mov ecx, dword [ecx]
cmp ecx, ebx
je 0x601dda
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
add eax, 0xfc
cmp edx, dword [eax]
je 0x601dda
mov esi, dword [ebp + 8]
push edx
mov dword [eax], edx
call fcn.006016a6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea eax, [ebp - 0x5c8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041d719
mov byte [ebp - 4], 0x13
mov eax, dword [ebp + 0x10]
cmp byte [eax + 0xf8], bl
je 0x601ea6
cmp byte [ebp - 0xe], bl
jne 0x601ea6
cmp dword [ebp - 0x5c8], 3
jne 0x601e1d
inc dword [ebp - 0x28]
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x38]
imul eax, eax, 0xa
cmp dword [ebp - 0x28], eax
jb 0x601ea6
lea eax, [ebp - 0x18]
push eax
call fcn.0041d598
push esi
push dword [esi + 0xc]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0xac], esi
call fcn.00406cd3
mov eax, dword [ebp - 0x7c]
push esi
push dword [esi + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x40], eax
call fcn.00406cd3
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x44]
call fcn.00403d82
test al, al
jne 0x601e99
lea esi, [ebp - 0x44]
call fcn.004a72fd
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041d83a
call fcn.0040f57c
jmp 0x601e70
lea eax, [ebp - 0x18]
push eax
call fcn.0041d69a
mov byte [ebp - 0xe], 1
push 0x688ee0
push ecx
call fcn.0040171c
pop ecx
mov esi, eax
call fcn.0060d9f6
mov esi, eax
mov eax, dword [ebp - 0x5c8]
cmp eax, 8
jge 0x601edd
push dword [eax*4 + 0x6efc88]
push ecx
call fcn.0040171c
pop ecx
mov esi, eax
call fcn.0060d9f6
mov esi, eax
cmp byte [ebp - 0xd], bl
jne 0x601ef8
cmp dword [ebp - 0x5c8], 3
fld dword [ebp - 0x5c0]
jne 0x601f2a
fstp dword [ebp - 0x2c]
mov byte [ebp - 0xd], 1
fld dword [ebp - 0x5c0]
mov edi, dword [ebp + 8]
fsub dword [ebp - 0x2c]
mov eax, dword [edi + 8]
fld dword [ebp - 0x2c]
push ecx
fld1
fsubrp st(1)
fdivp st(1)
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x3c]
fstp dword [eax + 0x21c]
fld dword [ebp - 0x3c]
fstp dword [esp]
call fcn.00602b0e
jmp 0x601f36
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
fstp dword [eax + 0x21c]
xor ecx, ecx
cmp dword [ebp - 0x5c8], 3
sete cl
push ecx
push esi
mov esi, eax
call fcn.00602f47
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 edi
call fcn.00601542
push 0x64
call sub.KERNEL32.DLL_Sleep
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x5c8]
push eax
call fcn.0041034f
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x601f95
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
call dword [eax + 0x10]
test al, al
je 0x6020bf
mov edi, dword [ebp + 8]
mov esi, 0x6f1404
jmp 0x601b94
mov eax, dword [edi]
lea ecx, [ebp - 0x210]
push ecx
mov ecx, edi
call dword [eax + 8]
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x18], 0x10
jb 0x601fcf
mov eax, dword [eax + 4]
jmp 0x601fd2
add eax, 4
push eax
lea ecx, [ebp - 0x6d0]
call fcn.00403da9
mov byte [ebp - 4], 0x10
push ebx
push 1
lea ecx, [ebp - 0x210]
call fcn.00401ac6
push dword [ebp - 0x6d0]
mov ecx, dword [ebp + 0x18]
push 2
pop esi
call fcn.004150a0
pop ecx
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x6cc]
cmp dword [ebp - 0x6d0], eax
je 0x602020
push dword [ebp - 0x6d0]
call fcn.005a6b81
pop ecx
mov byte [ebp - 4], 0xb
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xf0]
push eax
call fcn.004103de
mov byte [ebp - 4], 7
lea eax, [ebp - 0x18]
push eax
call fcn.00422d99
mov byte [ebp - 4], 6
lea eax, [ebp - 0x178]
push eax
call fcn.004103aa
mov byte [ebp - 4], 5
lea eax, [ebp - 0x294]
cmp dword [ebp - 0x298], eax
je 0x602077
push dword [ebp - 0x298]
call fcn.005a6b81
pop ecx
mov byte [ebp + 0xb], bl
mov byte [ebp - 4], 3
lea eax, [ebp - 0xa4]
push eax
call fcn.0042a99b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd0]
call fcn.0041051d
mov byte [ebp - 4], bl
lea eax, [ebp - 0x478]
push eax
call fcn.00416a9a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a0]
call fcn.00420ceb
mov al, byte [ebp + 0xb]
jmp 0x601800
lea eax, [ebp - 0x18]
push eax
call fcn.0041d513
test al, al
je 0x6022f3
push ebx
push str.TORRENT_SAVING_RESUME_DATA
call fcn.0040171c
mov esi, eax
call fcn.0060d9f6
mov edi, dword [ebp + 8]
mov esi, dword [edi + 8]
push eax
call fcn.00602f47
push dword [edi + 8]
call fcn.00602f7f
lea eax, [ebp - 0x18]
push eax
call fcn.0041d598
lea eax, [ebp - 0x18]
push eax
call fcn.0041d619
mov byte [ebp + 0x13], 1
mov dword [ebp + 0x14], ebx
jmp 0x602114
mov edi, dword [ebp + 8]
cmp byte [ebp + 0x13], bl
je 0x6022ea
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x50]
push eax
call fcn.0042e96c
mov byte [ebp - 4], 0x14
mov edi, dword [eax]
mov dword [eax], ebx
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x50]
cmp ecx, ebx
je 0x602145
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp + 0x18], edi
cmp edi, ebx
je 0x6022bf
push ebx
push 0x6f1608
mov edi, 0x6f1404
push edi
push ebx
push dword [ebp + 0x18]
call fcn.0060eefe
mov esi, eax
add esp, 0x14
cmp esi, ebx
jne 0x6021cb
push ebx
push 0x6f1640
push edi
push ebx
push dword [ebp + 0x18]
call fcn.0060eefe
mov edi, eax
add esp, 0x14
cmp edi, ebx
jne 0x602239
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
call fcn.0042e96c
mov byte [ebp - 4], 0x1a
mov ecx, dword [eax]
push ecx
lea edi, [ebp - 0x30]
mov dword [eax], ebx
call fcn.0041061a
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x5c]
cmp ecx, ebx
je 0x6021bc
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x30]
mov dword [ebp + 0x18], eax
cmp eax, ebx
jne 0x602150
jmp 0x6022bf
push 0x688ec8
lea eax, [ebp - 0x24]
push str.temppatch.log
push eax
call fcn.005a706c
add esp, 0xc
test eax, eax
jne 0x602231
mov eax, dword [esi]
lea ecx, [ebp - 0x1d8]
push ecx
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 0x17
cmp dword [eax + 0x18], 0x10
jb 0x602202
mov eax, dword [eax + 4]
jmp 0x602205
add eax, 4
push eax
push 0x688edc
push dword [ebp - 0x24]
call fcn.005a6840
add esp, 0xc
mov byte [ebp - 4], 0x16
push ebx
push 1
lea ecx, [ebp - 0x1d8]
call fcn.00401ac6
push dword [ebp - 0x24]
call fcn.005a6aa0
pop ecx
mov byte [ebp + 0x13], bl
jmp 0x6022cc
lea eax, [ebp - 0xb4]
lea ecx, [edi + 0x10]
push eax
call fcn.0041030c
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.00411297
mov byte [ebp - 4], 0x19
mov eax, dword [ebp - 0x320]
mov eax, dword [eax + 4]
mov edi, dword [edi + 0x18]
lea eax, [ebp + eax - 0x320]
and dword [eax + 0x10], 0xfffffffe
lea eax, [ebp - 0x320]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x6c]
push edi
push eax
mov dword [ebp - 0x6c], ebx
call fcn.00411bbc
pop ecx
pop ecx
mov byte [ebp + 0x13], bl
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2cc]
call fcn.004106cf
lea ecx, [ebp - 0x2cc]
call fcn.0040bc41
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0xb4]
push eax
call fcn.00422d99
cmp byte [ebp + 0x13], 1
jne 0x6022cc
push 0x64
call sub.KERNEL32.DLL_Sleep
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
je 0x6022dd
mov eax, dword [ecx]
push 1
call dword [eax]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x14], 0x64
jne 0x602111
lea eax, [ebp - 0x18]
push eax
call fcn.0041d69a
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xf0]
push eax
call fcn.004103de
mov byte [ebp - 4], 7
lea eax, [ebp - 0x18]
push eax
call fcn.00422d99
mov byte [ebp - 4], 6
lea eax, [ebp - 0x178]
push eax
call fcn.004103aa
mov byte [ebp - 4], 5
lea eax, [ebp - 0x294]
cmp dword [ebp - 0x298], eax
je 0x60233e
push dword [ebp - 0x298]
call fcn.005a6b81
pop ecx
mov byte [ebp + 0xb], 1
jmp 0x60207a