Function at 0x100e7060
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019292e
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x101f62b4]
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 ebx, ecx
mov dword [ebp - 0x14], ebx
lea edi, [ebx + 0xc]
push edi
mov dword [ebp - 0x44], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100e70b0
cmp byte [0x101fc342], 0
jne 0x100e70bb
call fcn.100e0200
mov ecx, dword [0x101fc34c]
mov eax, dword [ecx]
push str.Starting_download.
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 8
lea ecx, [ebx + 0x590]
call fcn.100f7f20
cmp byte [ebx + 5], 0
jne 0x100e719d
push 0x1c
xor eax, eax
mov dword [ebp - 0x2c], 0
push str.download_yet_not_initialized
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
call fcn.10001e80
lea ecx, [ebx + 0x3b8]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
mov dword [ebx + 0x3b0], 0xfffffff6
cmp ecx, eax
je 0x100e713a
cmp dword [ebp - 0x28], 8
push dword [ebp - 0x2c]
cmovae eax, dword [ebp - 0x3c]
push eax
call fcn.10001e80
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
mov dword [ebx + 0x3b4], 0
mov byte [ebx + 0x3d4], 1
cmp edx, 8
jb 0x100e718c
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100e7182
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100e7741
push edx
push ecx
call fcn.1015cb05
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xfffffffc
jmp 0x100e767c
cmp dword [ebx + 0x598], 3
je 0x100e722a
cmp dword [ebx + 0x598], 5
je 0x100e722a
push str.download_is_in_running_state._Should_be_paused_before_any_preference_can_be_set
lea ecx, [ebp - 0x3c]
call fcn.10001dd0
sub esp, 8
mov dword [ebp - 4], 1
lea eax, [ebp - 0x3c]
lea ecx, [ebx + 0x70]
push eax
push 0xfffffffffffffff6
call fcn.100f3940
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x100e7219
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100e720f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100e7741
push edx
push ecx
call fcn.1015cb05
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x1e
jmp 0x100e767c
lea ecx, [ebx + 0x70]
call fcn.100f1bd0
test al, al
jne 0x100e7276
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100e7248
cmp byte [0x101fc342], al
jne 0x100e7253
call fcn.100e0200
mov ecx, dword [0x101fc34c]
mov eax, dword [ecx]
push str.failed_to_init_the_global_file_data_for_downloading
push 0x101ace8c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
push edi
jmp 0x100e7673
cmp byte [ebx + 0x266], 0
mov ecx, ebx
je 0x100e7288
call fcn.100e6220
jmp 0x100e728d
call fcn.100e6580
mov esi, eax
test esi, esi
je 0x100e7377
cmp byte [ebx + 0x266], 0
jne 0x100e7337
cmp byte [ebx + 0x3e4], 0
lea esi, [ebx + 0x3e4]
je 0x100e72ba
mov ecx, esi
call fcn.100eead0
mov ecx, esi
call fcn.100eea60
test al, al
je 0x100e730d
cmp dword [esi + 0xc8], 8
lea ecx, [esi + 0xb4]
jb 0x100e72da
mov ecx, dword [esi + 0xb4]
lea edx, [ebp - 0x40]
call fcn.100e1640
test al, al
jne 0x100e72fb
mov eax, dword [ebp - 0x40]
mov dword [esi + 0xd0], eax
mov dword [esi + 0xcc], 1
jmp 0x100e730d
lea eax, [esi + 0xb4]
mov ecx, esi
push eax
call fcn.100ee790
test al, al
jne 0x100e732a
call fcn.100e04e0
push str.Failed_to_reset_the_aamd_file
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 8
mov ecx, ebx
call fcn.100e6220
mov esi, eax
test esi, esi
je 0x100e7370
push str.Failed_to_create_the_download_jobs_for_the_current_file._Some_unknown_error.
lea ecx, [ebx + 0x3b8]
mov dword [ebx + 0x3b0], 0xfffffff7
mov dword [ebx + 0x3d8], 2
call fcn.10001d90
mov ecx, ebx
call fcn.100e7e00
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x100e767c
mov byte [ebx + 0x266], 1
push 0x3c
call fcn.1015c7bb
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
push 0x3c
push 0
push esi
mov dword [ebp - 4], 2
call fcn.10160390
add esp, 0xc
mov ecx, esi
call fcn.100eff90
lea ecx, [ebx + 0x70]
mov dword [ebp - 4], 0xffffffff
push ecx
push 1
mov ecx, eax
mov dword [ebx + 0x6c], eax
call fcn.100effe0
test al, al
jne 0x100e73eb
call fcn.100e04e0
push str.failed_to_init_file_serializer_thread
push 0x101ace8c
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
mov ecx, ebx
call fcn.100e7e00
push edi
jmp 0x100e7673
mov edi, dword [ebx + 0x6c]
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x1019a4f8]
mov ecx, edi
call esi
test al, al
je 0x100e7668
mov edi, dword [ebx + 0x6c]
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x1019a4f8]
mov ecx, edi
call esi
call fcn.100e04e0
mov ecx, dword [ebx + 0x6c]
mov esi, dword [eax]
push dword [ecx + 0x38]
push str.file_serializer_thread_id_is__d
mov esi, dword [esi + 4]
mov ecx, esi
push eax
call dword [0x1019a4f8]
call esi
mov edi, dword [ebx + 0x13c]
add esp, 0xc
mov dword [ebp - 0x20], edi
cmp dword [ebx + 0x574], edi
ja 0x100e7457
mov edi, dword [ebx + 0x574]
mov dword [ebp - 0x20], edi
xor esi, esi
mov dword [ebx + 0x13c], edi
test edi, edi
je 0x100e748a
lea eax, [ebx + 0x580]
mov ebx, eax
nop dword [eax + eax]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], esi
push eax
mov ecx, ebx
call fcn.100e9af0
inc esi
mov byte [eax + 0x1c], 0
cmp esi, edi
jb 0x100e7470
mov ebx, dword [ebp - 0x14]
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100e749d
cmp byte [0x101fc342], 0
jne 0x100e74a8
call fcn.100e0200
mov ecx, dword [0x101fc34c]
mov eax, dword [ecx]
push edi
push str.Number_of_downloader_threads_are__d
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
lea ecx, [ebx + 0x70]
push 0
push 0
push 6
call fcn.100f2970
lea esi, [ebx + 0x38]
mov ecx, esi
call fcn.100ee0d0
mov dword [ebp - 0x14], 0
mov al, 1
mov byte [ebp - 0x19], al
test edi, edi
je 0x100e7644
nop dword [eax]
push 0x3c
call fcn.1015c7bb
mov edi, eax
add esp, 4
mov dword [ebp - 0x48], edi
push 0x3c
push 0
push edi
mov dword [ebp - 4], 3
call fcn.10160390
add esp, 0xc
mov dword [edi], vtable.WorkerThread.0
lea eax, [edi + 0xc]
mov byte [edi + 4], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
push eax
mov dword [edi + 0x34], 1
mov dword [edi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0xa
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 8]
test eax, eax
je 0x100e7569
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], eax
mov byte [edi + 4], 1
jmp 0x100e75a8
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100e757c
cmp byte [0x101fc342], 0
jne 0x100e7587
call fcn.100e0200
mov ecx, dword [0x101fc34c]
mov eax, dword [ecx]
push str.WorkerThread::init_:_invalid_paramters
push 0x101ace8c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
mov byte [edi + 4], 0
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x1019a4f8]
mov ecx, edi
call esi
test al, al
je 0x100e75f8
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x64]
call fcn.100e9a30
lea ecx, [ebx + 0x64]
mov dword [eax], edi
lea eax, [ebp - 0x14]
push eax
call fcn.100e9a30
lea esi, [ebx + 0x38]
mov byte [eax + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x20]
jb 0x100e74f0
lea esi, [ebx + 0x38]
jmp 0x100e7641
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100e760b
cmp byte [0x101fc342], 0
jne 0x100e7616
call fcn.100e0200
mov ecx, dword [0x101fc34c]
mov eax, dword [ecx]
push str.Failed_to_create_a_new_worker_thead_.
push 0x101ace8c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
mov byte [ebp - 0x19], 0
lea esi, [ebx + 0x38]
mov ecx, esi
call fcn.100ee0d0
mov al, byte [ebp - 0x19]
mov byte [esi + 0x28], al
test al, al
jne 0x100e7698
call fcn.100e04e0
push str.failed_to_init_thread_pool
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 8
mov ecx, ebx
call fcn.100e7e00
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
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.1015c7a5
mov esp, ebp
pop ebp
ret
cmp dword [ebx], 0
je 0x100e76c1
call fcn.100e04e0
push str.FileDownloadManager::runThisThread_thread_is_already_running._Closing_it_first
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 8
mov ecx, ebx
call fcn.100e9880
lea eax, [ebp - 0x18]
mov dword [ebx + 0x598], 4
push eax
push 0
push ebx
push 0x100e8dc0
push 0
push 0
mov dword [ebx + 0x3ac], 4
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx], eax
test eax, eax
jne 0x100e7730
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100e7703
cmp byte [0x101fc342], al
jne 0x100e770e
call fcn.100e0200
mov ecx, dword [0x101fc34c]
mov eax, dword [ecx]
push str.FileDownloadManager::runThisThread:_failed_to_create_a_new_thread._Fatal_Error
push 0x101ace8c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
jmp 0x100e7668
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x100e767c
call fcn.10168635
int3