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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541345
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x58d038]
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 eax, dword [ebp + 8]
xor ebx, ebx
or edi, 0xffffffff
test byte [0x593650], 1
mov dword [ebp - 0x294], eax
jne 0x436c4c
or dword [0x593650], 1
xor ecx, ecx
push 0x26
mov word [0x593634], cx
mov esi, 7
push str.DEB796DA_F98E_48A4_AE1E_71411184820E
mov ecx, 0x593634
mov dword [ebp - 4], ebx
mov dword [0x593648], esi
mov dword [0x593644], ebx
call fcn.00401b70
push 0x549500
call fcn.00481a9d
add esp, 4
mov dword [ebp - 4], edi
jmp 0x436c51
mov esi, 7
test byte [0x593650], 2
jne 0x436c9e
or dword [0x593650], 2
push 0x13
xor edx, edx
push str.shared_memory_mutex
mov ecx, 0x593618
mov dword [ebp - 4], 1
mov dword [0x59362c], esi
mov dword [0x593628], ebx
mov word [0x593618], dx
call fcn.00401b70
push 0x5494c0
call fcn.00481a9d
add esp, 4
mov dword [ebp - 4], edi
test byte [0x593650], 4
jne 0x436cea
or dword [0x593650], 4
push 0x15
xor eax, eax
push str.shared_memory_content
mov ecx, 0x5935fc
mov dword [ebp - 4], 2
mov dword [0x593610], esi
mov dword [0x59360c], ebx
mov word [0x5935fc], ax
call fcn.00401b70
push 0x549480
call fcn.00481a9d
add esp, 4
mov dword [ebp - 4], edi
test byte [0x593650], 8
jne 0x436d37
or dword [0x593650], 8
xor ecx, ecx
push 0x26
mov word [0x5935e0], cx
push str.DEB796DA_F98E_48A4_AE1E_71411184821F
mov ecx, 0x5935e0
mov dword [ebp - 4], 3
mov dword [0x5935f4], esi
mov dword [0x5935f0], ebx
call fcn.00401b70
push 0x549440
call fcn.00481a9d
add esp, 4
mov dword [ebp - 4], edi
mov eax, 0x10
test byte [0x593650], al
jne 0x436d87
or dword [0x593650], eax
push 0x17
xor edx, edx
push str.uwp_shared_memory_mutex
mov ecx, 0x5935c4
mov dword [ebp - 4], 4
mov dword [0x5935d8], esi
mov dword [0x5935d4], ebx
mov word [0x5935c4], dx
call fcn.00401b70
push 0x549400
call fcn.00481a9d
add esp, 4
mov dword [ebp - 4], edi
mov eax, 0x20
test byte [0x593650], al
jne 0x436dd6
or dword [0x593650], eax
push 0x19
xor eax, eax
push str.uwp_shared_memory_content
mov ecx, 0x5935a8
mov dword [ebp - 4], 5
mov dword [0x5935bc], esi
mov dword [0x5935b8], ebx
mov word [0x5935a8], ax
call fcn.00401b70
push 0x5493c0
call fcn.00481a9d
add esp, 4
mov dword [ebp - 4], edi
push edi
xor ecx, ecx
push ebx
mov word [ebp - 0x28c], cx
push 0x593634
lea ecx, [ebp - 0x28c]
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x27c], ebx
call fcn.00401a70
push edi
push ebx
xor edx, edx
push 0x593618
lea ecx, [ebp - 0x254]
mov dword [ebp - 4], 6
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x244], ebx
mov word [ebp - 0x254], dx
call fcn.00401a70
mov byte [ebp - 4], 7
call fcn.00469550
test al, al
je 0x436e5c
push edi
push ebx
push 0x5935e0
lea ecx, [ebp - 0x28c]
call fcn.00401a70
push edi
push ebx
push 0x5935c4
lea ecx, [ebp - 0x254]
call fcn.00401a70
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00480280
mov edx, dword [ebp - 0x28c]
mov ecx, 8
add esp, 0xc
cmp dword [ebp - 0x278], ecx
jae 0x436e8a
lea edx, [ebp - 0x28c]
mov eax, dword [ebp - 0x294]
cmp dword [eax + 0x14], ecx
jb 0x436e97
mov eax, dword [eax]
cmp dword [ebp - 0x240], ecx
mov ecx, dword [ebp - 0x254]
jae 0x436eab
lea ecx, [ebp - 0x254]
push edx
push eax
push ecx
push str._ws__ws_starup_object__ws
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.00482a49
add esp, 0x18
xor edx, edx
lea eax, [ebp - 0x218]
mov word [ebp - 0x270], dx
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x260], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436ee5
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x270]
call fcn.00401b70
push edi
xor ecx, ecx
push ebx
lea edx, [ebp - 0x270]
mov word [ebp - 0x234], cx
push edx
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 8
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
call fcn.00401a70
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x436f4f
lea eax, [ebp - 0x234]
push eax
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edi, eax
cmp edi, ebx
jne 0x436f73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0x28d], bl
cmp eax, 2
je 0x436f7a
mov byte [ebp - 0x28d], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0x238]
cmp eax, ebx
je 0x436fa3
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x238]
push eax
call edi
mov dword [ebp - 0x238], ebx
mov edi, 8
cmp dword [ebp - 0x220], edi
jb 0x436fbf
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.00480102
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
cmp dword [ebp - 0x25c], edi
jb 0x436feb
mov eax, dword [ebp - 0x270]
push eax
call fcn.00480102
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x260], ebx
mov word [ebp - 0x270], cx
cmp dword [ebp - 0x240], edi
jb 0x437017
mov edx, dword [ebp - 0x254]
push edx
call fcn.00480102
add esp, 4
xor eax, eax
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x244], ebx
mov word [ebp - 0x254], ax
cmp dword [ebp - 0x278], edi
jb 0x437043
mov ecx, dword [ebp - 0x28c]
push ecx
call fcn.00480102
add esp, 4
mov al, byte [ebp - 0x28d]
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.00480264
mov esp, ebp
pop ebp
ret