Function at 0x6cde3bb0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ce1907b
mov eax, dword fs:[0]
push eax
sub esp, 0xa78
mov eax, dword [0x6ce5c008]
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
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0xa40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xa74], 0
mov dword [ebp - 0xa70], esi
mov dword [ebp - 0xa84], esi
mov dword [ebp - 0xa44], eax
mov dword [esi], 0
call fcn.6cdbff80
mov ecx, eax
test ecx, ecx
jne 0x6cde3c2b
push 0x80004005
call fcn.6cdc0090
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xa74], 1
call fcn.6cdbff80
mov ecx, eax
test ecx, ecx
jne 0x6cde3c5b
push 0x80004005
call fcn.6cdc0090
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0xa64], ebx
mov dword [ebp - 4], 1
call fcn.6cdbff80
mov ecx, eax
test ecx, ecx
jne 0x6cde3c85
push 0x80004005
call fcn.6cdc0090
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa5c], eax
mov byte [ebp - 4], 2
call fcn.6cdbff80
mov ecx, eax
test ecx, ecx
jne 0x6cde3cac
push 0x80004005
call fcn.6cdc0090
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0xa58], edi
lea eax, [ebp - 0xa78]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0xa54], 0
call sym.QQLiveBase.dll_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_base::GetAppDataPath_void_
push str.user.ini
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa54]
call fcn.6cddd660
add esp, 8
mov byte [ebp - 4], 6
or eax, 0xffffffff
mov edx, dword [ebp - 0xa78]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x6cde3d0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.6cde3800
test eax, eax
je 0x6cde3f14
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push dword [ebp - 0xa54]
push 0x104
push eax
push 0x6ce4378c
push str.OemChannelInfo
push 0x6ce43c50
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6cde3d62
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa58]
call fcn.6cdbf900
xorps xmm0, xmm0
mov dword [ebp - 0xa48], 0
movq qword [ebp - 0xa50], xmm0
mov dword [ebp - 0xa50], 0
mov dword [ebp - 0xa4c], 0
mov dword [ebp - 0xa48], 0
lea eax, [ebp - 0xa68]
mov byte [ebp - 4], 7
push eax
call sym.QQLiveBase.dll_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_base::GetRegQQLiveRootPath_void_
push str.Oem
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa3c]
call fcn.6cddd660
add esp, 8
lea ecx, [ebp - 0xa50]
push 0x2001f
push dword [eax]
push 0x80000001
call fcn.6cde4720
mov edx, dword [ebp - 0xa3c]
test eax, eax
sete byte [ebp - 0xa69]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x6cde3e20
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp - 0xa68]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x6cde3e41
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xa69], 0
je 0x6cde3ef9
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xa3c], 0x208
lea eax, [ebp - 0xa3c]
lea ecx, [ebp - 0xa50]
push eax
lea eax, [ebp - 0xa38]
push eax
push str.OemChannelInfo
call fcn.6cde4680
test eax, eax
jne 0x6cde3ef9
cmp dword [ebp - 0xa3c], eax
jbe 0x6cde3ef9
mov dword [ebp - 0xa68], eax
lea ecx, [ebp - 0xa68]
lea eax, [ebp - 0xa38]
push eax
call fcn.6cdbef90
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0xa68]
cmp dword [eax - 0xc], 0
je 0x6cde3ede
lea eax, [ebp - 0xa68]
push eax
lea ecx, [ebp - 0xa64]
call fcn.6cddbbc0
mov ebx, dword [ebp - 0xa64]
mov eax, dword [ebp - 0xa68]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 7
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x6cde3ef9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xa50]
test eax, eax
je 0x6cde3f0e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0xa58]
call fcn.6cde3800
test eax, eax
je 0x6cde4192
mov eax, dword [ebx - 0xc]
test eax, eax
je 0x6cde3f36
cmp dword [edi - 0xc], 0
jne 0x6cde3f40
test eax, eax
jne 0x6cde4192
cmp dword [edi - 0xc], 0
jne 0x6cde4192
call fcn.6cde3800
test eax, eax
je 0x6cde4192
lea eax, [ebp - 0xa3c]
mov dword [ebp - 0xa68], 0
push eax
call sym.QQLiveBase.dll_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_base::GetRegQQLiveRootPath_void_
add esp, 4
lea ecx, [ebp - 0xa68]
push ecx
push dword [eax]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov edx, dword [ebp - 0xa3c]
mov dword [ebp - 0xa60], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x6cde3f9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0xa60], 0
jne 0x6cde4192
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0xa60], 0x104
lea eax, [ebp - 0xa60]
mov dword [ebp - 0xa3c], 1
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa3c]
push eax
push 0
push str.OemChannelInfo
push dword [ebp - 0xa68]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
mov esi, eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0xa3c]
push eax
push 0
push str.ProtocolVersion
push dword [ebp - 0xa68]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
jne 0x6cde407b
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6cde4042
mov esi, dword [ebp - 0xa70]
sub ecx, edx
sar ecx, 1
je 0x6cde4081
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.6cdbf1d0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xa5c]
call fcn.6cdbf1d0
jmp 0x6cde4081
mov esi, dword [ebp - 0xa70]
push dword [ebp - 0xa68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
mov dword [ebp - 0xa48], 0
movq qword [ebp - 0xa50], xmm0
mov dword [ebp - 0xa50], 0
mov dword [ebp - 0xa4c], 0
mov dword [ebp - 0xa48], 0
lea eax, [ebp - 0xa80]
mov byte [ebp - 4], 0xa
push eax
call sym.QQLiveBase.dll_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_base::GetRegQQLiveRootPath_void_
push str.Oem
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xa7c]
call fcn.6cddd660
push 0x2001f
sub esp, 8
lea ecx, [ebp - 0xa50]
push dword [eax]
push 0x80000001
call fcn.6cde45e0
mov edx, dword [ebp - 0xa7c]
test eax, eax
sete byte [ebp - 0xa69]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x6cde4127
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
or eax, 0xffffffff
mov edx, dword [ebp - 0xa80]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x6cde4149
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xa69], 0
je 0x6cde417d
push ecx
push dword [esi]
lea ecx, [ebp - 0xa50]
push str.OemChannelInfo
call fcn.6cde4510
push dword [ebp - 0xa54]
push dword [esi]
push str.OemChannelInfo
push 0x6ce43c50
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xa50]
test eax, eax
je 0x6cde4192
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xa68]
mov dword [ebp - 0xa68], 0
push eax
call sym.QQLiveBase.dll_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_base::GetExeFolder_void_
add esp, 4
mov byte [ebp - 4], 0xc
mov eax, dword [esi]
mov esi, dword [ebp - 0xa68]
cmp dword [eax - 0xc], 0
jne 0x6cde4292
cmp dword [esi - 0xc], 0
jle 0x6cde4292
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x6cde41f5
push 0x104
lea ecx, [ebp - 0xa68]
call fcn.6cdbf780
mov esi, dword [ebp - 0xa68]
push str.qqlive.ini
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
test eax, eax
js 0x6cde44b5
cmp eax, dword [esi - 8]
jg 0x6cde44b5
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0x208
mov word [esi + eax*2], cx
lea eax, [ebp - 0x628]
push ecx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x628]
push esi
push 0x103
push eax
push 0x6ce4378c
push str.channel
push str.channel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6cde4270
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0xa70]
push eax
call fcn.6cdbf900
mov ecx, dword [ebp - 0xa70]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x6cde42dc
cmp dword [ebx - 0xc], 0
jne 0x6cde42dc
cmp dword [edi - 0xc], 0
jne 0x6cde42dc
mov eax, dword [ebp - 0xa40]
test eax, eax
je 0x6cde42ca
lea ecx, [ebp - 0xa5c]
push ecx
mov ecx, eax
call fcn.6cddbbc0
mov ecx, dword [ebp - 0xa70]
mov eax, dword [ebp - 0xa44]
test eax, eax
je 0x6cde42dc
push ecx
mov ecx, eax
call fcn.6cddbbc0
mov eax, dword [ebp - 0xa70]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x6cde43df
lea eax, [ebp - 0xa44]
mov dword [ebp - 0xa3c], 0
push eax
call sym.QQLiveBase.dll_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_base::GetRegQQLiveRootPath_void_
add esp, 4
lea ecx, [ebp - 0xa3c]
push ecx
push dword [eax]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov edx, dword [ebp - 0xa44]
mov dword [ebp - 0xa40], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x6cde433f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0xa40], 0
jne 0x6cde43df
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xa44], 0x104
lea eax, [ebp - 0xa44]
mov dword [ebp - 0xa40], 1
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa40]
push eax
push 0
push str.channel
push dword [ebp - 0xa3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x6cde43d3
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6cde43b0
sub ecx, edx
sar ecx, 1
je 0x6cde43d3
mov ecx, dword [ebp - 0xa70]
lea eax, [ebp - 0x218]
push eax
call fcn.6cdbf1d0
push dword [ebp - 0xa3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xa70]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x6cde43ff
mov ecx, dword [ebp - 0xa70]
push 0x24
push str.F1D829AB_7BA7_4EDB_8984_047500E6F696
call fcn.6cdbf900
lea edx, [esi - 0x10]
mov byte [ebp - 4], 6
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x6cde441d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0xa54]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x6cde443e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x6cde4459
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0xa5c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x6cde447a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add ebx, 0xfffffff0
lock xadd dword [ebx + 0xc], esi
dec esi
test esi, esi
jg 0x6cde4493
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0xa70]
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.6ce11901
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.6cdc0090
int3