Function at 0x41ca40
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x47d5a0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a3e28]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ecx, 0x4a56e8
call fcn.00410810
cmp eax, 4
je 0x41ca87
mov eax, dword [esp + 0x48]
push eax
push 4
mov ecx, 0x4a56e8
call fcn.00411410
mov ecx, dword [esp + 0x48]
mov ebp, dword [0x4a56f0]
mov dword [0x4a5720], ecx
xor ebx, ebx
lea ecx, [esp + 0x24]
mov byte [0x4a5850], 0
mov dword [0x4a5848], ebx
mov dword [0x4a584c], ebx
mov dword [esp + 0x14], ebp
call fcn.0044164e
mov eax, dword [0x4a58cc]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x40], ebx
jle 0x41cbb2
lea esp, [esp]
cmp esi, ebx
jl 0x41cbad
cmp esi, eax
jge 0x41cbad
mov edx, dword [0x4a58c8]
mov eax, dword [edx + esi*4]
push eax
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
call fcn.0045afc6
mov eax, dword [0x4a58cc]
inc esi
cmp esi, eax
jl 0x41cad0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Downloading_error_files...
call fcn.00401ab0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x483af8
mov byte [esp + 0x4c], 1
call fcn.00401ab0
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x4c], 0
call fcn.00412920
mov eax, dword [eax]
push eax
mov byte [esp + 0x50], 2
call fcn.0041ba10
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 0x41cb6d
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.00401ab0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x483af8
mov byte [esp + 0x4c], 3
call fcn.00401ab0
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x4c], 0
call fcn.00412920
mov byte [esp + 0x4c], 4
jmp 0x41cc70
call fcn.00441013
cmp ebp, ebx
jle 0x41cbca
mov ecx, dword [esp + 0x2c]
push esi
push ecx
lea ecx, [esp + 0x2c]
call fcn.0045afc6
inc esi
cmp esi, ebp
jl 0x41cbb6
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Downloading_to_temporary_directory...
call fcn.00401ab0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x483af8
mov byte [esp + 0x4c], 5
call fcn.00401ab0
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x4c], 0
call fcn.00412920
mov eax, dword [eax]
push eax
mov byte [esp + 0x50], 6
call fcn.0041ba10
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 0x41cc35
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.00401ab0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x483af8
mov byte [esp + 0x4c], 7
call fcn.00401ab0
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x4c], 0
call fcn.00412920
mov byte [esp + 0x4c], 8
mov eax, dword [eax]
push eax
call fcn.00409eb0
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 0x41cca0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xffffffffffffffff
push ebx
mov ecx, 0x4a58c4
call fcn.0045aea0
mov edi, dword [0x4a5844]
xor esi, esi
cmp dword [esp + 0x2c], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jle 0x41cd6d
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x41ccd0
cmp byte [0x4a5850], 0
jne 0x41cd69
call fcn.0041c7c0
mov dword [esp + 0x18], 0
test esi, esi
jl 0x41cbad
cmp esi, dword [esp + 0x2c]
jge 0x41cbad
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + esi*4]
lea edx, [esp + 0x18]
push edx
push 0
push eax
push 0x41ca20
push 0
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0041b7c0
mov ecx, esi
sub ecx, dword [0x4a5844]
add ecx, edi
sub ecx, eax
inc ecx
cmp ecx, dword [0x4a23ec]
jl 0x41cd5e
cmp byte [0x4a5850], 0
jne 0x41cd5e
push 1
call ebx
call fcn.0041b7c0
mov edx, esi
sub edx, dword [0x4a5844]
add edx, edi
sub edx, eax
inc edx
cmp edx, dword [0x4a23ec]
jge 0x41cd37
inc esi
cmp esi, dword [esp + 0x2c]
jl 0x41ccd0
mov ebp, dword [esp + 0x14]
call fcn.0041b7c0
mov ecx, eax
mov eax, dword [0x4a5844]
add ecx, eax
cmp ecx, ebp
jge 0x41cd9f
nop
cmp byte [0x4a5850], 0
jne 0x41cd9f
push 1
call ebx
call fcn.0041b7c0
mov edx, eax
mov eax, dword [0x4a5844]
add edx, eax
cmp edx, ebp
jl 0x41cd80
cmp eax, ebp
jl 0x41cdac
mov eax, dword [esp + 0x48]
push eax
push 6
jmp 0x41cdb3
mov ecx, dword [esp + 0x48]
push ecx
push 5
mov ecx, 0x4a56e8
call fcn.00411410
call fcn.0041c220
call fcn.004412f5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41cddc
push 0x80004005
call fcn.004011b0
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.0041b7c0
mov ecx, dword [0x4a5844]
push ebp
push ecx
test eax, eax
jle 0x41ce58
call fcn.0041b7c0
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Error__d_files_complete__d__d
call fcn.00401ab0
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x483af8
mov byte [esp + 0x58], 0xa
call fcn.00401ab0
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x58], bl
call fcn.00412920
add esp, 0xc
mov eax, dword [eax]
push eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x54], 0xb
call fcn.004029f0
add esp, 0x14
jmp 0x41cea5
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Download_completed__d__d.
call fcn.00401ab0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x483af8
mov byte [esp + 0x54], 0xc
call fcn.00401ab0
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x54], bl
call fcn.00412920
add esp, 0xc
mov eax, dword [eax]
push eax
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x50], 0xd
call fcn.004029f0
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 0x41cec9
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.0041ba10
push esi
call fcn.00409eb0
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 0x41cefd
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.00441665
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