Function at 0x40fcb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e67b
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x47ea94]
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
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x43c], 0
push eax
push 0x47295c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x40fd07
mov dword [0x480d50], eax
jmp 0x40fd5f
push str.GetQMStuck
push dword [ebp - 0x43c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40fd2e
push dword [ebp - 0x43c]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x40fd4c
call eax
mov esi, eax
test esi, esi
jne 0x40fd46
push dword [ebp - 0x43c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x40fd4c
mov eax, dword [ebp - 0x43c]
mov dword [0x480d58], eax
mov dword [0x480d50], esi
test esi, esi
jne 0x40ff40
lea ecx, [ebp - 0x438]
call fcn.0040ff60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
mov edx, 0x480d58
cmovae ecx, dword [ebp - 0x438]
call fcn.0040fba0
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x40fdda
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fdd0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40fdd0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0045be8d
add esp, 8
mov dword [0x480d50], esi
test esi, esi
jne 0x40ff40
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
push 0x11
push str.HKEY_CURRENT_USER
push str.HKEY_LOCAL_MACHINESOFTWARETencentQQPCMgrInstallDir
call esi
add esp, 0xc
test eax, eax
jne 0x40fe0f
mov ebx, SysReAllocString
mov esi, 0x472e4c
jmp 0x40fe32
push 0x12
push str.HKEY_LOCAL_MACHINE
push str.HKEY_LOCAL_MACHINESOFTWARETencentQQPCMgrInstallDir
call esi
add esp, 0xc
test eax, eax
jne 0x40ff2b
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 0x40ff2b
mov ecx, edi
lea eax, [ebp - 0x420]
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 - 0x444], 0
add edi, 2
mov dword [ebp - 0x440], 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 0x40febd
lea eax, [ebp - 0x440]
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 - 0x440]
mov dword [ebp - 0x440], ecx
jmp 0x40fec3
mov ecx, dword [ebp - 0x440]
test ecx, ecx
mov edx, 0x201
lea ecx, [ebp - 0x444]
mov eax, 1
push ecx
cmovne eax, edx
push eax
push 0
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ff2b
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push edi
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ff1f
mov word [ebp - 0x12], ax
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 0x480d58
lea ecx, [ebp - 0x218]
call fcn.0040fba0
mov dword [0x480d50], eax
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.0045be1b
mov esp, ebp
pop ebp
ret