Function at 0x421730
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1c31
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x5148c8]
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 + 0x320], 5
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe8], eax
jb 0x421b04
push str.start_get_package.
push 0x4ff
push str.DNDownloaderModel::_getPackageByOpenID
call fcn.0040ba80
add esp, 0xc
lea eax, [ebp - 0xd4]
push 0x64
push 0
push eax
call fcn.004a6740
add esp, 0xc
lea ecx, [ebp - 0xd4]
call fcn.0042bb90
xor esi, esi
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0x310
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 [0x51deb4]
test eax, eax
jne 0x42181b
push 0x38
call fcn.0049a612
add esp, 4
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x421810
mov ecx, eax
call fcn.0040c930
jmp 0x421812
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x51deb4], eax
push ebx
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, eax
call fcn.0040d480
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], 0x4f80b0
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0042ad70
test al, al
je 0x421915
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.0042b2c0
test al, al
jne 0x4218c3
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 0x10
jb 0x421903
push dword [ebp - 0x2c]
call fcn.0048d9a0
add esp, 4
jmp 0x421903
push dword [ebp - 0x60]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0042b410
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 0x10
mov byte [ebp - 0xd9], al
jb 0x4218f6
push dword [ebp - 0x2c]
call fcn.0048d9a0
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 0x421938
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 0x421994
push 0x3e8
call edi
cmp dword [ebp - 0x48], 8
jb 0x421954
push dword [ebp - 0x5c]
call fcn.0048d9a0
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 0x42197c
push dword [ebp - 0x44]
call fcn.0048d9a0
add esp, 4
mov ebx, dword [ebp - 0xe4]
inc esi
cmp esi, 3
jl 0x4217d0
mov ebx, dword [ebp - 0xe0]
jmp 0x4219ff
push dword [ebp - 0xe8]
lea eax, [ebp - 0x44]
push eax
call fcn.0041dc40
mov ebx, dword [ebp - 0xe0]
lea eax, [ebp - 0x44]
push eax
mov ecx, ebx
call fcn.0041d340
cmp dword [ebp - 0x48], 8
jb 0x4219c5
push dword [ebp - 0x5c]
call fcn.0048d9a0
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 0x4219ed
push dword [ebp - 0x44]
call fcn.0048d9a0
add esp, 4
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp dword [ebp - 0x7c], 0
je 0x421a21
mov ecx, dword [ebp - 0x98]
mov byte [ebp - 0x74], 1
test ecx, ecx
je 0x421af2
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x421acf
mov eax, dword [ebp - 0x84]
mov byte [ebp - 0x80], 1
test eax, eax
je 0x421a36
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0x98]
mov byte [ebp - 0x74], 1
test ecx, ecx
je 0x421a4f
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 0x421a98
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x421a80
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 0x421ab8
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 0x421ad5
push eax
call esi
mov dword [ebp - 0x84], 0
mov ecx, dword [ebp - 0x98]
test ecx, ecx
je 0x421af2
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.0042aca0
cmp dword [ebx + 0x94], 8
lea eax, [ebx + 0x80]
jb 0x421b15
mov eax, dword [eax]
push eax
push str.package_is__s
push 0x510
push str.DNDownloaderModel::_getPackageByOpenID
call fcn.0040ba80
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.0049a4c3
mov esp, ebp
pop ebp
ret 4