Function at 0xaaf0c10
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x190
push ebx
push ebp
mov eax, 0x7f
push esi
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], 0
mov ebx, dword [esp + 0x1b4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebp
stosb byte es:[edi], al
jne 0xaaf0c6b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x190
ret 0x18
mov eax, dword [esp + 0x1b0]
cmp eax, ebp
je 0xaaf0c8d
cmp eax, 1
je 0xaaf0c8d
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 0x190
ret 0x18
lea eax, [esp + 0x7c]
push 1
push eax
mov dword [ebx + 0x34], ebp
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x40], ebp
call dword [sym.imp.Advapi32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0xaaf0cbf
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x190
ret 0x18
push ebp
push ebp
lea ecx, [esp + 0x84]
push 1
push ecx
call dword [sym.imp.Advapi32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0xaaf0ce7
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x190
ret 0x18
push 0xaaf60d0
lea eax, [esp + 0x34]
lea edx, [esp + 0x80]
push ebp
push eax
mov dword [esp + 0x40], edx
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x24], esi
jne 0xaaf0d1f
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x190
ret 0x18
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push ebp
push 0xaaf5fb0
call fcn.0aaf0550
add esp, 0x10
test eax, eax
je 0xaaf1327
mov eax, dword [esp + 0x1b8]
mov ebx, dword [eax]
mov eax, dword [esp + 0x1c]
cmp ebx, eax
jae 0xaaf0f87
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1b0]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [eax + ebx*4]
add ecx, 4
push edx
push ecx
call fcn.0aaf1360
add esp, 0xc
test eax, eax
je 0xaaf0f66
mov edx, dword [0xaaf60c0]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov ax, word [0xaaf60c4]
mov cl, byte [0xaaf60c6]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x18]
mov word [esp + 0x40], ax
mov byte [esp + 0x42], cl
mov esi, dword [edx + ebx*4]
mov ecx, 0xe
add esi, 8
lea edi, [esp + 0x43]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x30]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov ebp, eax
test ebp, ebp
je 0xaaf0d0d
mov esi, dword [esp + 0x1ac]
test esi, esi
je 0xaaf0e63
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0xa0]
push edx
push eax
push 8
push 0xaaf60b0
push ecx
mov dword [esp + 0x28], 0xff
call fcn.0aaf14a0
add esp, 0x14
test eax, eax
je 0xaaf0f53
cmp dword [esp + 0x14], 0xa
jne 0xaaf0f53
mov al, byte [esp + 0xa8]
test al, al
jne 0xaaf0eda
mov al, byte [esp + 0xa9]
test al, al
jne 0xaaf0eda
mov ecx, 2
lea edi, [esp + 0xa0]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0xaaf0e63
mov eax, dword [esp + 0x10]
push eax
jmp 0xaaf0f58
mov esi, dword [esp + 0x1a8]
test esi, esi
je 0xaaf0ee1
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xa0]
push eax
push ecx
push 8
push 0xaaf60a0
push edx
mov dword [esp + 0x28], 0xff
call fcn.0aaf14a0
add esp, 0x14
test eax, eax
je 0xaaf0f4c
cmp dword [esp + 0x14], 0xa
jne 0xaaf0f4c
mov al, byte [esp + 0xa8]
test al, al
jne 0xaaf0f53
mov al, byte [esp + 0xa9]
test al, al
jne 0xaaf0f53
mov ecx, 2
lea edi, [esp + 0xa0]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0xaaf0ee1
mov ecx, dword [esp + 0x10]
push ecx
jmp 0xaaf0f58
mov esi, dword [esp + 0x1a4]
test esi, esi
je 0xaaf0f75
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0xa0]
push ecx
push edx
push 8
push 0xaaf5000
push eax
mov dword [esp + 0x28], 0xff
call fcn.0aaf14a0
add esp, 0x14
test eax, eax
je 0xaaf0f53
cmp dword [esp + 0x14], 0x12
jne 0xaaf0f53
mov al, byte [esp + 0xb0]
test al, al
jne 0xaaf0eda
mov al, byte [esp + 0xb1]
test al, al
jne 0xaaf0eda
mov ecx, 2
lea edi, [esp + 0xa0]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0xaaf0f75
mov eax, dword [esp + 0x10]
push eax
jmp 0xaaf0f58
mov edx, dword [esp + 0x10]
push edx
call fcn.0aaf1390
push ebp
call fcn.0aaf13b0
add esp, 8
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jb 0xaaf0d5d
jmp 0xaaf0f87
mov eax, dword [esp + 0x1b8]
inc ebx
mov dword [esp + 0x20], 1
mov dword [eax], ebx
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0aaf0960
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0xaaf0fd7
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push esi
call fcn.0aaf13b0
mov eax, dword [esp + 0x1b8]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [eax + 0x34], ebp
mov dword [eax + 0x30], edx
pop edi
pop esi
mov dword [eax + 0x2c], 0
pop ebp
xor eax, eax
pop ebx
add esp, 0x190
ret 0x18
mov eax, dword [esp + 0x1b8]
mov esi, dword [eax]
mov eax, dword [esp + 0x1c]
cmp esi, eax
ja 0xaaf0fea
mov esi, eax
lea ecx, [esp + 0x90]
sub esi, eax
push ecx
call fcn.0aaf0b60
lea edx, [esp + 0x2c]
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x9c]
push 0xaaf6080
push ecx
call fcn.0aaf0550
add esp, 0x14
test eax, eax
je 0xaaf12eb
mov eax, dword [esp + 0x28]
mov ebx, esi
cmp esi, eax
mov dword [esp + 0x2c], ebx
jae 0xaaf125f
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1b0]
lea edx, [esp + 0x10]
push edx
mov edx, dword [ecx + ebx*4]
add edx, 4
push eax
push edx
call fcn.0aaf1360
add esp, 0xc
test eax, eax
je 0xaaf122b
mov dl, byte [0xaaf60c6]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov eax, dword [0xaaf60c0]
mov cx, word [0xaaf60c4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
mov word [esp + 0x40], cx
mov byte [esp + 0x42], dl
mov esi, dword [eax + ebx*4]
mov ecx, 0xe
add esi, 8
lea edi, [esp + 0x43]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x30]
push ecx
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov ebp, eax
mov ebx, 0xff
mov esi, dword [esp + 0x1ac]
test esi, esi
je 0xaaf1132
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xa0]
push eax
push ecx
push 8
push 0xaaf60b0
push ebp
push edx
mov dword [esp + 0x2c], ebx
call fcn.0aaf13d0
add esp, 0x18
test eax, eax
je 0xaaf1218
cmp dword [esp + 0x14], 0xa
jne 0xaaf1218
mov al, byte [esp + 0xa8]
test al, al
jne 0xaaf1211
mov al, byte [esp + 0xa9]
test al, al
jne 0xaaf1211
mov ecx, 2
lea edi, [esp + 0xa0]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0xaaf1132
mov ecx, dword [esp + 0x10]
push ecx
jmp 0xaaf121d
mov esi, dword [esp + 0x1a8]
test esi, esi
je 0xaaf11a2
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0xa0]
push ecx
push edx
push 8
push 0xaaf60a0
push ebp
push eax
mov dword [esp + 0x2c], ebx
call fcn.0aaf13d0
add esp, 0x18
test eax, eax
je 0xaaf1211
cmp dword [esp + 0x14], 0xa
jne 0xaaf1211
mov al, byte [esp + 0xa8]
test al, al
jne 0xaaf120a
mov al, byte [esp + 0xa9]
test al, al
jne 0xaaf120a
mov ecx, 2
lea edi, [esp + 0xa0]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0xaaf1218
mov esi, dword [esp + 0x1a4]
test esi, esi
je 0xaaf1242
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xa0]
push eax
push ecx
push 8
push 0xaaf5000
push ebp
push edx
mov dword [esp + 0x2c], ebx
call fcn.0aaf13d0
add esp, 0x18
test eax, eax
je 0xaaf1218
cmp dword [esp + 0x14], 0x12
jne 0xaaf1218
mov al, byte [esp + 0xb0]
test al, al
jne 0xaaf1211
mov al, byte [esp + 0xb1]
test al, al
jne 0xaaf1211
mov ecx, 2
lea edi, [esp + 0xa0]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0xaaf1242
mov ecx, dword [esp + 0x10]
push ecx
jmp 0xaaf121d
mov edx, dword [esp + 0x10]
push edx
jmp 0xaaf121d
mov eax, dword [esp + 0x10]
push eax
call fcn.0aaf1390
push ebp
call fcn.0aaf13b0
add esp, 8
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
inc ebx
cmp ebx, eax
mov dword [esp + 0x2c], ebx
jb 0xaaf1032
jmp 0xaaf125f
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x20], 1
lea eax, [edx + ecx + 1]
mov ecx, dword [esp + 0x1b8]
mov dword [ecx], eax
mov edx, dword [esp + 0x18]
push edx
call fcn.0aaf0960
mov eax, dword [esp + 0x24]
xor esi, esi
add esp, 4
cmp eax, esi
je 0xaaf12b1
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push esi
call fcn.0aaf13b0
mov eax, dword [esp + 0x1b8]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [eax + 0x34], ebp
mov dword [eax + 0x30], ecx
pop edi
pop esi
mov dword [eax + 0x2c], 0xaa
pop ebp
xor eax, eax
pop ebx
add esp, 0x190
ret 0x18
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push edi
call fcn.0aaf13b0
mov eax, dword [esp + 0x1b8]
add esp, 4
mov dword [eax + 0x34], esi
mov dword [eax + 0x2c], esi
pop edi
pop esi
mov dword [eax + 0x30], 0xffffffff
pop ebp
mov eax, 9
pop ebx
add esp, 0x190
ret 0x18
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push esi
call fcn.0aaf13b0
mov ecx, dword [esp + 0x1b8]
add esp, 4
xor eax, eax
pop edi
pop esi
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x2c], eax
pop ebp
mov dword [ecx + 0x30], 0xffffffff
mov eax, 8
pop ebx
add esp, 0x190
ret 0x18
push esi
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push esi
call fcn.0aaf13b0
add esp, 4
mov dword [ebx + 0x34], ebp
mov dword [ebx + 0x2c], ebp
mov dword [ebx + 0x30], 0xffffffff
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x190
ret 0x18