Function at 0x41eb70
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc199
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x50d488]
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 esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], 0
cmp dword [esi + 0x320], 5
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0xec], eax
jae 0x41ebdd
push 3
lea ecx, [esi + 0x310]
push 0x4ef7ac
push dword [ecx + 0x10]
push ecx
call fcn.00406330
test eax, eax
jne 0x41f0e5
cmp dword [esi + 0x324], 8
lea ebx, [esi + 0x310]
jb 0x41ebf0
mov eax, dword [ebx]
jmp 0x41ebf2
mov eax, ebx
push eax
push str.start_get_openid_:__s_s_config
push 0x4f9
push str.DNDownloaderModel::_getPackageByOpenID
call fcn.0040c6c0
push 0x64
lea eax, [ebp - 0xe4]
push 0
push eax
call fcn.0049e980
add esp, 0x1c
lea ecx, [ebp - 0xe4]
call fcn.0042a800
mov dword [ebp - 4], 0
xor edi, edi
jmp 0x41ec36
lea ebx, [esi + 0x310]
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
mov byte [ebp - 4], 1
mov eax, dword [0x517344]
test eax, eax
jne 0x41ec81
push 0x50
call fcn.00494625
add esp, 4
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x41ec76
mov ecx, eax
call fcn.0040d610
jmp 0x41ec78
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x517344], eax
lea ecx, [esi + 0x80]
push ecx
push ebx
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, eax
call fcn.0040e030
mov byte [ebp - 4], 3
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae eax, dword [ebp - 0x4c]
push eax
push str.url__s
push 0x4ff
push str.DNDownloaderModel::_getPackageByOpenID
call fcn.0040c6c0
mov eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x9c]
add esp, 0x10
mov dword [ebp - 0x68], 0
xor bl, bl
mov byte [ebp - 0x84], 0
test eax, eax
xorps xmm0, xmm0
movq qword [ebp - 0x70], xmm0
cmovne ecx, eax
mov dword [ebp - 0x70], 0x4f1da8
lea eax, [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0xe4]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004299e0
test al, al
je 0x41eda8
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], bl
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xe4]
call fcn.00429f30
test al, al
jne 0x41ed56
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 0x10
jb 0x41ed96
push dword [ebp - 0x30]
call fcn.00494620
add esp, 4
jmp 0x41ed96
push dword [ebp - 0x18]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0042a080
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 0x10
mov byte [ebp - 0xe5], al
jb 0x41ed89
push dword [ebp - 0x30]
call fcn.00494620
mov al, byte [ebp - 0xe5]
add esp, 4
test al, al
movzx ebx, bl
mov eax, 1
cmovne ebx, eax
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov ecx, dword [ebp - 0xa8]
test ecx, ecx
je 0x41edcb
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xa8]
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0xa8], 0
test bl, bl
jne 0x41ee24
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
cmp dword [ebp - 0x38], 8
jb 0x41eded
push dword [ebp - 0x4c]
call fcn.00494620
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x50], 0x10
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
jb 0x41ee15
push dword [ebp - 0x64]
call fcn.00494620
add esp, 4
inc edi
cmp edi, 3
jl 0x41ec30
jmp 0x41efd4
push str.get_config_sucess
push 0x501
push str.DNDownloaderModel::_getPackageByOpenID
call fcn.0040c6c0
mov eax, dword [0x517344]
add esp, 0xc
test eax, eax
jne 0x41ee6d
push 0x50
call fcn.00494625
add esp, 4
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x41ee62
mov ecx, eax
call fcn.0040d610
jmp 0x41ee64
xor eax, eax
mov byte [ebp - 4], 3
mov dword [0x517344], eax
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, eax
call fcn.0040d740
push 2
push 0x4ebefc
mov byte [ebp - 4], 6
mov ebx, 1
push dword [eax + 0x10]
mov dword [ebp - 0x18], ebx
push ecx
mov ecx, eax
call fcn.00406330
test eax, eax
je 0x41ef06
mov eax, dword [0x517344]
test eax, eax
jne 0x41eecf
push 0x50
call fcn.00494625
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 7
test eax, eax
je 0x41eec4
mov ecx, eax
call fcn.0040d610
jmp 0x41eec6
xor eax, eax
mov byte [ebp - 4], 6
mov dword [0x517344], eax
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.0040d740
push 2
push 0x4ef854
mov dword [ebp - 4], 8
mov ebx, 3
push dword [eax + 0x10]
mov dword [ebp - 0x18], ebx
push ecx
mov ecx, eax
call fcn.00406330
mov byte [ebp - 0xe5], 0
test eax, eax
jne 0x41ef0d
mov byte [ebp - 0xe5], 1
test bl, 2
je 0x41ef3a
and ebx, 0xfffffffd
cmp dword [ebp - 0x1c], 8
jb 0x41ef26
push dword [ebp - 0x30]
call fcn.00494620
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
mov dword [ebp - 4], 3
test bl, 1
je 0x41ef57
cmp dword [ebp - 0x68], 8
jb 0x41ef57
push dword [ebp - 0x7c]
call fcn.00494620
add esp, 4
cmp byte [ebp - 0xe5], 0
lea eax, [ebp - 0x64]
push dword [ebp - 0xec]
push eax
je 0x41ef73
mov ecx, esi
call fcn.0041fdb0
jmp 0x41ef83
call fcn.0041b260
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.0041a960
cmp dword [ebp - 0x38], 8
jb 0x41ef94
push dword [ebp - 0x4c]
call fcn.00494620
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x50], 0x10
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
jb 0x41efbc
push dword [ebp - 0x64]
call fcn.00494620
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
cmp dword [ebp - 0x8c], 0
je 0x41effc
mov ecx, dword [ebp - 0xa8]
mov byte [ebp - 0x84], 1
test ecx, ecx
je 0x41f0d3
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41f0b0
mov eax, dword [ebp - 0x94]
mov byte [ebp - 0x90], 1
test eax, eax
je 0x41f014
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0xa8]
mov byte [ebp - 0x84], 1
test ecx, ecx
je 0x41f030
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0x98]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41f079
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41f061
push 0xffffffffffffffff
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x98]
call edi
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x98], 0
mov edx, dword [ebp - 0x9c]
test edx, edx
je 0x41f099
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x41f0b6
push eax
call edi
mov dword [ebp - 0x94], 0
mov ecx, dword [ebp - 0xa8]
test ecx, ecx
je 0x41f0d3
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xa8]
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0xa8], 0
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], 0xffffffff
call fcn.00429910
cmp dword [esi + 0x94], 8
lea eax, [esi + 0x80]
jb 0x41f0f6
mov eax, dword [eax]
push eax
push str.package_is__s
push 0x511
push str.DNDownloaderModel::_getPackageByOpenID
call fcn.0040c6c0
add esp, 0x10
cmp dword [esi + 0x52c], 0
je 0x41f13a
cmp dword [esi + 0x388], 0
jne 0x41f12d
push 0x32
call ebx
cmp dword [esi + 0x388], 0
je 0x41f120
push dword [esi + 0x388]
mov ecx, esi
call fcn.00419b80
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.004944c3
mov esp, ebp
pop ebp
ret 4