Function at 0x41d370
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9398
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x50a488]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x200], eax
cmp dword [edi + 0x14], 8
jb 0x41d3b4
mov eax, dword [edi]
jmp 0x41d3b6
mov eax, edi
push eax
push str.get_package_info_buy__s
push 0x532
push str.DNDownloaderModel::_getPackageByPackage
call fcn.0040c250
add esp, 0x10
cmp dword [edi + 0x10], 0
je 0x41dc7e
push 0x64
lea eax, [ebp - 0x148]
push 0
push eax
call fcn.0049bf90
add esp, 0xc
lea ecx, [ebp - 0x148]
call fcn.00427dd0
mov dword [ebp - 4], 0
xor esi, esi
nop
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
push 0x35
xor eax, eax
mov dword [ebp - 0x44], 7
push str.http:__pc.jiamianjia.com_gateway_api_getLdApkInfo_pn
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00406e20
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00408c50
push 6
push str.sign
lea ecx, [ebp - 0x58]
call fcn.00408d20
push 0x20
push str.d4c0f47c4525cf22f1947860f294be88
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00407bd0
mov edx, edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc4]
call fcn.00409930
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00409460
cmp dword [ebp - 0xb0], 0x10
jb 0x41d4b6
push dword [ebp - 0xc4]
call fcn.00491ba0
add esp, 4
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
push eax
call fcn.00426d80
add esp, 4
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0xc4]
call fcn.004098d0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call fcn.00408c50
mov byte [ebp - 4], 5
cmp dword [ebp - 0xb0], 8
jb 0x41d520
push dword [ebp - 0xc4]
call fcn.00491ba0
add esp, 4
mov eax, dword [ebp - 0xf0]
lea ecx, [ebp - 0x100]
xor bl, bl
mov dword [ebp - 0x8c], 0
test eax, eax
mov byte [ebp - 0xe8], 0
xorps xmm0, xmm0
cmovne ecx, eax
movq qword [ebp - 0x94], xmm0
lea eax, [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x148]
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x4ee988
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00426fb0
test al, al
je 0x41d62b
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], bl
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x148]
call fcn.00427500
test al, al
jne 0x41d5d6
mov byte [ebp - 4], 5
cmp dword [ebp - 0x14], 0x10
jb 0x41d619
push dword [ebp - 0x28]
call fcn.00491ba0
add esp, 4
jmp 0x41d619
push dword [ebp - 0xa4]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x148]
call fcn.00427650
mov byte [ebp - 4], 5
cmp dword [ebp - 0x14], 0x10
mov byte [ebp - 0x1f9], al
jb 0x41d60c
push dword [ebp - 0x28]
call fcn.00491ba0
mov al, byte [ebp - 0x1f9]
add esp, 4
test al, al
movzx ebx, bl
mov eax, 1
cmovne ebx, eax
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov ecx, dword [ebp - 0x10c]
test ecx, ecx
je 0x41d64e
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x10c]
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0x10c], 0
test bl, bl
jne 0x41d6f2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x5c], 0x10
jb 0x41d672
push dword [ebp - 0x70]
call fcn.00491ba0
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
jb 0x41d695
push dword [ebp - 0x40]
call fcn.00491ba0
add esp, 4
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x41d6b8
push dword [ebp - 0x58]
call fcn.00491ba0
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x74], 0x10
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x41d6e3
push dword [ebp - 0x88]
call fcn.00491ba0
add esp, 4
inc esi
cmp esi, 3
jl 0x41d400
jmp 0x41db6d
push 0x30
lea eax, [ebp - 0xdc]
push 0
push eax
call fcn.0049bf90
add esp, 4
lea ecx, [ebp - 0xdc]
call fcn.0041e980
mov byte [ebp - 4], 8
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 0x10
lea ecx, [ebp - 0xdc]
cmovae eax, dword [ebp - 0x88]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xac]
push eax
call fcn.00420970
cmp dword [ebp - 0xd0], 3
je 0x41d814
mov byte [ebp - 4], 5
push dword [ebp - 0xc4]
call fcn.00493688
add esp, 4
push dword [ebp - 0xc8]
call fcn.00491ba0
add esp, 4
lea ecx, [ebp - 0xdc]
call fcn.004208e0
cmp dword [ebp - 0x5c], 0x10
jb 0x41d78c
push dword [ebp - 0x70]
call fcn.00491ba0
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
jb 0x41d7af
push dword [ebp - 0x40]
call fcn.00491ba0
add esp, 4
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x41d7d2
push dword [ebp - 0x58]
call fcn.00491ba0
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [ebp - 0x74], 0x10
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x41d7fa
push dword [ebp - 0x88]
call fcn.00491ba0
add esp, 4
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
jmp 0x41dc6c
lea ecx, [ebp - 0x1f8]
call fcn.00418500
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xdc]
push str.downloadlink
mov word [ebp - 0x150], 0
call fcn.0041f2e0
test eax, eax
je 0x41d952
push str.downloadlink
lea ecx, [ebp - 0xdc]
call fcn.0041f2e0
test eax, eax
je 0x41d85d
add eax, 0x10
jmp 0x41d889
mov eax, dword [0x5142b0]
test al, 1
jne 0x41d884
or dword [0x5142b0], 1
push 0x4d05e0
mov dword [0x5142cc], 0
call fcn.00491b7d
add esp, 4
mov eax, 0x5142c0
mov eax, dword [eax + 0xc]
shr eax, 0x14
test al, 1
je 0x41d952
push str.downloadlink
lea ecx, [ebp - 0xdc]
call fcn.0041f390
lea ecx, [ebp - 0xa0]
push dword [eax]
call fcn.0040bae0
lea edx, [ebp - 0xa0]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
call fcn.00409900
mov esi, eax
lea eax, [ebp - 0x1f8]
cmp eax, esi
je 0x41d912
cmp dword [ebp - 0x1e4], 8
jb 0x41d8e9
push dword [ebp - 0x1f8]
call fcn.00491ba0
add esp, 4
xor eax, eax
mov dword [ebp - 0x1e4], 7
push esi
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 0x1e8], 0
mov word [ebp - 0x1f8], ax
call fcn.00406d50
cmp dword [ebp - 0x14], 8
jb 0x41d923
push dword [ebp - 0x28]
call fcn.00491ba0
add esp, 4
xor eax, eax
mov byte [ebp - 4], 9
cmp dword [ebp - 0x8c], 0x10
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x41d952
push dword [ebp - 0xa0]
call fcn.00491ba0
add esp, 4
push str.name
lea ecx, [ebp - 0xdc]
call fcn.0041f2e0
test eax, eax
je 0x41da78
push str.name
lea ecx, [ebp - 0xdc]
call fcn.0041f2e0
test eax, eax
je 0x41d983
add eax, 0x10
jmp 0x41d9af
mov eax, dword [0x5142b0]
test al, 1
jne 0x41d9aa
or dword [0x5142b0], 1
push 0x4d05e0
mov dword [0x5142cc], 0
call fcn.00491b7d
add esp, 4
mov eax, 0x5142c0
mov eax, dword [eax + 0xc]
shr eax, 0x14
test al, 1
je 0x41da78
push str.name
lea ecx, [ebp - 0xdc]
call fcn.0041f390
lea ecx, [ebp - 0xa0]
push dword [eax]
call fcn.0040bae0
lea edx, [ebp - 0xa0]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
call fcn.00409900
mov esi, eax
lea eax, [ebp - 0x1c8]
cmp eax, esi
je 0x41da38
cmp dword [ebp - 0x1b4], 8
jb 0x41da0f
push dword [ebp - 0x1c8]
call fcn.00491ba0
add esp, 4
xor eax, eax
mov dword [ebp - 0x1b4], 7
push esi
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x1b8], 0
mov word [ebp - 0x1c8], ax
call fcn.00406d50
cmp dword [ebp - 0x14], 8
jb 0x41da49
push dword [ebp - 0x28]
call fcn.00491ba0
add esp, 4
xor eax, eax
mov byte [ebp - 4], 9
cmp dword [ebp - 0x8c], 0x10
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x41da78
push dword [ebp - 0xa0]
call fcn.00491ba0
add esp, 4
lea eax, [ebp - 0x1e0]
cmp eax, edi
je 0x41da8e
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.004074d0
mov ecx, dword [ebp - 0x200]
lea eax, [ebp - 0x1f8]
push eax
call fcn.0041ea40
lea ecx, [ebp - 0x1f8]
call fcn.00411460
mov byte [ebp - 4], 5
push dword [ebp - 0xc4]
call fcn.00493688
add esp, 4
push dword [ebp - 0xc8]
call fcn.00491ba0
add esp, 4
lea ecx, [ebp - 0xdc]
call fcn.004208e0
cmp dword [ebp - 0x5c], 0x10
jb 0x41dae7
push dword [ebp - 0x70]
call fcn.00491ba0
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
jb 0x41db0a
push dword [ebp - 0x40]
call fcn.00491ba0
add esp, 4
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x41db2d
push dword [ebp - 0x58]
call fcn.00491ba0
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x74], 0x10
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x41db58
push dword [ebp - 0x88]
call fcn.00491ba0
add esp, 4
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
cmp dword [ebp - 0xf0], 0
je 0x41db95
mov ecx, dword [ebp - 0x10c]
mov byte [ebp - 0xe8], 1
test ecx, ecx
je 0x41dc6c
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41dc49
mov eax, dword [ebp - 0xf8]
mov byte [ebp - 0xf4], 1
test eax, eax
je 0x41dbad
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0x10c]
mov byte [ebp - 0xe8], 1
test ecx, ecx
je 0x41dbc9
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0xfc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41dc12
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41dbfa
push 0xffffffffffffffff
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0xfc]
call esi
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0xfc], 0
mov edx, dword [ebp - 0x100]
test edx, edx
je 0x41dc32
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x100], 0
mov eax, dword [ebp - 0xf8]
test eax, eax
je 0x41dc4f
push eax
call esi
mov dword [ebp - 0xf8], 0
mov ecx, dword [ebp - 0x10c]
test ecx, ecx
je 0x41dc6c
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x10c]
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0x10c], 0
lea ecx, [ebp - 0x148]
mov dword [ebp - 4], 0xffffffff
call fcn.00426ee0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00491a43
mov esp, ebp
pop ebp
ret 8