Function at 0x410c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x47ea94]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0
push eax
push str.QMGuid.dll
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x410c8c
mov dword [0x480d60], eax
push ecx
call fcn.00410a60
add esp, 4
test eax, eax
jne 0x410e80
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
push ebx
push 0x11
push str.HKEY_CURRENT_USER
push str.HKEY_LOCAL_MACHINESOFTWARETencentQQPCMgrInstallDir
call esi
add esp, 0xc
test eax, eax
jne 0x410d52
mov ebx, SysReAllocString
mov esi, 0x472e4c
jmp 0x410d75
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410cc3
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub ecx, edx
sar ecx, 1
cmp ecx, 0xa
jb 0x410d01
push 0xa
lea eax, [ebp + ecx*2 - 0x220]
push str.QMGuid.dll
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x410d01
mov eax, dword [ebp - 0x418]
jmp 0x410d0b
push dword [ebp - 0x418]
call edi
xor eax, eax
mov dword [0x480d60], eax
test eax, eax
je 0x410c4c
push str.GetGuidReader
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x410d40
push dword [0x480d60]
call edi
mov dword [0x480d60], esi
test esi, esi
je 0x410c4c
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045be1b
mov esp, ebp
pop ebp
ret
push 0x12
push str.HKEY_LOCAL_MACHINE
push str.HKEY_LOCAL_MACHINESOFTWARETencentQQPCMgrInstallDir
call esi
add esp, 0xc
test eax, eax
jne 0x410e6e
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
mov esi, 0x472e4e
push 0x5c
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov edi, eax
add esp, 8
test edi, edi
je 0x410e6e
mov ecx, edi
lea eax, [ebp - 0x414]
sub ecx, esi
sar ecx, 1
push ecx
push esi
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
mov dword [ebp - 0x41c], 0
add edi, 2
mov dword [ebp - 0x418], 0
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x410e00
lea eax, [ebp - 0x418]
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 - 0x418]
mov dword [ebp - 0x418], ecx
jmp 0x410e06
mov ecx, dword [ebp - 0x418]
test ecx, ecx
mov edx, 0x201
lea ecx, [ebp - 0x41c]
mov eax, 1
push ecx
cmovne eax, edx
push eax
push 0
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410e6e
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410e62
mov word [ebp - 6], ax
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 8
lea ecx, [ebp - 0x20c]
call fcn.00410af0
add esp, 8
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045be1b
mov esp, ebp
pop ebp
ret