Function at 0x10190ad0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023f29d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x102e91c0]
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
lea edi, [ebx + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x10190b1a
cmp byte [0x102eec26], 0
jne 0x10190b25
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.Starting_download.
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 8
lea ecx, [ebx + 0x590]
call fcn.101a0780
cmp byte [ebx + 5], 0
jne 0x10190bcb
push 0x1c
push str.download_yet_not_initialized
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.1000aef0
lea ecx, [ebx + 0x3b8]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
mov dword [ebx + 0x3b0], 0xfffffff6
cmp ecx, eax
je 0x10190ba1
cmp dword [ebp - 0x28], 8
push dword [ebp - 0x2c]
cmovae eax, dword [ebp - 0x3c]
push eax
call fcn.10010360
lea ecx, [ebp - 0x3c]
mov dword [ebx + 0x3b4], 0
mov byte [ebx + 0x3d4], 1
call fcn.1000ae90
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xfffffffc
jmp 0x101913d6
cmp dword [ebx + 0x598], 3
je 0x10190c5e
cmp dword [ebx + 0x598], 5
je 0x10190c5e
push 0x4f
push str.download_is_in_running_state._Should_be_paused_before_any_preference_can_be_set
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.1000aef0
lea ecx, [ebx + 0x3b8]
mov dword [ebp - 4], 1
lea eax, [ebp - 0x3c]
mov dword [ebx + 0x3b0], 0xfffffff6
cmp ecx, eax
je 0x10190c34
cmp dword [ebp - 0x28], 8
push dword [ebp - 0x2c]
cmovae eax, dword [ebp - 0x3c]
push eax
call fcn.10010360
lea ecx, [ebp - 0x3c]
mov dword [ebx + 0x3b4], 0
mov byte [ebx + 0x3d4], 1
call fcn.1000ae90
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x1e
jmp 0x101913d6
lea ecx, [ebx + 0x70]
call fcn.1019c1c0
test al, al
jne 0x10190caa
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x10190c7c
cmp byte [0x102eec26], al
jne 0x10190c87
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.failed_to_init_the_global_file_data_for_downloading
push 0x1025b044
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0xc
push edi
jmp 0x101913cd
cmp byte [ebx + 0x266], 0
mov ecx, ebx
je 0x10190cbc
call fcn.1018f840
jmp 0x10190cc1
call fcn.1018fd70
mov esi, eax
test esi, esi
je 0x10190e7b
cmp byte [ebx + 0x266], 0
jne 0x10191131
cmp byte [ebx + 0x3e4], 0
lea edi, [ebx + 0x3e4]
je 0x10190cfa
mov ecx, edi
call fcn.10198ee0
cmp byte [edi], 0
je 0x10190cfa
mov ecx, edi
call fcn.10198ee0
cmp dword [edi + 0xc4], 0
lea esi, [edi + 0xb4]
je 0x10190d49
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x10190d13
mov ecx, dword [esi]
lea edx, [ebp - 0x48]
call fcn.101935d0
test al, al
jne 0x10190d49
mov eax, dword [ebp - 0x48]
lea ecx, [edi + 0xd8]
push 0x24
push str.Failed_to_delete_the_file_meta_file.
mov dword [edi + 0xcc], 1
mov dword [edi + 0xd0], eax
call fcn.10010360
jmp 0x10190df3
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x20], esi
jb 0x10190d59
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10190de0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov eax, dword [0x102eec4c]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x10190d95
cmp byte [0x102eec26], 0
jne 0x10190da2
call fcn.1018f140
mov eax, dword [0x102eec4c]
mov dword [ebp - 0x40], eax
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push dword [ebp - 0x20]
push str.Failed_to_create_a_file_at__s._Error___d_
push 0x1025b044
push dword [ebp - 0x40]
call dword [0x1024852c]
call esi
mov eax, dword [ebp - 0x24]
add esp, 0x14
mov dword [edi + 0xd0], eax
mov dword [edi + 0xcc], 1
jmp 0x10190df3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov ecx, edi
call fcn.10198b50
test al, al
jne 0x10190e29
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x10190e06
cmp byte [0x102eec26], 0
jne 0x10190e11
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.Failed_to_reset_the_aamd_file
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 8
mov ecx, ebx
call fcn.1018f840
mov esi, eax
test esi, esi
je 0x10190e74
push 0x4c
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.10010360
mov ecx, ebx
call fcn.10191980
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x101913d6
mov byte [ebx + 0x266], 1
push 0x3c
call fcn.101cff73
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
push 0x3c
push 0
push edi
call fcn.101d28f0
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]
lea eax, [ebx + 0x70]
mov dword [ebx + 0x6c], edi
test eax, eax
je 0x10191348
mov dword [edi + 0x2c], 1
mov dword [edi + 0x30], eax
mov byte [edi + 4], 1
mov edi, dword [ebx + 0x6c]
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x1024852c]
mov ecx, edi
call esi
test al, al
je 0x101913c2
mov edi, dword [ebx + 0x6c]
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x1024852c]
mov ecx, edi
call esi
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x10190f25
cmp byte [0x102eec26], 0
jne 0x10190f30
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ebx + 0x6c]
mov esi, dword [ecx]
push dword [eax + 0x38]
mov esi, dword [esi + 4]
push str.file_serializer_thread_id_is__d
push ecx
mov ecx, esi
call dword [0x1024852c]
call esi
mov esi, dword [ebx + 0x13c]
add esp, 0xc
mov dword [ebp - 0x20], esi
cmp dword [ebx + 0x574], esi
ja 0x10190f68
mov esi, dword [ebx + 0x574]
mov dword [ebp - 0x20], esi
xor edi, edi
mov dword [ebx + 0x13c], esi
test esi, esi
je 0x10191061
lea esi, [ebx + 0x580]
nop
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], edi
push eax
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
call fcn.101933f0
mov eax, dword [ebp - 0x54]
cmp byte [eax + 0xd], 0
jne 0x10190fa4
cmp edi, dword [eax + 0x10]
jae 0x10191050
cmp dword [esi + 4], 0x3ffffff
je 0x101913f2
mov esi, dword [esi]
lea eax, [ebx + 0x580]
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 2
push 0x40
mov dword [ebp - 0x4c], 0
call fcn.101cff73
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov dword [eax + 0x10], ecx
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], esi
push eax
push dword [ebp - 0x58]
mov dword [eax + 4], esi
push dword [ebp - 0x5c]
mov dword [eax + 8], esi
lea esi, [ebx + 0x580]
mov ecx, esi
mov word [eax + 0xc], 0
mov dword [ebp - 0x4c], 0
call fcn.10010f30
inc edi
mov byte [eax + 0x34], 0
cmp edi, dword [ebp - 0x20]
jb 0x10190f80
mov esi, dword [ebp - 0x20]
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x10191074
cmp byte [0x102eec26], 0
jne 0x1019107f
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push esi
push str.Number_of_downloader_threads_are__d
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0xc
lea ecx, [ebx + 0x70]
push 0
push 0
push 6
call fcn.1019d4f0
lea esi, [ebx + 0x38]
mov ecx, esi
call fcn.10198690
cmp dword [ebp - 0x20], 0
mov al, 1
mov byte [ebp - 0x19], al
mov dword [ebp - 0x14], 0
jbe 0x10191247
push 0x3c
call fcn.101cff73
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
push 0x3c
push 0
push edi
call fcn.101d28f0
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
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 8]
test eax, eax
je 0x1019116c
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], eax
mov byte [edi + 4], 1
jmp 0x101911ab
push 0x4c
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.10010360
mov ecx, ebx
call fcn.10191980
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x101913d6
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x1019117f
cmp byte [0x102eec26], 0
jne 0x1019118a
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.WorkerThread::init_:_invalid_paramters
push 0x1025b044
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0xc
mov byte [edi + 4], 0
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x1024852c]
mov ecx, edi
call esi
test al, al
je 0x101911fb
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x64]
call fcn.10193330
lea ecx, [ebx + 0x64]
mov dword [eax], edi
lea eax, [ebp - 0x14]
push eax
call fcn.10193330
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 0x101910c6
lea esi, [ebx + 0x38]
jmp 0x10191244
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x1019120e
cmp byte [0x102eec26], 0
jne 0x10191219
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.Failed_to_create_a_new_worker_thead_.
push 0x1025b044
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0xc
mov byte [ebp - 0x19], 0
lea esi, [ebx + 0x38]
mov ecx, esi
call fcn.10198690
mov al, byte [ebp - 0x19]
mov byte [esi + 0x28], al
test al, al
jne 0x10191288
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x10191260
cmp byte [0x102eec26], al
jne 0x1019126b
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.failed_to_init_thread_pool
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 8
jmp 0x101913c2
cmp dword [ebx], 0
je 0x101912e3
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x101912a0
cmp byte [0x102eec26], 0
jne 0x101912ab
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.FileDownloadManager::runThisThread_thread_is_already_running._Closing_it_first
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1024852c]
call esi
mov eax, dword [ebx]
add esp, 8
test eax, eax
je 0x101912e3
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
lea eax, [ebp - 0x18]
mov dword [ebx + 0x598], 4
push eax
push 0
push ebx
push 0x10192a50
push 0
push 0
mov dword [ebx + 0x3ac], 4
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx], eax
test eax, eax
jne 0x10191337
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x10191325
cmp byte [0x102eec26], al
jne 0x10191330
call fcn.1018f140
mov ecx, dword [0x102eec4c]
push str.FileDownloadManager::runThisThread:_failed_to_create_a_new_thread._Fatal_Error
jmp 0x101913aa
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x101913d6
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x1019135b
cmp byte [0x102eec26], 0
jne 0x10191366
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.WorkerThread::init_:_invalid_paramters
push 0x1025b044
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1024852c]
call esi
mov ecx, dword [0x102eec4c]
add esp, 0xc
mov byte [edi + 4], 0
test ecx, ecx
je 0x1019139a
cmp byte [0x102eec26], 0
jne 0x101913a5
call fcn.1018f140
mov ecx, dword [0x102eec4c]
push str.failed_to_init_file_serializer_thread
mov eax, dword [ecx]
push 0x1025b044
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0xc
mov ecx, ebx
call fcn.10191980
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.101cff65
mov esp, ebp
pop ebp
ret
call fcn.1000bb90
int3