Function at 0x401700
Capabilities:
Check if file exists
Create process on windows
Get common file path
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x964
mov eax, dword [0x418004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
push 0x418ad8
mov edi, ecx
mov dword [ebp - 0x964], edx
push str._sReleasephysx27GameApp.exe
push 0x419bc0
mov dword [0x419bb0], edi
call esi
add esp, 0xc
push 0x419bc0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
test eax, eax
jne 0x4017d2
lea eax, [ebp - 0x914]
mov dword [ebp - 0x914], 0x104
push eax
push 0x418ad8
push 0
push 0x20000002
push str.PathRoot
push str.SOFTWARETencentQQ
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x401984
push 0x418ad8
push str._sReleasephysx27GameApp.exe
push 0x419bc0
call esi
add esp, 0xc
lea eax, [ebp - 0x910]
push 0x418ad8
push 0x415ec8
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x910]
push 0x44
push 0x419e60
push eax
push 0
call ebx
cmp eax, 7
je 0x401beb
push 0x418ad8
lea eax, [ebp - 0x910]
push str._sLoaderLoaderBG.bmp
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x910]
push 0x2010
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
push 0
mov dword [0x419dcc], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [0x419dcc]
mov dword [0x419f2c], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
lea eax, [ebp - 0x924]
xorps xmm0, xmm0
push eax
push 0
push 0x30
movups xmmword [ebp - 0x924], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebp - 0x91c]
add eax, 0xfffffed4
cdq
push 0
sub eax, edx
mov esi, eax
mov eax, dword [ebp - 0x918]
push edi
push 0
push 0
lea eax, [eax - 0xc8]
sar esi, 1
push 0xc8
cdq
push 0x12c
sub eax, edx
sar eax, 1
push eax
push esi
push closesocket
push 0x419e60
push str.QQSpeed
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x401beb
push dword [ebp - 0x964]
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push str..EveningVerify.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x419f28], eax
test eax, eax
je 0x401bd5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.init
push eax
call esi
push str.close
push dword [0x419f28]
mov dword [0x419f30], eax
call esi
push str.open
push dword [0x419f28]
mov dword [0x419bb4], eax
call esi
mov ecx, dword [0x419f30]
mov dword [0x419f34], eax
test ecx, ecx
je 0x401bd5
cmp dword [0x419bb4], 0
je 0x401bd5
test eax, eax
je 0x401bd5
push str.27015_27015_27015
push 0x418cf4
call ecx
add esp, 8
call dword [0x419f34]
cmp eax, 1
jne 0x401bd5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [ebp - 0x910]
push str.RunSpeedGameEvent__d
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x910]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x419dc8], eax
test eax, eax
jne 0x4019ab
push 0x10
push 0x419e60
push 0x415fd8
jmp 0x401be1
push 0x10
push 0x419e60
push 0x415f14
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403119
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x910]
push 0x415fe8
push eax
call esi
add esp, 0xc
mov dword [ebp - 0x948], 0
lea eax, [ebp - 0x910]
mov dword [ebp - 0x928], 0
xorps xmm0, xmm0
mov dword [ebp - 0x94c], eax
lea eax, [ebp - 0x960]
movlpd qword [ebp - 0x940], xmm0
push eax
movlpd qword [ebp - 0x938], xmm0
movlpd qword [ebp - 0x930], xmm0
mov dword [ebp - 0x960], 0x3c
mov dword [ebp - 0x95c], 0x40
mov dword [ebp - 0x958], 0
mov dword [ebp - 0x954], str.runas
mov dword [ebp - 0x950], 0x419bc0
mov dword [ebp - 0x944], 0xa
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x401bc7
mov eax, dword [ebp - 0x928]
mov dword [0x419e5c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x910]
push str.KartMap_Shared__d
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x910]
push eax
push 0xa17
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x419e58], eax
test eax, eax
jne 0x401aa2
push 0x10
push eax
push 0x416030
jmp 0x401be1
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x419bb8], eax
test eax, eax
jne 0x401ad4
push dword [0x419e58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
push 0
push 0x416054
jmp 0x401be1
mov ecx, edi
call fcn.00402d90
mov ecx, dword [0x419dd0]
test ecx, ecx
jne 0x401b15
mov eax, dword [0x419e5c]
test eax, eax
je 0x401be4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x419e5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x419e5c], 0
jmp 0x401be4
mov eax, dword [0x419bb8]
push 0
push 5
mov dword [eax], edi
mov dword [eax + 8], ecx
mov dword [eax + 0x34], 1
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x401b5e
mov eax, dword [0x419bb8]
lea ecx, [ebp - 0x110]
push dword [eax + 8]
add eax, 0x38
push ecx
push str._sQQ
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [0x419bb8]
push 0x419dd8
mov dword [eax + 0x13c], 0
movups xmm0, xmmword [0x418d00]
movups xmmword [eax + 0x1c0], xmm0
add eax, 0x1d4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, eax
lea eax, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x401b91
push dword [0x419dc8]
sub edx, eax
mov eax, dword [0x419bb8]
mov dword [eax + 0x1d0], edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403119
mov esp, ebp
pop ebp
ret
push 0x10
push 0x419e60
push 0x415ffc
jmp 0x401be1
push 0x10
push 0x419e60
push 0x415f78
push edi
call ebx
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403119
mov esp, ebp
pop ebp
ret