Function at 0x401600
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401210
push 0x404498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff90
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x58], ebx
mov edi, 1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp + 8]
mov dword [0x4097d0], esi
push str.Mapi_Server
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x34], eax
cmp eax, ebx
jne 0x401675
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x401874
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401874
mov dword [ebp - 0x2c], 1
push str.Mapi_Server_Window
push str.Mapi_Server
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x4016ba
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.004026e0
test eax, eax
je 0x401874
xor edi, edi
jmp 0x401874
cmp dword [ebp + 0xc], ebx
jne 0x401701
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], 0x401ac0
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], str.Mapi_Server
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x401701
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x401874
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
jl 0x4017f5
mov edi, 1
mov dword [ebp - 0x20], edi
push ebx
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.Mapi_Server_Window
push str.Mapi_Server
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4097d4], eax
cmp eax, ebx
je 0x4017f5
call fcn.004018b0
test eax, eax
je 0x4017f5
mov dword [ebp - 0x58], edi
call fcn.00401bb0
test eax, eax
je 0x4017f5
push 0x409810
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x409828], edi
lea edx, [ebp - 0x54]
push edx
call fcn.00401cf0
cmp eax, ebx
jl 0x4017f5
lea eax, [ebp - 0x28]
push eax
push edi
push 4
mov ecx, dword [ebp - 0x54]
push ecx
push 0x401260
call dword [sym.imp.ole32.dll_CoRegisterClassObject]
cmp eax, ebx
jge 0x40179f
mov edx, dword [ebp - 0x54]
push edx
call fcn.00401e20
jmp 0x4017f5
mov eax, dword [0x4097d4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004026e0
test eax, eax
je 0x4017f5
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp - 0x2c], ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x50]
push eax
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
call esi
test eax, eax
je 0x4017f5
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x50]
push ecx
call edi
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x50]
push eax
call esi
test eax, eax
jne 0x4017d8
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x401813
push eax
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x54]
cmp eax, ebx
je 0x401813
push eax
call fcn.00401e20
cmp dword [0x409828], ebx
je 0x40182c
push 0x409810
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x409828], ebx
cmp dword [ebp - 0x58], ebx
je 0x401836
call fcn.00401a50
cmp dword [ebp - 0x20], ebx
je 0x40185f
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], 0xffffffff
jmp 0x40185f
mov ecx, dword [0x4097d0]
push ecx
push str.Mapi_Server
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov edi, dword [ebp - 0x48]
mov esi, dword [ebp - 0x34]
cmp esi, ebx
je 0x40188e
cmp dword [ebp - 0x2c], ebx
je 0x401887
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10