Function at 0x40f9a2
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.00403c14
test eax, eax
jne 0x40f9c9
xor al, al
jmp 0x4105ee
cmp byte [ebp + 0xc], 0
push esi
push edi
push 5
pop ecx
je 0x40f9e0
lea edi, [ebx + 0x164]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x40f9f2
mov edi, eax
lea esi, [ebx + 0x164]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x40f9f2
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 0x40fa14
mov eax, 0x4945b8
mov dword [ebp - 0x14], eax
mov ecx, eax
call fcn.00444cbc
cmp byte [ebp + 0xc], 0
mov ecx, dword [ebx]
mov dword [ebp - 0x14], eax
push eax
je 0x40fa2e
call fcn.0041fafb
jmp 0x40fa33
call fcn.0041fd12
lea ecx, [ebp - 0x14]
call fcn.0043b2e5
push esi
push esi
push 0x490544
mov ecx, edi
call fcn.00403862
push esi
push esi
push 0x490218
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 0x40fb52
mov ecx, dword [ebx]
add ecx, 0x20
mov edx, eax
call fcn.0043ac1c
push esi
push str.feed_url
mov ecx, edi
call fcn.00403bfd
cmp eax, esi
je 0x40fb70
mov ecx, eax
call fcn.00444c8a
mov dword [ebx + 0x1c8], eax
push esi
push str.download_url
mov ecx, edi
call fcn.00403bfd
cmp eax, esi
je 0x40fb8e
mov ecx, eax
call fcn.00444c8a
mov dword [ebx + 0x1c4], eax
push esi
push esi
push str.rss_name
mov ecx, edi
call fcn.00403829
cmp eax, esi
je 0x40fbad
mov ecx, eax
call fcn.00444cbc
mov dword [ebx + 0x1d8], eax
push esi
push esi
push str.app_owner
mov ecx, edi
call fcn.00403829
cmp eax, esi
je 0x40fbd1
cmp word [eax], si
je 0x40fbd1
mov ecx, eax
call fcn.00444cbc
mov dword [ebx + 0x1cc], eax
push esi
push str.app_url
mov ecx, edi
call fcn.00403bfd
cmp eax, esi
je 0x40fbf4
cmp byte [eax], 0
je 0x40fbf4
mov ecx, eax
call fcn.00444c8a
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 0x49040c
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 0x490468
mov ecx, edi
call fcn.00403844
mov cl, byte [ebx + 0x46]
and cl, 0xf7
or al, cl
push 1
push 0x49046c
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 0x49048c
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 [0x4b627c]
mov ecx, edi
push str.wanted_seedtime
call fcn.00403844
mov dword [ebx + 0x1f0], eax
push dword [0x4b6278]
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 0x40fd9c
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 0x40fe1c
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 0x49036c
mov ecx, edi
call fcn.00403829
lea ecx, [ebx + 0x268]
mov edx, eax
call fcn.0043ac9d
push esi
push esi
push str.run_program
mov ecx, edi
call fcn.00403829
lea ecx, [ebx + 0x274]
mov edx, eax
call fcn.0043ac9d
lea eax, [ebp - 0x24]
push eax
push str.physmap
mov ecx, edi
call fcn.00403bfd
cmp eax, esi
je 0x40fe7c
push dword [ebp - 0x24]
mov ecx, dword [ebx]
push eax
call fcn.0041eafb
test al, al
jne 0x40fe7c
mov al, byte [ebx + 0x3c]
and al, 0xf7
jmp 0x40fe99
cmp byte [ebp - 1], 0
je 0x40fea4
lea ecx, [ebx + 0x264]
mov edx, str.Torrent_file_changed
call fcn.0043ac1c
mov al, byte [ebx + 0x3c]
and al, 0xf7
or al, 0x10
movzx eax, al
push eax
mov ecx, ebx
call fcn.00408df3
mov eax, dword [ebx]
push dword [eax + 8]
mov ecx, edi
push str.prio
mov dword [ebp - 8], eax
call fcn.00403c14
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40ff11
mov eax, dword [ebp - 8]
mov dword [ebp + 8], esi
cmp dword [eax + 8], esi
je 0x40ff11
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.004058db
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 0x40fecd
push str.targets
mov ecx, edi
call fcn.00403be5
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x40ff92
mov dword [ebp + 8], esi
cmp dword [eax + 4], esi
jbe 0x40ff92
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 8]
jae 0x40ff92
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00403754
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x40ff84
cmp dword [eax + 4], 2
jne 0x40ff84
push esi
push esi
mov ecx, eax
call fcn.004037bd
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx + 8]
jae 0x40ff84
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.00444cbc
mov ecx, dword [ebx]
push eax
push dword [ebp - 0x20]
call fcn.0041fb15
inc dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jb 0x40ff2c
test byte [ebx + 0x46], 2
jne 0x4100bc
push esi
push 0x49032c
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.00403bfd
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push 6
xor edx, edx
pop ecx
div ecx
cmp edx, esi
jne 0x410033
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], esi
cmp eax, esi
jbe 0x410033
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 4]
push ecx
push dword [eax]
lea ecx, [ebp - 0x3c]
call fcn.0043968f
lea ecx, [ebp - 0x3c]
call fcn.00408465
test al, al
jne 0x410024
mov eax, 0xffff
cmp word [ebp - 0x2c], ax
jne 0x410006
xor eax, eax
mov word [ebp - 0x2c], ax
push esi
push 0x42de42
lea eax, [ebp - 0x3c]
push eax
push esi
push esi
mov ecx, ebx
call fcn.0040bff0
cmp eax, esi
je 0x410024
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 0x40ffd7
lea eax, [ebp + 8]
push eax
push str.peers6
mov ecx, edi
mov dword [ebp + 8], esi
call fcn.00403bfd
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push 0x12
xor edx, edx
pop ecx
div ecx
cmp edx, esi
jne 0x4100bc
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], esi
cmp eax, esi
jbe 0x4100bc
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0x10]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004396c4
lea ecx, [ebp - 0x3c]
call fcn.00408465
test al, al
jne 0x4100ad
mov eax, 0xffff
cmp word [ebp - 0x2c], ax
jne 0x41008f
xor eax, eax
mov word [ebp - 0x2c], ax
push esi
push 0x42de42
lea eax, [ebp - 0x3c]
push eax
push esi
push esi
mov ecx, ebx
call fcn.0040bff0
cmp eax, esi
je 0x4100ad
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 0x410061
mov eax, dword [ebx + 0xc]
add eax, 7
shr eax, 3
push eax
push str.have
mov ecx, edi
call fcn.00403c14
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4101ec
xor ecx, ecx
cmp dword [ebx + 0xc], esi
jmp 0x410140
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 0x410139
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.0041ea38
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 0x4100e4
push esi
push str.valid
mov ecx, edi
call fcn.00403844
test eax, eax
je 0x41016b
mov al, byte [ebx + 0x3c]
or al, 8
movzx eax, al
push eax
mov ecx, ebx
call fcn.00408df3
jmp 0x4101ec
mov eax, dword [ebx]
cmp dword [eax + 0x4c], esi
jne 0x4101ec
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.00403c14
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x4101ec
mov al, byte [ebx + 0x3c]
or al, 8
movzx eax, al
push eax
mov ecx, ebx
call fcn.00408df3
xor ecx, ecx
cmp dword [ebp - 0x18], esi
jmp 0x4101c7
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 0x4101ce
mov ecx, dword [ebp + 8]
inc ecx
cmp ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
jne 0x4101ac
jmp 0x4101ec
mov al, byte [ebx + 0x3c]
and al, 0xf7
movzx eax, al
push eax
mov ecx, ebx
call fcn.00408df3
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
call fcn.0043ab11
mov dword [ebx + 0x2c], eax
push 0x490354
mov ecx, edi
call fcn.00403be5
mov dword [ebp + 8], eax
cmp eax, esi
je 0x41024f
jmp 0x410210
mov eax, dword [ebx + 0x80]
push dword [eax]
mov ecx, ebx
call fcn.00406e90
cmp dword [ebx + 0x88], esi
jne 0x410201
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], esi
cmp dword [eax + 4], esi
je 0x41024f
mov ecx, dword [ebp + 8]
push esi
push esi
push dword [ebp - 0xc]
call fcn.00403781
cmp eax, esi
je 0x4103eb
push esi
push eax
mov ecx, ebx
call fcn.0040a12b
inc dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 4]
jne 0x410223
push str.webseeds
mov ecx, edi
call fcn.00403be5
mov dword [ebp + 8], eax
cmp eax, esi
je 0x410322
test byte [ebx + 0x43], 0x80
jne 0x410322
mov ecx, ebx
call fcn.0041d3da
mov dword [ebp - 0x10], esi
cmp dword [ebx + 0x94], esi
jbe 0x4102a1
mov eax, dword [ebx + 0x8c]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [eax + ecx*4]
call fcn.004444cc
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0x94]
jb 0x410282
mov ecx, dword [ebx + 0x8c]
call fcn.004444cc
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 0x41031e
mov ecx, dword [ebp + 8]
push esi
push esi
push dword [ebp - 0x10]
call fcn.00403781
cmp eax, esi
je 0x410310
mov ecx, eax
call fcn.0043acf2
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x94]
cmp eax, dword [ebx + 0x90]
jb 0x4102f9
lea ecx, [ebx + 0x8c]
call fcn.0045a5dd
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 0x4102c5
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.00403be5
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], esi
cmp eax, esi
je 0x41049f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp eax, dword [ecx + 4]
je 0x41049f
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 0x410497
mov eax, dword [eax]
cmp eax, dword [ebx + 0xc]
jae 0x410497
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 0x410497
push eax
mov ecx, ebx
call fcn.00409254
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 0x410497
xor ecx, ecx
cmp eax, esi
jmp 0x410492
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 0x410241
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 4]
je 0x410241
push esi
push esi
push ecx
mov ecx, eax
call fcn.00403781
cmp eax, esi
je 0x410432
push dword [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.0040a12b
mov dword [ebp - 0x1c], eax
inc dword [ebp - 0x10]
jmp 0x410407
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 0x410488
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 1
je 0x410488
mov edx, dword [eax + 0x24]
mov ecx, dword [ebp + 8]
mov dword [edx + ecx*4], 0x4c3958
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.00404d53
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 0x410437
inc dword [ebp - 0xc]
jmp 0x41034e
cmp byte [ebp + 0xc], 0
jne 0x41051e
push esi
push str.started
mov ecx, edi
call fcn.00403844
test byte [ebx + 0x43], 0x80
mov dword [ebp + 0xc], eax
je 0x4104c3
push esi
mov ecx, ebx
call fcn.0040dd24
mov al, byte [ebx + 0x3c]
test al, 0x10
jne 0x410515
cmp dword [ebp + 0xc], 1
mov ecx, ebx
jne 0x4104df
test byte [ebx + 0x43], 0x80
jne 0x4104e5
call fcn.0040f85e
jmp 0x41051e
cmp dword [ebp + 0xc], 2
jne 0x4104ec
call fcn.0040f90f
jmp 0x41051e
cmp dword [ebp + 0xc], 3
jne 0x41050f
or al, 0x10
movzx eax, al
push eax
call fcn.00408df3
lea ecx, [ebx + 0x264]
mov edx, str.Invalid_download_state__try_resuming
call fcn.0043ac1c
jmp 0x410515
push esi
call fcn.0040d2de
push 1
mov ecx, ebx
call fcn.0040d77e
push 0x490308
mov ecx, edi
call fcn.00403be5
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4105ea
mov dword [ebp - 0x10], esi
cmp dword [eax + 4], esi
jbe 0x4105ea
mov ebx, dword [ebp - 8]
mov dword [ebp + 0xc], esi
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 8]
jae 0x4105ea
mov ecx, dword [ebp - 0x20]
push eax
call fcn.00403754
mov dword [ebp + 8], eax
cmp eax, esi
je 0x4105d4
mov eax, dword [eax + 4]
cmp eax, esi
mov dword [ebp - 0x28], eax
jle 0x41058c
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 0x4105a6
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 0x4105cb
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.0043ac9d
jmp 0x4105d4
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 0x410547
pop edi
mov al, 1
pop esi
pop ebx
leave
ret 8