Function at 0x41ff20
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2ae1
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x5178cc]
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 0x4202f4
push str.start_get_package.
push 0x511
push str.DownloaderModel::_getPackageByOpenID
call fcn.0040bb00
add esp, 0xc
lea eax, [ebp - 0xd4]
push 0x64
push 0
push eax
call fcn.004a79c0
add esp, 0xc
lea ecx, [ebp - 0xd4]
call fcn.0042b2e0
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 [0x5212ec]
test eax, eax
jne 0x42000b
push 0x38
call fcn.0049b8e2
add esp, 4
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x420000
mov ecx, eax
call fcn.0040c9b0
jmp 0x420002
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x5212ec], eax
push ebx
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, eax
call fcn.0040d500
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], 0x4fa004
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0042a4b0
test al, al
je 0x420105
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.0042aa00
test al, al
jne 0x4200b3
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 0x10
jb 0x4200f3
push dword [ebp - 0x2c]
call fcn.0048ec00
add esp, 4
jmp 0x4200f3
push dword [ebp - 0x60]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0042ab50
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 0x10
mov byte [ebp - 0xd9], al
jb 0x4200e6
push dword [ebp - 0x2c]
call fcn.0048ec00
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 0x420128
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 0x420184
push 0x3e8
call edi
cmp dword [ebp - 0x48], 8
jb 0x420144
push dword [ebp - 0x5c]
call fcn.0048ec00
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 0x42016c
push dword [ebp - 0x44]
call fcn.0048ec00
add esp, 4
mov ebx, dword [ebp - 0xe4]
inc esi
cmp esi, 3
jl 0x41ffc0
mov ebx, dword [ebp - 0xe0]
jmp 0x4201ef
push dword [ebp - 0xe8]
lea eax, [ebp - 0x44]
push eax
call fcn.0041c540
mov ebx, dword [ebp - 0xe0]
lea eax, [ebp - 0x44]
push eax
mov ecx, ebx
call fcn.0041bc40
cmp dword [ebp - 0x48], 8
jb 0x4201b5
push dword [ebp - 0x5c]
call fcn.0048ec00
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 0x4201dd
push dword [ebp - 0x44]
call fcn.0048ec00
add esp, 4
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp dword [ebp - 0x7c], 0
je 0x420211
mov ecx, dword [ebp - 0x98]
mov byte [ebp - 0x74], 1
test ecx, ecx
je 0x4202e2
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4202bf
mov eax, dword [ebp - 0x84]
mov byte [ebp - 0x80], 1
test eax, eax
je 0x420226
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0x98]
mov byte [ebp - 0x74], 1
test ecx, ecx
je 0x42023f
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 0x420288
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x420270
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 0x4202a8
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 0x4202c5
push eax
call esi
mov dword [ebp - 0x84], 0
mov ecx, dword [ebp - 0x98]
test ecx, ecx
je 0x4202e2
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.0042a3e0
cmp dword [ebx + 0x94], 8
lea eax, [ebx + 0x80]
jb 0x420305
mov eax, dword [eax]
push eax
push str.package_is__s
push 0x522
push str.DownloaderModel::_getPackageByOpenID
call fcn.0040bb00
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.0049b793
mov esp, ebp
pop ebp
ret 4