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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d7e8
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x4b74b0]
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 0x4286a2
mov ecx, dword [esi]
lea eax, [ebp - 0x314]
push eax
call fcn.004038a0
mov ecx, eax
call fcn.0044a1e0
lea eax, [ebp - 0x314]
mov dword [ebp - 4], 0
mov ebx, 5
jmp 0x4286ba
push eax
lea ecx, [ebp - 0x2e0]
call fcn.00401ff0
mov dword [ebp - 4], 1
mov ebx, 2
push eax
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x330], ebx
call fcn.00401ff0
mov dword [ebp - 4], 3
test bl, 2
je 0x428734
mov edx, dword [ebp - 0x2cc]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x428717
mov ecx, dword [ebp - 0x2e0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42870d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42876f
push edx
push ecx
call fcn.00487869
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 0x42879c
mov edx, dword [ebp - 0x300]
cmp edx, 8
jb 0x42877f
mov ecx, dword [ebp - 0x314]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x428775
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x428775
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
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.00404550
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.0041bdc0
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 0x428845
sub ecx, edx
lea eax, [ebp - 0x90]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2fc]
call fcn.00404550
mov ecx, dword [esi]
lea eax, [ebp - 0x2fc]
push eax
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 6
push eax
call fcn.0041ba60
mov edx, dword [ebp - 0x2e8]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x4288c0
mov ecx, dword [ebp - 0x2fc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4288b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428913
push edx
push ecx
call fcn.00487869
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 0x428923
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x428919
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x428919
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
add esp, 8
cmp dword [ebp - 0x2b8], 0
je 0x428f9f
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push dword [0x4be610]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.00412890
add esp, 8
test eax, eax
je 0x4289fb
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push dword [0x4be614]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.00412890
add esp, 8
test eax, eax
je 0x4289fb
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push dword [0x4be618]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.00412890
add esp, 8
test eax, eax
je 0x4289fb
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push dword [0x4be61c]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.00412890
add esp, 8
test eax, eax
je 0x4289fb
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
push dword [0x4be628]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.00412890
add esp, 8
test eax, eax
jne 0x428f9f
mov ecx, dword [esi]
lea eax, [ebp - 0x32c]
push eax
call fcn.004038a0
mov ecx, eax
call fcn.0044a2d0
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.00404550
mov ecx, dword [esi]
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 8
push eax
call fcn.0041ba60
mov edx, dword [ebp - 0x29c]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x428aa2
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x428a98
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x428a98
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
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.00404550
mov ecx, dword [esi]
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 9
push eax
call fcn.0041ba60
mov edx, dword [ebp - 0x29c]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x428b30
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x428b26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x428b26
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
add esp, 8
lea eax, [ebp - 0x2b0]
mov ecx, esi
push eax
call fcn.00426060
push eax
lea eax, [ebp - 0x2e0]
mov byte [ebp - 4], 0xa
push str.Event.ServerInited.
push eax
call fcn.00404c10
mov edx, dword [ebp - 0x29c]
add esp, 0xc
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x428b9d
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x428b93
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x428b93
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
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 0x428c03
mov ecx, dword [ebp - 0x2e0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x428bf9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x428bf9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
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.004038a0
mov ecx, eax
call fcn.0044a200
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 0x428cef
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.00407de0
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.00401ff0
add edi, 0x18
add ebx, 0x18
mov dword [ebp - 0x2ec], edi
cmp ebx, esi
jne 0x428cc4
mov eax, dword [ebp - 0x330]
mov esi, dword [ebp - 0x338]
mov byte [ebp - 4], 0xb
mov dword [eax + 4], edi
call fcn.00426570
add esp, 0xc
test al, al
je 0x428e8c
mov edi, dword [str.DEB796DA_F98E_48A4_AE1E_71411184820E]
mov ebx, dword [str.shared_memory_mutex]
call fcn.0047f530
test al, al
je 0x428d20
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.0041bdc0
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 0x428d90
sub ecx, edx
lea eax, [ebp - 0x298]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00404550
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x2e0]
mov dword [ebp - 0x2e4], 0
call fcn.00401ff0
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 0x428e09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x428e09
xor bl, bl
jmp 0x428e0b
mov bl, 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0x2e4]
test eax, eax
je 0x428e37
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.00401c10
mov edx, dword [ebp - 0x29c]
mov byte [ebp - 4], 0xb
cmp edx, 8
jb 0x428e88
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x428e7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x428e7e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
add esp, 8
test bl, bl
jne 0x428ea7
lea eax, [ebp - 0x348]
mov ecx, esi
push eax
push 1
lea eax, [ebp - 0x2c8]
push eax
call fcn.00426cb0
test al, al
jne 0x428eae
xor bl, bl
jmp 0x428f39
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.00404550
push dword [ebp - 0x340]
mov ecx, dword [esi]
lea eax, [ebp - 0x2b0]
push eax
mov byte [ebp - 4], 0xf
call fcn.0041bc40
mov edx, dword [ebp - 0x29c]
cmp edx, 8
jb 0x428f37
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x428f2d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x428f2d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
add esp, 8
mov bl, 1
lea ecx, [ebp - 0x354]
call fcn.00401b20
mov edx, dword [ebp - 0x318]
cmp edx, 8
jb 0x428f80
mov ecx, dword [ebp - 0x32c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x428f76
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428fd3
push edx
push ecx
call fcn.00487869
add esp, 8
xor eax, eax
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x318], 7
mov word [ebp - 0x32c], ax
jmp 0x428fa1
xor bl, bl
mov edx, dword [ebp - 0x2b4]
cmp edx, 8
jb 0x428fe3
mov ecx, dword [ebp - 0x2c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x428fd9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x428fd9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
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.00487877
mov esp, ebp
pop ebp
ret 4