Function at 0x404e7e
Capabilities:
Check if file exists
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x480
lea ebp, [esp - 4]
mov eax, dword [0x48a9f8]
xor eax, ebp
mov dword [ebp + 0x480], eax
push 0x28
mov eax, 0x46afd4
call fcn.004489fc
mov eax, 0x208
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x278], ax
xor ebx, ebx
lea eax, [ebp + 0x27a]
push ebx
push eax
mov dword [ebp - 0x14], 1
call fcn.004463d0
xor eax, eax
push esi
mov word [ebp + 0x70], ax
lea eax, [ebp + 0x72]
push ebx
push eax
call fcn.004463d0
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x278]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [0x48a8dc]
mov edi, reloc.WS2_32.dll_accept
push str.SoftwareTencentQQMicroGameBox_
push edi
call esi
test eax, eax
jne 0x4050a8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [0x48a8d8]
push str.SoftwareTencentQQMicroGameBox_
push edi
call esi
test eax, eax
jne 0x4050a8
lea eax, [ebp + 0x278]
push eax
lea ecx, [ebp]
call fcn.004031f0
lea eax, [ebp + 0x70]
push eax
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], ebx
call fcn.004031f0
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.004015f0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 2
call fcn.00403fd5
mov esi, dword [eax]
mov edi, dword [eax + 4]
push 0x12
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0x38]
call fcn.00403fd5
mov ecx, eax
call fcn.00404078
push str.QQMicroGameBoxTray.exe
push edi
push esi
push dword [eax + 4]
lea ecx, [ebp + 0x38]
push dword [eax]
call fcn.00404a60
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x38]
call fcn.004018c0
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x54]
call fcn.004015f0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 3
call fcn.00403fd5
mov esi, dword [eax]
mov edi, dword [eax + 4]
push 0x12
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp + 0x54]
call fcn.00403fd5
mov ecx, eax
call fcn.00404078
push str.QQMGameBoxUpdater.exe
push edi
push esi
push dword [eax + 4]
lea ecx, [ebp + 0x54]
push dword [eax]
call fcn.00404a60
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x54]
call fcn.004018c0
push 8
pop edi
cmp dword [ebp + 0x18], edi
mov eax, dword [ebp + 4]
jae 0x40501c
lea eax, [ebp + 4]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
je 0x405093
mov eax, dword [ebp + 0x20]
cmp dword [ebp + 0x34], edi
jae 0x405034
lea eax, [ebp + 0x20]
push eax
call esi
test eax, eax
je 0x405093
mov eax, dword [ebp + 0x3c]
cmp dword [ebp + 0x50], edi
jae 0x405046
lea eax, [ebp + 0x3c]
push eax
call esi
test eax, eax
je 0x405093
mov eax, dword [ebp + 0x58]
cmp dword [ebp + 0x6c], edi
jae 0x405058
lea eax, [ebp + 0x58]
push eax
call esi
test eax, eax
je 0x405093
mov byte [ebp - 0xd], 1
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0x54]
call fcn.00401a20
push ebx
push esi
lea ecx, [ebp + 0x38]
call fcn.00401a20
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.00401a20
push ebx
push esi
lea ecx, [ebp]
call fcn.00401a20
mov al, byte [ebp - 0xd]
jmp 0x4050aa
push str.SoftwareTencentQQMicroGameBox_
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov byte [ebp - 0xd], bl
jmp 0x405063
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x480]
xor ecx, ebp
call fcn.004463b6
add ebp, 0x484
leave
ret