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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45de21
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x47ea94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
push 0
push 0
push 0
push str.QMReportMgr::CReportManager::InitBeacon
lea ecx, [ebp - 0x2d0]
call fcn.00407b80
mov dword [ebp - 4], 0
cmp dword [esi + 0x78], 0
jne 0x404997
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 0x2a8], 0xf
mov byte [ebp - 0x2bc], 0
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 0xf
mov byte [ebp - 0x2a0], 0
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 0xf
mov byte [ebp - 0x288], 0
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0xf
mov byte [ebp - 0x270], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0xf
mov byte [ebp - 0x254], 0
mov byte [ebp - 0x258], 0
mov dword [ebp - 0x238], 0x3e8
mov dword [ebp - 0x2a4], 1
mov byte [ebp - 0x23c], 1
push 0x10
push str.0WIN0DJ6VL4UY2KW
lea ecx, [ebp - 0x2bc]
mov byte [ebp - 4], 1
call fcn.00406100
push 0
push 0
push 0
push 0
push 0
push str.QMReportMgr::CReportManager::IsBeaconDebugMode
lea ecx, [ebp - 0x2cc]
call fcn.00407b80
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x2c8], 4
push eax
lea eax, [ebp - 0x2c0]
mov dword [ebp - 0x2c0], 0
push eax
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x2c4], 4
push eax
push str.DebugBeacon
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor eax, eax
lea ecx, [ebp - 0x2cc]
cmp eax, dword [ebp - 0x2c0]
sbb ebx, ebx
neg ebx
call fcn.00407aa0
push 0
push 0x470b98
lea ecx, [ebp - 0x254]
mov byte [ebp - 0x258], bl
mov byte [ebp - 0x23c], 1
mov dword [ebp - 0x238], 0x64
call fcn.00406100
push 0
push 0
push 0
push 0
push 0
push str.QMReportMgr::CReportManager::GetBeaconSdkPath
lea ecx, [ebp - 0x2c0]
call fcn.00407b80
push 0x20a
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 2
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x21c]
call fcn.00401d70
push str.beacon_sdk.dll
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x21c]
push eax
call ebx
test eax, eax
je 0x404851
xor eax, eax
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404835
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
jmp 0x4048eb
mov eax, dword [0x480c5c]
test eax, eax
jne 0x404870
push str.QMGetInstallDir
call fcn.00409780
add esp, 4
mov dword [0x480c5c], eax
test eax, eax
je 0x40487e
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
call eax
push str.beacon_sdk.dll
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
call ebx
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
test eax, eax
je 0x4048dc
xor eax, eax
lea ecx, [ebp - 0x21c]
mov word [ebp - 0x234], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4048c3
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
jmp 0x4048eb
xor eax, eax
push eax
mov word [ebp - 0x234], ax
push 0x470b9c
lea ecx, [ebp - 0x234]
call fcn.00405f80
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 1
call fcn.00407aa0
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0x220]
mov dword [esi + 0x7c], eax
cmp edx, 8
jb 0x404965
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40495b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40495b
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, dword [esi + 0x7c]
test eax, eax
je 0x404985
push str.InitBeacon
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404985
lea ecx, [ebp - 0x2bc]
push ecx
call eax
lea ecx, [ebp - 0x2bc]
mov dword [esi + 0x78], 1
call fcn.004049c0
lea ecx, [ebp - 0x2d0]
call fcn.00407aa0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045be1b
mov esp, ebp
pop ebp
ret