Function at 0x40f756
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push 0x14
mov ebx, ecx
mov ecx, dword [ebp + 8]
push str.info
mov byte [ebp - 1], 0
call fcn.00403da1
test eax, eax
jne 0x40f77d
xor al, al
jmp 0x410379
cmp byte [ebp + 0xc], 0
push esi
push edi
push 5
pop ecx
je 0x40f794
lea edi, [ebx + 0x160]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x40f7a6
mov edi, eax
lea esi, [ebx + 0x160]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x40f7a6
mov byte [ebp - 1], 1
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push esi
push str.path
mov ecx, edi
call fcn.004039fc
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x40f7c8
mov eax, 0x492538
mov dword [ebp - 0x14], eax
mov ecx, eax
call fcn.00443bc8
cmp byte [ebp + 0xc], 0
mov ecx, dword [ebx]
mov dword [ebp - 0x14], eax
push eax
je 0x40f7e2
call fcn.0041ed85
jmp 0x40f7e7
call fcn.0041f061
lea ecx, [ebp - 0x14]
call fcn.0043a24c
push esi
push esi
push 0x48e544
mov ecx, edi
call fcn.00403a35
push esi
push esi
push 0x48e220
mov ecx, edi
mov dword [ebx + 0xd0], eax
mov dword [ebx + 0xd4], edx
call fcn.00403a35
push esi
push esi
push str.corrupt
mov ecx, edi
mov dword [ebx + 0xd8], eax
mov dword [ebx + 0xdc], edx
call fcn.00403a35
push esi
push str.trackermode
mov ecx, edi
mov dword [ebx + 0xe0], eax
mov dword [ebx + 0xe4], edx
call fcn.00403a17
push esi
push str.moved
mov ecx, edi
mov byte [ebx + 0x47], al
call fcn.00403a17
cmp eax, esi
setne al
add al, al
xor al, byte [ebx + 0x43]
push 1
and al, 2
xor byte [ebx + 0x43], al
push str.prio2
mov ecx, edi
call fcn.00403a17
push esi
push str.cached
mov ecx, edi
mov byte [ebx + 0x48], al
call fcn.00403a17
mov cl, byte [ebx + 0x43]
cmp eax, esi
setne al
shl al, 7
and cl, 0x7f
or al, cl
mov byte [ebx + 0x43], al
movzx eax, al
shr eax, 7
push eax
push str.scrambled
mov ecx, edi
call fcn.00403a17
cmp eax, esi
setne al
shl al, 5
xor al, byte [ebx + 0x44]
push 1
and al, 0x20
xor byte [ebx + 0x44], al
push str.visible
mov ecx, edi
call fcn.00403a17
cmp eax, esi
setne al
xor al, byte [ebx + 0x44]
push esi
and al, 1
xor byte [ebx + 0x44], al
push str.last_seen_complete
mov ecx, edi
call fcn.00403a17
mov dword [ebx + 0x34], eax
push esi
push esi
push str.caption
mov ecx, edi
call fcn.004039fc
cmp eax, esi
je 0x40f906
mov ecx, dword [ebx]
add ecx, 0x20
mov edx, eax
call fcn.00439b86
push esi
push str.feed_url
mov ecx, edi
call fcn.00403d8a
cmp eax, esi
je 0x40f924
mov ecx, eax
call fcn.00443b96
mov dword [ebx + 0x1c4], eax
push esi
push str.download_url
mov ecx, edi
call fcn.00403d8a
cmp eax, esi
je 0x40f942
mov ecx, eax
call fcn.00443b96
mov dword [ebx + 0x1c0], eax
push esi
push esi
push str.rss_name
mov ecx, edi
call fcn.004039fc
cmp eax, esi
je 0x40f961
mov ecx, eax
call fcn.00443bc8
mov dword [ebx + 0x1cc], eax
push esi
push esi
push str.app_owner
mov ecx, edi
call fcn.004039fc
cmp eax, esi
je 0x40f980
mov ecx, eax
call fcn.00443bc8
mov dword [ebx + 0x1c8], eax
push esi
push str.season
mov ecx, edi
call fcn.00403a17
push esi
push str.episode
mov ecx, edi
mov dword [ebx + 0x1d0], eax
call fcn.00403a17
push esi
push str.episode_to
mov ecx, edi
mov dword [ebx + 0x1d4], eax
call fcn.00403a17
push esi
push str.quality
mov ecx, edi
mov dword [ebx + 0x1d8], eax
call fcn.00403a17
push esi
push str.codec
mov ecx, edi
mov dword [ebx + 0x1dc], eax
call fcn.00403a17
push esi
push str.upspeed
mov ecx, edi
mov dword [ebx + 0x1e0], eax
call fcn.00403a17
mov dword [ebx + 0x180], eax
mov eax, dword [ebx + 0x17c]
push esi
push str.downspeed
mov ecx, edi
mov dword [ebx + 0x184], eax
call fcn.00403a17
push esi
push str.runtime
mov ecx, edi
mov dword [ebx + 0x17c], eax
mov dword [ebx + 0x184], eax
call fcn.00403a17
push esi
push 0x48e40c
mov ecx, edi
mov dword [ebx + 0x174], eax
call fcn.00403a17
mov dword [ebx + 0x1ec], eax
movzx eax, byte [ebx + 0x46]
and eax, 8
push eax
push 0x48e468
mov ecx, edi
call fcn.00403a17
mov cl, byte [ebx + 0x46]
and cl, 0xf7
or al, cl
push 1
push 0x48e46c
mov ecx, edi
mov byte [ebx + 0x46], al
call fcn.00403a17
mov cl, byte [ebx + 0x46]
and cl, 0xa
or al, cl
push esi
push str.seedtime
mov ecx, edi
mov byte [ebx + 0x46], al
call fcn.00403a17
push esi
push 0x48e48c
mov ecx, edi
mov dword [ebx + 0x178], eax
call fcn.00403a17
cmp eax, esi
setne al
shl al, 5
xor al, byte [ebx + 0x43]
and al, 0x20
xor byte [ebx + 0x43], al
push esi
push str.superseed_cur_piece
mov ecx, edi
call fcn.00403a17
push 0xffffffffffffffff
push str.order
mov ecx, edi
mov dword [ebx + 0x12c], eax
call fcn.00403a17
mov dword [ebx + 0x50], eax
push dword [0x4b327c]
mov ecx, edi
push str.wanted_seedtime
call fcn.00403a17
mov dword [ebx + 0x1e4], eax
push dword [0x4b3278]
mov ecx, edi
push str.wanted_ratio
call fcn.00403a17
push esi
push str.override_seedsettings
mov ecx, edi
mov dword [ebx + 0x1e8], eax
call fcn.00403a17
shl al, 6
xor al, byte [ebx + 0x43]
push esi
and al, 0x40
xor byte [ebx + 0x43], al
push str.added_on
mov ecx, edi
call fcn.00403a17
cmp eax, esi
je 0x40fb28
mov dword [ebx + 0x144], eax
push esi
push str.completed_on
mov ecx, edi
call fcn.00403a17
push esi
push str.last_active
mov ecx, edi
mov dword [ebx + 0x148], eax
call fcn.00403a17
push esi
push esi
push str.waste
mov ecx, edi
mov dword [ebx + 0x14c], eax
call fcn.00403a35
push esi
push str.hashfails
mov ecx, edi
mov dword [ebx + 0x130], eax
mov dword [ebx + 0x134], edx
call fcn.00403a17
push str.use_utp
mov ecx, edi
mov dword [ebx + 0x13c], eax
call fcn.004039cf
test eax, eax
je 0x40fba8
push esi
push str.use_utp
mov ecx, edi
call fcn.00403a17
cmp eax, esi
setne al
shl al, 2
xor al, byte [ebx + 0x45]
and al, 4
xor byte [ebx + 0x45], al
push esi
push esi
push 0x48e374
mov ecx, edi
call fcn.004039fc
lea ecx, [ebx + 0x25c]
mov edx, eax
call fcn.00439c07
push esi
push esi
push str.run_program
mov ecx, edi
call fcn.004039fc
lea ecx, [ebx + 0x268]
mov edx, eax
call fcn.00439c07
lea eax, [ebp - 0x24]
push eax
push str.physmap
mov ecx, edi
call fcn.00403d8a
cmp eax, esi
je 0x40fc08
push dword [ebp - 0x24]
mov ecx, dword [ebx]
push eax
call fcn.0041e07f
test al, al
jne 0x40fc08
mov al, byte [ebx + 0x3c]
and al, 0xf7
jmp 0x40fc25
cmp byte [ebp - 1], 0
je 0x40fc30
lea ecx, [ebx + 0x258]
mov edx, str.Torrent_file_changed
call fcn.00439b86
mov al, byte [ebx + 0x3c]
and al, 0xf7
or al, 0x10
movzx eax, al
push eax
mov ecx, ebx
call fcn.00408da9
mov eax, dword [ebx]
push dword [eax + 8]
mov ecx, edi
push str.prio
mov dword [ebp - 8], eax
call fcn.00403da1
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40fc9d
mov eax, dword [ebp - 8]
mov dword [ebp + 8], esi
cmp dword [eax + 8], esi
je 0x40fc9d
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
add eax, ecx
mov dword [ebp - 0x1c], eax
movzx eax, byte [eax]
and eax, 0xf
push eax
push ecx
mov ecx, ebx
call fcn.00405882
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx]
add dword [ebp - 0x10], 0x34
lea eax, [eax + edx + 0x21]
mov edx, dword [ebp - 0x1c]
mov dl, byte [edx]
shr dl, 5
xor dl, byte [eax]
and dl, 4
xor byte [eax], dl
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ecx + 8]
jne 0x40fc59
push str.targets
mov ecx, edi
call fcn.00403d72
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x40fd1e
mov dword [ebp + 8], esi
cmp dword [eax + 4], esi
jbe 0x40fd1e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 8]
jae 0x40fd1e
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00403927
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x40fd10
cmp dword [eax + 4], 2
jne 0x40fd10
push esi
push esi
mov ecx, eax
call fcn.00403990
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx + 8]
jae 0x40fd10
imul eax, eax, 0x34
add eax, dword [ecx]
mov ecx, dword [ebp - 0x10]
push esi
push esi
push 1
mov dword [ebp - 0x20], eax
call fcn.00403954
mov ecx, eax
call fcn.00443bc8
mov ecx, dword [ebx]
push eax
push dword [ebp - 0x20]
call fcn.0041ed9f
inc dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jb 0x40fcb8
test byte [ebx + 0x46], 2
jne 0x40fe48
push esi
push 0x48e334
mov ecx, edi
call fcn.00403a17
lea eax, [ebp + 8]
push eax
push str.peers
mov ecx, edi
mov dword [ebp + 8], esi
call fcn.00403d8a
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push 6
xor edx, edx
pop ecx
div ecx
cmp edx, esi
jne 0x40fdbf
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], esi
cmp eax, esi
jbe 0x40fdbf
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 4]
push ecx
push dword [eax]
lea ecx, [ebp - 0x3c]
call fcn.004385f0
lea ecx, [ebp - 0x3c]
call fcn.0040841b
test al, al
jne 0x40fdb0
mov eax, 0xffff
cmp word [ebp - 0x2c], ax
jne 0x40fd92
xor eax, eax
mov word [ebp - 0x2c], ax
push esi
push 0x42ce0f
lea eax, [ebp - 0x3c]
push eax
push esi
push esi
mov ecx, ebx
call fcn.0040be6f
cmp eax, esi
je 0x40fdb0
add dword [eax + 0x5e], 0xfffff8f8
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x10], 6
cmp eax, dword [ebp + 8]
jb 0x40fd63
lea eax, [ebp + 8]
push eax
push str.peers6
mov ecx, edi
mov dword [ebp + 8], esi
call fcn.00403d8a
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push 0x12
xor edx, edx
pop ecx
div ecx
cmp edx, esi
jne 0x40fe48
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], esi
cmp eax, esi
jbe 0x40fe48
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0x10]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00438625
lea ecx, [ebp - 0x3c]
call fcn.0040841b
test al, al
jne 0x40fe39
mov eax, 0xffff
cmp word [ebp - 0x2c], ax
jne 0x40fe1b
xor eax, eax
mov word [ebp - 0x2c], ax
push esi
push 0x42ce0f
lea eax, [ebp - 0x3c]
push eax
push esi
push esi
mov ecx, ebx
call fcn.0040be6f
cmp eax, esi
je 0x40fe39
add dword [eax + 0x5e], 0xfffff8f8
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x10], 0x12
cmp eax, dword [ebp + 8]
jb 0x40fded
mov eax, dword [ebx + 0xc]
add eax, 7
shr eax, 3
push eax
push str.have
mov ecx, edi
call fcn.00403da1
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40ff78
xor ecx, ecx
cmp dword [ebx + 0xc], esi
jmp 0x40fecc
mov edx, dword [ebp - 0x20]
mov eax, ecx
shr eax, 3
mov dl, byte [eax + edx]
and ecx, 7
shr dl, cl
mov dword [ebp - 0x1c], ecx
test dl, 1
je 0x40fec5
mov ecx, dword [ebx + 0x20]
push dword [ebp + 8]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x1c]
mov dl, 1
shl dl, cl
mov ecx, dword [ebp - 0x18]
or byte [ecx], dl
mov ecx, dword [ebx + 0x24]
add ecx, eax
not dl
and byte [ecx], dl
mov ecx, dword [ebx + 0x28]
add eax, ecx
and byte [eax], dl
mov ecx, dword [ebx]
inc dword [ebx + 0x10]
call fcn.0041dfbc
add dword [ebx + 0xe8], eax
adc dword [ebx + 0xec], esi
mov ecx, dword [ebp + 8]
inc ecx
cmp ecx, dword [ebx + 0xc]
mov dword [ebp + 8], ecx
jne 0x40fe70
push esi
push str.valid
mov ecx, edi
call fcn.00403a17
test eax, eax
je 0x40fef7
mov al, byte [ebx + 0x3c]
or al, 8
movzx eax, al
push eax
mov ecx, ebx
call fcn.00408da9
jmp 0x40ff78
mov eax, dword [ebx]
cmp dword [eax + 0x4c], esi
jne 0x40ff78
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
add eax, 7
shr eax, 3
push eax
push str.resume_valid
mov ecx, edi
mov dword [ebp - 0x20], eax
call fcn.00403da1
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x40ff78
mov al, byte [ebx + 0x3c]
or al, 8
movzx eax, al
push eax
mov ecx, ebx
call fcn.00408da9
xor ecx, ecx
cmp dword [ebp - 0x18], esi
jmp 0x40ff53
mov edx, dword [ebp - 0x10]
mov eax, ecx
shr eax, 3
mov al, byte [eax + edx]
and cl, 7
shr al, cl
test al, 1
je 0x40ff5a
mov ecx, dword [ebp + 8]
inc ecx
cmp ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
jne 0x40ff38
jmp 0x40ff78
mov al, byte [ebx + 0x3c]
and al, 0xf7
movzx eax, al
push eax
mov ecx, ebx
call fcn.00408da9
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
call fcn.00439a7b
mov dword [ebx + 0x2c], eax
push 0x48e35c
mov ecx, edi
call fcn.00403d72
mov dword [ebp + 8], eax
cmp eax, esi
je 0x40ffdb
jmp 0x40ff9c
mov eax, dword [ebx + 0x80]
push dword [eax]
mov ecx, ebx
call fcn.00406e05
cmp dword [ebx + 0x88], esi
jne 0x40ff8d
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], esi
cmp dword [eax + 4], esi
je 0x40ffdb
mov ecx, dword [ebp + 8]
push esi
push esi
push dword [ebp - 0xc]
call fcn.00403954
cmp eax, esi
je 0x410177
push esi
push eax
mov ecx, ebx
call fcn.0040a0c8
inc dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 4]
jne 0x40ffaf
push str.webseeds
mov ecx, edi
call fcn.00403d72
mov dword [ebp + 8], eax
cmp eax, esi
je 0x4100ae
test byte [ebx + 0x43], 0x80
jne 0x4100ae
mov ecx, ebx
call fcn.0041c88b
mov dword [ebp - 0x10], esi
cmp dword [ebx + 0x94], esi
jbe 0x41002d
mov eax, dword [ebx + 0x8c]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [eax + ecx*4]
call fcn.004433ab
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0x94]
jb 0x41000e
mov ecx, dword [ebx + 0x8c]
call fcn.004433ab
lea eax, [ebx + 0x8c]
mov dword [eax], esi
mov dword [eax + 8], esi
mov dword [eax + 4], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], esi
cmp dword [eax + 4], esi
je 0x4100aa
mov ecx, dword [ebp + 8]
push esi
push esi
push dword [ebp - 0x10]
call fcn.00403954
cmp eax, esi
je 0x41009c
mov ecx, eax
call fcn.00439c59
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x94]
cmp eax, dword [ebx + 0x90]
jb 0x410085
lea ecx, [ebx + 0x8c]
call fcn.0042cef9
lea eax, [ebx + 0x8c]
mov ecx, dword [eax + 8]
lea edx, [ecx + 1]
mov dword [eax + 8], edx
mov eax, dword [eax]
mov edx, dword [ebp - 0x20]
mov dword [eax + ecx*4], edx
inc dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 4]
jne 0x410051
and byte [ebx + 0x44], 0xfb
push dword [ebx + 0x18]
mov ecx, edi
push str.blocksize
call fcn.00403a17
push str.blocks
mov ecx, edi
mov dword [ebx + 0x18], eax
call fcn.00403d72
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], esi
cmp eax, esi
je 0x41022b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp eax, dword [ecx + 4]
je 0x41022b
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x18], esi
call fcn.0040393d
cmp dword [ebp - 0x18], 4
mov dword [ebp - 0x20], eax
jbe 0x410223
mov eax, dword [eax]
cmp eax, dword [ebx + 0xc]
jae 0x410223
mov edx, dword [ebx + 0x20]
mov ecx, eax
shr ecx, 3
mov dl, byte [ecx + edx]
mov dword [ebp + 8], eax
and dword [ebp + 8], 7
mov dword [ebp - 0x28], ecx
mov cl, byte [ebp + 8]
shr dl, cl
test dl, 1
jne 0x410223
push eax
mov ecx, ebx
call fcn.00409202
mov ecx, dword [ebp - 0x28]
mov byte [eax + 0x20], 3
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x28]
lea edx, [eax + ecx]
mov ecx, dword [ebp + 8]
mov al, 1
shl al, cl
not al
and byte [edx], al
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
lea ecx, [eax + 7]
shr ecx, 3
add ecx, 4
cmp dword [ebp - 0x18], ecx
jne 0x410223
xor ecx, ecx
cmp eax, esi
jmp 0x41021e
push dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
call fcn.00403927
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], esi
cmp eax, esi
je 0x40ffcd
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 4]
je 0x40ffcd
push esi
push esi
push ecx
mov ecx, eax
call fcn.00403954
cmp eax, esi
je 0x4101be
push dword [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.0040a0c8
mov dword [ebp - 0x1c], eax
inc dword [ebp - 0x10]
jmp 0x410193
mov edx, dword [ebp - 0x20]
mov eax, ecx
shr eax, 3
mov al, byte [eax + edx + 4]
and cl, 7
shr al, cl
test al, 1
je 0x410214
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 1
je 0x410214
mov edx, dword [eax + 0x24]
mov ecx, dword [ebp + 8]
mov dword [edx + ecx*4], 0x4c0848
mov edx, dword [eax + 0x1c]
mov byte [ecx + edx], 9
dec dword [eax + 0xc]
dec dword [eax + 8]
dec dword [eax + 0x14]
push ecx
push dword [eax]
mov ecx, ebx
call fcn.00404dc4
add dword [ebx + 0xe8], eax
adc dword [ebx + 0xec], esi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
inc ecx
cmp ecx, dword [eax + 4]
mov dword [ebp + 8], ecx
jne 0x4101c3
inc dword [ebp - 0xc]
jmp 0x4100da
cmp byte [ebp + 0xc], 0
jne 0x4102a9
push esi
push str.started
mov ecx, edi
call fcn.00403a17
test byte [ebx + 0x43], 0x80
mov dword [ebp + 0xc], eax
je 0x41024f
push esi
mov ecx, ebx
call fcn.0040db2d
mov al, byte [ebx + 0x3c]
test al, 0x10
jne 0x4102a0
cmp dword [ebp + 0xc], 1
mov ecx, ebx
jne 0x41026b
test byte [ebx + 0x43], 0x80
jne 0x410271
call fcn.0040f61a
jmp 0x4102a9
cmp dword [ebp + 0xc], 2
jne 0x410278
call fcn.0040f6c9
jmp 0x4102a9
cmp dword [ebp + 0xc], 3
jne 0x41029b
or al, 0x10
movzx eax, al
push eax
call fcn.00408da9
lea ecx, [ebx + 0x258]
mov edx, str.Invalid_download_state__try_resuming
call fcn.00439b86
jmp 0x4102a0
call fcn.0040d14d
push 1
mov ecx, ebx
call fcn.0040d587
push 0x48e310
mov ecx, edi
call fcn.00403d72
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x410375
mov dword [ebp - 0x10], esi
cmp dword [eax + 4], esi
jbe 0x410375
mov ebx, dword [ebp - 8]
mov dword [ebp + 0xc], esi
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 8]
jae 0x410375
mov ecx, dword [ebp - 0x20]
push eax
call fcn.00403927
mov dword [ebp + 8], eax
cmp eax, esi
je 0x41035f
mov eax, dword [eax + 4]
cmp eax, esi
mov dword [ebp - 0x28], eax
jle 0x410317
mov edi, dword [ebx]
mov ecx, dword [ebp + 8]
add edi, dword [ebp + 0xc]
push esi
push esi
call fcn.00403990
mov ecx, dword [ebp + 0xc]
mov byte [edi + 0x23], al
mov eax, dword [ebx]
add eax, ecx
mov cl, byte [eax + 0x23]
mov byte [eax + 0x22], cl
cmp dword [ebp - 0x28], 1
jle 0x410331
mov edi, dword [ebx]
mov ecx, dword [ebp + 8]
add edi, dword [ebp + 0xc]
push esi
push esi
push 1
call fcn.004039ac
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 2
jbe 0x410356
mov edi, dword [ebx]
add edi, dword [ebp + 0xc]
push esi
push esi
push 2
mov ecx, eax
call fcn.00403954
lea ecx, [edi + 0x24]
mov edx, eax
call fcn.00439c07
jmp 0x41035f
mov eax, dword [ebx]
mov ecx, dword [ebp + 0xc]
mov dword [eax + ecx + 0x24], esi
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
add dword [ebp + 0xc], 0x34
cmp ecx, dword [eax + 4]
jb 0x4102d2
pop edi
mov al, 1
pop esi
pop ebx
leave
ret 8