Function at 0x428b30
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x488a20
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4afe78]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ecx, 0x4b1468
call fcn.00414c40
cmp eax, 4
je 0x428b77
mov eax, dword [esp + 0x48]
push eax
push 4
mov ecx, 0x4b1468
call fcn.00415250
mov ecx, dword [esp + 0x48]
mov ebp, dword [0x4b1470]
mov dword [0x4b14a0], ecx
xor ebx, ebx
lea ecx, [esp + 0x24]
mov byte [0x4b1524], 0
mov dword [0x4b151c], ebx
mov dword [0x4b1520], ebx
mov dword [esp + 0x14], ebp
call fcn.0044e034
mov eax, dword [0x4b1530]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x40], ebx
jle 0x428ca2
lea esp, [esp]
cmp esi, ebx
jl 0x428c9d
cmp esi, eax
jge 0x428c9d
mov edx, dword [0x4b152c]
mov eax, dword [edx + esi*4]
push eax
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
call fcn.0046cd6b
mov eax, dword [0x4b1530]
inc esi
cmp esi, eax
jl 0x428bc0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Downloading_error_files...
call fcn.00401bd0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.MAIN
mov byte [esp + 0x4c], 1
call fcn.00401bd0
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x4c], 0
call fcn.00416a90
mov eax, dword [eax]
push eax
mov byte [esp + 0x50], 2
call fcn.004278a0
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 0x428c5d
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.00401bd0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.MAIN
mov byte [esp + 0x4c], 3
call fcn.00401bd0
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x4c], 0
call fcn.00416a90
mov byte [esp + 0x4c], 4
jmp 0x428d60
call fcn.0044d954
cmp ebp, ebx
jle 0x428cba
mov ecx, dword [esp + 0x2c]
push esi
push ecx
lea ecx, [esp + 0x2c]
call fcn.0046cd6b
inc esi
cmp esi, ebp
jl 0x428ca6
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Downloading_to_temporary_directory...
call fcn.00401bd0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.MAIN
mov byte [esp + 0x4c], 5
call fcn.00401bd0
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x4c], 0
call fcn.00416a90
mov eax, dword [eax]
push eax
mov byte [esp + 0x50], 6
call fcn.004278a0
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 0x428d25
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.00401bd0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.MAIN
mov byte [esp + 0x4c], 7
call fcn.00401bd0
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x4c], 0
call fcn.00416a90
mov byte [esp + 0x4c], 8
mov eax, dword [eax]
push eax
call fcn.0040e570
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 0x428d90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xffffffffffffffff
push ebx
mov ecx, 0x4b1528
call fcn.0046cc45
mov edi, dword [0x4b1518]
xor esi, esi
cmp dword [esp + 0x2c], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jle 0x428e5d
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x428dc0
cmp byte [0x4b1524], 0
jne 0x428e59
call fcn.004288b0
mov dword [esp + 0x18], 0
test esi, esi
jl 0x428c9d
cmp esi, dword [esp + 0x2c]
jge 0x428c9d
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + esi*4]
lea edx, [esp + 0x18]
push edx
push 0
push eax
push 0x428b10
push 0
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00426db0
mov ecx, esi
sub ecx, dword [0x4b1518]
add ecx, edi
sub ecx, eax
inc ecx
cmp ecx, dword [0x4ae454]
jl 0x428e4e
cmp byte [0x4b1524], 0
jne 0x428e4e
push 1
call ebx
call fcn.00426db0
mov edx, esi
sub edx, dword [0x4b1518]
add edx, edi
sub edx, eax
inc edx
cmp edx, dword [0x4ae454]
jge 0x428e27
inc esi
cmp esi, dword [esp + 0x2c]
jl 0x428dc0
mov ebp, dword [esp + 0x14]
call fcn.00426db0
mov ecx, eax
mov eax, dword [0x4b1518]
add ecx, eax
cmp ecx, ebp
jge 0x428e8f
nop
cmp byte [0x4b1524], 0
jne 0x428e8f
push 1
call ebx
call fcn.00426db0
mov edx, eax
mov eax, dword [0x4b1518]
add edx, eax
cmp edx, ebp
jl 0x428e70
cmp eax, ebp
jl 0x428e9c
mov eax, dword [esp + 0x48]
push eax
push 6
jmp 0x428ea3
mov ecx, dword [esp + 0x48]
push ecx
push 5
mov ecx, 0x4b1468
call fcn.00415250
call fcn.00428310
call fcn.0044dc57
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x428ecc
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.00426db0
mov ecx, dword [0x4b1518]
push ebp
push ecx
test eax, eax
jle 0x428f48
call fcn.00426db0
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Error__d_files_complete__d__d
call fcn.00401bd0
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.MAIN
mov byte [esp + 0x58], 0xa
call fcn.00401bd0
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x58], bl
call fcn.00416a90
add esp, 0xc
mov eax, dword [eax]
push eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x54], 0xb
call fcn.00403ac0
add esp, 0x14
jmp 0x428f95
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Download_completed__d__d.
call fcn.00401bd0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.MAIN
mov byte [esp + 0x54], 0xc
call fcn.00401bd0
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x54], bl
call fcn.00416a90
add esp, 0xc
mov eax, dword [eax]
push eax
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x50], 0xd
call fcn.00403ac0
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 0x428fb9
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.004278a0
push esi
call fcn.0040e570
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 0x428fed
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.0044e04b
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