Function at 0x40cfe0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431108
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x44906c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.ENAGENT
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40d04f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004166d3
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x88]
call fcn.0040c780
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040c780
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
cmp dword [ebp - 0x74], 0x10
lea edx, [ebp - 0x40]
mov esi, dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x88]
cmp dword [ebp - 0x2c], 0x10
cmovae edx, dword [ebp - 0x40]
cmp esi, dword [ebp - 0x78]
jne 0x40d0ea
sub esi, 4
jb 0x40d0a7
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x40d0ac
add edx, 4
add ecx, 4
sub esi, 4
jae 0x40d096
cmp esi, 0xfffffffc
je 0x40d0e0
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x40d0d9
cmp esi, 0xfffffffd
je 0x40d0e0
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x40d0d9
cmp esi, 0xfffffffe
je 0x40d0e0
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x40d0d9
cmp esi, 0xffffffff
je 0x40d0e0
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x40d0e0
sbb eax, eax
or eax, 1
jmp 0x40d0e2
xor eax, eax
test eax, eax
jne 0x40d0ea
mov al, 1
jmp 0x40d0ec
xor al, al
test al, al
jne 0x40db91
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x88]
call fcn.0040e540
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0x8c], eax
push 1
mov byte [ebp - 4], 2
call fcn.00415402
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 3
push eax
call fcn.0040f270
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xbc]
push eax
call fcn.0040e810
add esp, 0xc
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 4
mov ecx, 0x44ae34
cmp dword [0x44ae48], 0x10
mov eax, dword [0x44ae44]
cmovae ecx, dword [0x44ae34]
add eax, ecx
mov byte [ebp - 0xcc], 0
cmp dword [0x44ae48], 0x10
mov ecx, 0x44ae34
push dword [ebp - 0xcc]
cmovae ecx, dword [0x44ae34]
push ecx
push eax
push ecx
lea ecx, [ebp - 0xc8]
call fcn.0040f070
xorps xmm0, xmm0
mov dword [ebp - 0x184], 0
mov byte [ebp - 0x180], 0
movups xmmword [ebp - 0x17c], xmm0
mov dword [ebp - 0x16c], 0
mov byte [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0
mov byte [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 0
mov byte [ebp - 0x150], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
mov esi, dword [ebp - 0x2c]
lea edi, [ebp - 0x40]
mov edx, dword [ebp - 0x40]
cmp esi, 0x10
mov eax, dword [ebp - 0x30]
cmovae ecx, edx
cmovae edi, edx
add eax, ecx
lea ecx, [ebp - 0x40]
cmp esi, 0x10
push edi
cmovae ecx, edx
lea edx, [ebp - 0xc8]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x184]
call fcn.0040f120
add esp, 0x10
test al, al
je 0x40d393
push ecx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x184]
call fcn.0040dc90
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
push 8
push str._ETH__
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040e0d0
push ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 8
call fcn.0040c6c0
push eax
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x70]
call fcn.0040ce70
mov byte [ebp - 4], 8
add esp, 8
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x40d2ed
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x1000
jb 0x40d2e4
test cl, 0x1f
jne 0x40dbf3
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40dbf3
sub ecx, eax
cmp ecx, 4
jb 0x40dbf3
cmp ecx, 0x23
ja 0x40dbf3
mov ecx, eax
push ecx
call fcn.00416725
add esp, 4
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x40d349
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x40d340
test cl, 0x1f
jne 0x40dbf3
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40dbf3
sub ecx, eax
cmp ecx, 4
jb 0x40dbf3
cmp ecx, 0x23
ja 0x40dbf3
mov ecx, eax
push ecx
call fcn.00416725
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x40d393
mov ecx, dword [ebp - 0x70]
inc eax
cmp eax, 0x1000
jb 0x40d38a
test cl, 0x1f
jne 0x40dbf3
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40dbf3
sub ecx, eax
cmp ecx, 4
jb 0x40dbf3
cmp ecx, 0x23
ja 0x40dbf3
mov ecx, eax
push ecx
call fcn.00416725
add esp, 4
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0x8c], eax
push 1
mov byte [ebp - 4], 0xa
call fcn.00415402
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 0xb
push eax
call fcn.0040f270
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xa8]
push eax
call fcn.0040e810
add esp, 0xc
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 0xc
mov ecx, 0x44ae4c
cmp dword [0x44ae60], 0x10
mov eax, dword [0x44ae5c]
cmovae ecx, dword [0x44ae4c]
add eax, ecx
mov byte [ebp - 0xd0], 0
cmp dword [0x44ae60], 0x10
mov ecx, 0x44ae4c
push dword [ebp - 0xd0]
cmovae ecx, dword [0x44ae4c]
push ecx
push eax
push ecx
lea ecx, [ebp - 0xb4]
call fcn.0040f070
xorps xmm0, xmm0
mov dword [ebp - 0x14c], 0
mov byte [ebp - 0x148], 0
movups xmmword [ebp - 0x144], xmm0
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x118], 0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x40]
mov esi, dword [ebp - 0x2c]
lea edi, [ebp - 0x40]
mov edx, dword [ebp - 0x40]
cmp esi, 0x10
mov eax, dword [ebp - 0x30]
cmovae ecx, edx
cmovae edi, edx
add eax, ecx
lea ecx, [ebp - 0x40]
cmp esi, 0x10
push edi
cmovae ecx, edx
lea edx, [ebp - 0xb4]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x14c]
call fcn.0040f120
add esp, 0x10
test al, al
je 0x40d61f
push ecx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x14c]
call fcn.0040dc90
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x28]
push 8
push str._BTC__
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040e0d0
push ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x10
call fcn.0040c6c0
push eax
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x70]
call fcn.0040ce70
mov byte [ebp - 4], 0x10
add esp, 8
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x40d579
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x1000
jb 0x40d570
test cl, 0x1f
jne 0x40dbf3
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40dbf3
sub ecx, eax
cmp ecx, 4
jb 0x40dbf3
cmp ecx, 0x23
ja 0x40dbf3
mov ecx, eax
push ecx
call fcn.00416725
add esp, 4
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x40d5d5
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x40d5cc
test cl, 0x1f
jne 0x40dbf3
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40dbf3
sub ecx, eax
cmp ecx, 4
jb 0x40dbf3
cmp ecx, 0x23
ja 0x40dbf3
mov ecx, eax
push ecx
call fcn.00416725
add esp, 4
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x40d61f
mov ecx, dword [ebp - 0x70]
inc eax
cmp eax, 0x1000
jb 0x40d616
test cl, 0x1f
jne 0x40dbf3
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40dbf3
sub ecx, eax
cmp ecx, 4
jb 0x40dbf3
cmp ecx, 0x23
ja 0x40dbf3
mov ecx, eax
push ecx
call fcn.00416725
add esp, 4
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x8c], eax
push 1
mov byte [ebp - 4], 0x12
call fcn.00415402
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 0x13
push eax
call fcn.0040f270
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x94]
push eax
call fcn.0040e810
add esp, 0xc
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 0x14
mov ecx, 0x44ae64
cmp dword [0x44ae78], 0x10
mov eax, dword [0x44ae74]
cmovae ecx, dword [0x44ae64]
add eax, ecx
mov byte [ebp - 0xd4], 0
cmp dword [0x44ae78], 0x10
mov ecx, 0x44ae64
push dword [ebp - 0xd4]
cmovae ecx, dword [0x44ae64]
push ecx
push eax
push ecx
lea ecx, [ebp - 0xa0]
call fcn.0040f070
xorps xmm0, xmm0
mov dword [ebp - 0x114], 0
mov byte [ebp - 0x110], 0
movups xmmword [ebp - 0x10c], xmm0
mov dword [ebp - 0xfc], 0
mov byte [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
mov byte [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov byte [ebp - 0xe0], 0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x40]
mov esi, dword [ebp - 0x2c]
lea edi, [ebp - 0x40]
mov edx, dword [ebp - 0x40]
cmp esi, 0x10
mov eax, dword [ebp - 0x30]
cmovae ecx, edx
cmovae edi, edx
add eax, ecx
lea ecx, [ebp - 0x40]
cmp esi, 0x10
push edi
cmovae ecx, edx
lea edx, [ebp - 0xa0]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x114]
call fcn.0040f120
add esp, 0x10
test al, al
je 0x40d8ab
push ecx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
call fcn.0040dc90
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x28]
push 9
push str._TRON__
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040e0d0
push ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x18
call fcn.0040c6c0
push eax
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x70]
call fcn.0040ce70
mov byte [ebp - 4], 0x18
add esp, 8
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x40d805
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x1000
jb 0x40d7fc
test cl, 0x1f
jne 0x40dbf3
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40dbf3
sub ecx, eax
cmp ecx, 4
jb 0x40dbf3
cmp ecx, 0x23
ja 0x40dbf3
mov ecx, eax
push ecx
call fcn.00416725
add esp, 4
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x40d861
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x40d858
test cl, 0x1f
jne 0x40dbf3
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40dbf3
sub ecx, eax
cmp ecx, 4
jb 0x40dbf3
cmp ecx, 0x23
ja 0x40dbf3
mov ecx, eax
push ecx
call fcn.00416725
add esp, 4
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x40d8ab
mov ecx, dword [ebp - 0x70]
inc eax
cmp eax, 0x1000
jb 0x40d8a2
test cl, 0x1f
jne 0x40dbf3
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40dbf3
sub ecx, eax
cmp ecx, 4
jb 0x40dbf3
cmp ecx, 0x23
ja 0x40dbf3
mov ecx, eax
push ecx
call fcn.00416725
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.0040c560
test al, al
je 0x40d9a2
push 8
push str._ZHU__
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040e0d0
push ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x1a
call fcn.0040c6c0
push eax
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x40]
call fcn.0040ce70
mov byte [ebp - 4], 0x1a
add esp, 8
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x40d946
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x1000
jb 0x40d93d
test cl, 0x1f
jne 0x40dbf3
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40dbf3
sub ecx, eax
cmp ecx, 4
jb 0x40dbf3
cmp ecx, 0x23
ja 0x40dbf3
mov ecx, eax
push ecx
call fcn.00416725
add esp, 4
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x40d9a2
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x40d999
test cl, 0x1f
jne 0x40dbf3
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40dbf3
sub ecx, eax
cmp ecx, 4
jb 0x40dbf3
cmp ecx, 0x23
ja 0x40dbf3
mov ecx, eax
push ecx
call fcn.00416725
add esp, 4
mov esi, dword [ebp - 0x10c]
test esi, esi
je 0x40d9e9
mov ecx, dword [ebp - 0x104]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0040e280
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x40da1e
or eax, 0xffffffff
lock xadd dword [ecx + 0x20], eax
jne 0x40da1e
mov esi, dword [ebp - 0xa0]
test esi, esi
je 0x40da1e
mov ecx, esi
lea eax, [esi + 0xc]
mov esi, dword [eax]
mov dword [eax], 0
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x40da07
mov dword [ebp - 0xa0], 0
mov byte [ebp - 4], 0x1c
mov ecx, dword [ebp - 0x90]
test ecx, ecx
je 0x40da47
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x40da47
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov esi, dword [ebp - 0x144]
test esi, esi
je 0x40da8e
mov ecx, dword [ebp - 0x13c]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0040e280
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov ecx, dword [ebp - 0xb4]
test ecx, ecx
je 0x40dac3
or eax, 0xffffffff
lock xadd dword [ecx + 0x20], eax
jne 0x40dac3
mov esi, dword [ebp - 0xb4]
test esi, esi
je 0x40dac3
mov ecx, esi
lea eax, [esi + 0xc]
mov esi, dword [eax]
mov dword [eax], 0
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x40daac
mov dword [ebp - 0xb4], 0
mov byte [ebp - 4], 0x1d
mov ecx, dword [ebp - 0xa4]
test ecx, ecx
je 0x40daec
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x40daec
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov esi, dword [ebp - 0x17c]
test esi, esi
je 0x40db33
mov ecx, dword [ebp - 0x174]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0040e280
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 0
mov ecx, dword [ebp - 0xc8]
test ecx, ecx
je 0x40db68
or eax, 0xffffffff
lock xadd dword [ecx + 0x20], eax
jne 0x40db68
mov esi, dword [ebp - 0xc8]
test esi, esi
je 0x40db68
mov ecx, esi
lea eax, [esi + 0xc]
mov esi, dword [eax]
mov dword [eax], 0
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x40db51
mov dword [ebp - 0xc8], 0
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebp - 0xb8]
test ecx, ecx
je 0x40db91
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x40db91
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xdc], 1
mov dword [ebp - 0xd8], 0
call fcn.0040ea70
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40d061
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x40dbe5
test cl, 0x1f
jne 0x40dbf3
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40dbf3
sub ecx, eax
cmp ecx, 4
jb 0x40dbf3
cmp ecx, 0x23
ja 0x40dbf3
mov ecx, eax
push ecx
call fcn.00416725
add esp, 4
jmp 0x40d061
call fcn.0041bbf7
int3