Function at 0x412500
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428e36
mov eax, dword fs:[0]
push eax
sub esp, 0xa84
mov eax, dword [0x5ee008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x402
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xa70], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xa74], 0x200
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x41256a
mov eax, dword [edi]
jmp 0x41256c
mov eax, edi
xor ecx, ecx
push 0x20a
mov word [eax], cx
lea eax, [ebp - 0x634]
push ecx
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
add esp, 0x18
push 0x104
push eax
push 0
call esi
test eax, eax
je 0x412648
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x634]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x21c]
push str.QMCommon.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412648
cmp word [ebp - 0x634], 0
jne 0x412611
xor ecx, ecx
jmp 0x41262f
lea ecx, [ebp - 0x634]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412620
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x634]
mov ecx, edi
push eax
call fcn.004088c0
mov eax, 1
jmp 0x41293b
push 0x1c
lea eax, [ebp - 0xa90]
mov dword [ebp - 0xa90], 0
xorps xmm0, xmm0
push eax
push fcn.00412320
movups xmmword [ebp - 0xa8c], xmm0
movq qword [ebp - 0xa7c], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4127a9
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x104
push eax
push dword [ebp - 0xa8c]
call esi
lea eax, [ebp - 0x428]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x4127a9
nop word [eax + eax]
xor eax, eax
mov word [esi], ax
mov dword [ebp - 0xa3c], 7
mov dword [ebp - 0xa40], eax
mov word [ebp - 0xa50], ax
cmp word [ebp - 0x428], ax
jne 0x4126f9
xor ecx, ecx
jmp 0x412711
lea ecx, [ebp - 0x428]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412702
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0xa50]
call fcn.004088c0
push 1
push 0x5e29ac
lea ecx, [ebp - 0xa50]
mov dword [ebp - 4], 0
call fcn.004081e0
push 0xc
push str.QMCommon.dll
lea ecx, [ebp - 0xa50]
call fcn.004081e0
cmp dword [ebp - 0xa3c], 8
lea eax, [ebp - 0xa50]
cmovae eax, dword [ebp - 0xa50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [ebp - 0x428]
jne 0x4127ee
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xa3c]
add esp, 8
cmp eax, 8
jb 0x4127a1
inc eax
push eax
push dword [ebp - 0xa50]
call fcn.00408a00
test esi, esi
jne 0x4126d0
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0xa6c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x41280b
lea eax, [ebp - 0xa6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0xa6c]
jmp 0x412811
push eax
mov ecx, edi
call fcn.00408030
lea ecx, [ebp - 0xa50]
call fcn.004089c0
mov eax, 1
jmp 0x41293b
mov ecx, dword [ebp - 0xa6c]
test ecx, ecx
mov edx, 0x201
lea ecx, [ebp - 0xa70]
mov eax, 1
push ecx
cmovne eax, edx
push eax
push 0
push str.SOFTWARETencentQQPCMgr
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4128d1
lea eax, [ebp - 0xa74]
push eax
lea eax, [ebp - 0xa38]
push eax
push 0
push 0
push str.InstallDir
push dword [ebp - 0xa70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4128bd
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x21c]
push str.QMCommon.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4128bd
lea eax, [ebp - 0xa38]
mov ecx, edi
push eax
call fcn.00408030
mov esi, 1
jmp 0x4128bf
xor esi, esi
push dword [ebp - 0xa70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4128d3
jmp 0x412939
xor esi, esi
xor eax, eax
mov dword [ebp - 0xa54], 7
mov dword [ebp - 0xa58], 0
mov word [ebp - 0xa68], ax
lea ecx, [ebp - 0xa68]
mov dword [ebp - 4], 1
call fcn.00412960
test eax, eax
je 0x412921
lea eax, [ebp - 0xa68]
cmp edi, eax
je 0x41291c
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00408520
mov esi, 1
mov eax, dword [ebp - 0xa54]
cmp eax, 8
jb 0x412939
inc eax
push eax
push dword [ebp - 0xa68]
call fcn.00408a00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425e27
mov esp, ebp
pop ebp
ret