Function at 0x401220
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa4], eax
push esi
push edi
push str.LOCALAPPDATA
lea eax, [esp + 0x60]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x64], 0
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__dupenv_s]
add esp, 0xc
test eax, eax
jne 0x4015e4
mov edi, dword [esp + 0xc]
test edi, edi
je 0x4015e4
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x401280
sub esi, ecx
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
lea eax, [esi + edi]
cmp edi, eax
jne 0x4012b3
xor edi, edi
mov ecx, 7
xor eax, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
mov word [esp + 0x10], ax
jmp 0x4013b9
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 7
cmp esi, 0x7ffffffe
ja 0x401610
mov eax, 7
cmp esi, eax
jbe 0x401376
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x401332
mov ecx, 0x7fffffff
mov dword [esp + 8], 0x7ffffffe
add ecx, ecx
cmp ecx, 0x1000
jb 0x40135d
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x401615
push eax
call fcn.004017a3
add esp, 4
test eax, eax
je 0x401478
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
jmp 0x40137a
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [esp + 8], eax
lea ecx, [eax + 1]
cmp ecx, 0x7fffffff
ja 0x401615
add ecx, ecx
jne 0x4012f7
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
jmp 0x40137a
push ecx
call fcn.004017a3
mov ecx, eax
add esp, 4
mov eax, dword [esp + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
jmp 0x40137a
mov ecx, dword [esp + 0x10]
cmp eax, 7
lea edx, [esp + 0x10]
cmova edx, ecx
mov dword [esp + 8], edx
mov ecx, edx
mov edx, esi
test esi, esi
je 0x4013a3
movsx ax, byte [edi]
lea ecx, [ecx + 2]
lea edi, [edi + 1]
mov word [ecx - 2], ax
sub edx, 1
jne 0x401390
mov eax, dword [esp + 8]
xor ecx, ecx
mov dword [esp + 0x20], esi
mov word [eax + esi*2], cx
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov eax, ecx
sub eax, edi
cmp eax, 0x1d
jb 0x4013f5
cmp ecx, 7
lea esi, [esp + 0x10]
lea eax, [edi + 0x1d]
cmova esi, dword [esp + 0x10]
push 0x3a
mov dword [esp + 0x24], eax
push str.ProgramsZaperonZaperon.exe
lea eax, [esi + edi*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 0x3a], ax
lea eax, [esp + 0x10]
jmp 0x40140c
push 0x1d
push ecx
mov byte [esp + 0x10], 0
lea ecx, [esp + 0x18]
push dword [esp + 0x10]
push 0x1d
call fcn.00401620
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
xor ecx, ecx
mov dword [esp + 0x44], 0
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x30], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esp + 0x40], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [esp + 0x24]
cmp ecx, 7
jbe 0x401488
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40147e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40147e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004017d3
add esp, 8
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, str.Health_Check.exe
call fcn.00401170
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
test al, al
je 0x401570
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [eax]
nop word [eax + eax]
cmp dword [esp + 0x44], 7
lea eax, [esp + 0x30]
cmova eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4015b4
mov ecx, str.Zaperon.exe
call fcn.00401170
test al, al
jne 0x401553
push 0x40
lea eax, [esp + 0x68]
mov dword [esp + 0x64], 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
cmp dword [esp + 0x44], 7
lea eax, [esp + 0x30]
cmova eax, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x64]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401547
push 0x10
push str.Process_Monitor
push str.Failed_to_launch_application.
push eax
call esi
jmp 0x401553
push dword [esp + 0x10]
call edi
push dword [esp + 0x14]
call edi
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, str.Health_Check.exe
call fcn.00401170
test al, al
jne 0x4014c0
push 0x10
push str.Process_Monitor
push str.Monitor_process_not_found._Exiting.
push 0
call esi
mov ecx, dword [esp + 0x44]
cmp ecx, 7
jbe 0x4015f8
mov edx, dword [esp + 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4015c2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4015c2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0x10
push str.Process_Monitor
push str.Application_path_does_not_exist._Exiting.
jmp 0x40157c
push ecx
push edx
call fcn.004017d3
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.00401795
mov esp, ebp
pop ebp
ret 0x10
push 0x10
push str.Error
push str.Failed_to_get_LOCALAPPDATA_environment_variable.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0xac]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00401795
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401160
call fcn.004010c0
int3