Function at 0x4e3f30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ed53d
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
push 0x16
xor esi, esi
push str.libtorrent_resume_file
lea ecx, [esp + 0xbc]
mov dword [esp + 0x18], edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0xd4], 0xf
mov dword [esp + 0xd0], esi
mov byte [esp + 0xc0], 0
call fcn.0040b860
lea eax, [esp + 0xb4]
push eax
mov ecx, str.file_format
mov edx, ebx
mov dword [esp + 0xe4], esi
call fcn.0049db10
push eax
call fcn.0049e1b0
mov dword [esp + 0xe0], 0xffffffff
cmp dword [esp + 0xcc], 0x10
jb 0x4e3ff2
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.0059b877
add esp, 4
mov ecx, str.file_version
mov edx, ebx
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e4019
mov dword [eax], 1
mov dword [eax + 4], 0
push 9
push str.0.16.10.0
lea ecx, [esp + 0xbc]
mov dword [esi], 0
mov dword [esp + 0xd4], 0xf
mov dword [esp + 0xd0], 0
mov byte [esp + 0xc0], 0
call fcn.0040b860
lea edx, [esp + 0xb4]
push edx
mov ecx, str.libtorrent_version
mov edx, ebx
mov dword [esp + 0xe4], 1
call fcn.0049db10
push eax
call fcn.0049e1b0
mov dword [esp + 0xe0], 0xffffffff
cmp dword [esp + 0xcc], 0x10
jb 0x4e409a
mov eax, dword [esp + 0xb8]
push eax
call fcn.0059b877
add esp, 4
mov ecx, str.total_uploaded
mov edx, ebx
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e40c5
mov ecx, dword [edi + 0x88]
mov dword [eax], ecx
mov edx, dword [edi + 0x8c]
mov dword [eax + 4], edx
mov ecx, str.total_downloaded
mov edx, ebx
mov dword [esi], 0
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e40f6
mov ecx, dword [edi + 0x90]
mov dword [eax], ecx
mov edx, dword [edi + 0x94]
mov dword [eax + 4], edx
mov ecx, str.total_web_downloaded
mov edx, ebx
mov dword [esi], 0
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e4127
mov ecx, dword [edi + 0x98]
mov dword [eax], ecx
mov edx, dword [edi + 0x9c]
mov dword [eax + 4], edx
mov dword [esi], 0
mov eax, dword [edi + 0x4ec]
and eax, 0xffffff
mov ecx, str.active_time
mov edx, ebx
mov dword [esp + 0x14], eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e4161
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [esi], 0
mov eax, dword [edi + 0x4f4]
and eax, 0xffffff
mov ecx, str.finished_time
mov edx, ebx
mov dword [esp + 0x14], eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e419b
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [esi], 0
mov eax, dword [edi + 0x4fc]
and eax, 0xffffff
mov ecx, str.seeding_time
mov edx, ebx
mov dword [esp + 0x14], eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e41d5
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
mov ecx, str.last_seen_complete
mov edx, ebx
mov dword [esi], 0
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e4206
mov edx, dword [edi + 0x4b8]
mov dword [eax], edx
mov ecx, dword [edi + 0x4bc]
mov dword [eax + 4], ecx
mov dword [esi], 0
mov eax, dword [edi + 0x51c]
and eax, 0xffffff
mov ecx, str.num_seeds
mov edx, ebx
mov dword [esp + 0x14], eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e4240
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [esi], 0
mov eax, dword [edi + 0x524]
and eax, 0xffffff
mov ecx, str.num_incomplete
mov edx, ebx
mov dword [esp + 0x14], eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e427a
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [esi], 0
mov eax, dword [edi + 0x540]
and eax, 0xffffff
mov ecx, str.num_downloaders
mov edx, ebx
mov dword [esp + 0x14], eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e42b4
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [esi], 0
mov al, byte [edi + 0x4f8]
and al, 1
movzx eax, al
cdq
mov dword [esp + 0x18], edx
mov ecx, str.sequential_download
mov edx, ebx
mov dword [esp + 0x14], eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e42f5
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [esi], 0
mov al, byte [edi + 0x4e8]
shr al, 2
and al, 1
movzx eax, al
cdq
mov dword [esp + 0x18], edx
mov ecx, str.seed_mode
mov edx, ebx
mov dword [esp + 0x14], eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e4339
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [esi], 0
mov al, byte [edi + 0x4f8]
shr al, 3
and al, 1
movzx eax, al
cdq
mov dword [esp + 0x18], edx
mov ecx, str.super_seeding
mov edx, ebx
mov dword [esp + 0x14], eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e437d
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, str.added_time
mov edx, ebx
mov dword [esi], 0
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e43ae
mov ecx, dword [edi + 0x4a0]
mov dword [eax], ecx
mov edx, dword [edi + 0x4a4]
mov dword [eax + 4], edx
mov ecx, str.completed_time
mov edx, ebx
mov dword [esi], 0
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e43df
mov ecx, dword [edi + 0x4a8]
mov dword [eax], ecx
mov edx, dword [edi + 0x4ac]
mov dword [eax + 4], edx
mov ecx, str.first_completed_time
mov edx, ebx
mov dword [esi], 0
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e4410
mov ecx, dword [edi + 0x4b0]
mov dword [eax], ecx
mov edx, dword [edi + 0x4b4]
mov dword [eax + 4], edx
mov dword [esi], 0
mov eax, dword [edi + 0x534]
mov ecx, str.last_scrape
mov edx, ebx
mov dword [esp + 0x14], eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e4445
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [esi], 0
mov edx, dword [edi + 0x538]
mov dword [esp + 0x14], edx
mov ecx, str.last_download
mov edx, ebx
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e447a
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [esi], 0
mov edx, dword [edi + 0x53c]
mov dword [esp + 0x14], edx
mov ecx, str.last_upload
mov edx, ebx
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e44af
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [esi], 0
cmp dword [edi + 0x3d4], 0
je 0x4e44d7
lea edx, [edi + 0x3c0]
push edx
mov ecx, 0x60b2d0
mov edx, ebx
call fcn.0049db10
push eax
call fcn.0049e1b0
cmp dword [edi + 0x3f0], 0
je 0x4e44f9
lea eax, [edi + 0x3dc]
push eax
mov ecx, str.uuid
mov edx, ebx
call fcn.0049db10
push eax
call fcn.0049e1b0
cmp dword [edi + 0x40c], 0
je 0x4e451b
lea ecx, [edi + 0x3f8]
push ecx
mov ecx, str.feed
mov edx, ebx
call fcn.0049db10
push eax
call fcn.0049e1b0
mov ecx, dword [edi + 0xa8]
mov edx, dword [esp + 0x30]
add ecx, 0x140
push edx
lea eax, [ecx + 0x14]
push eax
lea edx, [esp + 0xbc]
push edx
mov dword [esp + 0xd8], 0xf
mov dword [esp + 0xd4], 0
mov byte [esp + 0xc4], 0
call fcn.004f8290
lea eax, [esp + 0xb4]
push eax
mov ecx, 0x618150
mov edx, ebx
mov dword [esp + 0xe4], 2
call fcn.0049db10
push eax
call fcn.0049e1b0
mov dword [esp + 0xe0], 0xffffffff
cmp dword [esp + 0xcc], 0x10
jb 0x4e45a5
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.0059b877
add esp, 4
mov ecx, dword [edi + 0xa8]
cmp dword [ecx + 0x94], 0
jle 0x4e46d6
test byte [edi + 0x545], 0x20
jne 0x4e45ce
test byte [edi + 0x508], 2
je 0x4e46d6
lea eax, [esp + 0x30]
call fcn.004d0380
mov esi, eax
mov dword [esp + 0xe0], 3
mov ecx, dword [edi + 0xa8]
lea eax, [esp + 0x14]
call fcn.004d0380
mov byte [esp + 0xe0], 4
mov ecx, dword [edi + 0xa8]
mov ecx, dword [ecx + 0x154]
mov esi, dword [esi]
mov eax, dword [eax]
and ecx, 0xffffff
add ecx, esi
push ecx
push eax
lea esi, [esp + 0x5c]
call fcn.004915d0
add esp, 8
mov dword [esp + 0x20], eax
mov ecx, str.info
mov edx, ebx
mov byte [esp + 0xe0], 5
call fcn.0049db10
mov esi, eax
call fcn.0049e480
mov edx, dword [esp + 0x20]
push edx
mov ecx, esi
call fcn.0049e3a0
lea esi, [esp + 0x54]
mov byte [esp + 0xe0], 4
call fcn.0049e480
mov byte [esp + 0xe0], 3
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4e4699
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4e4699
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4e4699
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov dword [esp + 0xe0], 0xffffffff
mov esi, dword [esp + 0x34]
test esi, esi
je 0x4e46d6
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4e46d6
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4e46d6
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
movzx ecx, byte [edi + 0x50f]
mov eax, dword [edi + 0xa8]
mov eax, dword [eax + 0x94]
and ecx, 0x1f
mov esi, 1
shl esi, cl
cdq
mov ecx, str.blocks_per_piece
idiv esi
mov dword [esp + 0x84], eax
cdq
mov dword [esp + 0x18], edx
mov edx, ebx
mov dword [esp + 0x14], eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e472d
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [esi], 0
mov eax, dword [edi + 0xa8]
mov edx, dword [eax + 0xd0]
test edx, edx
je 0x4e4880
mov ecx, dword [eax + 0xd4]
sub ecx, edx
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4e4880
mov ecx, str.merkle_tree
mov edx, ebx
call fcn.0049db10
mov ecx, dword [eax]
cmp ecx, 4
jne 0x4e47b1
lea ecx, [eax + 8]
test ecx, ecx
je 0x4e4792
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
mov byte [ecx + 4], 0
mov dword [eax], 1
mov esi, dword [edi + 0xa8]
lea ecx, [eax + 8]
mov eax, dword [esi + 0xd0]
test eax, eax
mov dword [esp + 0x2c], ecx
jne 0x4e47bb
jmp 0x4e47d4
cmp ecx, 1
je 0x4e4798
call fcn.0049d9f0
mov edx, dword [esi + 0xd4]
sub edx, eax
mov eax, 0x66666667
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [ecx + 0x14]
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
cmp eax, ecx
ja 0x4e47f0
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push eax
call fcn.0040b930
jmp 0x4e4801
mov edi, dword [esp + 0x2c]
push 0
sub eax, ecx
call fcn.004192a0
mov edi, dword [esp + 0x10]
mov ecx, dword [esi + 0xd0]
test ecx, ecx
jne 0x4e4811
mov dword [esp + 0x20], ecx
jmp 0x4e482e
mov edx, dword [esi + 0xd4]
sub edx, ecx
mov eax, 0x66666667
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x4e484d
mov edx, dword [esi + 0xd4]
sub edx, ecx
mov eax, 0x66666667
imul edx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4e4852
call fcn.005b8b18
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x18], 0x10
mov esi, dword [esi + 0xd0]
jb 0x4e4867
mov eax, dword [eax + 4]
jmp 0x4e486a
add eax, 4
mov ecx, dword [esp + 0x20]
lea edx, [ecx + ecx*4]
add edx, edx
add edx, edx
push edx
push esi
push eax
call fcn.005c3120
add esp, 0xc
mov ecx, edi
call fcn.00493f40
test al, al
jne 0x4e4b8b
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x318]
mov dword [esp + 0x20], esi
call fcn.0049e9c0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x48]
push ecx
mov ecx, str.unfinished
mov edx, ebx
mov dword [esp + 0xe4], 8
call fcn.0049db10
push eax
call fcn.0049e230
lea edi, [esp + 0x48]
mov dword [esp + 0xe0], 0xffffffff
call fcn.0049eeb0
mov edx, dword [esp + 0x4c]
push edx
call fcn.0059b877
add esp, 4
mov ecx, str.unfinished
mov edx, ebx
call fcn.0049db10
push eax
call fcn.0049dfc0
mov edi, dword [esi + 0x38]
cmp edi, dword [esi + 0x3c]
mov dword [esp + 0x30], eax
jbe 0x4e4914
call fcn.005b8b18
mov ebx, dword [esi + 0x3c]
cmp dword [esi + 0x38], ebx
mov dword [esp + 0x18], edi
jbe 0x4e4925
call fcn.005b8b18
cmp edi, ebx
je 0x4e4b8b
mov esi, dword [esp + 0x20]
cmp edi, dword [esi + 0x3c]
jb 0x4e493b
call fcn.005b8b18
cmp word [edi + 0xc], 0
je 0x4e4b79
lea eax, [esp + 0x5c]
mov dword [esp + 0x54], 4
mov dword [esp + 0x28], eax
mov dword [esp + 0xe0], 0xa
call fcn.0049f1d0
mov dword [esp + 0x60], eax
mov byte [eax + 0x59], 1
mov eax, dword [esp + 0x60]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x60]
mov dword [eax], eax
mov eax, dword [esp + 0x60]
mov dword [eax + 8], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x54], 3
mov dword [esp + 0xe0], 0xb
cmp edi, dword [esi + 0x3c]
jb 0x4e49a7
call fcn.005b8b18
mov eax, dword [edi + 4]
cdq
mov ebx, edx
mov ecx, 0x6181ac
lea edx, [esp + 0x54]
mov edi, eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
xor ecx, ecx
cmp eax, ecx
je 0x4e49d2
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [esi], ecx
mov dword [esp + 0xcc], 0xf
mov dword [esp + 0xc8], ecx
mov byte [esp + 0xb8], cl
mov byte [esp + 0xe0], 0xc
mov esi, dword [esp + 0x84]
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x38], eax
cmp eax, 1
mov dword [esp + 0x24], 1
lea eax, [esp + 0x24]
jl 0x4e4a20
lea eax, [esp + 0x38]
mov eax, dword [eax]
cmp eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], ecx
jle 0x4e4ae2
mov dword [esp + 0x7c], 8
mov dword [esp + 0x24], esi
mov edi, edi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], eax
cmp eax, 8
mov byte [esp + 0x2c], 0
lea eax, [esp + 0x7c]
jg 0x4e4a5a
lea eax, [esp + 0x40]
mov ebx, dword [eax]
xor esi, esi
test ebx, ebx
jle 0x4e4ab2
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
shl edi, 6
lea ecx, [ecx]
mov ecx, dword [esp + 0x20]
cmp edx, dword [ecx + 0x3c]
jb 0x4e4a82
call fcn.005b8b18
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 8]
mov ecx, dword [eax + edi + 4]
and ecx, 0xc000
cmp ecx, 0xc000
jne 0x4e4aa2
mov eax, 1
mov ecx, esi
shl eax, cl
jmp 0x4e4aa4
xor eax, eax
or byte [esp + 0x2c], al
add esi, 1
add edi, 8
cmp esi, ebx
jl 0x4e4a70
mov edx, dword [esp + 0x2c]
push edx
mov eax, 1
lea edi, [esp + 0xb8]
call fcn.004192a0
mov eax, dword [esp + 0x38]
sub dword [esp + 0x24], 8
add eax, 1
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x38], eax
jl 0x4e4a40
lea eax, [esp + 0xb4]
push eax
mov ecx, str.bitmask
lea edx, [esp + 0x58]
call fcn.0049db10
push eax
call fcn.0049e1b0
mov ebx, dword [esp + 0x30]
mov esi, dword [ebx + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x54]
push ecx
push edx
push esi
call fcn.00490890
mov ecx, ebx
mov edi, eax
call fcn.00490930
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
cmp dword [esp + 0xcc], 0x10
jb 0x4e4b3f
mov eax, dword [esp + 0xb8]
push eax
call fcn.0059b877
add esp, 4
lea esi, [esp + 0x54]
mov dword [esp + 0xcc], 0xf
mov dword [esp + 0xc8], 0
mov byte [esp + 0xb8], 0
mov dword [esp + 0xe0], 0xffffffff
call fcn.0049e480
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
cmp edi, dword [esi + 0x3c]
jb 0x4e4b83
call fcn.005b8b18
add edi, 0x14
jmp 0x4e4914
mov eax, dword [esp + 0x10]
add eax, 0x31c
mov eax, dword [eax + 4]
test eax, eax
je 0x4e4eb3
mov ecx, dword [esp + 0x10]
add ecx, 0x31c
mov ecx, dword [ecx + 8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x4e4eb3
mov edx, dword [esp + 0x3c]
mov ecx, str.trackers
call fcn.0049db10
push eax
call fcn.0049dfc0
mov ebx, eax
call fcn.0049e9c0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0xe4], 0xd
call fcn.0049e150
mov byte [esp + 0xe0], 0xe
mov esi, dword [ebx + 4]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x54]
push eax
push ecx
push esi
call fcn.00490890
mov ecx, ebx
mov edi, eax
call fcn.00490930
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
lea esi, [esp + 0x54]
mov dword [eax], edi
mov byte [esp + 0xe0], 0xd
call fcn.0049e480
lea edi, [esp + 0x48]
mov dword [esp + 0xe0], 0xffffffff
call fcn.0049eeb0
mov edx, dword [esp + 0x4c]
push edx
call fcn.0059b877
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x320]
add eax, 0x31c
add esp, 4
cmp esi, dword [eax + 8]
mov dword [esp + 0x20], 0
jbe 0x4e4c85
call fcn.005b8b18
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x324]
add edi, 0x31c
cmp dword [edi + 4], eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x30], eax
jbe 0x4e4ca7
call fcn.005b8b18
cmp edi, edi
je 0x4e4cb0
call fcn.005b8b18
cmp esi, dword [esp + 0x30]
je 0x4e4eb3
cmp esi, dword [edi + 8]
jb 0x4e4cc4
call fcn.005b8b18
test byte [esi + 0x73], 0x80
je 0x4e4e93
cmp esi, dword [edi + 8]
jb 0x4e4cd8
call fcn.005b8b18
movzx eax, byte [esi + 0x70]
cmp eax, dword [esp + 0x20]
jne 0x4e4d6a
cmp esi, dword [edi + 8]
jb 0x4e4cf0
call fcn.005b8b18
push esi
lea ecx, [esp + 0x58]
push ecx
call fcn.0049e0d0
mov dword [esp + 0xe0], 0xf
mov eax, dword [ebx + 4]
mov esi, dword [eax + 4]
cmp esi, eax
jne 0x4e4d15
call fcn.005b8b18
cmp esi, dword [ebx + 4]
jne 0x4e4d1f
call fcn.005b8b18
add esi, 8
push esi
call fcn.0049dfc0
mov esi, dword [eax + 4]
lea edx, [esp + 0x54]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 4]
push edx
push eax
push esi
call fcn.00490890
mov ecx, dword [esp + 0x28]
mov edi, eax
call fcn.00490930
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
lea esi, [esp + 0x54]
mov dword [eax], edi
mov dword [esp + 0xe0], 0xffffffff
call fcn.0049e480
jmp 0x4e4e8f
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], 4
mov dword [esp + 0x28], ecx
mov dword [esp + 0xe0], 0x10
call fcn.0049e9c0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x54], 2
mov dword [esp + 0xe0], 0x12
mov esi, dword [ebx + 4]
mov eax, dword [esi + 4]
lea edx, [esp + 0x54]
push edx
push eax
push esi
call fcn.00490890
mov ecx, ebx
mov edi, eax
call fcn.00490930
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
lea esi, [esp + 0x54]
mov dword [eax], edi
mov dword [esp + 0xe0], 0xffffffff
call fcn.0049e480
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
add eax, 0x31c
cmp ecx, dword [eax + 8]
jb 0x4e4df7
call fcn.005b8b18
mov edx, dword [esp + 0x44]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.0049e0d0
mov dword [esp + 0xe0], 0x13
mov eax, dword [ebx + 4]
mov esi, dword [eax + 4]
cmp esi, eax
jne 0x4e4e20
call fcn.005b8b18
cmp esi, dword [ebx + 4]
jne 0x4e4e2a
call fcn.005b8b18
lea eax, [esi + 8]
push eax
call fcn.0049dfc0
mov esi, dword [eax + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x54]
push ecx
push edx
push esi
mov dword [esp + 0x34], eax
call fcn.00490890
mov ecx, dword [esp + 0x28]
mov edi, eax
call fcn.00490930
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
lea esi, [esp + 0x54]
mov dword [eax], edi
mov dword [esp + 0xe0], 0xffffffff
call fcn.0049e480
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x44]
add eax, 0x31c
cmp esi, dword [eax + 8]
jb 0x4e4e87
call fcn.005b8b18
movzx eax, byte [esi + 0x70]
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
add edi, 0x31c
cmp esi, dword [edi + 8]
jb 0x4e4ea7
call fcn.005b8b18
add esi, 0x78
mov dword [esp + 0x44], esi
jmp 0x4e4ca7
mov esi, dword [esp + 0x10]
cmp dword [esi + 0xcc], 0
je 0x4e4ff2
mov edi, dword [esp + 0x3c]
mov ecx, str.url_list
mov edx, edi
call fcn.0049db10
push eax
call fcn.0049dfc0
mov ecx, str.httpseeds
mov edx, edi
mov dword [esp + 0x20], eax
call fcn.0049db10
push eax
call fcn.0049dfc0
add esi, 0xc4
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
mov edi, dword [eax]
mov ecx, eax
mov dword [esp + 0x18], ecx
cmp esi, esi
je 0x4e4f0e
call fcn.005b8b18
cmp edi, dword [esp + 0x18]
je 0x4e4ff2
cmp edi, dword [esi + 4]
jne 0x4e4f22
call fcn.005b8b18
cmp dword [edi + 0x24], 0
jne 0x4e4f67
cmp edi, dword [esi + 4]
jne 0x4e4f32
call fcn.005b8b18
lea eax, [edi + 8]
push eax
lea edx, [esp + 0x58]
push edx
call fcn.0049e0d0
mov eax, dword [esp + 0x20]
mov dword [esp + 0xe0], 0x14
mov esi, dword [eax + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x54]
push ecx
push edx
push esi
call fcn.00490890
mov ecx, dword [esp + 0x20]
jmp 0x4e4fb4
cmp edi, dword [esi + 4]
jne 0x4e4f71
call fcn.005b8b18
cmp dword [edi + 0x24], 1
jne 0x4e4fd7
cmp edi, dword [esi + 4]
jne 0x4e4f81
call fcn.005b8b18
lea eax, [edi + 8]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.0049e0d0
mov dword [esp + 0xe0], 0x15
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 4]
mov eax, dword [esi + 4]
lea edx, [esp + 0x54]
push edx
push eax
push esi
call fcn.00490890
mov ecx, dword [esp + 0x24]
mov ebx, eax
call fcn.00490930
mov dword [esi + 4], ebx
mov eax, dword [ebx + 4]
lea esi, [esp + 0x54]
mov dword [eax], ebx
mov dword [esp + 0xe0], 0xffffffff
call fcn.0049e480
mov esi, dword [esp + 0x10]
add esi, 0xc4
cmp edi, dword [esi + 4]
jne 0x4e4feb
call fcn.005b8b18
mov edi, dword [edi]
jmp 0x4e4f05
mov edx, dword [esp + 0x3c]
mov ecx, str.pieces
call fcn.0049db10
mov ecx, dword [eax]
cmp ecx, 4
jne 0x4e5050
lea ecx, [eax + 8]
test ecx, ecx
je 0x4e5020
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
mov byte [ecx + 4], 0
mov dword [eax], 1
mov ecx, dword [esp + 0x10]
lea ebx, [eax + 8]
mov eax, dword [ecx + 0xa8]
mov eax, dword [eax + 0x90]
mov ecx, dword [ebx + 0x14]
cmp eax, ecx
mov dword [esp + 0x2c], ebx
ja 0x4e505a
push 0xffffffffffffffff
push eax
mov ecx, ebx
call fcn.0040b930
jmp 0x4e5065
cmp ecx, 1
je 0x4e5026
call fcn.0049d9f0
push 0
sub eax, ecx
mov edi, ebx
call fcn.004192a0
mov ecx, dword [esp + 0x10]
call fcn.00493f40
test al, al
je 0x4e50a0
cmp dword [ebx + 0x18], 0x10
mov ecx, dword [ebx + 0x14]
jb 0x4e508f
mov eax, dword [ebx + 4]
push ecx
push 1
push eax
call fcn.005be600
add esp, 0xc
jmp 0x4e5114
push ecx
lea eax, [ebx + 4]
push 1
push eax
call fcn.005be600
add esp, 0xc
jmp 0x4e5114
mov eax, dword [ebx + 0x14]
xor esi, esi
test eax, eax
mov dword [esp + 0x30], eax
jle 0x4e5114
lea ecx, [ecx]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + 0x318]
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x4e50cd
mov eax, dword [edi + 0x2c]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x4e50d2
call fcn.005b8b18
mov eax, dword [edi + 0x28]
cmp dword [eax + esi*8 + 4], 0xffffffff
mov eax, dword [esp + 0x2c]
sete bl
cmp esi, dword [eax + 0x14]
jbe 0x4e50ef
call fcn.005b8b18
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x18], 0x10
jb 0x4e50fc
add eax, 4
mov eax, dword [eax]
jmp 0x4e50ff
add eax, 4
test bl, bl
setne cl
mov byte [eax + esi], cl
add esi, 1
cmp esi, dword [esp + 0x30]
jl 0x4e50b0
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
test byte [edx + 0x4e8], 4
je 0x4e518a
mov eax, dword [ebx + 0x14]
xor esi, esi
test eax, eax
mov dword [esp + 0x28], eax
jle 0x4e518a
mov edi, edi
cmp esi, dword [ebx + 0x14]
jbe 0x4e513a
call fcn.005b8b18
cmp dword [ebx + 0x18], 0x10
jb 0x4e5145
mov edi, dword [ebx + 4]
jmp 0x4e5148
lea edi, [ebx + 4]
mov ecx, esi
and ecx, 7
mov eax, 0x80
sar eax, cl
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, esi
cdq
and edx, 7
add eax, edx
mov edx, dword [ecx + 0x424]
mov ecx, dword [esp + 0x30]
sar eax, 3
mov al, byte [eax + edx]
and cl, al
neg cl
sbb cl, cl
add esi, 1
and ecx, 2
or byte [edi + esi - 1], cl
cmp esi, dword [esp + 0x28]
jl 0x4e5130
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xa8]
mov ecx, dword [eax + 0x98]
test ecx, ecx
jne 0x4e51a1
lea ecx, [eax + 8]
lea edx, [eax + 8]
cmp edx, ecx
je 0x4e5315
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4e51b7
xor edx, edx
jmp 0x4e51bf
mov edx, dword [eax + 0x10]
sub edx, ecx
sar edx, 5
mov ecx, dword [eax + 0x98]
test ecx, ecx
je 0x4e51cd
mov eax, ecx
jmp 0x4e51d0
add eax, 8
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4e51db
xor eax, eax
jmp 0x4e51e3
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 5
cmp edx, eax
jne 0x4e5315
mov edx, dword [esp + 0x3c]
mov ecx, str.mapped_files
call fcn.0049db10
push eax
call fcn.0049dfc0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xa8]
mov edi, dword [eax + 0xc]
cmp edi, dword [eax + 0x10]
lea ebx, [eax + 8]
mov dword [esp + 0x24], ebx
jbe 0x4e5221
call fcn.005b8b18
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0xa8]
mov eax, dword [esi + 0x10]
add esi, 8
cmp dword [esi + 4], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], eax
jbe 0x4e5243
call fcn.005b8b18
cmp ebx, esi
je 0x4e524c
call fcn.005b8b18
cmp edi, dword [esp + 0x30]
je 0x4e5315
cmp edi, dword [ebx + 8]
jb 0x4e5260
call fcn.005b8b18
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xa8]
lea ecx, [esp + 0xb4]
push ecx
lea ebx, [eax + 8]
call fcn.004ae920
push eax
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0xe8], 0x18
call fcn.0049e0d0
mov eax, dword [esp + 0x20]
mov byte [esp + 0xe0], 0x19
mov ebx, dword [eax + 4]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x54]
push ecx
push edx
push ebx
call fcn.00490890
mov ecx, dword [esp + 0x20]
mov esi, eax
call fcn.00490930
mov dword [ebx + 4], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
lea esi, [esp + 0x54]
mov byte [esp + 0xe0], 0x18
call fcn.0049e480
mov dword [esp + 0xe0], 0xffffffff
cmp dword [esp + 0xcc], 0x10
jb 0x4e52f7
mov eax, dword [esp + 0xb8]
push eax
call fcn.0059b877
add esp, 4
mov ecx, dword [esp + 0x24]
cmp edi, dword [ecx + 8]
jb 0x4e5305
call fcn.005b8b18
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
add edi, 0x20
jmp 0x4e5243
mov edi, dword [esp + 0x3c]
mov ecx, str.peers
mov edx, edi
mov esi, 0xf
call fcn.0049db10
mov ecx, dword [eax]
cmp ecx, 4
jne 0x4e534b
lea ecx, [eax + 8]
xor ebx, ebx
cmp ecx, ebx
je 0x4e5343
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
mov dword [eax], 1
jmp 0x4e5357
cmp ecx, 1
je 0x4e5355
call fcn.0049d9f0
xor ebx, ebx
add eax, 8
mov ecx, str.banned_peers
mov edx, edi
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], eax
call fcn.0049db10
mov ecx, dword [eax]
cmp ecx, 4
jne 0x4e53fe
lea ecx, [eax + 8]
cmp ecx, ebx
je 0x4e5390
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], 0
mov dword [eax], 1
add eax, 8
mov ecx, str.peers6
mov edx, edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
call fcn.0049db10
mov ecx, dword [eax]
cmp ecx, 4
jne 0x4e5408
lea ecx, [eax + 8]
cmp ecx, ebx
je 0x4e53c5
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], 0
mov dword [eax], 1
add eax, 8
mov ecx, str.banned_peers6
mov edx, edi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], eax
call fcn.0049db10
mov esi, eax
cmp dword [esi], 4
jne 0x4e53f4
push 1
push esi
call fcn.0049e2d0
cmp dword [esi], 1
je 0x4e5412
call fcn.0049d9f0
cmp ecx, 1
je 0x4e5396
call fcn.0049d9f0
cmp ecx, 1
je 0x4e53cb
call fcn.0049d9f0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x2e8]
add esi, 8
add eax, 0xc0
cmp dword [eax], 0x1f
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], 0x1f
jle 0x4e543d
lea eax, [esp + 0x30]
mov edx, dword [eax]
mov esi, dword [ecx + 0x64]
mov eax, dword [ecx + 0x68]
add ecx, 0x58
add eax, esi
cmp esi, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x48], ebx
jbe 0x4e5467
call fcn.005b8b18
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ecx + 0x10]
add ecx, eax
cmp eax, ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x30], ecx
jbe 0x4e5484
call fcn.005b8b18
mov ebx, dword [esp + 0x24]
mov eax, ebx
neg eax
imul ebx, ebx, 0x32
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
cmp eax, eax
je 0x4e54a0
call fcn.005b8b18
mov ecx, dword [esp + 0x50]
cmp ecx, dword [esp + 0x30]
je 0x4e55dd
call fcn.005d95d0
lea eax, [esp + 0x48]
call fcn.004edfd0
mov esi, dword [eax]
lea eax, [esp + 0xb4]
mov ecx, esi
call fcn.004d02e0
test byte [esi + 0x24], 8
je 0x4e551f
cmp dword [esp + 0xb4], 1
lea ecx, [esp + 0xb4]
jne 0x4e5501
lea edi, [esp + 0x14]
call fcn.004f54e0
movzx eax, word [esi + 0x10]
mov edx, edi
push edx
push eax
call fcn.004f8360
add esp, 8
jmp 0x4e55ba
lea edi, [esp + 0x40]
call fcn.004f54e0
movzx edx, word [esi + 0x10]
mov ecx, edi
push ecx
push edx
call fcn.004f8360
add esp, 8
jmp 0x4e55ba
test byte [esi + 0x1c], 1
je 0x4e55ba
mov ecx, dword [esi + 0x18]
and ecx, 0x1f
cmp ecx, dword [esp + 0x24]
jge 0x4e55ba
mov edi, dword [esp + 0x20]
cmp edi, 0xa
jle 0x4e555b
test ecx, ecx
jle 0x4e555b
mov eax, 0x66666667
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jg 0x4e55ba
cmp edi, 0x28
jle 0x4e5571
mov ecx, dword [esi + 0x20]
and ecx, 0x3f00
cmp ecx, 0x1000
je 0x4e55ba
cmp dword [esp + 0xb4], 1
lea ecx, [esp + 0xb4]
jne 0x4e5595
lea edi, [esp + 0x7c]
call fcn.004f54e0
movzx eax, word [esi + 0x10]
mov edx, edi
push edx
push eax
jmp 0x4e55a9
lea edi, [esp + 0x84]
call fcn.004f54e0
movzx edx, word [esi + 0x10]
mov ecx, edi
push ecx
push edx
call fcn.004f8360
add dword [esp + 0x28], 1
add esp, 8
add ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0xc]
add ecx, dword [eax + 0x10]
cmp dword [esp + 0x50], ecx
jb 0x4e55cf
call fcn.005b8b18
add dword [esp + 0x50], 1
mov edi, dword [esp + 0x3c]
jmp 0x4e5493
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x38]
cmp eax, 0x7fffffff
jne 0x4e55ee
or eax, 0xffffffff
cdq
mov dword [esp + 0x18], edx
mov ecx, str.upload_rate_limit
mov edx, edi
mov ebx, eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e5618
mov ecx, dword [esp + 0x18]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x10]
mov dword [esi], 0
mov eax, dword [edx + 0x50]
cmp eax, 0x7fffffff
jne 0x4e562f
or eax, 0xffffffff
cdq
mov dword [esp + 0x18], edx
mov ecx, str.download_rate_limit
mov edx, edi
mov ebx, eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e5659
mov ecx, dword [esp + 0x18]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x10]
mov dword [esi], 0
mov eax, dword [edx + 0x514]
and eax, 0xffffff
cdq
mov dword [esp + 0x18], edx
mov ecx, str.max_connections
mov edx, edi
mov ebx, eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e5698
mov ecx, dword [esp + 0x18]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x10]
mov dword [esi], 0
mov eax, dword [edx + 0x504]
and eax, 0xffffff
cdq
mov dword [esp + 0x18], edx
mov ecx, str.max_uploads
mov edx, edi
mov ebx, eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e56d7
mov ecx, dword [esp + 0x18]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x10]
mov dword [esi], 0
test byte [eax + 0x52c], 0x10
je 0x4e56f7
test byte [eax + 0x545], 1
jne 0x4e56f7
xor eax, eax
jmp 0x4e56fc
mov eax, 1
movzx eax, al
cdq
mov dword [esp + 0x18], edx
mov ecx, str.paused
mov edx, edi
mov ebx, eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e5729
mov edx, dword [esp + 0x18]
mov dword [eax], ebx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x10]
mov dword [esi], 0
mov cl, byte [eax + 0x52c]
shr cl, 1
and cl, 1
movzx eax, cl
cdq
mov dword [esp + 0x18], edx
mov ecx, str.announce_to_dht
mov edx, edi
mov ebx, eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e576b
mov edx, dword [esp + 0x18]
mov dword [eax], ebx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x10]
mov dword [esi], 0
mov cl, byte [eax + 0x52c]
shr cl, 2
and cl, 1
movzx eax, cl
cdq
mov dword [esp + 0x18], edx
mov ecx, str.announce_to_trackers
mov edx, edi
mov ebx, eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e57ae
mov edx, dword [esp + 0x18]
mov dword [eax], ebx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x10]
mov dword [esi], 0
mov cl, byte [eax + 0x52c]
shr cl, 3
and cl, 1
movzx eax, cl
cdq
mov dword [esp + 0x18], edx
mov ecx, str.announce_to_lsd
mov edx, edi
mov ebx, eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e57f1
mov edx, dword [esp + 0x18]
mov dword [eax], ebx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x10]
mov dword [esi], 0
mov cl, byte [eax + 0x52c]
shr cl, 6
and cl, 1
movzx eax, cl
cdq
mov dword [esp + 0x18], edx
mov ecx, str.auto_managed
mov edx, edi
mov ebx, eax
call fcn.0049db10
mov esi, eax
call fcn.0049e480
lea eax, [esi + 8]
test eax, eax
je 0x4e5834
mov edx, dword [esp + 0x18]
mov dword [eax], ebx
mov dword [eax + 4], edx
mov ecx, str.piece_priority
mov edx, edi
mov dword [esi], 0
call fcn.0049db10
mov edi, eax
cmp dword [edi], 4
jne 0x4e5855
push 1
push edi
call fcn.0049e2d0
cmp dword [edi], 1
je 0x4e585f
call fcn.0049d9f0
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xa8]
mov eax, dword [eax + 0x90]
mov ecx, dword [edi + 0x1c]
add edi, 8
cmp eax, ecx
ja 0x4e5885
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.0040b930
jmp 0x4e588e
push 0
sub eax, ecx
call fcn.004192a0
mov ecx, dword [esp + 0x10]
call fcn.00493f40
test al, al
je 0x4e58ca
cmp dword [edi + 0x18], 0x10
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x14]
jb 0x4e58b9
mov edi, dword [edi + 4]
push eax
push 1
push edi
call fcn.005be600
add esp, 0xc
jmp 0x4e5929
push eax
add edi, 4
push 1
push edi
call fcn.005be600
add esp, 0xc
jmp 0x4e5929
mov eax, dword [edi + 0x14]
xor esi, esi
test eax, eax
mov dword [esp + 0x30], eax
jle 0x4e5929
mov edx, dword [esp + 0x10]
mov ebx, dword [edx + 0x318]
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x4e58f4
mov eax, dword [ebx + 0x2c]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x4e58f9
call fcn.005b8b18
mov eax, dword [ebx + 0x28]
mov ebx, dword [eax + esi*8]
shr ebx, 0x12
and ebx, 7
cmp esi, dword [edi + 0x14]
jbe 0x4e590f
call fcn.005b8b18
cmp dword [edi + 0x18], 0x10
jb 0x4e591a
mov eax, dword [edi + 4]
jmp 0x4e591d
lea eax, [edi + 4]
mov byte [eax + esi], bl
add esi, 1
cmp esi, dword [esp + 0x30]
jl 0x4e58d7
mov edx, dword [esp + 0x3c]
mov ecx, str.file_priority
call fcn.0049db10
push eax
call fcn.0049dfc0
mov edi, eax
mov dword [esp + 0x20], eax
call fcn.0049eeb0
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x2fc]
xor edi, edi
test edx, edx
je 0x4e5a14
mov ecx, dword [eax + 0x300]
sub ecx, edx
test ecx, ecx
mov dword [esp + 0x30], ecx
jle 0x4e5a14
jmp 0x4e5976
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x2fc]
test ecx, ecx
je 0x4e598c
mov eax, dword [eax + 0x300]
sub eax, ecx
cmp edi, eax
jb 0x4e5991
call fcn.005b8b18
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x2fc]
movzx eax, byte [edi + edx]
cdq
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edx
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0x20]
mov dword [esp + 0xe0], 0x20
mov esi, dword [eax + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x8c]
push ecx
push edx
push esi
call fcn.00490890
mov ecx, dword [esp + 0x20]
mov ebx, eax
call fcn.00490930
mov dword [esi + 4], ebx
mov eax, dword [ebx + 4]
lea esi, [esp + 0x8c]
mov dword [eax], ebx
mov dword [esp + 0xe0], 0xffffffff
call fcn.0049e480
add edi, 1
cmp edi, dword [esp + 0x30]
jl 0x4e5972
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.005b88a9
mov esp, ebp
pop ebp
ret 4