Function at 0x41cfd0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x46f4c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490d1c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ecx, 0x492268
call fcn.0040e600
cmp eax, 4
je 0x41d017
mov eax, dword [esp + 0x48]
push eax
push 4
mov ecx, 0x492268
call fcn.0040f200
mov ecx, dword [esp + 0x48]
mov ebp, dword [0x492270]
mov dword [0x4922a0], ecx
xor ebx, ebx
lea ecx, [esp + 0x24]
mov byte [0x4923d0], 0
mov dword [0x4923c8], ebx
mov dword [0x4923cc], ebx
mov dword [esp + 0x14], ebp
call fcn.0043b3c0
mov eax, dword [0x49244c]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x40], ebx
jle 0x41d142
lea esp, [esp]
cmp esi, ebx
jl 0x41d13d
cmp esi, eax
jge 0x41d13d
mov edx, dword [0x492448]
mov eax, dword [edx + esi*4]
push eax
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
call fcn.0043b50d
mov eax, dword [0x49244c]
inc esi
cmp esi, eax
jl 0x41d060
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Downloading_error_files...
call fcn.00401e60
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x474c40
mov byte [esp + 0x4c], 1
call fcn.00401e60
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x4c], 0
call fcn.004106c0
mov eax, dword [eax]
push eax
mov byte [esp + 0x50], 2
call fcn.0041bfa0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x40], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d0fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Downloading_error_files...
call fcn.00401e60
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x474c40
mov byte [esp + 0x4c], 3
call fcn.00401e60
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x4c], 0
call fcn.004106c0
mov byte [esp + 0x4c], 4
jmp 0x41d200
call fcn.0043ad73
cmp ebp, ebx
jle 0x41d15a
mov ecx, dword [esp + 0x2c]
push esi
push ecx
lea ecx, [esp + 0x2c]
call fcn.0043b50d
inc esi
cmp esi, ebp
jl 0x41d146
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Downloading_to_temporary_directory...
call fcn.00401e60
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x474c40
mov byte [esp + 0x4c], 5
call fcn.00401e60
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x4c], 0
call fcn.004106c0
mov eax, dword [eax]
push eax
mov byte [esp + 0x50], 6
call fcn.0041bfa0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x40], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d1c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Downloading_to_temporary_directory...
call fcn.00401e60
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x474c40
mov byte [esp + 0x4c], 7
call fcn.00401e60
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x4c], 0
call fcn.004106c0
mov byte [esp + 0x4c], 8
mov eax, dword [eax]
push eax
call fcn.00408b90
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov byte [esp + 0x50], 0
add esp, 0x10
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d230
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xffffffffffffffff
push ebx
mov ecx, 0x492444
call fcn.0043b3e7
mov edi, dword [0x4923c4]
xor esi, esi
cmp dword [esp + 0x2c], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jle 0x41d2fd
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x41d260
cmp byte [0x4923d0], 0
jne 0x41d2f9
call fcn.0041cd50
mov dword [esp + 0x18], 0
test esi, esi
jl 0x41d13d
cmp esi, dword [esp + 0x2c]
jge 0x41d13d
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + esi*4]
lea edx, [esp + 0x18]
push edx
push 0
push eax
push 0x41cfb0
push 0
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0041bd50
mov ecx, esi
sub ecx, dword [0x4923c4]
add ecx, edi
sub ecx, eax
inc ecx
cmp ecx, dword [0x48f49c]
jl 0x41d2ee
cmp byte [0x4923d0], 0
jne 0x41d2ee
push 1
call ebx
call fcn.0041bd50
mov edx, esi
sub edx, dword [0x4923c4]
add edx, edi
sub edx, eax
inc edx
cmp edx, dword [0x48f49c]
jge 0x41d2c7
inc esi
cmp esi, dword [esp + 0x2c]
jl 0x41d260
mov ebp, dword [esp + 0x14]
call fcn.0041bd50
mov ecx, eax
mov eax, dword [0x4923c4]
add ecx, eax
cmp ecx, ebp
jge 0x41d32f
nop
cmp byte [0x4923d0], 0
jne 0x41d32f
push 1
call ebx
call fcn.0041bd50
mov edx, eax
mov eax, dword [0x4923c4]
add edx, eax
cmp edx, ebp
jl 0x41d310
cmp eax, ebp
jl 0x41d33c
mov eax, dword [esp + 0x48]
push eax
push 6
jmp 0x41d343
mov ecx, dword [esp + 0x48]
push ecx
push 5
mov ecx, 0x492268
call fcn.0040f200
call fcn.0041c7b0
call fcn.0043b055
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41d36c
push 0x80004005
call fcn.00401530
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x48], eax
mov bl, 9
mov byte [esp + 0x40], bl
call fcn.0041bd50
mov ecx, dword [0x4923c4]
push ebp
push ecx
test eax, eax
jle 0x41d3e8
call fcn.0041bd50
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Error__d_files_complete__d__d
call fcn.00401e60
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x474c40
mov byte [esp + 0x58], 0xa
call fcn.00401e60
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x58], bl
call fcn.004106c0
add esp, 0xc
mov eax, dword [eax]
push eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x54], 0xb
call fcn.00402e00
add esp, 0x14
jmp 0x41d435
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Download_completed__d__d.
call fcn.00401e60
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x474c40
mov byte [esp + 0x54], 0xc
call fcn.00401e60
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x54], bl
call fcn.004106c0
add esp, 0xc
mov eax, dword [eax]
push eax
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x50], 0xd
call fcn.00402e00
add esp, 0x10
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x40], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d459
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x48]
push esi
call fcn.0041bfa0
push esi
call fcn.00408b90
lea eax, [esi - 0x10]
add esp, 8
mov byte [esp + 0x40], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d48d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], 0xffffffff
call fcn.0043b3d7
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret