Function at 0x474ae0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe74
xor eax, eax
xor edx, edx
xor ecx, ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x7f
lea edi, [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0xc], 0x7f
mov dword [ebp - 0x10], edx
mov dword [edi], ecx
mov dword [ebp - 0x18], eax
push edi
lea edi, [ebp - 0x16c]
xor ebx, ebx
mov ecx, 0x10
mov esi, 0x5de59a
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0x18], 0
pop edi
jne 0x474b36
mov eax, 1
jmp 0x47526d
cmp dword [ebp + 0x14], 0
je 0x474b4c
cmp dword [ebp + 0x14], 1
je 0x474b4c
mov eax, 6
jmp 0x47526d
mov edx, dword [ebp + 0x18]
xor ecx, ecx
xor eax, eax
mov dword [edx + 0x34], ecx
mov dword [ebp - 0x178], 0xc
mov dword [ebp - 0x170], eax
lea edx, [ebp - 0x18c]
push 1
push edx
call sub.advapi32.dll_InitializeSecurityDescriptor
test eax, eax
jne 0x474b82
mov eax, 3
jmp 0x47526d
push 0
push 0
push 1
lea edx, [ebp - 0x18c]
push edx
call sub.advapi32.dll_SetSecurityDescriptorDacl
test eax, eax
jne 0x474ba2
mov eax, 3
jmp 0x47526d
lea edx, [ebp - 0x18c]
mov dword [ebp - 0x174], edx
push 0x5de65c
push 0
lea ecx, [ebp - 0x178]
push ecx
call sub.kernel32.dll_CreateMutexA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x474bd4
mov eax, 3
jmp 0x47526d
push 0xffffffffffffffff
mov edx, dword [ebp - 0x1c]
push edx
call sub.kernel32.dll_WaitForSingleObject
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0x5de470
call fcn.00474384
add esp, 0x10
test eax, eax
je 0x474e96
mov edx, dword [ebp + 0x1c]
mov esi, dword [edx]
cmp esi, dword [ebp - 8]
jae 0x474e8a
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + esi*4]
add eax, 4
push eax
call fcn.00474938
add esp, 0xc
test eax, eax
je 0x474e80
push 0x40
push 0
lea edx, [ebp - 0x16c]
push edx
call sub.cc3260mt.dll__memset
add esp, 0xc
lea ecx, [ebp - 0x16c]
push 7
push 0x5de68a
push ecx
call sub.cc3260mt.dll__memcpy
add esp, 0xc
push 0x38
mov eax, dword [ebp - 4]
mov edx, dword [eax + esi*4]
add edx, 8
push edx
lea ecx, [ebp - 0x165]
push ecx
call sub.cc3260mt.dll__memcpy
add esp, 0xc
lea eax, [ebp - 0x16c]
push eax
push 0
lea edx, [ebp - 0x178]
push edx
call sub.kernel32.dll_CreateMutexA
mov ebx, eax
test ebx, ebx
jne 0x474c97
mov eax, 3
jmp 0x47526d
cmp dword [ebp + 0x10], 0
je 0x474d38
mov dword [edi], 0xff
push edi
lea edx, [ebp - 0x12c]
push edx
push 8
push 0x5de692
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00474a58
add esp, 0x14
test eax, eax
je 0x474d22
cmp dword [edi], 0xa
jne 0x474d22
cmp byte [ebp - 0x124], 0
jne 0x474cdd
cmp byte [ebp - 0x123], 0
je 0x474cf3
mov eax, dword [ebp - 0x10]
push eax
call fcn.00474970
pop ecx
push ebx
call fcn.00474994
pop ecx
jmp 0x474e80
push 8
lea edx, [ebp - 0x12c]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call sub.cc3260mt.dll__memcmp
add esp, 0xc
test eax, eax
je 0x474d38
mov eax, dword [ebp - 0x10]
push eax
call fcn.00474970
pop ecx
push ebx
call fcn.00474994
pop ecx
jmp 0x474e80
mov edx, dword [ebp - 0x10]
push edx
call fcn.00474970
pop ecx
push ebx
call fcn.00474994
pop ecx
jmp 0x474e80
cmp dword [ebp + 0xc], 0
je 0x474dd9
mov dword [edi], 0xff
push edi
lea ecx, [ebp - 0x12c]
push ecx
push 8
push 0x5de69b
mov eax, dword [ebp - 0x10]
push eax
call fcn.00474a58
add esp, 0x14
test eax, eax
je 0x474dc3
cmp dword [edi], 0xa
jne 0x474dc3
cmp byte [ebp - 0x124], 0
jne 0x474d7e
cmp byte [ebp - 0x123], 0
je 0x474d94
mov edx, dword [ebp - 0x10]
push edx
call fcn.00474970
pop ecx
push ebx
call fcn.00474994
pop ecx
jmp 0x474e80
push 8
lea ecx, [ebp - 0x12c]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call sub.cc3260mt.dll__memcmp
add esp, 0xc
test eax, eax
je 0x474dd9
mov edx, dword [ebp - 0x10]
push edx
call fcn.00474970
pop ecx
push ebx
call fcn.00474994
pop ecx
jmp 0x474e80
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00474970
pop ecx
push ebx
call fcn.00474994
pop ecx
jmp 0x474e80
cmp dword [ebp + 8], 0
je 0x474e71
mov dword [edi], 0xff
push edi
lea eax, [ebp - 0x12c]
push eax
push 8
push 0x5de6a4
mov edx, dword [ebp - 0x10]
push edx
call fcn.00474a58
add esp, 0x14
test eax, eax
je 0x474e5e
cmp dword [edi], 0x12
jne 0x474e5e
cmp byte [ebp - 0x11c], 0
jne 0x474e1f
cmp byte [ebp - 0x11b], 0
je 0x474e32
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00474970
pop ecx
push ebx
call fcn.00474994
pop ecx
jmp 0x474e80
push 8
lea eax, [ebp - 0x12c]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.cc3260mt.dll__memcmp
add esp, 0xc
test eax, eax
je 0x474e71
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00474970
pop ecx
push ebx
call fcn.00474994
pop ecx
jmp 0x474e80
mov eax, dword [ebp - 0x10]
push eax
call fcn.00474970
pop ecx
push ebx
call fcn.00474994
pop ecx
jmp 0x474e80
mov dword [ebp - 0x18], 1
inc esi
mov eax, dword [ebp + 0x1c]
mov dword [eax], esi
jmp 0x474e8a
inc esi
cmp esi, dword [ebp - 8]
jb 0x474c0c
mov edx, dword [ebp - 4]
push edx
call fcn.0047434c
pop ecx
jmp 0x474ecd
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00474994
mov edx, dword [ebp + 0x18]
pop ecx
xor ecx, ecx
mov dword [edx + 0x34], ecx
xor ecx, ecx
mov eax, dword [ebp + 0x18]
mov dword [eax + 0x30], 0xffffffff
mov edx, dword [ebp + 0x18]
mov eax, 8
mov dword [edx + 0x2c], ecx
jmp 0x47526d
cmp dword [ebp - 0x18], 0
je 0x474f04
mov edx, dword [ebp - 0x1c]
push edx
call sub.kernel32.dll_ReleaseMutex
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00474994
pop ecx
mov eax, dword [ebp + 0x18]
mov dword [eax + 0x34], ebx
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [edx + 0x30], ecx
mov eax, dword [ebp + 0x18]
xor edx, edx
mov dword [eax + 0x2c], edx
xor eax, eax
jmp 0x47526d
mov edx, dword [ebp + 0x1c]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 8]
jbe 0x474f15
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax]
jmp 0x474f18
mov esi, dword [ebp - 8]
sub esi, dword [ebp - 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00474898
pop ecx
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 4]
push ecx
push 0x5de6ad
lea eax, [ebp - 0x2c]
push eax
call fcn.00474384
add esp, 0x10
test eax, eax
je 0x4751d1
cmp esi, dword [ebp - 0xc]
jae 0x4751c5
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 0x14]
push ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + esi*4]
add edx, 4
push edx
call fcn.00474938
add esp, 0xc
test eax, eax
je 0x4751bb
push 0x40
push 0
lea ecx, [ebp - 0x16c]
push ecx
call sub.cc3260mt.dll__memset
add esp, 0xc
lea eax, [ebp - 0x16c]
push 7
push 0x5de6c3
push eax
call sub.cc3260mt.dll__memcpy
add esp, 0xc
push 0x38
mov edx, dword [ebp - 4]
mov ecx, dword [edx + esi*4]
add ecx, 8
push ecx
lea eax, [ebp - 0x165]
push eax
call sub.cc3260mt.dll__memcpy
add esp, 0xc
lea edx, [ebp - 0x16c]
push edx
push 0
lea ecx, [ebp - 0x178]
push ecx
call sub.kernel32.dll_CreateMutexA
cmp dword [ebp + 0x10], 0
mov ebx, eax
je 0x47506e
mov dword [edi], 0xff
push edi
lea eax, [ebp - 0x12c]
push eax
push 8
push 0x5de6cb
push ebx
mov edx, dword [ebp - 0x10]
push edx
call fcn.004749b4
add esp, 0x18
test eax, eax
je 0x475058
cmp dword [edi], 0xa
jne 0x475058
cmp byte [ebp - 0x124], 0
jne 0x475013
cmp byte [ebp - 0x123], 0
je 0x475029
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00474970
pop ecx
push ebx
call fcn.00474994
pop ecx
jmp 0x4751bb
push 8
lea eax, [ebp - 0x12c]
push eax
mov edx, dword [ebp + 0x10]
push edx
call sub.cc3260mt.dll__memcmp
add esp, 0xc
test eax, eax
je 0x47506e
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00474970
pop ecx
push ebx
call fcn.00474994
pop ecx
jmp 0x4751bb
mov eax, dword [ebp - 0x10]
push eax
call fcn.00474970
pop ecx
push ebx
call fcn.00474994
pop ecx
jmp 0x4751bb
cmp dword [ebp + 0xc], 0
je 0x475110
mov dword [edi], 0xff
push edi
lea edx, [ebp - 0x12c]
push edx
push 8
push 0x5de6d4
push ebx
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004749b4
add esp, 0x18
test eax, eax
je 0x4750fa
cmp dword [edi], 0xa
jne 0x4750fa
cmp byte [ebp - 0x124], 0
jne 0x4750b5
cmp byte [ebp - 0x123], 0
je 0x4750cb
mov eax, dword [ebp - 0x10]
push eax
call fcn.00474970
pop ecx
push ebx
call fcn.00474994
pop ecx
jmp 0x4751bb
push 8
lea edx, [ebp - 0x12c]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
call sub.cc3260mt.dll__memcmp
add esp, 0xc
test eax, eax
je 0x475110
mov eax, dword [ebp - 0x10]
push eax
call fcn.00474970
pop ecx
push ebx
call fcn.00474994
pop ecx
jmp 0x4751bb
mov edx, dword [ebp - 0x10]
push edx
call fcn.00474970
pop ecx
push ebx
call fcn.00474994
pop ecx
jmp 0x4751bb
cmp dword [ebp + 8], 0
je 0x4751a9
mov dword [edi], 0xff
push edi
lea ecx, [ebp - 0x12c]
push ecx
push 8
push 0x5de6dd
push ebx
mov eax, dword [ebp - 0x10]
push eax
call fcn.004749b4
add esp, 0x18
test eax, eax
je 0x475196
cmp dword [edi], 0x12
jne 0x475196
cmp byte [ebp - 0x11c], 0
jne 0x475157
cmp byte [ebp - 0x11b], 0
je 0x47516a
mov edx, dword [ebp - 0x10]
push edx
call fcn.00474970
pop ecx
push ebx
call fcn.00474994
pop ecx
jmp 0x4751bb
push 8
lea ecx, [ebp - 0x12c]
push ecx
mov eax, dword [ebp + 8]
push eax
call sub.cc3260mt.dll__memcmp
add esp, 0xc
test eax, eax
je 0x4751a9
mov edx, dword [ebp - 0x10]
push edx
call fcn.00474970
pop ecx
push ebx
call fcn.00474994
pop ecx
jmp 0x4751bb
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00474970
pop ecx
push ebx
call fcn.00474994
pop ecx
jmp 0x4751bb
mov dword [ebp - 0x18], 1
add esi, dword [ebp - 8]
mov eax, dword [ebp + 0x1c]
inc esi
mov dword [eax], esi
jmp 0x4751c5
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x474f4f
mov edx, dword [ebp - 4]
push edx
call fcn.0047434c
pop ecx
jmp 0x475205
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00474994
mov edx, dword [ebp + 0x18]
pop ecx
xor ecx, ecx
mov dword [edx + 0x34], ecx
xor ecx, ecx
mov eax, dword [ebp + 0x18]
mov dword [eax + 0x30], 0xffffffff
mov edx, dword [ebp + 0x18]
mov eax, 8
mov dword [edx + 0x2c], ecx
jmp 0x47526d
cmp dword [ebp - 0x18], 0
je 0x47523b
mov edx, dword [ebp - 0x1c]
push edx
call sub.kernel32.dll_ReleaseMutex
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00474994
pop ecx
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x30], edx
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x34], ebx
mov eax, dword [ebp + 0x18]
mov dword [eax + 0x2c], 0xaa
xor eax, eax
jmp 0x47526d
mov edx, dword [ebp - 0x1c]
push edx
call sub.kernel32.dll_ReleaseMutex
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00474994
pop ecx
mov eax, dword [ebp + 0x18]
xor edx, edx
mov dword [eax + 0x34], edx
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x30], 0xffffffff
mov eax, dword [ebp + 0x18]
xor edx, edx
mov dword [eax + 0x2c], edx
mov eax, 9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18