Function at 0x409f86
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41051b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
call fcn.00407c40
mov dword [ebp - 0x18], eax
call fcn.00407c00
mov dword [ebp - 0x60], eax
push 0x10
push 0
lea eax, [ebp - 0x34]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x18
push 0
lea ecx, [ebp - 0x50]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
and edx, 0xffff
and edx, 0xffff
and edx, 0xff
and edx, 0xff
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x54]
and eax, 0xffff
and eax, 0xffff
shr eax, 8
and eax, 0xff
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x54]
push ecx
push str.GetVersion__x_n
lea edx, [ebp - 0x68]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::Empty
mov eax, dword [ebp - 0x24]
push eax
push str.dwWindowsMajorVersion__x_n
lea ecx, [ebp - 0x68]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::Empty
mov edx, dword [ebp - 0x10]
push edx
push str.dwWindowsMinorVersion__x_n
lea eax, [ebp - 0x68]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x64]
push ecx
push 0x20019
push 0
push 0x414ae0
push Ordinal_4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a10e
lea edx, [ebp - 0x6c]
push edx
push 0
push 0
push 0
push 0x414af8
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x84]
add edx, 0x30
push edx
push 0
push 0
push str.InstallPath
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x84]
add ecx, 0x30
push ecx
mov edx, dword [ebp - 0x84]
add edx, 0x94
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push str.Ding.wav
mov eax, dword [ebp - 0x84]
add eax, 0x94
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
jmp 0x40a128
push str.C:Program_FileseGalaxTouchDing.wav
mov ecx, dword [ebp - 0x84]
add ecx, 0x94
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
mov edx, dword [ebp - 0x84]
mov dword [edx + 0x28], 1
mov ecx, dword [ebp - 0x84]
add ecx, 4
call fcn.00401fe0
push eax
call sub.xtkutility.dll_Ordinal_13
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40a170
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x70]
jmp 0x40a62f
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x58], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x58], 0
je 0x40a1b6
cmp dword [ebp - 0x5c], 0
je 0x40a1b6
mov eax, dword [ebp - 0x84]
cmp dword [eax + 0x1c], 0
je 0x40a1b6
mov ecx, dword [ebp - 0x84]
cmp dword [ecx + 0x24], 0
jne 0x40a1fd
cmp dword [ebp - 0x58], 0
je 0x40a1c6
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x5c], 0
je 0x40a1d6
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call sub.xtkutility.dll_Ordinal_14
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x74]
jmp 0x40a62f
mov edx, dword [ebp - 0x58]
push edx
push 0x80002007
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x84]
call fcn.00409dea
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40a259
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call sub.xtkutility.dll_Ordinal_14
mov dword [ebp - 0x78], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x78]
jmp 0x40a62f
mov ecx, dword [ebp - 0x5c]
push ecx
push 0x8000201b
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x84]
call fcn.00409dea
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40a2cd
mov eax, dword [ebp - 0x58]
push eax
push 0x8000200b
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x84]
call fcn.00409dea
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call sub.xtkutility.dll_Ordinal_14
mov dword [ebp - 0x7c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x7c]
jmp 0x40a62f
mov dword [ebp - 0x1c], 1
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::Empty
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x14]
push eax
push str.MyBeepThread:_hDevice__0x_x___n_m_hStopEvent__0x_x__n_hBeepEvent__0x_x__n_hRemoveEvent__0x_x__n_m_hSwitchUserEvent__0x_x__n
lea ecx, [ebp - 0x68]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x1c
mov edx, 1
test edx, edx
je 0x40a568
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::Empty
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push str.MyBeepThread:_hDevice_0x_x_n_m_hStopEvent__0x_x__n_hBeepEvent__0x_x__n_hRemoveEvent__0x_x__n_m_hSwitchUserEvent__0x_x__n
lea edx, [ebp - 0x68]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x1c
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
push 4
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x88], ecx
cmp dword [ebp - 0x88], 3
ja case.default.0x40a38e
mov edx, dword [ebp - 0x88]
jmp dword [edx*4 + 0x40a63d]
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::Empty
mov eax, dword [ebp - 0x14]
push eax
push str._MyBeepThread:ThreadExit_Get_Stop_Event_hDevice_0x_x_n
lea ecx, [ebp - 0x68]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x40a568
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::Empty
mov edx, dword [ebp - 0x14]
push edx
push str._MyBeepThread:ThreadExit_get_event_hDevice_0x_x_n
lea eax, [ebp - 0x68]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [ebp - 0x60]
cmp dword [edx + 0x36c], 0
jne 0x40a3ef
jmp case.default.0x40a38e
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.xtkutility.dll_Ordinal_19
test eax, eax
jne 0x40a41d
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::Empty
mov edx, dword [ebp - 0x14]
push edx
push str.Get_Beep_info_failed._hDevice_0x_x_n
lea eax, [ebp - 0x68]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x60]
add ecx, 0x140
call fcn.0040ea3a
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::Empty
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push str.hDevice_0x_x_lDuration__d___lFrequency__d_n
lea eax, [ebp - 0x68]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp case.default.0x40a38e
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [ebp - 0x14]
push ecx
push str._MyBeepThread:ThreadExit_Get_Remove_Event__hDevice_0x_x_n
lea edx, [ebp - 0x68]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x40a568
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::Empty
mov eax, dword [ebp - 0x14]
push eax
push str._MyBeepThread:Get_Switch_User_event._hDevice_0x_x_n
lea ecx, [ebp - 0x68]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebp - 0x84]
cmp dword [ecx + 0x1e8], 0
je 0x40a511
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::Empty
mov edx, dword [ebp - 0x14]
push edx
push str._MyBeepThread:Is_Math_My_ID._hDevice_0x_x_n
lea eax, [ebp - 0x68]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jne 0x40a50f
mov ecx, dword [ebp - 0x58]
push ecx
push 0x80002007
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x84]
call fcn.00409dea
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40a508
mov dword [ebp - 0x1c], 0
jmp 0x40a50f
mov dword [ebp - 0x1c], 1
jmp case.default.0x40a38e
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::Empty
mov eax, dword [ebp - 0x14]
push eax
push str._MyBeepThread:Not_Math_My_ID._hDevice_0x_x_n
lea ecx, [ebp - 0x68]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
cmp dword [ebp - 0x1c], 1
jne case.default.0x40a38e
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x58]
push edx
push 0x8000200b
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x84]
call fcn.00409dea
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne case.default.0x40a38e
mov dword [ebp - 0x1c], 1
jmp 0x40a325
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push str._MyBeepThread_ThreadOut_:_hDevice__0x_x__n_m_hStopEvent__0x_x__n_hBeepEvent__0x_x__n_hRemoveEvent__0x_x__n_m_hSwitchUserEvent__0x_x__n
lea edx, [ebp - 0x68]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x1c
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x58]
push eax
push 0x8000200b
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x84]
call fcn.00409dea
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x5c]
push edx
push 0x8000201f
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x84]
call fcn.00409dea
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x14], 0
je 0x40a5f4
mov ecx, dword [ebp - 0x14]
push ecx
call sub.xtkutility.dll_Ordinal_14
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret