Function at 0x4027e0
Capabilities:
Persist via app paths registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43cf20
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x450880]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
mov eax, dword [0x450880]
xor eax, esp
push eax
lea eax, [esp + 0x430]
mov dword fs:[0], eax
mov bl, cl
movsx eax, bl
cmp eax, 7
ja case.default.0x40282a
jmp dword [eax*4 + 0x402ef8]
mov esi, 0x445958
jmp 0x40286d
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_aerofly5.exe_
jmp 0x40286d
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsPhoenixRC.exe_
jmp 0x40286d
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsRealFlightG3Pro.exe_
jmp 0x40286d
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsRealFlightG4Pro.exe_
jmp 0x40286d
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsRealFlightG5Pro.exe_
jmp 0x40286d
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsRealFlight6Pro.exe_
jmp 0x40286d
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsVRCRace.exe_
jmp 0x40286d
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0xf003f
xor edi, edi
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x4028bd
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
push 0x20006
push edi
push 0x447088
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], 0xc
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x24]
push eax
push edi
lea ecx, [esp + 0x28]
push ecx
push edi
push str.ProgramToLaunch
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], edi
call esi
cmp eax, edi
jne 0x402925
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
push 0x454810
lea ecx, [esp + 0x28]
push ecx
push edi
push str.ProgramToLaunch
push edx
call esi
push edi
push edi
push 0x64
push 0x4548d8
push 0xffffffffffffffff
push 0x454810
push edi
push 1
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
jmp 0x402ec2
call fcn.0040bc5f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40293f
push 0x80004005
call fcn.00401630
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x438], edi
call fcn.0040bc5f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402970
push 0x80004005
call fcn.00401630
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x438], 1
test bl, bl
jne 0x402a51
push 1
push edi
push edi
push str.Reflex_XTR__Reflex.exe_Reflex.exe
push edi
push str.Reflex.exe
push 0x445e4c
push 1
lea ecx, [esp + 0x54]
call fcn.004165a8
mov bl, 2
push 0x70
mov byte [esp + 0x43c], bl
call fcn.0040c0ed
cmp eax, edi
je 0x4029cf
push 0x70
push eax
lea ecx, [esp + 0x18]
call fcn.00401510
lea ecx, [esp + 0x34]
call fcn.00415d76
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x30], ecx
lea ecx, [esp + 0x34]
call fcn.00415d76
lea ecx, [esp + 0x34]
mov dword [eax + 0x2c], str.C:Program_FilesREFLEX
call fcn.00416e06
cmp eax, 1
jne 0x402d95
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x38]
call fcn.00416f35
mov byte [esp + 0x438], 3
push eax
lea ecx, [esp + 0x1c]
call fcn.00409ab0
mov byte [esp + 0x438], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x402d95
cmp bl, 1
jne 0x402ae6
push 1
push edi
push edi
push str.RealFlight_G3__RealFlight.exe_RealFlight.exe
push edi
push str.RealFlight.exe
push 0x445e4c
push 1
lea ecx, [esp + 0x54]
call fcn.004165a8
mov bl, 4
push 0x71
mov byte [esp + 0x43c], bl
call fcn.0040c0ed
cmp eax, edi
je 0x402a99
push 0x71
push eax
lea ecx, [esp + 0x18]
call fcn.00401510
lea ecx, [esp + 0x34]
call fcn.00415d76
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x30], ecx
lea ecx, [esp + 0x34]
call fcn.00415d76
lea ecx, [esp + 0x34]
mov dword [eax + 0x2c], str.C:Program_FilesRealFlightG3
call fcn.00416e06
cmp eax, 1
jne 0x402d95
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x38]
call fcn.00416f35
mov byte [esp + 0x438], 5
jmp 0x402a17
cmp bl, 2
jne 0x402b7a
push 1
push edi
push edi
push str.AeroFly_5__flyrun5.exe_flyrun5.exe
push edi
push str.flyrun5.exe
push 0x445e4c
push 1
lea ecx, [esp + 0x54]
call fcn.004165a8
push 0x72
mov byte [esp + 0x43c], 6
call fcn.0040c0ed
cmp eax, edi
je 0x402b2d
push 0x72
push eax
lea ecx, [esp + 0x18]
call fcn.00401510
lea ecx, [esp + 0x34]
call fcn.00415d76
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x30], ecx
lea ecx, [esp + 0x34]
call fcn.00415d76
lea ecx, [esp + 0x34]
mov dword [eax + 0x2c], str.C:Program_FilesIPACSAeroFly_5
call fcn.00416e06
cmp eax, 1
jne 0x402d95
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x38]
call fcn.00416f35
mov byte [esp + 0x438], 7
jmp 0x402d82
cmp bl, 3
jne 0x402bfe
push 1
push edi
push edi
push str.Phoenix_RC__PhoenixRC.exe_PhoenixRC.exe
push edi
push str.PhoenixRC.exe
push 0x445e4c
push 1
lea ecx, [esp + 0x54]
call fcn.004165a8
push 0x73
lea ecx, [esp + 0x14]
mov byte [esp + 0x43c], 8
call fcn.004015e0
lea ecx, [esp + 0x34]
call fcn.00415d76
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x30], ecx
lea ecx, [esp + 0x34]
call fcn.00415d76
lea ecx, [esp + 0x34]
mov dword [eax + 0x2c], str.C:Program_FilesPhoenixRC
call fcn.00416e06
cmp eax, 1
jne 0x402d95
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x38]
call fcn.00416f35
mov byte [esp + 0x438], 9
jmp 0x402d82
cmp bl, 4
jne 0x402c82
push 1
push edi
push edi
push str.RealFlight_G4__RealFlight.exe_RealFlight.exe
push edi
push str.RealFlight.exe
push 0x445e4c
push 1
lea ecx, [esp + 0x54]
call fcn.004165a8
push 0x74
lea ecx, [esp + 0x14]
mov byte [esp + 0x43c], 0xa
call fcn.004015e0
lea ecx, [esp + 0x34]
call fcn.00415d76
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x30], ecx
lea ecx, [esp + 0x34]
call fcn.00415d76
lea ecx, [esp + 0x34]
mov dword [eax + 0x2c], str.C:Program_FilesRealFlightG4
call fcn.00416e06
cmp eax, 1
jne 0x402d95
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x38]
call fcn.00416f35
mov byte [esp + 0x438], 0xb
jmp 0x402d82
cmp bl, 5
jne 0x402d03
push 1
push edi
push edi
push str.Virtual_RC_Racing__vrcrace.exe_vrcrace.exe
push edi
push str.vrcrace.exe
push 0x445e4c
push 1
lea ecx, [esp + 0x54]
call fcn.004165a8
push 0x75
lea ecx, [esp + 0x14]
mov byte [esp + 0x43c], 0xc
call fcn.004015e0
lea ecx, [esp + 0x34]
call fcn.00415d76
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x30], ecx
lea ecx, [esp + 0x34]
call fcn.00415d76
lea ecx, [esp + 0x34]
mov dword [eax + 0x2c], str.C:Program_FilesVirtual_RC_Racing
call fcn.00416e06
cmp eax, 1
jne 0x402d95
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x38]
call fcn.00416f35
mov byte [esp + 0x438], 0xd
jmp 0x402d82
cmp bl, 6
jne 0x402da6
push 1
push edi
push edi
push str.RealFlight_G5__RealFlight.exe_RealFlight.exe
push edi
push str.RealFlight.exe
push 0x445e4c
push 1
lea ecx, [esp + 0x54]
call fcn.004165a8
push 0x76
lea ecx, [esp + 0x14]
mov byte [esp + 0x43c], 0xe
call fcn.004015e0
lea ecx, [esp + 0x34]
call fcn.00415d76
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x30], ecx
lea ecx, [esp + 0x34]
call fcn.00415d76
lea ecx, [esp + 0x34]
mov dword [eax + 0x2c], str.C:Program_FilesRealFlightG5
call fcn.00416e06
cmp eax, 1
jne 0x402d95
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x38]
call fcn.00416f35
mov byte [esp + 0x438], 0xf
push eax
lea ecx, [esp + 0x1c]
call fcn.00409ab0
lea ecx, [esp + 0x14]
call fcn.00401610
lea ecx, [esp + 0x34]
mov byte [esp + 0x438], 1
call fcn.004164a5
push 0xc7
lea eax, [esp + 0x361]
push edi
push eax
mov byte [esp + 0x368], 0
call fcn.00429c50
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x402ddb
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401300
mov esi, dword [esp + 0x18]
mov ecx, 0x32
lea edi, [esp + 0x35c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x360]
push edx
push 1
push 0
push str.ProgramToLaunch
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x24]
push ecx
push 0
lea edx, [esp + 0x28]
push edx
push 0
push str.ProgramToLaunch
push eax
call esi
test eax, eax
jne 0x402e71
lea ecx, [esp + 0x24]
push ecx
push 0x454810
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x2c]
push str.ProgramToLaunch
push eax
call esi
push 0
push 0
push 0x64
push 0x4548d8
push 0xffffffffffffffff
push 0x454810
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov byte [esp + 0x438], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x438], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ec0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x402ed1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.004280b8
mov esp, ebp
pop ebp
ret