Function at 0x100e7aa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10192b7e
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 [0x101fc26c]
test ecx, ecx
je 0x100e7af0
cmp byte [0x101fc262], 0
jne 0x100e7afb
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
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.100f8790
cmp byte [ebx + 5], 0
jne 0x100e7bdd
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.10001d60
lea ecx, [ebx + 0x3b8]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
mov dword [ebx + 0x3b0], 0xfffffff6
cmp ecx, eax
je 0x100e7b7a
cmp dword [ebp - 0x28], 8
push dword [ebp - 0x2c]
cmovae eax, dword [ebp - 0x3c]
push eax
call fcn.10001d60
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
mov dword [ebx + 0x3b4], 0
mov byte [ebx + 0x3d4], 1
cmp edx, 8
jb 0x100e7bcc
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100e7bc2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100e8181
push edx
push ecx
call fcn.1015cbd5
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xfffffffc
jmp 0x100e80bc
cmp dword [ebx + 0x598], 3
je 0x100e7c6a
cmp dword [ebx + 0x598], 5
je 0x100e7c6a
push str.download_is_in_running_state._Should_be_paused_before_any_preference_can_be_set
lea ecx, [ebp - 0x3c]
call fcn.10001cb0
sub esp, 8
mov dword [ebp - 4], 1
lea eax, [ebp - 0x3c]
lea ecx, [ebx + 0x70]
push eax
push 0xfffffffffffffff6
call fcn.100f41b0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x100e7c59
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100e7c4f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100e8181
push edx
push ecx
call fcn.1015cbd5
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x1e
jmp 0x100e80bc
lea ecx, [ebx + 0x70]
call fcn.100f2430
test al, al
jne 0x100e7cb6
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100e7c88
cmp byte [0x101fc262], al
jne 0x100e7c93
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
mov eax, dword [ecx]
push str.failed_to_init_the_global_file_data_for_downloading
push 0x101ace0c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
push edi
jmp 0x100e80b3
cmp byte [ebx + 0x266], 0
mov ecx, ebx
je 0x100e7cc8
call fcn.100e6c60
jmp 0x100e7ccd
call fcn.100e6fc0
mov esi, eax
test esi, esi
je 0x100e7db7
cmp byte [ebx + 0x266], 0
jne 0x100e7d77
cmp byte [ebx + 0x3e4], 0
lea esi, [ebx + 0x3e4]
je 0x100e7cfa
mov ecx, esi
call fcn.100ef340
mov ecx, esi
call fcn.100ef2d0
test al, al
je 0x100e7d4d
cmp dword [esi + 0xc8], 8
lea ecx, [esi + 0xb4]
jb 0x100e7d1a
mov ecx, dword [esi + 0xb4]
lea edx, [ebp - 0x40]
call fcn.100e2080
test al, al
jne 0x100e7d3b
mov eax, dword [ebp - 0x40]
mov dword [esi + 0xd0], eax
mov dword [esi + 0xcc], 1
jmp 0x100e7d4d
lea eax, [esi + 0xb4]
mov ecx, esi
push eax
call fcn.100ef000
test al, al
jne 0x100e7d6a
call fcn.100e0f20
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.100e6c60
mov esi, eax
test esi, esi
je 0x100e7db0
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.10001c70
mov ecx, ebx
call fcn.100e8840
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x100e80bc
mov byte [ebx + 0x266], 1
push 0x3c
call fcn.1015c88b
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
push 0x3c
push 0
push esi
mov dword [ebp - 4], 2
call fcn.10160450
add esp, 0xc
mov ecx, esi
call fcn.100f0800
lea ecx, [ebx + 0x70]
mov dword [ebp - 4], 0xffffffff
push ecx
push 1
mov ecx, eax
mov dword [ebx + 0x6c], eax
call fcn.100f0840
test al, al
jne 0x100e7e2b
call fcn.100e0f20
push str.failed_to_init_file_serializer_thread
push 0x101ace0c
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.100e8840
push edi
jmp 0x100e80b3
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 0x100e80a8
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.100e0f20
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 0x100e7e97
mov edi, dword [ebx + 0x574]
mov dword [ebp - 0x20], edi
xor esi, esi
mov dword [ebx + 0x13c], edi
test edi, edi
je 0x100e7eca
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.100ea380
inc esi
mov byte [eax + 0x1c], 0
cmp esi, edi
jb 0x100e7eb0
mov ebx, dword [ebp - 0x14]
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100e7edd
cmp byte [0x101fc262], 0
jne 0x100e7ee8
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
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.100f31d0
lea esi, [ebx + 0x38]
mov ecx, esi
call fcn.100ee940
mov dword [ebp - 0x14], 0
mov al, 1
mov byte [ebp - 0x19], al
test edi, edi
je 0x100e8084
nop dword [eax]
push 0x3c
call fcn.1015c88b
mov edi, eax
add esp, 4
mov dword [ebp - 0x48], edi
push 0x3c
push 0
push edi
mov dword [ebp - 4], 3
call fcn.10160450
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 0x100e7fa9
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], eax
mov byte [edi + 4], 1
jmp 0x100e7fe8
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100e7fbc
cmp byte [0x101fc262], 0
jne 0x100e7fc7
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
mov eax, dword [ecx]
push str.WorkerThread::init_:_invalid_paramters
push 0x101ace0c
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 0x100e8038
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x64]
call fcn.100ea2c0
lea ecx, [ebx + 0x64]
mov dword [eax], edi
lea eax, [ebp - 0x14]
push eax
call fcn.100ea2c0
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 0x100e7f30
lea esi, [ebx + 0x38]
jmp 0x100e8081
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100e804b
cmp byte [0x101fc262], 0
jne 0x100e8056
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
mov eax, dword [ecx]
push str.Failed_to_create_a_new_worker_thead_.
push 0x101ace0c
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.100ee940
mov al, byte [ebp - 0x19]
mov byte [esi + 0x28], al
test al, al
jne 0x100e80d8
call fcn.100e0f20
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.100e8840
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.1015c875
mov esp, ebp
pop ebp
ret
cmp dword [ebx], 0
je 0x100e8101
call fcn.100e0f20
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.100ea110
lea eax, [ebp - 0x18]
mov dword [ebx + 0x598], 4
push eax
push 0
push ebx
push 0x100e9800
push 0
push 0
mov dword [ebx + 0x3ac], 4
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx], eax
test eax, eax
jne 0x100e8170
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100e8143
cmp byte [0x101fc262], al
jne 0x100e814e
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
mov eax, dword [ecx]
push str.FileDownloadManager::runThisThread:_failed_to_create_a_new_thread._Fatal_Error
push 0x101ace0c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
jmp 0x100e80a8
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x100e80bc
call fcn.101686f5
int3