Function at 0x40993e
Capabilities:
Check if file exists
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x450
lea ebp, [esp - 4]
mov eax, dword [0x445064]
xor eax, ebp
mov dword [ebp + 0x450], eax
push 0xdc
mov eax, 0x4388dc
call fcn.00431ead
push dword [ebp + 0x468]
mov ebx, ecx
push dword [ebp + 0x460]
mov dword [ebp - 0x14], ebx
push dword [ebp + 0x45c]
mov edi, edx
push dword [ebp + 0x464]
push ebx
call fcn.004090ef
and dword [ebp - 4], 0
lea esi, [ebx + 0xc4]
push esi
mov dword [ebx], vtable.CMicroEndInstaller.0
mov dword [ebx + 0x44], vtable.CMicroEndInstaller.1.0
call fcn.00404941
mov dword [esi], vtable.CQzoneReporter.0
lea esi, [ebx + 0x108]
call fcn.00403eeb
mov byte [ebp - 4], 2
mov dword [ebx + 0xbc], 1
test edi, edi
je 0x4099d1
push edi
push esi
call fcn.00401fe6
push 0
push 1
mov ecx, ebx
call fcn.00409d8a
call section..text
test eax, eax
je 0x409b62
xor eax, eax
push 0x208
push eax
mov word [ebp + 0x244], ax
lea eax, [ebp + 0x246]
mov edi, 0x104
push eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], edi
call fcn.0041c790
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x244]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x43ba94
push str.SOFTWARETencentQQMicroGameBox
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp + 0x244]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x43c290
lea eax, [ebp + 0x244]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x244]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409d51
push 0
push 9
mov ecx, ebx
call fcn.00409d8a
xor eax, eax
push 0x208
push eax
mov word [ebp + 0x38], ax
lea eax, [ebp + 0x3a]
push eax
call fcn.0041c790
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x409a9c
mov esi, dword [esi + 4]
jmp 0x409a9f
add esi, 4
push esi
push dword [ebx + 0x4c]
lea eax, [ebp + 0x38]
push dword [ebp + 0x468]
push dword [ebp + 0x460]
push dword [ebp + 0x45c]
push str._action:force_download__appid:_d__pid:_d__loginuin:_d__startup_from_plugin__runparam:_s__via:_s
push edi
push edi
push eax
call fcn.0041888d
push 0x38
xor esi, esi
lea eax, [ebp - 0x90]
push esi
push eax
call fcn.0041c790
lea eax, [ebp + 0x244]
mov dword [ebp - 0x84], eax
lea eax, [ebp + 0x38]
mov dword [ebp - 0x80], eax
add esp, 0x30
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x3c
mov dword [ebp - 0x90], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x409b4c
push 0x493e0
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
or dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
cmp dword [ebp - 0x18], esi
jne 0x409b39
push 6
jmp 0x409b4f
cmp dword [ebp - 0x18], 0x103
mov ecx, ebx
je 0x409b48
push 7
jmp 0x409b51
push 8
jmp 0x409b51
push esi
push 7
mov ecx, ebx
call fcn.00409d8a
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x409d51
push 0xc8
mov byte [ebp - 4], 3
call fcn.004197e4
pop ecx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x409b84
push eax
call fcn.004048cc
jmp 0x409b86
xor eax, eax
mov byte [ebp - 4], 3
mov edi, dword [ebx + 0x50]
mov dword [ebx + 0x50], eax
test edi, edi
je 0x409ba0
call fcn.004098e7
push edi
call fcn.004188ae
pop ecx
cmp dword [ebx + 0x50], 0
je 0x409d51
lea eax, [ebp + 0x468]
push eax
lea eax, [ebp - 0x58]
call fcn.004054b4
pop ecx
push eax
lea eax, [ebp - 0x3c]
push str._loginuin:
push eax
mov byte [ebp - 4], 5
call fcn.004034da
add esp, 0xc
push str.__startup_from_plugin
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 6
call fcn.00403525
add esp, 0xc
push 0
push 1
lea esi, [ebp - 0x3c]
call fcn.0040200d
push 0
push 1
lea esi, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.0040200d
cmp dword [ebp + 0x34], 8
mov edi, dword [ebp + 0x20]
jae 0x409c0e
lea edi, [ebp + 0x20]
lea eax, [ebx + 0x48]
call fcn.0040a10f
push str.wan_box_OtherServer_GetPackagePath.php_typemini
lea esi, [ebp]
call fcn.00401e61
lea eax, [ebp + 0x460]
push eax
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 0xa
call fcn.004054b4
pop ecx
mov esi, eax
lea eax, [ebp + 0x45c]
push eax
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 0xb
call fcn.004054b4
pop ecx
push eax
lea eax, [ebp - 0xe8]
push str.appid
push eax
mov byte [ebp - 4], 0xc
call fcn.004034da
add esp, 0xc
push str.pid
push eax
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 0xd
call fcn.00403525
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 0xe
call fcn.004054cd
add esp, 0xc
push 0xffffffffffffffff
xor edi, edi
push edi
lea esi, [ebp]
mov byte [ebp - 4], 0xf
call fcn.00403436
push edi
push 1
lea esi, [ebp - 0x58]
call fcn.0040200d
push edi
push 1
lea esi, [ebp - 0x3c]
call fcn.0040200d
push edi
push 1
lea esi, [ebp - 0xe8]
call fcn.0040200d
push edi
push 1
lea esi, [ebp - 0xcc]
call fcn.0040200d
push edi
push 1
lea esi, [ebp - 0xb0]
mov byte [ebp - 4], 0xa
call fcn.0040200d
mov eax, dword [ebx + 0x50]
push 0x43bdc8
push eax
call fcn.00401fe6
mov eax, dword [ebx + 0x50]
push str.apps.game.qq.com
add eax, 0x1c
push eax
call fcn.00401fe6
mov eax, dword [ebx + 0x50]
push str.http:__www.qq.com
add eax, 0x70
push eax
call fcn.00401fe6
mov ebx, dword [ebx + 0x50]
push 0xffffffffffffffff
add ebx, 0x38
push ebx
xor ebx, ebx
lea eax, [ebp]
call fcn.0040234b
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x50]
push eax
call fcn.0040acb8
push ebx
push 1
lea esi, [ebp]
call fcn.0040200d
push ebx
push 1
lea esi, [ebp + 0x1c]
call fcn.0040200d
mov ebx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x450]
xor ecx, ebp
call fcn.0041887e
add ebp, 0x454
leave
ret 0x10