Function at 0x6ad8a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74d3f7
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
lea ecx, [esi + 8]
call fcn.006af420
call fcn.006aafd0
push str.Starting_download.
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
lea eax, [esi + 0x590]
push 0
push eax
call fcn.006baf60
add esp, 0x10
cmp byte [esi + 5], 0
jne 0x6ad95c
push 0x1c
xor eax, eax
mov dword [ebp - 0x38], 0
push str.download_yet_not_initialized
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
call fcn.00426d40
push 1
push 0
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0
push eax
push 0xfffffffffffffff6
lea ecx, [esi + 0x70]
call fcn.006b60a0
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.00426b30
lea ecx, [esi + 8]
call fcn.006af440
mov eax, 0xfffffffc
jmp 0x6add51
cmp dword [esi + 0x598], 3
je 0x6ad9b5
cmp dword [esi + 0x598], 5
je 0x6ad9b5
push str.download_is_in_running_state._Should_be_paused_before_any_preference_can_be_set
lea ecx, [ebp - 0x48]
call fcn.00426b40
push 1
push 0
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 1
push eax
push 0xfffffffffffffff6
lea ecx, [esi + 0x70]
call fcn.006b60a0
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.00426b30
lea ecx, [esi + 8]
call fcn.006af440
mov eax, 0x1e
jmp 0x6add51
lea ecx, [esi + 0x70]
call fcn.006b4d60
test al, al
jne 0x6ad9e9
call fcn.006aafd0
push str.failed_to_init_the_global_file_data_for_downloading
push 0x799430
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
lea ecx, [esi + 8]
call fcn.006af440
or eax, 0xffffffff
jmp 0x6add51
lea ecx, [esi + 0x70]
call fcn.0066d070
mov ecx, esi
mov al, byte [eax + 0x196]
test al, al
je 0x6ada04
call fcn.006ac330
jmp 0x6ada09
call fcn.006abef0
mov edi, eax
test edi, edi
je 0x6ada9d
lea ecx, [esi + 0x70]
call fcn.0066d070
mov al, byte [eax + 0x196]
test al, al
jne 0x6ada54
lea ecx, [esi + 0x3e4]
call fcn.006b2720
test al, al
jne 0x6ada47
call fcn.006aafd0
push str.Failed_to_reset_the_aamd_file
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
mov ecx, esi
call fcn.006ac330
mov edi, eax
test edi, edi
je 0x6ada8e
push str.Failed_to_create_the_download_jobs_for_the_current_file._Some_unknown_error.
lea ecx, [esi + 0x3b8]
mov dword [esi + 0x3b0], 0xfffffff7
mov dword [esi + 0x3d8], 2
call fcn.0048f910
mov ecx, esi
call fcn.006abdd0
lea ecx, [esi + 8]
call fcn.006af440
mov eax, edi
jmp 0x6add51
lea ecx, [esi + 0x70]
call fcn.0066d070
mov byte [eax + 0x196], 1
push 0x3c
call fcn.006d0976
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 2
test edi, edi
je 0x6adacd
push 0x3c
push 0
push edi
call fcn.006e9470
add esp, 0xc
mov ecx, edi
call fcn.006b6cb0
jmp 0x6adacf
xor eax, eax
lea ecx, [esi + 0x70]
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x6c], eax
call fcn.00426cd0
mov ecx, dword [esi + 0x6c]
push eax
push 1
call fcn.006b71a0
test al, al
jne 0x6adb1f
call fcn.006aafd0
push str.failed_to_init_file_serializer_thread
push 0x799430
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
mov ecx, esi
call fcn.006abdd0
lea ecx, [esi + 8]
call fcn.006af440
or eax, 0xffffffff
jmp 0x6add51
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
je 0x6adb08
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
call dword [eax + 8]
call fcn.006aafd0
mov ecx, dword [esi + 0x6c]
mov edx, dword [eax]
push dword [ecx + 0x38]
push str.file_serializer_thread_id_is__d
push eax
call dword [edx + 4]
add esp, 0xc
lea ecx, [esi + 0x70]
call fcn.0066d070
mov edi, dword [eax + 0x6c]
mov dword [ebp - 0x20], edi
cmp dword [esi + 0x574], edi
ja 0x6adb6c
mov edi, dword [esi + 0x574]
mov dword [ebp - 0x20], edi
lea ecx, [esi + 0x70]
call fcn.0066d070
xor ebx, ebx
mov dword [eax + 0x6c], edi
test edi, edi
je 0x6adc97
lea edx, [esi + 0x580]
mov ecx, dword [edx]
xor edi, edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ecx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
cmp byte [eax + 0xd], 0
jne 0x6adbc1
nop dword [eax]
mov dword [ebp - 0x1c], eax
cmp dword [eax + 0x10], ebx
jae 0x6adbaf
mov eax, dword [eax + 8]
xor edi, edi
jmp 0x6adbb8
mov ecx, eax
mov edi, 1
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x6adba0
mov esi, dword [ebp - 0x28]
cmp byte [ecx + 0xd], 0
jne 0x6adbd0
cmp ebx, dword [ecx + 0x10]
jae 0x6adc87
cmp dword [edx + 4], 0x3ffffff
je 0x6add6d
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x4c], eax
push 0x40
mov dword [ebp - 4], 3
mov dword [ebp - 0x2c], 0
call fcn.006d0976
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x50], ecx
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov byte [eax + 0x34], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov dword [eax], ecx
push eax
mov dword [eax + 4], ecx
push edi
push dword [ebp - 0x1c]
mov dword [eax + 8], ecx
lea ecx, [esi + 0x580]
mov dword [ebp - 4], 0xffffffff
mov word [eax + 0xc], 0
mov dword [ebp - 0x2c], 0
call fcn.00427440
mov ecx, eax
lea edx, [esi + 0x580]
mov edi, dword [ebp - 0x20]
inc ebx
mov byte [ecx + 0x34], 0
cmp ebx, edi
jb 0x6adb87
call fcn.006aafd0
push edi
push str.Number_of_downloader_threads_are__d
push eax
mov edx, dword [eax]
call dword [edx + 4]
add esp, 0xc
lea ecx, [esi + 0x70]
push 0
push 0
push 6
call fcn.006b3fb0
push edi
lea ecx, [esi + 0x38]
call fcn.006b7820
test al, al
jne 0x6adcde
call fcn.006aafd0
push str.failed_to_init_thread_pool
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
jmp 0x6adb08
cmp dword [esi], 0
je 0x6adcfd
call fcn.006aafd0
push str.FileDownloadManager::runThisThread_thread_is_already_running._Closing_it_first
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
mov ecx, esi
call fcn.006abec0
lea eax, [ebp - 0x14]
mov dword [esi + 0x598], 4
push eax
push 0
push esi
push 0x6ab510
push 0
push 0
mov dword [esi + 0x3ac], 4
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
jne 0x6add47
call fcn.006aafd0
push str.FileDownloadManager::runThisThread:_failed_to_create_a_new_thread._Fatal_Error
push 0x799430
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
jmp 0x6adb05
lea ecx, [esi + 8]
call fcn.006af440
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
call fcn.00425f40
int3