Function at 0x401059
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9d4
mov eax, dword [0x621810]
xor eax, esp
mov dword [esp + 0x9d0], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0x4000
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push dword [0x63203c]
xor ebx, ebx
push dword [0x632034]
xor eax, eax
lea edx, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], ax
mov dword [esp + 0x68], ebx
call fcn.00447630
lea ecx, [esp + 0x34]
call fcn.004012c2
mov dword [0x6356b0], edi
call fcn.0041b2ef
lea ecx, [esp + 0x80]
call fcn.00403679
push str.dyzm_install_20170309
lea eax, [esp + 0x1c]
call fcn.004018af
push dword [esp + 0x7e0]
lea eax, [esp + 0x68]
push 0x5fe62c
push eax
call fcn.00445760
add esp, 0xc
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x20]
call fcn.0040159b
push 1
xor edi, edi
lea esi, [esp + 0x68]
call fcn.00401ad5
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x40113f
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4011d6
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push str.InstallPackages_gs
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
cmp esi, ebx
je 0x40119a
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x401189
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push ebx
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push 1
xor edi, edi
lea esi, [esp + 0x1c]
call fcn.00401ad5
lea eax, [esp + 0x80]
push eax
call fcn.00403917
lea eax, [esp + 0x34]
call fcn.00447550
mov ecx, dword [esp + 0x9dc]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0048b951
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x7e0], 0x3f0
jne 0x4011f2
call fcn.00401560
cmp byte [eax + 0x50], bl
je 0x4011f2
call fcn.004014a0
lea eax, [esp + 0x80]
push eax
call fcn.00401560
mov ecx, eax
call fcn.00402ab0
lea eax, [esp + 0x64]
push 3
push eax
call fcn.0040360d
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x40121e
mov esi, dword [eax]
jmp 0x401220
mov esi, eax
push ebx
push ebx
xor ebx, ebx
xor edx, edx
lea eax, [esp + 0x220]
call fcn.004124f7
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x800a0000
push esi
push ebx
lea ecx, [esp + 0xa4]
call fcn.004114ae
push 1
xor edi, edi
lea esi, [esp + 0x68]
call fcn.00401ad5
lea ecx, [esp + 0x80]
call fcn.00411690
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
call section..text
mov esi, eax
cmp byte [0x6356b8], bl
je 0x401297
mov eax, dword [0x6356bc]
cmp eax, ebx
je 0x401297
push eax
call fcn.004218fa
pop ecx
mov dword [0x6356bc], ebx
call fcn.00401560
call fcn.00402de5
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
jmp 0x40119a