Function at 0x1005362
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
xor ebx, ebx
inc ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x40
mov edi, 0x1007088
push edi
push 0x386
push eax
mov dword [0x100710c], eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x1001698
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10053dc
push esi
push str.DialerClass
call dword [sym.imp.USER32.dll_FindWindowW]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x100556b
mov eax, dword [sym.imp.USER32.dll_DefDlgProcW]
mov dword [ebp - 0x48], eax
mov eax, dword [0x100710c]
push ebx
push eax
mov dword [ebp - 0x4c], 0x2808
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], 0x1e
mov dword [ebp - 0x3c], eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push esi
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 6
mov dword [ebp - 0x34], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], str.DialerClass
call dword [sym.imp.USER32.dll_RegisterClassW]
push esi
push 0x1004a9c
push esi
push 0xc8
push dword [0x100710c]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [0x1007f3c], eax
call fcn.01002f52
push 5
push dword [0x1007f3c]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x1007f3c]
call dword [sym.imp.USER32.dll_UpdateWindow]
push esi
push 0x50
push 0x141
push 0xc9
push dword [0x1007f3c]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
call fcn.010040a7
cmp eax, esi
mov dword [ebp - 8], eax
je 0x10054b2
push 0x30
push eax
push dword [0x1007f3c]
call fcn.01001b33
call fcn.01001fe7
mov eax, dword [ebp - 8]
jmp 0x100556b
push ebx
push ebx
push esi
push dword [0x1007110]
call sub.TAPI32.dll_lineRegisterRequestRecipient
cmp eax, esi
je 0x10054da
push 0x30
push eax
push dword [0x1007f3c]
mov dword [0x1007d00], esi
call fcn.01001b33
jmp 0x10054e0
mov dword [0x1007d00], ebx
push edi
push dword [0x100710c]
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
mov ebx, eax
jmp 0x100554d
mov eax, dword [0x1007f3c]
cmp eax, esi
je 0x100550f
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x1005538
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [0x1007f3c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1005538
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [0x1007048], esi
je 0x100554d
cmp dword [0x1007124], esi
je 0x100554d
call fcn.01004a06
push esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
call edi
test eax, eax
jne 0x10054f7
call fcn.01001fe7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret 0x10