Function at 0x406680
Capabilities:
Create or open mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x3c], 0x57ec1
mov dword [ebp - 0x44], 0x98474
mov dword [ebp - 8], 0x274f6
mov dword [ebp - 0x24], 0xa8db2
mov dword [ebp - 0x40], 0xc2fdd
mov dword [ebp - 0x28], 0xa886d
mov dword [ebp - 0x4c], 0x602eb
mov dword [ebp - 0x18], 0x1da79
mov dword [ebp - 0x34], 0xc1503
mov dword [ebp - 0xc], 0x25abb
mov dword [ebp - 0x1c], 0x9dece
mov dword [ebp - 0x30], 0x57781
mov dword [ebp - 0x14], 0xa052f
mov dword [ebp - 0x54], 0xce1e5
mov dword [ebp - 4], 0xc7f4c
mov dword [ebp - 0x10], 0xccb1
mov dword [ebp - 0x38], 0xdaa35
mov dword [ebp - 0x2c], 0x6cb84
mov dword [ebp - 0x5c], 0xe5b54
mov dword [ebp - 0x20], 0x668f5
mov dword [ebp - 0x50], 0xc57f1
mov dword [ebp - 0x48], 0xc3c54
mov dword [ebp - 0x58], 0xe0134
cmp dword [ebp - 0x34], 0xc1504
jge 0x40697e
mov eax, dword [ebp - 0x38]
or eax, 0x8b6f
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x58]
add ecx, 0xa9bb0
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp + 0x14]
and edx, dword [ebp - 4]
mov dword [ebp + 0x14], edx
mov eax, dword [ebp + 0x18]
xor eax, 0x35309
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp - 8]
or ecx, dword [ebp + 0x18]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
or edx, dword [ebp - 0x2c]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 4], 0xc4b25
je 0x406952
mov eax, dword [ebp - 0x14]
xor eax, 0x96b5a
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x20]
and ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x30]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x5c]
or eax, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x24]
xor ecx, 0xb25cb
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x20]
or edx, 0x76a1d
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0xc], 0x571e0
jne 0x406952
mov eax, dword [ebp + 0xc]
xor eax, 0x554a6
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x14]
sub ecx, dword [ebp - 0x18]
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp - 0x10]
or edx, 0x4e746
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x24]
xor eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
add ecx, 0xa1ffb
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x28], 0xa16b4
jge 0x406952
mov edx, dword [ebp + 8]
or edx, 0xf9
mov dword [ebp + 8], edx
mov eax, dword [ebp - 4]
and eax, 0x3d5ac
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
xor ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x2c], 0x19eda
jle 0x406952
mov edx, dword [ebp - 0x18]
and edx, 0x2c83b
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x28]
xor eax, 0x933a6
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x91b17
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
sub edx, 0x54fae
mov dword [ebp - 0x3c], edx
cmp dword [ebp + 0xc], 0x8a632
jne 0x406952
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x4c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
or ecx, dword [ebp - 0x34]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x50], 0xe839f
jle 0x406952
mov edx, dword [ebp - 0x10]
xor edx, dword [ebp + 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0xc]
or eax, dword [ebp - 0x2c]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 4]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x48]
add edx, 0xf06ee
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x40]
xor eax, 0x3050f
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x28]
or ecx, 0x4ec90
mov dword [ebp - 0x28], ecx
cmp dword [ebp + 0x18], 0x2452f
je 0x406952
mov edx, dword [ebp - 0x30]
xor edx, dword [ebp - 0x30]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x14]
or eax, 0x2d499
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x40]
or ecx, dword [ebp + 0x14]
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x44], 0x7d668
jne 0x406952
mov edx, dword [ebp - 0x20]
and edx, 0xe1e8e
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x1c]
and eax, dword [ebp - 0x54]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x10]
or ecx, 0xc36f6
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 0x30]
xor edx, dword [ebp - 0x38]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x58]
sub ecx, 0x78115
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 4]
add edx, 0x29fca
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x53602
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x18]
xor edx, dword [ebp - 0x54]
mov dword [ebp + 0x18], edx
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
jmp 0x406727
cmp dword [ebp - 0x24], 0x1a87a
jge 0x406b0e
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp + 0x10]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x40]
and eax, 0xe7d3d
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 8]
xor ecx, dword [ebp - 4]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 0x1c]
and edx, 0x819f0
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x44], 0x69e56
jle 0x406a55
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 0x10]
xor ecx, 0x81308
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 0x4c]
and edx, 0x816f7
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x5c], 0x64ee9
jle 0x406a55
mov eax, dword [ebp - 0x2c]
and eax, 0xf1b54
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x18]
or ecx, 0xe2a1d
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 8]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
and edx, 0x350a9
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
or eax, 0xb6c65
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0xc]
xor ecx, 0x148c
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
or edx, 0x33c40
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0x18]
xor ecx, dword [ebp + 0x18]
mov dword [ebp + 0x18], ecx
mov edx, dword [ebp - 0x1c]
or edx, dword [ebp - 0x50]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x34]
add eax, 0x523a2
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x2c]
or ecx, 0x575e3
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x18]
or edx, dword [ebp - 0x50]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
and eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x6cd70
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x44]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x48]
add eax, 0xb4c82
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x38], 0x38b2b
jge 0x406b09
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [ebp + 8]
or ecx, 0x994b7
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 0x38]
xor edx, dword [ebp - 0x10]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
xor eax, 0xd8942
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0xca058
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
or edx, 0x1eb8
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 0x18]
mov dword [ebp + 0x14], eax
jmp 0x40697e
mov dword [ebp - 0x60], 0
jmp 0x406b20
mov ecx, dword [ebp - 0x60]
add ecx, 1
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x4c]
add edx, 0xc9cf
cmp dword [ebp - 0x60], edx
jge 0x406b79
mov eax, dword [ebp - 0x24]
add eax, 0x8cef1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x3c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x2c]
add eax, 0x1895f
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0xc]
sub ecx, 0x625f5
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x54]
add edx, 0x165a2
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
jmp 0x406b17
mov esp, ebp
pop ebp
ret