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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4927a8
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x4be4bc]
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 0x429c62
mov ecx, dword [esi]
lea eax, [ebp - 0x314]
push eax
call fcn.004089c0
mov ecx, eax
call fcn.004088b0
lea eax, [ebp - 0x314]
mov dword [ebp - 4], 0
mov ebx, 5
jmp 0x429c7a
push eax
lea ecx, [ebp - 0x2e0]
call fcn.004016c0
mov dword [ebp - 4], 1
mov ebx, 2
push eax
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x330], ebx
call fcn.004016c0
mov dword [ebp - 4], 3
test bl, 2
je 0x429cf4
mov edx, dword [ebp - 0x2cc]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x429cd7
mov ecx, dword [ebp - 0x2e0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429ccd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x429d2f
push edx
push ecx
call fcn.0048c947
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 0x429d5c
mov edx, dword [ebp - 0x300]
cmp edx, 8
jb 0x429d3f
mov ecx, dword [ebp - 0x314]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429d35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x429d35
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
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.00402680
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.004249e0
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 0x429e05
sub ecx, edx
lea eax, [ebp - 0x90]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2fc]
call fcn.00402680
mov ecx, dword [esi]
lea eax, [ebp - 0x2fc]
push eax
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 6
push eax
call fcn.004254f0
mov edx, dword [ebp - 0x2e8]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x429e80
mov ecx, dword [ebp - 0x2fc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429e76
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x429ed3
push edx
push ecx
call fcn.0048c947
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 0x429ee3
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429ed9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x429ed9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
cmp dword [ebp - 0x2b8], 0
je 0x42a55f
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push dword [0x4c27a4]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.00451c10
add esp, 8
test eax, eax
je 0x429fbb
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push dword [0x4c27a8]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.00451c10
add esp, 8
test eax, eax
je 0x429fbb
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push dword [0x4c27ac]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.00451c10
add esp, 8
test eax, eax
je 0x429fbb
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push dword [0x4c27b0]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.00451c10
add esp, 8
test eax, eax
je 0x429fbb
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push dword [0x4c27bc]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.00451c10
add esp, 8
test eax, eax
jne 0x42a55f
mov ecx, dword [esi]
lea eax, [ebp - 0x32c]
push eax
call fcn.004089c0
mov ecx, eax
call fcn.004089a0
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.00402680
mov ecx, dword [esi]
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 8
push eax
call fcn.004254f0
mov edx, dword [ebp - 0x29c]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x42a062
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a058
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42a058
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
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.00402680
mov ecx, dword [esi]
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 9
push eax
call fcn.004254f0
mov edx, dword [ebp - 0x29c]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x42a0f0
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a0e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42a0e6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
lea eax, [ebp - 0x2b0]
mov ecx, esi
push eax
call fcn.00427620
push eax
lea eax, [ebp - 0x2e0]
mov byte [ebp - 4], 0xa
push str.Event.ServerInited.
push eax
call fcn.0041afd0
mov edx, dword [ebp - 0x29c]
add esp, 0xc
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x42a15d
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a153
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42a153
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
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 0x42a1c3
mov ecx, dword [ebp - 0x2e0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a1b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42a1b9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
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.004089c0
mov ecx, eax
call fcn.004088d0
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 0x42a2af
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.004087d0
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.004016c0
add edi, 0x18
add ebx, 0x18
mov dword [ebp - 0x2ec], edi
cmp ebx, esi
jne 0x42a284
mov eax, dword [ebp - 0x330]
mov esi, dword [ebp - 0x338]
mov byte [ebp - 4], 0xb
mov dword [eax + 4], edi
call fcn.00427b30
add esp, 0xc
test al, al
je 0x42a44c
mov edi, dword [str.DEB796DA_F98E_48A4_AE1E_71411184820E]
mov ebx, dword [str.shared_memory_mutex]
call fcn.00481580
test al, al
je 0x42a2e0
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.004249e0
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 0x42a350
sub ecx, edx
lea eax, [ebp - 0x298]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00402680
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x2e0]
mov dword [ebp - 0x2e4], 0
call fcn.004016c0
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 0x42a3c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x42a3c9
xor bl, bl
jmp 0x42a3cb
mov bl, 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0x2e4]
test eax, eax
je 0x42a3f7
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.004022d0
mov edx, dword [ebp - 0x29c]
mov byte [ebp - 4], 0xb
cmp edx, 8
jb 0x42a448
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a43e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42a43e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
test bl, bl
jne 0x42a467
lea eax, [ebp - 0x348]
mov ecx, esi
push eax
push 1
lea eax, [ebp - 0x2c8]
push eax
call fcn.00428270
test al, al
jne 0x42a46e
xor bl, bl
jmp 0x42a4f9
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.00402680
push dword [ebp - 0x340]
mov ecx, dword [esi]
lea eax, [ebp - 0x2b0]
push eax
mov byte [ebp - 4], 0xf
call fcn.004256d0
mov edx, dword [ebp - 0x29c]
cmp edx, 8
jb 0x42a4f7
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a4ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42a4ed
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
mov bl, 1
lea ecx, [ebp - 0x354]
call fcn.00408730
mov edx, dword [ebp - 0x318]
cmp edx, 8
jb 0x42a540
mov ecx, dword [ebp - 0x32c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a536
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a593
push edx
push ecx
call fcn.0048c947
add esp, 8
xor eax, eax
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x318], 7
mov word [ebp - 0x32c], ax
jmp 0x42a561
xor bl, bl
mov edx, dword [ebp - 0x2b4]
cmp edx, 8
jb 0x42a5a3
mov ecx, dword [ebp - 0x2c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a599
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42a599
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
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.0048cbb4
mov esp, ebp
pop ebp
ret 4