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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e356
mov eax, dword fs:[0]
push eax
sub esp, 0xa90
mov eax, dword [0x47ea94]
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
mov dword [ebp - 0xa6c], edi
push 0x402
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xa74], 0
push 0
push eax
mov dword [ebp - 0xa70], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xa80], 0x200
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [edi + 0x10], 0
jb 0x40994a
mov eax, dword [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 0x409a0e
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 0x472d44
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 0x409a0e
lea edx, [ebp - 0x634]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4099e6
sub edx, esi
lea eax, [ebp - 0x634]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00405f80
mov esi, 1
jmp 0x409e87
push 0x1c
lea eax, [ebp - 0xa9c]
mov dword [ebp - 0xa84], 0
xorps xmm0, xmm0
push eax
push fcn.00409780
movups xmmword [ebp - 0xa9c], xmm0
movq qword [ebp - 0xa8c], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409c3e
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 - 0xa98]
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 0x409c3e
nop dword [eax]
xor eax, eax
lea ecx, [ebp - 0x428]
mov word [esi], ax
lea edx, [ecx + 2]
mov dword [ebp - 0xa40], eax
mov dword [ebp - 0xa3c], 7
mov word [ebp - 0xa50], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409ab5
sub ecx, edx
lea eax, [ebp - 0x428]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa50]
call fcn.00405f80
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xa3c]
mov eax, edx
mov ecx, dword [ebp - 0xa40]
sub eax, ecx
cmp eax, 1
jb 0x409b27
cmp edx, 8
lea esi, [ebp - 0xa50]
push 2
cmovae esi, dword [ebp - 0xa50]
lea edi, [ecx + 1]
push 0x472d40
mov dword [ebp - 0xa40], edi
lea eax, [esi + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x409b48
push 1
push 0x472d40
mov byte [ebp - 0xa78], 0
lea ecx, [ebp - 0xa50]
push dword [ebp - 0xa78]
push 1
call fcn.0040a1f0
mov edx, dword [ebp - 0xa3c]
mov eax, edx
mov ecx, dword [ebp - 0xa40]
sub eax, ecx
cmp eax, 0xc
jb 0x409b91
cmp edx, 8
lea esi, [ebp - 0xa50]
push 0x18
cmovae esi, dword [ebp - 0xa50]
lea edi, [ecx + 0xc]
push 0x472d44
mov dword [ebp - 0xa40], edi
lea eax, [esi + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x409bb2
push 0xc
push 0x472d44
mov byte [ebp - 0xa7c], 0
lea ecx, [ebp - 0xa50]
push dword [ebp - 0xa7c]
push 0xc
call fcn.0040a1f0
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
jne 0x409c87
lea eax, [ebp - 0x428]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov edx, dword [ebp - 0xa3c]
mov esi, eax
cmp edx, 8
jb 0x409c30
mov ecx, dword [ebp - 0xa50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409c26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409cf5
push edx
push ecx
call fcn.0045be8d
add esp, 8
test esi, esi
jne 0x409a90
mov edi, dword [ebp - 0xa6c]
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 0x409cfb
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 0x409d01
lea ecx, [ebp - 0x428]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409c90
sub ecx, edx
lea eax, [ebp - 0x428]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0xa6c]
push eax
call fcn.00405f80
mov edx, dword [ebp - 0xa3c]
mov esi, 1
cmp edx, 8
jb 0x409e87
mov ecx, dword [ebp - 0xa50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409e7d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409e7d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
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 reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409de5
lea eax, [ebp - 0xa80]
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 0x409dc9
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 0x472d44
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 0x409dc9
lea ecx, [ebp - 0xa38]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409da1
sub ecx, edx
lea eax, [ebp - 0xa38]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00405f80
mov dword [ebp - 0xa74], 1
push dword [ebp - 0xa70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xa74]
test esi, esi
jne 0x409e87
jmp 0x409de7
xor esi, esi
xor eax, eax
mov dword [ebp - 0xa58], 0
mov dword [ebp - 0xa54], 7
mov word [ebp - 0xa68], ax
lea ecx, [ebp - 0xa68]
mov dword [ebp - 4], 1
call fcn.00409eb0
test eax, eax
je 0x409e45
lea eax, [ebp - 0xa68]
cmp edi, eax
je 0x409e40
cmp dword [ebp - 0xa54], 8
mov ecx, edi
push dword [ebp - 0xa58]
cmovae eax, dword [ebp - 0xa68]
push eax
call fcn.00405f80
mov esi, 1
mov edx, dword [ebp - 0xa54]
cmp edx, 8
jb 0x409e87
mov ecx, dword [ebp - 0xa68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409e7d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409e7d
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 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.0045be1b
mov esp, ebp
pop ebp
ret