Function at 0x402470
Capabilities:
Check mutex on windows
Get common file path
Persist via run registry key
Resume thread
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587e09
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x5f3fcc]
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
push str.aoidhaenj09938
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402c15
call fcn.004020e0
push ecx
call fcn.00401fa0
add esp, 4
test al, al
je 0x4024d6
call fcn.00402c40
lea ecx, [ebp - 0x264]
mov dword [ebp - method.RegistryKey.virtual_0], vtable.RegistryKey.0
call fcn.004213f0
push ecx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
lea ecx, [ebp - 0x270]
mov dword [ebp - 4], 0
call fcn.00412e10
lea ecx, [ebp - 0x290]
mov dword [ebp - 4], 1
call fcn.004213f0
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 2
call fcn.00412930
lea ecx, [ebp - 0x280]
call fcn.004213f0
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.00421910
push eax
lea eax, [ebp - 0x280]
push 0x5cd834
push eax
call fcn.00421840
add esp, 0xc
lea ecx, [ebp - 0x2a0]
call fcn.004213f0
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 4
push eax
push str.Windows_Usb_Display
lea ecx, [ebp - 0x270]
call fcn.00412d00
test al, al
jne 0x4025d2
lea ecx, [ebp - 0x280]
call fcn.00421910
mov edx, dword [ebp - 0x26c]
mov esi, eax
test edx, edx
je 0x4025d2
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp - 0x240], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4025a6
sub ecx, dword [ebp - 0x240]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.Windows_Usb_Display
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 8
push eax
mov dword [ebp - 0x250], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x260
call fcn.00422160
mov esi, eax
add esp, 4
mov dword [ebp - 0x244], esi
test esi, esi
je 0x4026e1
mov dword [esi], vtable.Configurator.0
mov dword [esi + 4], 1
mov dword [esi + 8], 0x2710
mov dword [esi + 0xc], 0xa
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x14
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x220], 0x34230001
movq xmm0, qword [str.MAC010]
movq qword [esi + 0x224], xmm0
mov eax, dword [0x5cf628]
mov dword [esi + 0x22c], eax
mov ax, word [0x5cf62c]
mov word [esi + 0x230], ax
xor eax, eax
mov word [esi + 0x232], ax
mov dword [esi + 0x234], eax
mov dword [esi + 0x248], eax
mov dword [esi + 0x24c], 7
mov word [esi + 0x238], ax
lea ecx, [esi + 0x250]
mov byte [ebp - 4], 6
call fcn.004213f0
mov byte [ebp - 4], 7
mov ecx, 0x5f4834
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 4]
mov eax, dword [0x5fd6d4]
test eax, eax
cmove eax, esi
mov dword [0x5fd6d4], eax
mov byte [ebp - 4], 8
mov ecx, 0x5f4834
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
jmp 0x4026e3
xor esi, esi
mov byte [ebp - 4], 4
mov ecx, esi
mov dword [edi + 0xcc], esi
call fcn.00405820
mov eax, dword [edi + 0xcc]
push 0x24
mov eax, dword [eax + 4]
mov dword [ebp - 0x240], eax
call fcn.00422160
mov esi, eax
add esp, 4
mov dword [ebp - 0x244], esi
mov byte [ebp - 4], 9
test esi, esi
je 0x402880
lea ecx, [esi + 0xc]
mov dword [esi], vtable.LogWriter.0
call fcn.004213f0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x23c]
mov eax, dword [ebp - 0x240]
xorps xmm0, xmm0
mov dword [esi + 0x1c], 0
mov dword [esi + 8], eax
movups xmmword [ebp - 0x23c], xmm0
call fcn.004213f0
xorps xmm0, xmm0
mov byte [ebp - 4], 0xb
push 0x5cf6c8
lea ecx, [ebp - 0x22c]
movups xmmword [ebp - 0x22c], xmm0
call fcn.00421380
push 1
push 0x1a
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0xc
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x4027aa
lea eax, [ebp - 0x21c]
push eax
lea eax, [esi + 0xc]
push str._sMSUsbDisplay_
push eax
call fcn.00421840
add esp, 0xc
lea ecx, [ebp - 0x22c]
call fcn.00421460
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0xa
call fcn.00421460
mov ecx, esi
call fcn.0040ae80
push 0x58
call fcn.00422160
add esp, 4
mov dword [ebp - 0x240], eax
test eax, eax
je 0x402879
push 0x58
push 0
push eax
call fcn.0056a3b0
mov esi, dword [ebp - 0x240]
add esp, 0xc
lea eax, [esi + 4]
mov dword [esi], vtable.LocalMutex.0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esi, 0x1c
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x248], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040b9e0
mov dword [esi], eax
mov byte [ebp - 4], 0xf
mov esi, dword [ebp - 0x240]
lea ecx, [esi + 0x40]
call fcn.00421ff0
movsd xmm0, qword [0x5d3ce0]
lea ecx, [esi + 0x50]
movsd qword [esi + 0x48], xmm0
call fcn.00421ff0
lea eax, [ebp - 0x24c]
push eax
call fcn.00422010
add esp, 4
mov ecx, dword [eax]
mov dword [esi + 0x50], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x54], eax
mov esi, dword [ebp - 0x244]
mov eax, dword [ebp - 0x240]
mov dword [esi + 0x20], eax
jmp 0x402882
xor eax, eax
mov dword [esi + 0x20], eax
jmp 0x402882
xor esi, esi
push str._MsUsbDisplay_Start_
mov byte [ebp - 4], 4
push esi
mov dword [0x5fd6d0], esi
call fcn.0040b090
push 0x5cd90c
push dword [0x5fd6d0]
call fcn.0040b090
add esp, 0x10
mov ecx, edi
call fcn.0042ec30
push 0
call fcn.004312b0
add esp, 4
push 0x5995b0
call fcn.0042ad0b
push str.MS_USBDisplay_Applications
mov ecx, edi
call fcn.0042fcd0
push 0x2c
call fcn.00422160
add esp, 4
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 0x10
test eax, eax
je 0x4028f2
mov ecx, eax
call fcn.00410a60
jmp 0x4028f4
xor eax, eax
mov byte [ebp - 4], 4
mov dword [edi + 0xd4], eax
cmp byte [eax + 0x20], 0
jne 0x402909
call fcn.00402400
call fcn.00411f50
call fcn.0040d5a0
test eax, eax
je 0x40292f
push str.LibYUV_load_failed...
push dword [0x5fd6d0]
call fcn.0040b090
add esp, 8
jmp 0x402bbc
push 0x2070
call fcn.00422160
mov esi, eax
add esp, 4
mov dword [ebp - 0x248], esi
test esi, esi
je 0x402971
push 0x4c
push 0
push esi
mov dword [esi + 0x2068], 0
call fcn.0056a3b0
xorps xmm0, xmm0
mov dword [0x5fd6ec], esi
movups xmmword [esi + 0x50], xmm0
add esp, 0xc
movq qword [esi + 0x60], xmm0
push 0x4c
call fcn.00422160
add esp, 4
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 0x11
test eax, eax
je 0x402994
mov ecx, eax
call fcn.0040d920
mov esi, eax
jmp 0x402996
xor esi, esi
mov byte [ebp - 4], 4
mov dword [edi + 0xd8], esi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
push 0x638
setne al
mov byte [esi + 0xc], al
call fcn.00422160
mov esi, eax
add esp, 4
mov dword [ebp - 0x240], esi
mov byte [ebp - 4], 0x12
test esi, esi
je 0x402aaf
push 0
push 0x66
mov ecx, esi
call fcn.0043512e
mov byte [ebp - 4], 0x13
mov dword [esi], vtable.CMSUSBDisplayDlg.0
add esi, 0x490
mov ecx, esi
mov dword [ebp - 0x248], esi
call fcn.0043573f
mov dword [esi], vtable.CStatic.0
mov eax, dword [ebp - 0x240]
mov dword [eax + 0x510], 0
mov dword [eax + 0x514], 0
mov dword [eax + 0x518], 0
mov dword [eax + 0x51c], 0
mov dword [eax + 0x520], 0
mov dword [eax + 0x524], 0
lea esi, [eax + 0x528]
mov byte [ebp - 4], 0x15
mov ecx, esi
mov dword [ebp - 0x248], esi
call fcn.0043573f
mov byte [ebp - 4], 0x16
mov dword [esi], vtable.CMyListCtrlEx.0
sub esi, 0xffffff80
mov ecx, esi
mov dword [ebp - 0x244], esi
call fcn.0043573f
mov dword [esi], vtable.CMyHeaderCtrl.0
mov dword [esi + 0x80], 0x40000000
mov byte [ebp - 4], 0x17
call fcn.004420cd
call fcn.004420cd
push 0x80
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, dword [ebp - 0x240]
mov dword [esi + 0xd0], eax
jmp 0x402ab1
xor esi, esi
mov byte [ebp - 4], 4
mov ecx, esi
mov dword [edi + 0xd0], esi
mov eax, dword [esi]
mov eax, dword [eax + 0x174]
call eax
cmp eax, 1
je 0x402ae9
cmp eax, 2
je 0x402af3
cmp eax, 0xffffffff
jne 0x402af3
push str.Warning:_dialog_creation_failed__so_application_is_terminating_unexpectedly._n
push dword [0x5fd6d0]
call fcn.0040b090
add esp, 8
mov dword [edi + 0xe0], 1
mov ecx, dword [edi + 0xd0]
test ecx, ecx
je 0x402b04
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push str.Stop_screen_detector_n
push dword [0x5fd6d0]
mov dword [edi + 0xd0], 0
call fcn.0040b090
mov ecx, dword [edi + 0xd8]
add esp, 8
test ecx, ecx
je 0x402b4a
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi + 0xd8]
test ecx, ecx
je 0x402b40
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0xd8], 0
push str.Delete_system_info_n
push dword [0x5fd6d0]
call fcn.0040b090
mov eax, dword [edi + 0xd4]
add esp, 8
test eax, eax
je 0x402b7c
push 0x2c
push eax
call fcn.00567d94
add esp, 8
mov dword [edi + 0xd4], 0
cmp dword [0x5fd6f4], 1
jne 0x402bb7
push str.WDDM_VMON_PLUGOUTALL_n
push dword [0x5fd6d0]
call fcn.0040b090
add esp, 8
call fcn.00412380
mov eax, dword [0x5fddd0]
test eax, eax
je 0x402bb7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5fddd0], 0
call fcn.00433af8
lea ecx, [ebp - 0x2a0]
call fcn.00421460
lea ecx, [ebp - 0x280]
call fcn.00421460
lea ecx, [ebp - 0x290]
call fcn.00421460
mov eax, dword [ebp - 0x26c]
mov dword [ebp - method.RegistryKey.virtual_0], vtable.RegistryKey.0
test eax, eax
je 0x402c0a
cmp eax, dword [ebp - 0x268]
je 0x402c00
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x26c], 0
lea ecx, [ebp - 0x264]
call fcn.00421460
xor eax, eax
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.00567879
mov esp, ebp
pop ebp
ret