Function at 0x423f20
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x489950
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b2098]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ecx, 0x4b37f0
call fcn.00411b00
cmp eax, 4
je 0x423f67
mov eax, dword [esp + 0x48]
push eax
push 4
mov ecx, 0x4b37f0
call fcn.00412700
mov ecx, dword [esp + 0x48]
mov ebp, dword [0x4b37f8]
mov dword [0x4b3828], ecx
xor ebx, ebx
lea ecx, [esp + 0x24]
mov byte [0x4b3958], 0
mov dword [0x4b3950], ebx
mov dword [0x4b3954], ebx
mov dword [esp + 0x14], ebp
call fcn.0044ccc5
mov eax, dword [0x4b39d4]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x40], ebx
jle 0x424092
lea esp, [esp]
cmp esi, ebx
jl 0x42408d
cmp esi, eax
jge 0x42408d
mov edx, dword [0x4b39d0]
mov eax, dword [edx + esi*4]
push eax
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
call fcn.0044ce12
mov eax, dword [0x4b39d4]
inc esi
cmp esi, eax
jl 0x423fb0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Downloading_error_files...
call fcn.00402410
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x48fda4
mov byte [esp + 0x4c], 1
call fcn.00402410
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x4c], 0
call fcn.00413c80
mov eax, dword [eax]
push eax
mov byte [esp + 0x50], 2
call fcn.00422ef0
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 0x42404d
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.00402410
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x48fda4
mov byte [esp + 0x4c], 3
call fcn.00402410
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x4c], 0
call fcn.00413c80
mov byte [esp + 0x4c], 4
jmp 0x424150
call fcn.0043ea0b
cmp ebp, ebx
jle 0x4240aa
mov ecx, dword [esp + 0x2c]
push esi
push ecx
lea ecx, [esp + 0x2c]
call fcn.0044ce12
inc esi
cmp esi, ebp
jl 0x424096
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Downloading_to_temporary_directory...
call fcn.00402410
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x48fda4
mov byte [esp + 0x4c], 5
call fcn.00402410
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x4c], 0
call fcn.00413c80
mov eax, dword [eax]
push eax
mov byte [esp + 0x50], 6
call fcn.00422ef0
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 0x424115
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.00402410
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x48fda4
mov byte [esp + 0x4c], 7
call fcn.00402410
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x4c], 0
call fcn.00413c80
mov byte [esp + 0x4c], 8
mov eax, dword [eax]
push eax
call fcn.0040ad00
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 0x424180
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xffffffffffffffff
push ebx
mov ecx, 0x4b39cc
call fcn.0044ccec
mov edi, dword [0x4b394c]
xor esi, esi
cmp dword [esp + 0x2c], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jle 0x42424d
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x4241b0
cmp byte [0x4b3958], 0
jne 0x424249
call fcn.00423ca0
mov dword [esp + 0x18], 0
test esi, esi
jl 0x42408d
cmp esi, dword [esp + 0x2c]
jge 0x42408d
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + esi*4]
lea edx, [esp + 0x18]
push edx
push 0
push eax
push 0x423f00
push 0
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00422ca0
mov ecx, esi
sub ecx, dword [0x4b394c]
add ecx, edi
sub ecx, eax
inc ecx
cmp ecx, dword [0x4b0534]
jl 0x42423e
cmp byte [0x4b3958], 0
jne 0x42423e
push 1
call ebx
call fcn.00422ca0
mov edx, esi
sub edx, dword [0x4b394c]
add edx, edi
sub edx, eax
inc edx
cmp edx, dword [0x4b0534]
jge 0x424217
inc esi
cmp esi, dword [esp + 0x2c]
jl 0x4241b0
mov ebp, dword [esp + 0x14]
call fcn.00422ca0
mov ecx, eax
mov eax, dword [0x4b394c]
add ecx, eax
cmp ecx, ebp
jge 0x42427f
nop
cmp byte [0x4b3958], 0
jne 0x42427f
push 1
call ebx
call fcn.00422ca0
mov edx, eax
mov eax, dword [0x4b394c]
add edx, eax
cmp edx, ebp
jl 0x424260
cmp eax, ebp
jl 0x42428c
mov eax, dword [esp + 0x48]
push eax
push 6
jmp 0x424293
mov ecx, dword [esp + 0x48]
push ecx
push 5
mov ecx, 0x4b37f0
call fcn.00412700
call fcn.00423700
call fcn.0044ba29
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4242bc
push 0x80004005
call fcn.00401000
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.00422ca0
mov ecx, dword [0x4b394c]
push ebp
push ecx
test eax, eax
jle 0x424338
call fcn.00422ca0
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Error__d_files_complete__d__d
call fcn.00402410
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x48fda4
mov byte [esp + 0x58], 0xa
call fcn.00402410
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x58], bl
call fcn.00413c80
add esp, 0xc
mov eax, dword [eax]
push eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x54], 0xb
call fcn.004019b0
add esp, 0x14
jmp 0x424385
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Download_completed__d__d.
call fcn.00402410
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x48fda4
mov byte [esp + 0x54], 0xc
call fcn.00402410
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x54], bl
call fcn.00413c80
add esp, 0xc
mov eax, dword [eax]
push eax
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x50], 0xd
call fcn.004019b0
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 0x4243a9
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.00422ef0
push esi
call fcn.0040ad00
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 0x4243dd
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.0044ccdc
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