Function at 0x428df0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd67e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1a0
mov eax, dword [0x525008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18c], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x17c], eax
mov eax, dword [esi]
test eax, eax
je 0x428e55
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 0x2c
mov word [esi + 4], 0
mov dword [ebp - 0x50], 0
call fcn.004f6402
mov esi, eax
lea ecx, [ebp - 0x1ac]
add esp, 4
mov dword [ebp - 0x50], esi
mov dword [esi], 0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0xc
mov dword [esi + 0xc], edi
push str.Advapi32.dll
mov dword [esi + 0x10], 0
call fcn.004037c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1ac]
push eax
call fcn.0042e610
mov ecx, eax
call fcn.0042e6d0
mov dword [esi + 0x28], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ac]
call fcn.004037b0
lea eax, [esi + 4]
push eax
push 1
push edi
lea ecx, [ebp - 0x50]
call fcn.00438880
mov esi, dword [ebp - 0x50]
mov dword [esi], eax
mov dword [ebp - 4], 1
cmp dword [esi], 0
je 0x428ef6
lea edx, [esi + 8]
jmp 0x428ef8
xor edx, edx
mov ecx, dword [ebp - 0x17c]
mov dword [ebp - 0x184], edx
call fcn.00403760
test al, al
jne 0x428f1c
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x428f1e
mov eax, dword [eax]
jmp 0x428f1e
xor eax, eax
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, dword [ebp - 0x18c]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x428f80
call ecx
cmp eax, 5
jne 0x428f7a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x17c]
call fcn.00403760
test al, al
jne 0x428f67
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x428f69
mov eax, dword [eax]
jmp 0x428f69
xor eax, eax
push eax
push 0
push dword [ebp - 0x184]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi], 0
je 0x429113
call ecx
cmp eax, 0xb7
jne 0x428f96
mov byte [edi + 5], 1
mov eax, dword [edi]
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x18c], eax
call fcn.0042d570
cmp dword [ebp - 0x174], 6
jb 0x429110
cmp dword [ebp - 0x18c], 0
je 0x429110
push str.Advapi32.dll
lea ecx, [ebp - 0x1ac]
call fcn.004037c0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1ac]
push eax
call fcn.0042e610
mov ecx, eax
call fcn.0042e6d0
mov dword [ebp - 0x184], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1ac]
call fcn.004037b0
mov ecx, dword [ebp - 0x184]
test ecx, ecx
je 0x429110
movups xmm0, xmmword [str.ConvertStringSecurityDescriptorToSecurityDescriptorW]
mov eax, dword [0x50e7e8]
mov dword [ebp - 0x1c], eax
mov al, byte [0x50e7ec]
movups xmmword [ebp - 0x4c], xmm0
mov byte [ebp - 0x18], al
lea eax, [ebp - 0x4c]
movups xmm0, xmmword [0x50e7c8]
push eax
push ecx
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x17c], 0
movups xmm0, xmmword [0x50e7d8]
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x190], eax
test eax, eax
je 0x429110
push str.GetSecurityDescriptorSacl
push dword [ebp - 0x184]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x194], eax
test eax, eax
je 0x429110
push str.SetSecurityInfo
push dword [ebp - 0x184]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x184], eax
test eax, eax
je 0x429110
push 0
lea eax, [ebp - 0x17c]
push eax
push 1
push str.S:_ML__NW___LW_
call dword [ebp - 0x190]
test eax, eax
je 0x429110
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x17c]
call dword [ebp - 0x194]
test eax, eax
je 0x429104
push dword [ebp - 0x180]
push 0
push 0
push 0
push 0x10
push 6
push dword [ebp - 0x18c]
call dword [ebp - 0x184]
push dword [ebp - 0x17c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [edi], 0
setne byte [ebp - 0x185]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x42913d
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x429152
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004f6432
mov al, byte [ebp - 0x185]
add esp, 8
mov dword [ebp - 0x50], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f63f1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4