Function at 0x1005471
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 0x10016a8
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 0x10054eb
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 0x100567a
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 0x1004ba2
push esi
push 0xc8
push dword [0x100710c]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [0x1007f3c], eax
call fcn.01003023
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.010041a9
mov dword [ebp - 8], eax
cmp eax, esi
je 0x10055c1
push 0x30
push eax
push dword [0x1007f3c]
call fcn.01001b5a
call fcn.0100200e
mov eax, dword [ebp - 8]
jmp 0x100567a
push ebx
push ebx
push esi
push dword [0x1007110]
call sub.TAPI32.dll_lineRegisterRequestRecipient
cmp eax, esi
je 0x10055e9
push 0x30
push eax
push dword [0x1007f3c]
mov dword [0x1007d00], esi
call fcn.01001b5a
jmp 0x10055ef
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 0x100565c
mov eax, dword [0x1007f3c]
cmp eax, esi
je 0x100561e
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x1005647
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [0x1007f3c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1005647
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 0x100565c
cmp dword [0x1007124], esi
je 0x100565c
call fcn.01004b0c
push esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
call edi
test eax, eax
jne 0x1005606
call fcn.0100200e
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