Function at 0x4051d0
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
sub esp, 0x68
mov eax, dword [0x42f180]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x74], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
mov esi, eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [esp + 0x7c]
push 0
push eax
push 0x42f068
mov ecx, 0x4300f4
call fcn.00401a70
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea ecx, [esp + 0x7c]
push ecx
push esi
mov dword [0x430124], eax
mov dword [esp + 0x84], 0
call fcn.00404e40
mov ecx, 0xb
mov esi, str.LocalmutexPeerAdapter
lea edi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
add esp, 8
lea edx, [esp + 0x44]
push edx
push 1
push 0
mov ebx, eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebp, eax
push 0x1388
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x405299
mov ecx, 0x4300f4
call fcn.004021b0
call dword [sym.imp.ole32.dll_CoUninitialize]
test ebp, ebp
je 0x405284
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x64]
call fcn.00419d15
add esp, 0x68
ret 0x10
test ebx, ebx
je 0x4053b9
push 1
push 4
mov ecx, 0x4300f4
call fcn.00402250
mov ecx, 0xb
mov esi, str.Local_shmPeerAdapterE
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea ecx, [esp + 0x10]
push ecx
push 0xf
xor eax, eax
mov dword [esp + 0x44], eax
push eax
push 4
push eax
push 0xffffffffffffffff
or ebx, 0xffffffff
mov word [esp + 0x58], ax
call esi
test eax, eax
jne 0x40531a
inc ebx
cmp ebx, 0x1e
jge 0x405316
push ebx
lea edx, [esp + 0x14]
push str.Local_shmPeerAdapterE_d
push edx
call fcn.0041ab14
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0xf
push 0
push 4
push 0
push 0xffffffffffffffff
call esi
test eax, eax
je 0x4052e6
jmp 0x40531a
test eax, eax
je 0x405347
push 0xf
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [0x430124]
push ecx
mov esi, eax
push 0x427940
push esi
call fcn.0041ab14
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea edx, [esp + 0x50]
push edx
call esi
test eax, eax
je 0x40537c
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0x44]
push eax
call edi
push 0
push 0
push 0
lea ecx, [esp + 0x50]
push ecx
call esi
test eax, eax
jne 0x405364
mov esi, dword [0x430120]
xor eax, eax
test esi, esi
je 0x4053af
cmp dword [esi], 0
je 0x4053af
mov edi, dword [sym.imp.ole32.dll_CoRevokeClassObject]
test eax, eax
jne 0x4053b9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4053a1
push eax
call edi
mov ecx, dword [esi + 0x24]
add esi, 0x24
test ecx, ecx
jne 0x405393
test eax, eax
jne 0x4053b9
push 0x430b6c
call fcn.00401b50
mov ecx, 0x4300f4
call fcn.004021b0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, dword [esp + 0x7c]
test esi, esi
je 0x405272
cmp esi, 1
je 0x405272
test ebp, ebp
je 0x4053fb
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x74]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
call fcn.00419d15
add esp, 0x68
ret 0x10