Function at 0x1013a030
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10188097
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x101e42fc]
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.1013be80
call fcn.10137740
push str.Starting_download.
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
lea eax, [esi + 0x590]
push 0
push eax
call fcn.10147d70
add esp, 0x10
cmp byte [esi + 5], 0
jne 0x1013a0ec
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.10001c20
push 1
push 0
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0
push eax
push 0xfffffffffffffff6
lea ecx, [esi + 0x70]
call fcn.10142da0
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.10001b40
lea ecx, [esi + 8]
call fcn.1013bea0
mov eax, 0xfffffffc
jmp 0x1013a4e1
cmp dword [esi + 0x598], 3
je 0x1013a145
cmp dword [esi + 0x598], 5
je 0x1013a145
push str.download_is_in_running_state._Should_be_paused_before_any_preference_can_be_set
lea ecx, [ebp - 0x48]
call fcn.10001b50
push 1
push 0
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 1
push eax
push 0xfffffffffffffff6
lea ecx, [esi + 0x70]
call fcn.10142da0
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.10001b40
lea ecx, [esi + 8]
call fcn.1013bea0
mov eax, 0x1e
jmp 0x1013a4e1
lea ecx, [esi + 0x70]
call fcn.10141a60
test al, al
jne 0x1013a179
call fcn.10137740
push str.failed_to_init_the_global_file_data_for_downloading
push 0x101a4aec
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
lea ecx, [esi + 8]
call fcn.1013bea0
or eax, 0xffffffff
jmp 0x1013a4e1
lea ecx, [esi + 0x70]
call fcn.101053e0
mov ecx, esi
mov al, byte [eax + 0x196]
test al, al
je 0x1013a194
call fcn.10138ac0
jmp 0x1013a199
call fcn.10138680
mov edi, eax
test edi, edi
je 0x1013a22d
lea ecx, [esi + 0x70]
call fcn.101053e0
mov al, byte [eax + 0x196]
test al, al
jne 0x1013a1e4
lea ecx, [esi + 0x3e4]
call fcn.1013f2e0
test al, al
jne 0x1013a1d7
call fcn.10137740
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.10138ac0
mov edi, eax
test edi, edi
je 0x1013a21e
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.10001b10
mov ecx, esi
call fcn.10138560
lea ecx, [esi + 8]
call fcn.1013bea0
mov eax, edi
jmp 0x1013a4e1
lea ecx, [esi + 0x70]
call fcn.101053e0
mov byte [eax + 0x196], 1
push 0x3c
call fcn.1014d1eb
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 2
test edi, edi
je 0x1013a25d
push 0x3c
push 0
push edi
call fcn.10150b00
add esp, 0xc
mov ecx, edi
call fcn.101439b0
jmp 0x1013a25f
xor eax, eax
lea ecx, [esi + 0x70]
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x6c], eax
call fcn.1000a530
mov ecx, dword [esi + 0x6c]
push eax
push 1
call fcn.10143ea0
test al, al
jne 0x1013a2af
call fcn.10137740
push str.failed_to_init_file_serializer_thread
push 0x101a4aec
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
mov ecx, esi
call fcn.10138560
lea ecx, [esi + 8]
call fcn.1013bea0
or eax, 0xffffffff
jmp 0x1013a4e1
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
je 0x1013a298
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
call dword [eax + 8]
call fcn.10137740
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.101053e0
mov edi, dword [eax + 0x6c]
mov dword [ebp - 0x20], edi
cmp dword [esi + 0x574], edi
ja 0x1013a2fc
mov edi, dword [esi + 0x574]
mov dword [ebp - 0x20], edi
lea ecx, [esi + 0x70]
call fcn.101053e0
xor ebx, ebx
mov dword [eax + 0x6c], edi
test edi, edi
je 0x1013a427
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 0x1013a351
nop dword [eax]
mov dword [ebp - 0x1c], eax
cmp dword [eax + 0x10], ebx
jae 0x1013a33f
mov eax, dword [eax + 8]
xor edi, edi
jmp 0x1013a348
mov ecx, eax
mov edi, 1
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x1013a330
mov esi, dword [ebp - 0x28]
cmp byte [ecx + 0xd], 0
jne 0x1013a360
cmp ebx, dword [ecx + 0x10]
jae 0x1013a417
cmp dword [edx + 4], 0x3ffffff
je 0x1013a4fd
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.1014d1eb
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.1000bd40
mov ecx, eax
lea edx, [esi + 0x580]
mov edi, dword [ebp - 0x20]
inc ebx
mov byte [ecx + 0x34], 0
cmp ebx, edi
jb 0x1013a317
call fcn.10137740
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.10140cb0
push edi
lea ecx, [esi + 0x38]
call fcn.10144640
test al, al
jne 0x1013a46e
call fcn.10137740
push str.failed_to_init_thread_pool
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
jmp 0x1013a298
cmp dword [esi], 0
je 0x1013a48d
call fcn.10137740
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.10138650
lea eax, [ebp - 0x14]
mov dword [esi + 0x598], 4
push eax
push 0
push esi
push 0x10137ca0
push 0
push 0
mov dword [esi + 0x3ac], 4
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
jne 0x1013a4d7
call fcn.10137740
push str.FileDownloadManager::runThisThread:_failed_to_create_a_new_thread._Fatal_Error
push 0x101a4aec
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
jmp 0x1013a295
lea ecx, [esi + 8]
call fcn.1013bea0
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.1014d1d5
mov esp, ebp
pop ebp
ret
call fcn.100049a0
int3