Function at 0x40ebe0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425a8b
mov eax, dword fs:[0]
push eax
sub esp, 0x550
mov eax, dword [0x444624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ecx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x444], ecx
mov cl, byte [ebp - 0x4c1]
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x448]
mov dword [ebp - fcn.00407e10], vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__int____stdcall___void___unsigned_long_int__void____void___int__struct_std::_Ph_1__const____int__wchar_t__.0
mov byte [ebp - 0x440], cl
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 0
call fcn.0040ea70
mov ecx, dword [ebp - 0x424]
xor esi, esi
mov dword [ebp - 0x454], esi
mov ebx, eax
test ecx, ecx
je 0x40ecd7
lea eax, [ebp - 0x448]
cmp ecx, eax
jne 0x40ecc7
mov eax, dword [ecx]
lea edx, [ebp - 0x478]
push edx
call dword [eax + 4]
mov ecx, dword [ebp - 0x424]
mov esi, eax
mov dword [ebp - 0x454], esi
test ecx, ecx
je 0x40ecd7
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x448]
cmp ecx, eax
setne al
push eax
call edx
mov esi, dword [ebp - 0x454]
jmp 0x40eccf
mov esi, ecx
mov dword [ebp - 0x454], esi
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x450], ebx
mov byte [ebp - 4], 2
test ecx, ecx
je 0x40ed0e
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x448]
cmp ecx, eax
setne al
push eax
call edx
mov ebx, dword [ebp - 0x450]
mov esi, dword [ebp - 0x454]
mov dword [ebp - 0x424], 0
test ebx, ebx
je 0x40f0f4
lea ecx, [ebp - 0x218]
mov edi, ebx
mov eax, ecx
mov edx, 0x104
sub edi, eax
jmp 0x40ed30
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40ed4e
movzx eax, word [ecx + edi]
test ax, ax
je 0x40ed4e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40ed30
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
jne 0x40ed6d
xor eax, eax
mov word [ebp - 0x218], ax
jmp 0x40f0f4
lea ecx, [ebp - 0x420]
mov edi, ebx
mov eax, ecx
mov edx, 0x104
sub edi, eax
mov edi, edi
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40ed9e
movzx eax, word [ecx + edi]
test ax, ax
je 0x40ed9e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40ed80
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
jne 0x40edbd
xor eax, eax
mov word [ebp - 0x420], ax
jmp 0x40f0f4
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push 0x426480
push eax
call esi
push str.3kvpet.exe
lea eax, [ebp - 0x218]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x40ee6d
push 0x1c
lea eax, [ebp - 0x518]
push eax
push fcn.0040ebe0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
ja 0x40ee6d
push 0x104
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x514]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x420]
push str.kvpet.exe
push eax
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x40ee6d
push str.kvpet.exe
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call esi
push 1
lea eax, [ebp - 0x4fc]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x40f0e8
push 0
push 0
push 1
lea eax, [ebp - 0x4fc]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x40f0e8
push dword [ebp - 0x4cc]
lea eax, [ebp - 0x490]
push eax
call fcn.004116e0
mov eax, dword [ebp - 0x480]
add esp, 8
mov dword [ebp - 0x4d8], 0xc
mov dword [ebp - 0x4d0], 1
push 0
lea edi, [eax*2 + 2]
push edi
push 0
lea eax, [ebp - 0x4fc]
mov dword [ebp - 0x4d4], eax
lea eax, [ebp - 0x4d8]
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x40ef04
xor edi, edi
jmp 0x40f0c0
push edi
push 0
push 0
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x40ef1f
xor edi, edi
jmp 0x40f0b1
cmp dword [ebp - 0x47c], 8
lea eax, [ebp - 0x490]
cmovae eax, dword [ebp - 0x490]
test edi, edi
je 0x40ef63
push edi
test eax, eax
je 0x40ef48
push eax
push esi
call fcn.00413b20
add esp, 0xc
jmp 0x40ef63
push 0
push esi
call fcn.004140a0
add esp, 0xc
call fcn.00415ad9
mov dword [eax], 0x16
call fcn.004159ff
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ecx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x448]
push eax
mov dword [ebp - 0x444], ecx
mov cl, byte [ebp - 0x4c1]
push 0x802
push 8
mov dword [ebp - fcn.00407e10], vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__int____stdcall___void___unsigned_long_int__void____void___int__struct_std::_Ph_1__const____int__wchar_t__.0
mov byte [ebp - 0x440], cl
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x424], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
lea ecx, [ebp - 0x4c0]
call fcn.004012d0
lea ecx, [ebp - 0x448]
call fcn.00402630
mov eax, dword [ebp - 0x498]
test eax, eax
je 0x40f09c
push edi
push ebx
push dword [ebp - 0x4c8]
lea ecx, [ebp - 0x218]
push ecx
push str._s__s_0x_x__0x_x
push 0x1900
push 0
push 0
push 0x400
push eax
call fcn.00406fc0
add esp, 0x28
test eax, eax
js 0x40f09c
push 0x40
lea eax, [ebp - 0x558]
mov dword [ebp - 0x55c], 0x44
push 0
push eax
call fcn.004140a0
add esp, 0xc
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x55c]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0x4000000
push 1
push 0
push 0
push dword [ebp - 0x498]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40f0a4
push dword [ebp - 0x4e4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test eax, eax
je 0x40f090
push dword [ebp - 0x4e8]
call edi
test eax, eax
je 0x40f090
mov edi, 1
jmp 0x40f0a6
mov dword [0], 0
jmp 0x40f090
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
lea ecx, [ebp - 0x4c0]
call fcn.00402690
mov byte [ebp - 4], 0xa
test esi, esi
je 0x40f0c0
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov byte [ebp - 4], 0xb
test ebx, ebx
je 0x40f0cf
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x490]
call fcn.0040e3e0
mov ebx, dword [ebp - 0x450]
mov esi, dword [ebp - 0x454]
jmp 0x40f0f6
mov ebx, dword [ebp - 0x450]
mov esi, dword [ebp - 0x454]
xor edi, edi
mov dword [ebp - 4], 0xc
test ebx, ebx
je 0x40f11f
mov dword [ebp - 0x4c8], ebx
test esi, esi
je 0x40f157
mov eax, dword [esi]
lea ecx, [ebp - 0x4c8]
push ecx
mov ecx, esi
call dword [eax + 8]
mov esi, dword [ebp - 0x454]
test esi, esi
je 0x40f139
mov edx, dword [esi]
lea eax, [ebp - 0x478]
cmp esi, eax
setne cl
movzx ecx, cl
push ecx
mov ecx, esi
call dword [edx + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call int.0041284a
mov esp, ebp
pop ebp
ret
call fcn.00412550
int3