Function at 0x40f9fb
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.00403c6e
test eax, eax
jne 0x40fa22
xor al, al
jmp 0x410647
cmp byte [ebp + 0xc], 0
push esi
push edi
push 5
pop ecx
je 0x40fa39
lea edi, [ebx + 0x164]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x40fa4b
mov edi, eax
lea esi, [ebx + 0x164]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x40fa4b
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.00403883
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x40fa6d
mov eax, 0x48f94c
mov dword [ebp - 0x14], eax
mov ecx, eax
call fcn.00444cee
cmp byte [ebp + 0xc], 0
mov ecx, dword [ebx]
mov dword [ebp - 0x14], eax
push eax
je 0x40fa87
call fcn.0041fad7
jmp 0x40fa8c
call fcn.0041fcee
lea ecx, [ebp - 0x14]
call fcn.0043b306
push esi
push esi
push 0x490544
mov ecx, edi
call fcn.004038bc
push esi
push esi
push 0x490218
mov ecx, edi
mov dword [ebx + 0xd0], eax
mov dword [ebx + 0xd4], edx
call fcn.004038bc
push esi
push esi
push str.corrupt
mov ecx, edi
mov dword [ebx + 0xd8], eax
mov dword [ebx + 0xdc], edx
call fcn.004038bc
push esi
push str.trackermode
mov ecx, edi
mov dword [ebx + 0xe0], eax
mov dword [ebx + 0xe4], edx
call fcn.0040389e
push esi
push str.moved
mov ecx, edi
mov byte [ebx + 0x47], al
call fcn.0040389e
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.0040389e
push esi
push str.cached
mov ecx, edi
mov byte [ebx + 0x48], al
call fcn.0040389e
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.0040389e
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.0040389e
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.0040389e
mov dword [ebx + 0x34], eax
push esi
push esi
push str.caption
mov ecx, edi
call fcn.00403883
cmp eax, esi
je 0x40fbab
mov ecx, dword [ebx]
add ecx, 0x20
mov edx, eax
call fcn.0043ac3d
push esi
push str.feed_url
mov ecx, edi
call fcn.00403c57
cmp eax, esi
je 0x40fbc9
mov ecx, eax
call fcn.00444cbc
mov dword [ebx + 0x1c8], eax
push esi
push str.download_url
mov ecx, edi
call fcn.00403c57
cmp eax, esi
je 0x40fbe7
mov ecx, eax
call fcn.00444cbc
mov dword [ebx + 0x1c4], eax
push esi
push esi
push str.rss_name
mov ecx, edi
call fcn.00403883
cmp eax, esi
je 0x40fc06
mov ecx, eax
call fcn.00444cee
mov dword [ebx + 0x1d8], eax
push esi
push esi
push str.app_owner
mov ecx, edi
call fcn.00403883
cmp eax, esi
je 0x40fc2a
cmp word [eax], si
je 0x40fc2a
mov ecx, eax
call fcn.00444cee
mov dword [ebx + 0x1cc], eax
push esi
push str.app_url
mov ecx, edi
call fcn.00403c57
cmp eax, esi
je 0x40fc4d
cmp byte [eax], 0
je 0x40fc4d
mov ecx, eax
call fcn.00444cbc
mov dword [ebx + 0x1d0], eax
push esi
push str.season
mov ecx, edi
call fcn.0040389e
push esi
push str.episode
mov ecx, edi
mov dword [ebx + 0x1dc], eax
call fcn.0040389e
push esi
push str.episode_to
mov ecx, edi
mov dword [ebx + 0x1e0], eax
call fcn.0040389e
push esi
push str.quality
mov ecx, edi
mov dword [ebx + 0x1e4], eax
call fcn.0040389e
push esi
push str.codec
mov ecx, edi
mov dword [ebx + 0x1e8], eax
call fcn.0040389e
push esi
push str.upspeed
mov ecx, edi
mov dword [ebx + 0x1ec], eax
call fcn.0040389e
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.0040389e
push esi
push str.runtime
mov ecx, edi
mov dword [ebx + 0x180], eax
mov dword [ebx + 0x188], eax
call fcn.0040389e
push esi
push 0x49040c
mov ecx, edi
mov dword [ebx + 0x178], eax
call fcn.0040389e
mov dword [ebx + 0x1f8], eax
movzx eax, byte [ebx + 0x46]
and eax, 8
push eax
push 0x490468
mov ecx, edi
call fcn.0040389e
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.0040389e
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.0040389e
push esi
push 0x49048c
mov ecx, edi
mov dword [ebx + 0x17c], eax
call fcn.0040389e
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.0040389e
push 0xffffffffffffffff
push str.order
mov ecx, edi
mov dword [ebx + 0x12c], eax
call fcn.0040389e
mov dword [ebx + 0x50], eax
push dword [0x4b627c]
mov ecx, edi
push str.wanted_seedtime
call fcn.0040389e
mov dword [ebx + 0x1f0], eax
push dword [0x4b6278]
mov ecx, edi
push str.wanted_ratio
call fcn.0040389e
push esi
push str.override_seedsettings
mov ecx, edi
mov dword [ebx + 0x1f4], eax
call fcn.0040389e
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.0040389e
cmp eax, esi
je 0x40fdf5
mov dword [ebx + 0x144], eax
push esi
push str.completed_on
mov ecx, edi
call fcn.0040389e
push esi
push str.last_active
mov ecx, edi
mov dword [ebx + 0x148], eax
call fcn.0040389e
push esi
push esi
push str.waste
mov ecx, edi
mov dword [ebx + 0x14c], eax
call fcn.004038bc
push esi
push str.hashfails
mov ecx, edi
mov dword [ebx + 0x130], eax
mov dword [ebx + 0x134], edx
call fcn.0040389e
push str.use_utp
mov ecx, edi
mov dword [ebx + 0x13c], eax
call fcn.00403856
test eax, eax
je 0x40fe75
push esi
push str.use_utp
mov ecx, edi
call fcn.0040389e
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.00403883
lea ecx, [ebx + 0x268]
mov edx, eax
call fcn.0043acbe
push esi
push esi
push str.run_program
mov ecx, edi
call fcn.00403883
lea ecx, [ebx + 0x274]
mov edx, eax
call fcn.0043acbe
lea eax, [ebp - 0x24]
push eax
push str.physmap
mov ecx, edi
call fcn.00403c57
cmp eax, esi
je 0x40fed5
push dword [ebp - 0x24]
mov ecx, dword [ebx]
push eax
call fcn.0041ead7
test al, al
jne 0x40fed5
mov al, byte [ebx + 0x3c]
and al, 0xf7
jmp 0x40fef2
cmp byte [ebp - 1], 0
je 0x40fefd
lea ecx, [ebx + 0x264]
mov edx, str.Torrent_file_changed
call fcn.0043ac3d
mov al, byte [ebx + 0x3c]
and al, 0xf7
or al, 0x10
movzx eax, al
push eax
mov ecx, ebx
call fcn.00408e4e
mov eax, dword [ebx]
push dword [eax + 8]
mov ecx, edi
push str.prio
mov dword [ebp - 8], eax
call fcn.00403c6e
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40ff6a
mov eax, dword [ebp - 8]
mov dword [ebp + 8], esi
cmp dword [eax + 8], esi
je 0x40ff6a
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.00405935
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 0x40ff26
push str.targets
mov ecx, edi
call fcn.00403c3f
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x40ffeb
mov dword [ebp + 8], esi
cmp dword [eax + 4], esi
jbe 0x40ffeb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 8]
jae 0x40ffeb
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.004037ae
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x40ffdd
cmp dword [eax + 4], 2
jne 0x40ffdd
push esi
push esi
mov ecx, eax
call fcn.00403817
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx + 8]
jae 0x40ffdd
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.004037db
mov ecx, eax
call fcn.00444cee
mov ecx, dword [ebx]
push eax
push dword [ebp - 0x20]
call fcn.0041faf1
inc dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jb 0x40ff85
test byte [ebx + 0x46], 2
jne 0x410115
push esi
push 0x49032c
mov ecx, edi
call fcn.0040389e
lea eax, [ebp + 8]
push eax
push str.peers
mov ecx, edi
mov dword [ebp + 8], esi
call fcn.00403c57
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push 6
xor edx, edx
pop ecx
div ecx
cmp edx, esi
jne 0x41008c
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], esi
cmp eax, esi
jbe 0x41008c
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 4]
push ecx
push dword [eax]
lea ecx, [ebp - 0x3c]
call fcn.004396d4
lea ecx, [ebp - 0x3c]
call fcn.004084c0
test al, al
jne 0x41007d
mov eax, 0xffff
cmp word [ebp - 0x2c], ax
jne 0x41005f
xor eax, eax
mov word [ebp - 0x2c], ax
push esi
push 0x42de15
lea eax, [ebp - 0x3c]
push eax
push esi
push esi
mov ecx, ebx
call fcn.0040c04b
cmp eax, esi
je 0x41007d
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 0x410030
lea eax, [ebp + 8]
push eax
push str.peers6
mov ecx, edi
mov dword [ebp + 8], esi
call fcn.00403c57
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push 0x12
xor edx, edx
pop ecx
div ecx
cmp edx, esi
jne 0x410115
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], esi
cmp eax, esi
jbe 0x410115
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0x10]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00439709
lea ecx, [ebp - 0x3c]
call fcn.004084c0
test al, al
jne 0x410106
mov eax, 0xffff
cmp word [ebp - 0x2c], ax
jne 0x4100e8
xor eax, eax
mov word [ebp - 0x2c], ax
push esi
push 0x42de15
lea eax, [ebp - 0x3c]
push eax
push esi
push esi
mov ecx, ebx
call fcn.0040c04b
cmp eax, esi
je 0x410106
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 0x4100ba
mov eax, dword [ebx + 0xc]
add eax, 7
shr eax, 3
push eax
push str.have
mov ecx, edi
call fcn.00403c6e
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x410245
xor ecx, ecx
cmp dword [ebx + 0xc], esi
jmp 0x410199
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 0x410192
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.0041ea14
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 0x41013d
push esi
push str.valid
mov ecx, edi
call fcn.0040389e
test eax, eax
je 0x4101c4
mov al, byte [ebx + 0x3c]
or al, 8
movzx eax, al
push eax
mov ecx, ebx
call fcn.00408e4e
jmp 0x410245
mov eax, dword [ebx]
cmp dword [eax + 0x4c], esi
jne 0x410245
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.00403c6e
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x410245
mov al, byte [ebx + 0x3c]
or al, 8
movzx eax, al
push eax
mov ecx, ebx
call fcn.00408e4e
xor ecx, ecx
cmp dword [ebp - 0x18], esi
jmp 0x410220
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 0x410227
mov ecx, dword [ebp + 8]
inc ecx
cmp ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
jne 0x410205
jmp 0x410245
mov al, byte [ebx + 0x3c]
and al, 0xf7
movzx eax, al
push eax
mov ecx, ebx
call fcn.00408e4e
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
call fcn.0043ab32
mov dword [ebx + 0x2c], eax
push 0x490354
mov ecx, edi
call fcn.00403c3f
mov dword [ebp + 8], eax
cmp eax, esi
je 0x4102a8
jmp 0x410269
mov eax, dword [ebx + 0x80]
push dword [eax]
mov ecx, ebx
call fcn.00406eea
cmp dword [ebx + 0x88], esi
jne 0x41025a
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], esi
cmp dword [eax + 4], esi
je 0x4102a8
mov ecx, dword [ebp + 8]
push esi
push esi
push dword [ebp - 0xc]
call fcn.004037db
cmp eax, esi
je 0x410444
push esi
push eax
mov ecx, ebx
call fcn.0040a186
inc dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 4]
jne 0x41027c
push str.webseeds
mov ecx, edi
call fcn.00403c3f
mov dword [ebp + 8], eax
cmp eax, esi
je 0x41037b
test byte [ebx + 0x43], 0x80
jne 0x41037b
mov ecx, ebx
call fcn.0041d42b
mov dword [ebp - 0x10], esi
cmp dword [ebx + 0x94], esi
jbe 0x4102fa
mov eax, dword [ebx + 0x8c]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [eax + ecx*4]
call fcn.004444fe
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0x94]
jb 0x4102db
mov ecx, dword [ebx + 0x8c]
call fcn.004444fe
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 0x410377
mov ecx, dword [ebp + 8]
push esi
push esi
push dword [ebp - 0x10]
call fcn.004037db
cmp eax, esi
je 0x410369
mov ecx, eax
call fcn.0043ad13
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x94]
cmp eax, dword [ebx + 0x90]
jb 0x410352
lea ecx, [ebx + 0x8c]
call fcn.0040840e
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 0x41031e
and byte [ebx + 0x44], 0xfb
push dword [ebx + 0x18]
mov ecx, edi
push str.blocksize
call fcn.0040389e
push str.blocks
mov ecx, edi
mov dword [ebx + 0x18], eax
call fcn.00403c3f
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], esi
cmp eax, esi
je 0x4104f8
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp eax, dword [ecx + 4]
je 0x4104f8
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x18], esi
call fcn.004037c4
cmp dword [ebp - 0x18], 4
mov dword [ebp - 0x20], eax
jbe 0x4104f0
mov eax, dword [eax]
cmp eax, dword [ebx + 0xc]
jae 0x4104f0
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 0x4104f0
push eax
mov ecx, ebx
call fcn.004092af
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 0x4104f0
xor ecx, ecx
cmp eax, esi
jmp 0x4104eb
push dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
call fcn.004037ae
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], esi
cmp eax, esi
je 0x41029a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 4]
je 0x41029a
push esi
push esi
push ecx
mov ecx, eax
call fcn.004037db
cmp eax, esi
je 0x41048b
push dword [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.0040a186
mov dword [ebp - 0x1c], eax
inc dword [ebp - 0x10]
jmp 0x410460
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 0x4104e1
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 1
je 0x4104e1
mov edx, dword [eax + 0x24]
mov ecx, dword [ebp + 8]
mov dword [edx + ecx*4], 0x4c3938
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.00404dad
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 0x410490
inc dword [ebp - 0xc]
jmp 0x4103a7
cmp byte [ebp + 0xc], 0
jne 0x410577
push esi
push str.started
mov ecx, edi
call fcn.0040389e
test byte [ebx + 0x43], 0x80
mov dword [ebp + 0xc], eax
je 0x41051c
push esi
mov ecx, ebx
call fcn.0040dd7f
mov al, byte [ebx + 0x3c]
test al, 0x10
jne 0x41056e
cmp dword [ebp + 0xc], 1
mov ecx, ebx
jne 0x410538
test byte [ebx + 0x43], 0x80
jne 0x41053e
call fcn.0040f8b7
jmp 0x410577
cmp dword [ebp + 0xc], 2
jne 0x410545
call fcn.0040f968
jmp 0x410577
cmp dword [ebp + 0xc], 3
jne 0x410568
or al, 0x10
movzx eax, al
push eax
call fcn.00408e4e
lea ecx, [ebx + 0x264]
mov edx, str.Invalid_download_state__try_resuming
call fcn.0043ac3d
jmp 0x41056e
push esi
call fcn.0040d339
push 1
mov ecx, ebx
call fcn.0040d7d9
push 0x490308
mov ecx, edi
call fcn.00403c3f
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x410643
mov dword [ebp - 0x10], esi
cmp dword [eax + 4], esi
jbe 0x410643
mov ebx, dword [ebp - 8]
mov dword [ebp + 0xc], esi
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 8]
jae 0x410643
mov ecx, dword [ebp - 0x20]
push eax
call fcn.004037ae
mov dword [ebp + 8], eax
cmp eax, esi
je 0x41062d
mov eax, dword [eax + 4]
cmp eax, esi
mov dword [ebp - 0x28], eax
jle 0x4105e5
mov edi, dword [ebx]
mov ecx, dword [ebp + 8]
add edi, dword [ebp + 0xc]
push esi
push esi
call fcn.00403817
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 0x4105ff
mov edi, dword [ebx]
mov ecx, dword [ebp + 8]
add edi, dword [ebp + 0xc]
push esi
push esi
push 1
call fcn.00403833
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 2
jbe 0x410624
mov edi, dword [ebx]
add edi, dword [ebp + 0xc]
push esi
push esi
push 2
mov ecx, eax
call fcn.004037db
lea ecx, [edi + 0x24]
mov edx, eax
call fcn.0043acbe
jmp 0x41062d
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 0x4105a0
pop edi
mov al, 1
pop esi
pop ebx
leave
ret 8