Function at 0x427cb0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x486500
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ace78]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ecx, 0x4ae448
call fcn.00413fe0
cmp eax, 4
je 0x427cf7
mov eax, dword [esp + 0x48]
push eax
push 4
mov ecx, 0x4ae448
call fcn.00414b40
mov ecx, dword [esp + 0x48]
mov ebp, dword [0x4ae450]
mov dword [0x4ae480], ecx
xor ebx, ebx
lea ecx, [esp + 0x24]
mov byte [0x4ae500], 0
mov dword [0x4ae4f8], ebx
mov dword [0x4ae4fc], ebx
mov dword [esp + 0x14], ebp
call fcn.0044be34
mov eax, dword [0x4ae50c]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x40], ebx
jle 0x427e22
lea esp, [esp]
cmp esi, ebx
jl 0x427e1d
cmp esi, eax
jge 0x427e1d
mov edx, dword [0x4ae508]
mov eax, dword [edx + esi*4]
push eax
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
call fcn.0046aaea
mov eax, dword [0x4ae50c]
inc esi
cmp esi, eax
jl 0x427d40
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Downloading_error_files...
call fcn.00401ba0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.MAIN
mov byte [esp + 0x4c], 1
call fcn.00401ba0
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x4c], 0
call fcn.004163c0
mov eax, dword [eax]
push eax
mov byte [esp + 0x50], 2
call fcn.00426a20
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 0x427ddd
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.00401ba0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.MAIN
mov byte [esp + 0x4c], 3
call fcn.00401ba0
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x4c], 0
call fcn.004163c0
mov byte [esp + 0x4c], 4
jmp 0x427ee0
call fcn.0044b73e
cmp ebp, ebx
jle 0x427e3a
mov ecx, dword [esp + 0x2c]
push esi
push ecx
lea ecx, [esp + 0x2c]
call fcn.0046aaea
inc esi
cmp esi, ebp
jl 0x427e26
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Downloading_to_temporary_directory...
call fcn.00401ba0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.MAIN
mov byte [esp + 0x4c], 5
call fcn.00401ba0
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x4c], 0
call fcn.004163c0
mov eax, dword [eax]
push eax
mov byte [esp + 0x50], 6
call fcn.00426a20
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 0x427ea5
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.00401ba0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.MAIN
mov byte [esp + 0x4c], 7
call fcn.00401ba0
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x4c], 0
call fcn.004163c0
mov byte [esp + 0x4c], 8
mov eax, dword [eax]
push eax
call fcn.0040dc40
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 0x427f10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xffffffffffffffff
push ebx
mov ecx, 0x4ae504
call fcn.0046a9c4
mov edi, dword [0x4ae4f4]
xor esi, esi
cmp dword [esp + 0x2c], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jle 0x427fdd
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x427f40
cmp byte [0x4ae500], 0
jne 0x427fd9
call fcn.00427a30
mov dword [esp + 0x18], 0
test esi, esi
jl 0x427e1d
cmp esi, dword [esp + 0x2c]
jge 0x427e1d
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + esi*4]
lea edx, [esp + 0x18]
push edx
push 0
push eax
push 0x427c90
push 0
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00425f30
mov ecx, esi
sub ecx, dword [0x4ae4f4]
add ecx, edi
sub ecx, eax
inc ecx
cmp ecx, dword [0x4ab454]
jl 0x427fce
cmp byte [0x4ae500], 0
jne 0x427fce
push 1
call ebx
call fcn.00425f30
mov edx, esi
sub edx, dword [0x4ae4f4]
add edx, edi
sub edx, eax
inc edx
cmp edx, dword [0x4ab454]
jge 0x427fa7
inc esi
cmp esi, dword [esp + 0x2c]
jl 0x427f40
mov ebp, dword [esp + 0x14]
call fcn.00425f30
mov ecx, eax
mov eax, dword [0x4ae4f4]
add ecx, eax
cmp ecx, ebp
jge 0x42800f
nop
cmp byte [0x4ae500], 0
jne 0x42800f
push 1
call ebx
call fcn.00425f30
mov edx, eax
mov eax, dword [0x4ae4f4]
add edx, eax
cmp edx, ebp
jl 0x427ff0
cmp eax, ebp
jl 0x42801c
mov eax, dword [esp + 0x48]
push eax
push 6
jmp 0x428023
mov ecx, dword [esp + 0x48]
push ecx
push 5
mov ecx, 0x4ae448
call fcn.00414b40
call fcn.00427490
call fcn.0044ba42
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42804c
push 0x80004005
call fcn.00401280
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.00425f30
mov ecx, dword [0x4ae4f4]
push ebp
push ecx
test eax, eax
jle 0x4280c8
call fcn.00425f30
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Error__d_files_complete__d__d
call fcn.00401ba0
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.MAIN
mov byte [esp + 0x58], 0xa
call fcn.00401ba0
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x58], bl
call fcn.004163c0
add esp, 0xc
mov eax, dword [eax]
push eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x54], 0xb
call fcn.00403ae0
add esp, 0x14
jmp 0x428115
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Download_completed__d__d.
call fcn.00401ba0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.MAIN
mov byte [esp + 0x54], 0xc
call fcn.00401ba0
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x54], bl
call fcn.004163c0
add esp, 0xc
mov eax, dword [eax]
push eax
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x50], 0xd
call fcn.00403ae0
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 0x428139
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.00426a20
push esi
call fcn.0040dc40
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 0x42816d
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.0044be4b
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