Function at 0x510ba0
Capabilities:
Accept command line arguments
Check mutex and terminate process on windows
Check mutex on windows
Read file via mapping
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x56d818
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
xor edi, edi
push str.StormPlayer_Mutex_Lock_DKJWDSKDJIEWDEW
push edi
mov ebp, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.StormPlayer_Mutex_IsClosing_DHWDW24adhsDWEE987sdfdf
push edi
push 0x1f0001
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
cmp eax, edi
je 0x510c8a
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov eax, dword [str.StormPlayer_PrcoShareIDName_gbhgferereeEE98721eha]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
je 0x510c90
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x510c2e
mov edi, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call ebx
test edi, edi
je 0x510c90
push edi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x510c90
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x510c67
push 0x1f4
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
jmp 0x510c90
push esi
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.StormPlayer_Mutex_238724adhsDWEE987sdfdf
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp + 0xf4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x510e52
mov edx, dword [str.StormPlayer_PrcoShareIDName_gbhgferereeEE98721eha]
mov dword [esp + 0x14], 0
push edx
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
je 0x510c6a
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x510cf5
mov ecx, dword [eax]
push eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x510c6a
mov edx, dword [str.KureePlayer_PrcoShareFullscreenHwndName_gbhgferereeEE98721eha]
xor ebx, ebx
push edx
push ebx
push 4
xor edi, edi
mov ebp, ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
je 0x510d48
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x510d41
mov ecx, eax
push eax
mov edi, dword [ecx]
mov ebp, dword [ecx + 4]
mov ebx, dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xc
jne 0x510d5b
cmp bl, 1
jne 0x510d5b
push ebp
call fcn.0044d1f0
add esp, 4
mov edx, dword [str.StormPlayer_PrcoShareHwndName_gbhgferereeEE98721eha]
xor esi, esi
push edx
push esi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
test edi, edi
je 0x510c6a
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x510d90
mov esi, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test esi, esi
je 0x510c6a
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x510dbf
push 0
push 0xf120
push 0x112
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call fcn.0044d1f0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x510c6a
xor ecx, ecx
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea edx, [eax + eax + 2]
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], edx
push 0
push 0x1f4
push 2
push eax
push 0
push 0x4a
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x510c6a
mov ecx, dword [esp + 0x14]
push ecx
push eax
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x510c6a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x510e75
push 0x1f4
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call edi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push esi
call edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret