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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x4bf434]
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 0x428e42
mov ecx, dword [esi]
lea eax, [ebp - 0x314]
push eax
call fcn.004030b0
mov ecx, eax
call fcn.0042af20
lea eax, [ebp - 0x314]
mov dword [ebp - 4], 0
mov ebx, 5
jmp 0x428e5a
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 0x428ed4
mov edx, dword [ebp - 0x2cc]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x428eb7
mov ecx, dword [ebp - 0x2e0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x428ead
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428f0f
push edx
push ecx
call fcn.00488034
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 0x428f3c
mov edx, dword [ebp - 0x300]
cmp edx, 8
jb 0x428f1f
mov ecx, dword [ebp - 0x314]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x428f15
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x428f15
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
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.00425030
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 0x428fe5
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.00425b50
mov edx, dword [ebp - 0x2e8]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x429060
mov ecx, dword [ebp - 0x2fc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429056
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4290b3
push edx
push ecx
call fcn.00488034
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 0x4290c3
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4290b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4290b9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
add esp, 8
cmp dword [ebp - 0x2b8], 0
je 0x42973f
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push dword [0x4c4d58]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.00410e90
add esp, 8
test eax, eax
je 0x42919b
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push dword [0x4c4d5c]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.00410e90
add esp, 8
test eax, eax
je 0x42919b
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push dword [0x4c4d60]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.00410e90
add esp, 8
test eax, eax
je 0x42919b
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push dword [0x4c4d64]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.00410e90
add esp, 8
test eax, eax
je 0x42919b
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push dword [0x4c4d70]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.00410e90
add esp, 8
test eax, eax
jne 0x42973f
mov ecx, dword [esi]
lea eax, [ebp - 0x32c]
push eax
call fcn.004030b0
mov ecx, eax
call fcn.0042b010
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.00425b50
mov edx, dword [ebp - 0x29c]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x429242
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429238
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x429238
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
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.00425b50
mov edx, dword [ebp - 0x29c]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x4292d0
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4292c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4292c6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
add esp, 8
lea eax, [ebp - 0x2b0]
mov ecx, esi
push eax
call fcn.004267c0
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 0x42933d
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429333
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x429333
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
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 0x4293a3
mov ecx, dword [ebp - 0x2e0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429399
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x429399
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
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.0042af40
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 0x42948f
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 0x429464
mov eax, dword [ebp - 0x330]
mov esi, dword [ebp - 0x338]
mov byte [ebp - 4], 0xb
mov dword [eax + 4], edi
call fcn.00426cd0
add esp, 0xc
test al, al
je 0x42962c
mov edi, dword [str.DEB796DA_F98E_48A4_AE1E_71411184820E]
mov ebx, dword [str.shared_memory_mutex]
call fcn.00478900
test al, al
je 0x4294c0
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.00425030
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 0x429530
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 0x4295a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4295a9
xor bl, bl
jmp 0x4295ab
mov bl, 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0x2e4]
test eax, eax
je 0x4295d7
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 0x429628
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42961e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42961e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
add esp, 8
test bl, bl
jne 0x429647
lea eax, [ebp - 0x348]
mov ecx, esi
push eax
push 1
lea eax, [ebp - 0x2c8]
push eax
call fcn.00427410
test al, al
jne 0x42964e
xor bl, bl
jmp 0x4296d9
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.00425d30
mov edx, dword [ebp - 0x29c]
cmp edx, 8
jb 0x4296d7
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4296cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4296cd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
add esp, 8
mov bl, 1
lea ecx, [ebp - 0x354]
call fcn.00401bb0
mov edx, dword [ebp - 0x318]
cmp edx, 8
jb 0x429720
mov ecx, dword [ebp - 0x32c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429716
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x429773
push edx
push ecx
call fcn.00488034
add esp, 8
xor eax, eax
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x318], 7
mov word [ebp - 0x32c], ax
jmp 0x429741
xor bl, bl
mov edx, dword [ebp - 0x2b4]
cmp edx, 8
jb 0x429783
mov ecx, dword [ebp - 0x2c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429779
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x429779
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
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.00488042
mov esp, ebp
pop ebp
ret 4