Function at 0x4201e0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503601
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x550910]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xe0], ebx
cmp dword [ebx + 0x2cc], 5
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe8], eax
jb 0x4205b4
push str.start_get_package.
push 0x544
push str.DownloaderModel::_getPackageByOpenID
call fcn.0040bb40
add esp, 0xc
lea eax, [ebp - 0xd4]
push 0x64
push 0
push eax
call fcn.004cff40
add esp, 0xc
lea ecx, [ebp - 0xd4]
call fcn.0042b5a0
xor esi, esi
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0x2bc
mov dword [ebp - 0xe4], ebx
lea esp, [esp]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 1
mov eax, dword [0x55a4fc]
test eax, eax
jne 0x4202cb
push 0x38
call fcn.004c6505
add esp, 4
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4202c0
mov ecx, eax
call fcn.0040c9f0
jmp 0x4202c2
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x55a4fc], eax
push ebx
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, eax
call fcn.0040d620
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8c]
mov eax, dword [ebp - 0x7c]
xor bl, bl
test eax, eax
mov dword [ebp - 0x64], 0
xorps xmm0, xmm0
mov byte [ebp - 0x74], 0
cmovne ecx, eax
movq qword [ebp - 0x6c], xmm0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0xd4]
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0x5332d4
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0042a770
test al, al
je 0x4203c5
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], bl
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0042acc0
test al, al
jne 0x420373
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 0x10
jb 0x4203b3
push dword [ebp - 0x2c]
call fcn.004c6500
add esp, 4
jmp 0x4203b3
push dword [ebp - 0x60]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0042ae10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 0x10
mov byte [ebp - 0xd9], al
jb 0x4203a6
push dword [ebp - 0x2c]
call fcn.004c6500
mov al, byte [ebp - 0xd9]
add esp, 4
test al, al
movzx ebx, bl
mov eax, 1
cmovne ebx, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov ecx, dword [ebp - 0x98]
test ecx, ecx
je 0x4203e8
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0x98], 0
test bl, bl
jne 0x420444
push 0x3e8
call edi
cmp dword [ebp - 0x48], 8
jb 0x420404
push dword [ebp - 0x5c]
call fcn.004c6500
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
jb 0x42042c
push dword [ebp - 0x44]
call fcn.004c6500
add esp, 4
mov ebx, dword [ebp - 0xe4]
inc esi
cmp esi, 3
jl 0x420280
mov ebx, dword [ebp - 0xe0]
jmp 0x4204af
push dword [ebp - 0xe8]
lea eax, [ebp - 0x44]
push eax
call fcn.0041c7e0
mov ebx, dword [ebp - 0xe0]
lea eax, [ebp - 0x44]
push eax
mov ecx, ebx
call fcn.0041bee0
cmp dword [ebp - 0x48], 8
jb 0x420475
push dword [ebp - 0x5c]
call fcn.004c6500
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
jb 0x42049d
push dword [ebp - 0x44]
call fcn.004c6500
add esp, 4
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp dword [ebp - 0x7c], 0
je 0x4204d1
mov ecx, dword [ebp - 0x98]
mov byte [ebp - 0x74], 1
test ecx, ecx
je 0x4205a2
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x42057f
mov eax, dword [ebp - 0x84]
mov byte [ebp - 0x80], 1
test eax, eax
je 0x4204e6
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0x98]
mov byte [ebp - 0x74], 1
test ecx, ecx
je 0x4204ff
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x420548
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x420530
push 0xffffffffffffffff
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x88]
call esi
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x88], 0
mov edx, dword [ebp - 0x8c]
test edx, edx
je 0x420568
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x420585
push eax
call esi
mov dword [ebp - 0x84], 0
mov ecx, dword [ebp - 0x98]
test ecx, ecx
je 0x4205a2
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0x98], 0
lea ecx, [ebp - 0xd4]
mov dword [ebp - 4], 0xffffffff
call fcn.0042a6a0
cmp dword [ebx + 0x94], 8
lea eax, [ebx + 0x80]
jb 0x4205c5
mov eax, dword [eax]
push eax
push str.package_is__s
push 0x555
push str.DownloaderModel::_getPackageByOpenID
call fcn.0040bb40
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c63a3
mov esp, ebp
pop ebp
ret 4