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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0x521a54
push 0
mov ebp, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x49f4dc
mov eax, dword [0x5218ec]
xor edi, edi
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
je 0x49f4dc
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x49f4a7
mov edi, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x49f4dc
push edi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x49f4dc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x49f61a
jmp 0x49f5fa
test ebx, ebx
je 0x49f4e7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x521ab0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp + 0xc8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x49f60d
mov ecx, dword [0x5218ec]
mov edi, dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
xor ebp, ebp
push ecx
push ebp
push 4
call edi
mov esi, eax
test esi, esi
je 0x49f652
push ebp
push ebp
push ebp
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x49f544
mov ebp, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x49f652
mov edx, dword [0x5218e8]
xor ebx, ebx
push edx
push ebx
push 4
call edi
mov esi, eax
test esi, esi
je 0x49f62b
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x49f584
mov ebx, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x49f62b
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
test eax, eax
je 0x49f62b
xor ecx, ecx
mov edi, eax
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x18], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
push eax
push 0x32
push 2
push edx
push eax
push 0x4a
not ecx
push ebx
mov dword [esp + 0x30], ecx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x49f62b
push ebp
push eax
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x49f62b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x49f61a
push 0x1f4
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x49f649
push 0
push 0xf120
push 0x112
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
call fcn.00420de0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret