Function at 0x406038
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x411008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x13
pop ecx
mov esi, str.SOFTWARETencent_bugReportQQExternal
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
mov esi, str.QDoc
lea edi, [ebp - 0x10]
lea eax, [ebp - 0x26c]
xor ebx, ebx
push eax
push 0x20019
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60]
push ebx
push eax
push SysReAllocString
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x26c], ebx
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4061de
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x270]
push 4
pop edi
push eax
lea eax, [ebp - 0x278]
mov dword [ebp - 0x278], ebx
push eax
lea eax, [ebp - 0x274]
mov dword [ebp - 0x270], edi
push eax
push ebx
push str.version
push dword [ebp - 0x26c]
mov dword [ebp - 0x274], ebx
call esi
lea eax, [ebp - 0x270]
mov dword [ebp - 0x280], ebx
push eax
lea eax, [ebp - 0x280]
mov dword [ebp - 0x270], edi
push eax
lea eax, [ebp - 0x274]
mov dword [ebp - 0x274], ebx
push eax
push ebx
push 0x40e968
push dword [ebp - 0x26c]
call esi
push 0x208
lea eax, [ebp - 0x268]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x268]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.Common.dll_unsigned_long_int___cdecl_TXLog::GetSession_void_]
mov edi, eax
call dword [sym.imp.Common.dll_unsigned_long_int___cdecl_NLS::GetLCID_void_]
mov ebx, dword [ebp - 0x278]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0xffffffffffffffff
push edi
push esi
push 1
push 1
push ebx
xor esi, esi
push esi
push esi
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x10]
push eax
push eax
call dword [sym.imp.Common.dll_void___cdecl_TXBugReport::InitBugReport_wchar_t_const___wchar_t_const___wchar_t_const___wchar_t_const___unsigned_short_int__unsigned_short_int__unsigned_long_int__int__int__unsigned_long_int__unsigned_long_int__int____stdcall___struct_TXBugReport::tagBugReportInfo___char_const___char_const___wchar_t_const___wchar_t_const___void____unsigned_long_int___void___]
push 0x11
call dword [sym.imp.Common.dll_int___cdecl_TXBugReport::SetBugReportFlag_unsigned_long_int_]
add esp, 0x34
push esi
push dword [ebp - 0x280]
call dword [sym.imp.Common.dll_void___cdecl_TXBugReport::SetBugReportUin_unsigned_long_int__int_]
pop ecx
pop ecx
call dword [sym.imp.Common.dll_void___cdecl_TXBugReport::ValidateBugReport_void_]
push dword [ebp - 0x278]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00406b4b
pop ecx
pop ecx
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x27c], str.InitBugReport___OK_
lea ecx, [ebp - 0x27c]
push ecx
push 0x40be90
push str.AudioVideoQDoc
push 2
push str.func
push 0x6f
pop edx
mov ecx, str.file
call fcn.0040202d
xor eax, eax
add esp, 0x14
inc eax
jmp 0x406212
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x27c], str._InitBugReport___Failed_
push eax
push 0x40be90
push str.AudioVideoQDoc
push 2
push str.func
push 0x73
pop edx
mov ecx, str.file
call fcn.0040202d
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409178
leave
ret