Function at 0x40f9bc
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.00403bf5
test eax, eax
jne 0x40f9e3
xor al, al
jmp 0x410608
cmp byte [ebp + 0xc], 0
push esi
push edi
push 5
pop ecx
je 0x40f9fa
lea edi, [ebx + 0x164]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x40fa0c
mov edi, eax
lea esi, [ebx + 0x164]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x40fa0c
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.00403829
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x40fa2e
mov eax, 0x48e94c
mov dword [ebp - 0x14], eax
mov ecx, eax
call fcn.00444d11
cmp byte [ebp + 0xc], 0
mov ecx, dword [ebx]
mov dword [ebp - 0x14], eax
push eax
je 0x40fa48
call fcn.0041fad3
jmp 0x40fa4d
call fcn.0041fcea
lea ecx, [ebp - 0x14]
call fcn.0043b2c4
push esi
push esi
push 0x48f544
mov ecx, edi
call fcn.00403862
push esi
push esi
push 0x48f218
mov ecx, edi
mov dword [ebx + 0xd0], eax
mov dword [ebx + 0xd4], edx
call fcn.00403862
push esi
push esi
push str.corrupt
mov ecx, edi
mov dword [ebx + 0xd8], eax
mov dword [ebx + 0xdc], edx
call fcn.00403862
push esi
push str.trackermode
mov ecx, edi
mov dword [ebx + 0xe0], eax
mov dword [ebx + 0xe4], edx
call fcn.00403844
push esi
push str.moved
mov ecx, edi
mov byte [ebx + 0x47], al
call fcn.00403844
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.00403844
push esi
push str.cached
mov ecx, edi
mov byte [ebx + 0x48], al
call fcn.00403844
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.00403844
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.00403844
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.00403844
mov dword [ebx + 0x34], eax
push esi
push esi
push str.caption
mov ecx, edi
call fcn.00403829
cmp eax, esi
je 0x40fb6c
mov ecx, dword [ebx]
add ecx, 0x20
mov edx, eax
call fcn.0043abfb
push esi
push str.feed_url
mov ecx, edi
call fcn.00403bde
cmp eax, esi
je 0x40fb8a
mov ecx, eax
call fcn.00444cdf
mov dword [ebx + 0x1c8], eax
push esi
push str.download_url
mov ecx, edi
call fcn.00403bde
cmp eax, esi
je 0x40fba8
mov ecx, eax
call fcn.00444cdf
mov dword [ebx + 0x1c4], eax
push esi
push esi
push str.rss_name
mov ecx, edi
call fcn.00403829
cmp eax, esi
je 0x40fbc7
mov ecx, eax
call fcn.00444d11
mov dword [ebx + 0x1d8], eax
push esi
push esi
push str.app_owner
mov ecx, edi
call fcn.00403829
cmp eax, esi
je 0x40fbeb
cmp word [eax], si
je 0x40fbeb
mov ecx, eax
call fcn.00444d11
mov dword [ebx + 0x1cc], eax
push esi
push str.app_url
mov ecx, edi
call fcn.00403bde
cmp eax, esi
je 0x40fc0e
cmp byte [eax], 0
je 0x40fc0e
mov ecx, eax
call fcn.00444cdf
mov dword [ebx + 0x1d0], eax
push esi
push str.season
mov ecx, edi
call fcn.00403844
push esi
push str.episode
mov ecx, edi
mov dword [ebx + 0x1dc], eax
call fcn.00403844
push esi
push str.episode_to
mov ecx, edi
mov dword [ebx + 0x1e0], eax
call fcn.00403844
push esi
push str.quality
mov ecx, edi
mov dword [ebx + 0x1e4], eax
call fcn.00403844
push esi
push str.codec
mov ecx, edi
mov dword [ebx + 0x1e8], eax
call fcn.00403844
push esi
push str.upspeed
mov ecx, edi
mov dword [ebx + 0x1ec], eax
call fcn.00403844
mov dword [ebx + 0x184], eax
mov eax, dword [ebx + 0x180]
push esi
push str.downspeed
mov ecx, edi
mov dword [ebx + 0x188], eax
call fcn.00403844
push esi
push str.runtime
mov ecx, edi
mov dword [ebx + 0x180], eax
mov dword [ebx + 0x188], eax
call fcn.00403844
push esi
push 0x48f40c
mov ecx, edi
mov dword [ebx + 0x178], eax
call fcn.00403844
mov dword [ebx + 0x1f8], eax
movzx eax, byte [ebx + 0x46]
and eax, 8
push eax
push 0x48f468
mov ecx, edi
call fcn.00403844
mov cl, byte [ebx + 0x46]
and cl, 0xf7
or al, cl
push 1
push 0x48f46c
mov ecx, edi
mov byte [ebx + 0x46], al
call fcn.00403844
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.00403844
push esi
push 0x48f48c
mov ecx, edi
mov dword [ebx + 0x17c], eax
call fcn.00403844
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.00403844
push 0xffffffffffffffff
push str.order
mov ecx, edi
mov dword [ebx + 0x12c], eax
call fcn.00403844
mov dword [ebx + 0x50], eax
push dword [0x4b527c]
mov ecx, edi
push str.wanted_seedtime
call fcn.00403844
mov dword [ebx + 0x1f0], eax
push dword [0x4b5278]
mov ecx, edi
push str.wanted_ratio
call fcn.00403844
push esi
push str.override_seedsettings
mov ecx, edi
mov dword [ebx + 0x1f4], eax
call fcn.00403844
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.00403844
cmp eax, esi
je 0x40fdb6
mov dword [ebx + 0x144], eax
push esi
push str.completed_on
mov ecx, edi
call fcn.00403844
push esi
push str.last_active
mov ecx, edi
mov dword [ebx + 0x148], eax
call fcn.00403844
push esi
push esi
push str.waste
mov ecx, edi
mov dword [ebx + 0x14c], eax
call fcn.00403862
push esi
push str.hashfails
mov ecx, edi
mov dword [ebx + 0x130], eax
mov dword [ebx + 0x134], edx
call fcn.00403844
push str.use_utp
mov ecx, edi
mov dword [ebx + 0x13c], eax
call fcn.004037fc
test eax, eax
je 0x40fe36
push esi
push str.use_utp
mov ecx, edi
call fcn.00403844
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 0x48f36c
mov ecx, edi
call fcn.00403829
lea ecx, [ebx + 0x268]
mov edx, eax
call fcn.0043ac7c
push esi
push esi
push str.run_program
mov ecx, edi
call fcn.00403829
lea ecx, [ebx + 0x274]
mov edx, eax
call fcn.0043ac7c
lea eax, [ebp - 0x24]
push eax
push str.physmap
mov ecx, edi
call fcn.00403bde
cmp eax, esi
je 0x40fe96
push dword [ebp - 0x24]
mov ecx, dword [ebx]
push eax
call fcn.0041ead3
test al, al
jne 0x40fe96
mov al, byte [ebx + 0x3c]
and al, 0xf7
jmp 0x40feb3
cmp byte [ebp - 1], 0
je 0x40febe
lea ecx, [ebx + 0x264]
mov edx, str.Torrent_file_changed
call fcn.0043abfb
mov al, byte [ebx + 0x3c]
and al, 0xf7
or al, 0x10
movzx eax, al
push eax
mov ecx, ebx
call fcn.00408e0e
mov eax, dword [ebx]
push dword [eax + 8]
mov ecx, edi
push str.prio
mov dword [ebp - 8], eax
call fcn.00403bf5
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40ff2b
mov eax, dword [ebp - 8]
mov dword [ebp + 8], esi
cmp dword [eax + 8], esi
je 0x40ff2b
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.004058bc
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 0x40fee7
push str.targets
mov ecx, edi
call fcn.00403bc6
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x40ffac
mov dword [ebp + 8], esi
cmp dword [eax + 4], esi
jbe 0x40ffac
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 8]
jae 0x40ffac
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00403754
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x40ff9e
cmp dword [eax + 4], 2
jne 0x40ff9e
push esi
push esi
mov ecx, eax
call fcn.004037bd
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx + 8]
jae 0x40ff9e
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.00403781
mov ecx, eax
call fcn.00444d11
mov ecx, dword [ebx]
push eax
push dword [ebp - 0x20]
call fcn.0041faed
inc dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jb 0x40ff46
test byte [ebx + 0x46], 2
jne 0x4100d6
push esi
push 0x48f32c
mov ecx, edi
call fcn.00403844
lea eax, [ebp + 8]
push eax
push str.peers
mov ecx, edi
mov dword [ebp + 8], esi
call fcn.00403bde
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push 6
xor edx, edx
pop ecx
div ecx
cmp edx, esi
jne 0x41004d
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], esi
cmp eax, esi
jbe 0x41004d
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 4]
push ecx
push dword [eax]
lea ecx, [ebp - 0x3c]
call fcn.0043966e
lea ecx, [ebp - 0x3c]
call fcn.00408480
test al, al
jne 0x41003e
mov eax, 0xffff
cmp word [ebp - 0x2c], ax
jne 0x410020
xor eax, eax
mov word [ebp - 0x2c], ax
push esi
push 0x42de58
lea eax, [ebp - 0x3c]
push eax
push esi
push esi
mov ecx, ebx
call fcn.0040c00c
cmp eax, esi
je 0x41003e
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 0x40fff1
lea eax, [ebp + 8]
push eax
push str.peers6
mov ecx, edi
mov dword [ebp + 8], esi
call fcn.00403bde
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push 0x12
xor edx, edx
pop ecx
div ecx
cmp edx, esi
jne 0x4100d6
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], esi
cmp eax, esi
jbe 0x4100d6
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0x10]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004396a3
lea ecx, [ebp - 0x3c]
call fcn.00408480
test al, al
jne 0x4100c7
mov eax, 0xffff
cmp word [ebp - 0x2c], ax
jne 0x4100a9
xor eax, eax
mov word [ebp - 0x2c], ax
push esi
push 0x42de58
lea eax, [ebp - 0x3c]
push eax
push esi
push esi
mov ecx, ebx
call fcn.0040c00c
cmp eax, esi
je 0x4100c7
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 0x41007b
mov eax, dword [ebx + 0xc]
add eax, 7
shr eax, 3
push eax
push str.have
mov ecx, edi
call fcn.00403bf5
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x410206
xor ecx, ecx
cmp dword [ebx + 0xc], esi
jmp 0x41015a
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 0x410153
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.0041ea10
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 0x4100fe
push esi
push str.valid
mov ecx, edi
call fcn.00403844
test eax, eax
je 0x410185
mov al, byte [ebx + 0x3c]
or al, 8
movzx eax, al
push eax
mov ecx, ebx
call fcn.00408e0e
jmp 0x410206
mov eax, dword [ebx]
cmp dword [eax + 0x4c], esi
jne 0x410206
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.00403bf5
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x410206
mov al, byte [ebx + 0x3c]
or al, 8
movzx eax, al
push eax
mov ecx, ebx
call fcn.00408e0e
xor ecx, ecx
cmp dword [ebp - 0x18], esi
jmp 0x4101e1
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 0x4101e8
mov ecx, dword [ebp + 8]
inc ecx
cmp ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
jne 0x4101c6
jmp 0x410206
mov al, byte [ebx + 0x3c]
and al, 0xf7
movzx eax, al
push eax
mov ecx, ebx
call fcn.00408e0e
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
call fcn.0043aaf0
mov dword [ebx + 0x2c], eax
push 0x48f354
mov ecx, edi
call fcn.00403bc6
mov dword [ebp + 8], eax
cmp eax, esi
je 0x410269
jmp 0x41022a
mov eax, dword [ebx + 0x80]
push dword [eax]
mov ecx, ebx
call fcn.00406e71
cmp dword [ebx + 0x88], esi
jne 0x41021b
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], esi
cmp dword [eax + 4], esi
je 0x410269
mov ecx, dword [ebp + 8]
push esi
push esi
push dword [ebp - 0xc]
call fcn.00403781
cmp eax, esi
je 0x410405
push esi
push eax
mov ecx, ebx
call fcn.0040a146
inc dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 4]
jne 0x41023d
push str.webseeds
mov ecx, edi
call fcn.00403bc6
mov dword [ebp + 8], eax
cmp eax, esi
je 0x41033c
test byte [ebx + 0x43], 0x80
jne 0x41033c
mov ecx, ebx
call fcn.0041d3ee
mov dword [ebp - 0x10], esi
cmp dword [ebx + 0x94], esi
jbe 0x4102bb
mov eax, dword [ebx + 0x8c]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [eax + ecx*4]
call fcn.00444521
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0x94]
jb 0x41029c
mov ecx, dword [ebx + 0x8c]
call fcn.00444521
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 0x410338
mov ecx, dword [ebp + 8]
push esi
push esi
push dword [ebp - 0x10]
call fcn.00403781
cmp eax, esi
je 0x41032a
mov ecx, eax
call fcn.0043acd1
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x94]
cmp eax, dword [ebx + 0x90]
jb 0x410313
lea ecx, [ebx + 0x8c]
call fcn.00449d1b
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 0x4102df
and byte [ebx + 0x44], 0xfb
push dword [ebx + 0x18]
mov ecx, edi
push str.blocksize
call fcn.00403844
push str.blocks
mov ecx, edi
mov dword [ebx + 0x18], eax
call fcn.00403bc6
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], esi
cmp eax, esi
je 0x4104b9
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp eax, dword [ecx + 4]
je 0x4104b9
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x18], esi
call fcn.0040376a
cmp dword [ebp - 0x18], 4
mov dword [ebp - 0x20], eax
jbe 0x4104b1
mov eax, dword [eax]
cmp eax, dword [ebx + 0xc]
jae 0x4104b1
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 0x4104b1
push eax
mov ecx, ebx
call fcn.0040926f
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 0x4104b1
xor ecx, ecx
cmp eax, esi
jmp 0x4104ac
push dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
call fcn.00403754
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], esi
cmp eax, esi
je 0x41025b
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 4]
je 0x41025b
push esi
push esi
push ecx
mov ecx, eax
call fcn.00403781
cmp eax, esi
je 0x41044c
push dword [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.0040a146
mov dword [ebp - 0x1c], eax
inc dword [ebp - 0x10]
jmp 0x410421
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 0x4104a2
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 1
je 0x4104a2
mov edx, dword [eax + 0x24]
mov ecx, dword [ebp + 8]
mov dword [edx + ecx*4], 0x4c2938
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.00404d34
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 0x410451
inc dword [ebp - 0xc]
jmp 0x410368
cmp byte [ebp + 0xc], 0
jne 0x410538
push esi
push str.started
mov ecx, edi
call fcn.00403844
test byte [ebx + 0x43], 0x80
mov dword [ebp + 0xc], eax
je 0x4104dd
push esi
mov ecx, ebx
call fcn.0040dd40
mov al, byte [ebx + 0x3c]
test al, 0x10
jne 0x41052f
cmp dword [ebp + 0xc], 1
mov ecx, ebx
jne 0x4104f9
test byte [ebx + 0x43], 0x80
jne 0x4104ff
call fcn.0040f878
jmp 0x410538
cmp dword [ebp + 0xc], 2
jne 0x410506
call fcn.0040f929
jmp 0x410538
cmp dword [ebp + 0xc], 3
jne 0x410529
or al, 0x10
movzx eax, al
push eax
call fcn.00408e0e
lea ecx, [ebx + 0x264]
mov edx, str.Invalid_download_state__try_resuming
call fcn.0043abfb
jmp 0x41052f
push esi
call fcn.0040d2fa
push 1
mov ecx, ebx
call fcn.0040d79a
push 0x48f308
mov ecx, edi
call fcn.00403bc6
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x410604
mov dword [ebp - 0x10], esi
cmp dword [eax + 4], esi
jbe 0x410604
mov ebx, dword [ebp - 8]
mov dword [ebp + 0xc], esi
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 8]
jae 0x410604
mov ecx, dword [ebp - 0x20]
push eax
call fcn.00403754
mov dword [ebp + 8], eax
cmp eax, esi
je 0x4105ee
mov eax, dword [eax + 4]
cmp eax, esi
mov dword [ebp - 0x28], eax
jle 0x4105a6
mov edi, dword [ebx]
mov ecx, dword [ebp + 8]
add edi, dword [ebp + 0xc]
push esi
push esi
call fcn.004037bd
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 0x4105c0
mov edi, dword [ebx]
mov ecx, dword [ebp + 8]
add edi, dword [ebp + 0xc]
push esi
push esi
push 1
call fcn.004037d9
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 2
jbe 0x4105e5
mov edi, dword [ebx]
add edi, dword [ebp + 0xc]
push esi
push esi
push 2
mov ecx, eax
call fcn.00403781
lea ecx, [edi + 0x24]
mov edx, eax
call fcn.0043ac7c
jmp 0x4105ee
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 0x410561
pop edi
mov al, 1
pop esi
pop ebx
leave
ret 8