Function at 0x428d90
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493628
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x4be434]
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 esi, ecx
mov dword [ebp - 0x338], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x330], 0
cmp dword [eax + 0x10], 0
jne 0x428e02
mov ecx, dword [esi]
lea eax, [ebp - 0x314]
push eax
call fcn.004030b0
mov ecx, eax
call fcn.0042aef0
lea eax, [ebp - 0x314]
mov dword [ebp - 4], 0
mov ebx, 5
jmp 0x428e1a
push eax
lea ecx, [ebp - 0x2e0]
call fcn.00402080
mov dword [ebp - 4], 1
mov ebx, 2
push eax
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x330], ebx
call fcn.00402080
mov dword [ebp - 4], 3
test bl, 2
je 0x428e94
mov edx, dword [ebp - 0x2cc]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x428e77
mov ecx, dword [ebp - 0x2e0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x428e6d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428ecf
push edx
push ecx
call fcn.004876f4
add esp, 8
xor eax, eax
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2cc], 7
mov word [ebp - 0x2e0], ax
mov byte [ebp - 4], 4
test bl, 1
je 0x428efc
mov edx, dword [ebp - 0x300]
cmp edx, 8
jb 0x428edf
mov ecx, dword [ebp - 0x314]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x428ed5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x428ed5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
xor eax, eax
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x300], 7
mov word [ebp - 0x314], ax
push 0x10
xor eax, eax
mov dword [ebp - 0x2a0], 0
push str.prome_pipe_token
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x29c], 7
mov word [ebp - 0x2b0], ax
call fcn.00407630
push 0
mov byte [ebp - 4], 5
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.kprometheus._d._d._d
lea eax, [ebp - 0x90]
push 0x3f
push eax
call fcn.00424ff0
add esp, 0x18
mov dword [ebp - 0x2ec], 0
xor eax, eax
mov dword [ebp - 0x2e8], 7
lea ecx, [ebp - 0x90]
mov word [ebp - 0x2fc], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428fa5
sub ecx, edx
lea eax, [ebp - 0x90]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2fc]
call fcn.00407630
mov ecx, dword [esi]
lea eax, [ebp - 0x2fc]
push eax
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 6
push eax
call fcn.00425b10
mov edx, dword [ebp - 0x2e8]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x429020
mov ecx, dword [ebp - 0x2fc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429016
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x429073
push edx
push ecx
call fcn.004876f4
add esp, 8
mov edx, dword [ebp - 0x29c]
xor eax, eax
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 7
mov word [ebp - 0x2fc], ax
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x429083
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429079
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x429079
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
cmp dword [ebp - 0x2b8], 0
je 0x4296ff
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push dword [0x4c3d68]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.00410ed0
add esp, 8
test eax, eax
je 0x42915b
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push dword [0x4c3d6c]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.00410ed0
add esp, 8
test eax, eax
je 0x42915b
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push dword [0x4c3d70]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.00410ed0
add esp, 8
test eax, eax
je 0x42915b
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push dword [0x4c3d74]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.00410ed0
add esp, 8
test eax, eax
je 0x42915b
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push dword [0x4c3d80]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.00410ed0
add esp, 8
test eax, eax
jne 0x4296ff
mov ecx, dword [esi]
lea eax, [ebp - 0x32c]
push eax
call fcn.004030b0
mov ecx, eax
call fcn.0042afe0
push 0xe
xor eax, eax
mov byte [ebp - 4], 7
push str.prestarted_app
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x29c], 7
mov word [ebp - 0x2b0], ax
call fcn.00407630
mov ecx, dword [esi]
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 8
push eax
call fcn.00425b10
mov edx, dword [ebp - 0x29c]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x429202
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4291f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4291f8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
push 0x16
xor eax, eax
mov dword [ebp - 0x2a0], 0
push str.prestarted_app_cmdline
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x29c], 7
mov word [ebp - 0x2b0], ax
call fcn.00407630
mov ecx, dword [esi]
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 9
push eax
call fcn.00425b10
mov edx, dword [ebp - 0x29c]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x429290
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429286
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x429286
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
lea eax, [ebp - 0x2b0]
mov ecx, esi
push eax
call fcn.00426780
push eax
lea eax, [ebp - 0x2e0]
mov byte [ebp - 4], 0xa
push str.Event.ServerInited.
push eax
call fcn.00404410
mov edx, dword [ebp - 0x29c]
add esp, 0xc
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x4292fd
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4292f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4292f3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
cmp dword [ebp - 0x2cc], 8
lea eax, [ebp - 0x2e0]
cmovae eax, dword [ebp - 0x2e0]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 0x2cc]
mov dword [esi + 4], eax
cmp edx, 8
jb 0x429363
mov ecx, dword [ebp - 0x2e0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429359
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x429359
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
mov ecx, dword [esi]
xor eax, eax
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x33c], eax
lea eax, [ebp - 0x354]
push eax
call fcn.004030b0
mov ecx, eax
call fcn.0042af10
sub esp, 0xc
mov byte [ebp - 4], 0xb
mov edi, esp
mov dword [ebp - 0x330], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [ebp - 0x350]
mov ebx, dword [ebp - 0x354]
mov dword [ebp - 0x334], eax
cmp ebx, eax
je 0x42944f
mov ecx, eax
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
mov ecx, edi
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
push esi
call fcn.00407420
mov edi, eax
lea ecx, [esi + esi*2]
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x358], eax
lea ecx, [edi + ecx*8]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [ebp - 0x2f0], edi
mov dword [ebp - 0x2ec], edi
mov dword [ebp - 0x2e8], eax
mov esi, dword [ebp - 0x334]
mov byte [ebp - 4], 0xd
push ebx
mov ecx, edi
call fcn.00402080
add edi, 0x18
add ebx, 0x18
mov dword [ebp - 0x2ec], edi
cmp ebx, esi
jne 0x429424
mov eax, dword [ebp - 0x330]
mov esi, dword [ebp - 0x338]
mov byte [ebp - 4], 0xb
mov dword [eax + 4], edi
call fcn.00426c90
add esp, 0xc
test al, al
je 0x4295ec
mov edi, dword [str.DEB796DA_F98E_48A4_AE1E_71411184820E]
mov ebx, dword [str.shared_memory_mutex]
call fcn.00477fc0
test al, al
je 0x429480
mov edi, dword [str.DEB796DA_F98E_48A4_AE1E_71411184821F]
mov ebx, dword [str.uwp_shared_memory_mutex]
push 0x208
lea eax, [ebp - 0x298]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push edi
cmovae eax, dword [ebp - 0x2c8]
push eax
push ebx
push str._ws__ws_starup_object__ws
lea eax, [ebp - 0x298]
push 0x104
push eax
call fcn.00424ff0
add esp, 0x24
mov dword [ebp - 0x2a0], 0
xor eax, eax
mov dword [ebp - 0x29c], 7
lea ecx, [ebp - 0x298]
mov word [ebp - 0x2b0], ax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4294f0
sub ecx, edx
lea eax, [ebp - 0x298]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00407630
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x2e0]
mov dword [ebp - 0x2e4], 0
call fcn.00402080
cmp dword [ebp - 0x2cc], 8
lea eax, [ebp - 0x2e0]
cmovae eax, dword [ebp - 0x2e0]
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edi, eax
test edi, edi
jne 0x429569
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x429569
xor bl, bl
jmp 0x42956b
mov bl, 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0x2e4]
test eax, eax
je 0x429597
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x2e4]
call edi
mov dword [ebp - 0x2e4], 0
lea ecx, [ebp - 0x2e0]
call fcn.00401ca0
mov edx, dword [ebp - 0x29c]
mov byte [ebp - 4], 0xb
cmp edx, 8
jb 0x4295e8
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4295de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4295de
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
test bl, bl
jne 0x429607
lea eax, [ebp - 0x348]
mov ecx, esi
push eax
push 1
lea eax, [ebp - 0x2c8]
push eax
call fcn.004273d0
test al, al
jne 0x42960e
xor bl, bl
jmp 0x429699
push 0x12
xor eax, eax
mov dword [ebp - 0x2a0], 0
push str.prestarted_app_pid
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x29c], 7
mov word [ebp - 0x2b0], ax
call fcn.00407630
push dword [ebp - 0x340]
mov ecx, dword [esi]
lea eax, [ebp - 0x2b0]
push eax
mov byte [ebp - 4], 0xf
call fcn.00425cf0
mov edx, dword [ebp - 0x29c]
cmp edx, 8
jb 0x429697
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42968d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42968d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
mov bl, 1
lea ecx, [ebp - 0x354]
call fcn.00401bb0
mov edx, dword [ebp - 0x318]
cmp edx, 8
jb 0x4296e0
mov ecx, dword [ebp - 0x32c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4296d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x429733
push edx
push ecx
call fcn.004876f4
add esp, 8
xor eax, eax
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x318], 7
mov word [ebp - 0x32c], ax
jmp 0x429701
xor bl, bl
mov edx, dword [ebp - 0x2b4]
cmp edx, 8
jb 0x429743
mov ecx, dword [ebp - 0x2c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429739
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x429739
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
mov al, bl
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 fcn.00487702
mov esp, ebp
pop ebp
ret 4