Function at 0x41ac5c
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
mov edi, ecx
cmp dword [0x4f0d80], 0
mov dword [ebp - 0x10], edx
mov esi, eax
mov eax, 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
je 0x41b761
cmp esi, 0xfffffffb
jl 0x41afc2
cmp dword [0x4ee720], 2
jge 0x41aca9
cmp dword [ebp + 0x14], 6
je 0x41afd1
cmp esi, 0xfffffffb
je 0x41b5ce
mov eax, 0x3ee4f99d
mov dword [ebp - 0x34], edi
lea ebx, [esi + 5]
imul ebx
mov dword [ebp - 4], ebx
mov ecx, ebx
mov dword [ebp - 0x30], ebx
sar edx, 7
sar ecx, 0x1f
sub edx, ecx
imul edx, edx, 0x209
neg edx
add edx, ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edx
lea eax, [edx + 0x69]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 4]
cmp ecx, 0x69
jge 0x41ae81
lea eax, [ecx*4]
mov edx, ecx
shl edx, 5
sub edx, eax
cmp dword [edx + 0x4f206c], 0
je 0x41ad39
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 4]
lea edi, [ecx*4]
mov edx, ecx
shl edx, 5
sub edx, edi
cmp eax, dword [edx + 0x4f2068]
jne 0x41ad39
mov eax, 0x28
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
cmp dword [0x4ee720], 2
jge 0x41ad70
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
mov edx, dword [ecx + 0x4f2064]
test edx, edx
je 0x41ad62
mov eax, 0x98
jmp 0x41ade7
mov dword [ecx + 0x4f2064], 1
xor eax, eax
jmp 0x41ade7
lea eax, [edx + 0x4f2064]
push eax
call fcn.00410ec0
pop ecx
test eax, eax
je 0x41ad88
mov eax, 0x98
jmp 0x41ade7
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
cmp dword [edx + 0x4f2060], 0
je 0x41b1b6
mov dword [edx + 0x4f2064], 0
mov edx, dword [ebp - 4]
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4f2060]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea ecx, [edx + 0x4f2064]
push ecx
call fcn.00410ec0
pop ecx
test eax, eax
je 0x41adf2
mov eax, 0x98
jmp 0x41ae19
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 4]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x4f2068], eax
mov dword [ecx + 0x4f206c], 1
xor eax, eax
test eax, eax
jne 0x41ad2c
mov eax, dword [ebp - 4]
lea edx, [eax*4]
shl eax, 5
sub eax, edx
mov edx, dword [eax + 0x4f2078]
test edx, edx
je 0x41ae5a
movzx ecx, byte [edx + 0x161]
test cl, 0x20
jne 0x41ae50
test cl, 0x18
je 0x41ae50
cmp ebx, 6
je 0x41ae5a
cmp dword [edx + 0x18], 0
je 0x41b1a1
lea ecx, [ebp - 0x20]
lea edx, [ebp - 8]
lea eax, [eax + 0x4f2060]
push eax
push edx
push ebx
push ecx
push esi
call fcn.004218c0
add esp, 0x14
cmp eax, 0xfffffffd
je 0x41ace5
jmp 0x41afe7
mov eax, dword [ebp - 0x24]
mov ecx, dword [0x4ee720]
mov dword [ebp - 4], eax
cmp ecx, 2
jge 0x41aec5
mov edx, dword [ebp - 0x28]
lea edi, [edx*4 + 0x1a4]
lea edx, [edi*8]
sub edx, edi
mov edi, dword [edx + 0x4f2064]
test edi, edi
jne 0x41af5f
mov dword [edx + 0x4f2064], 1
mov eax, dword [ebp - 4]
jmp 0x41af5f
mov eax, dword [ebp - 0x28]
lea edx, [eax*4 + 0x1a4]
lea ecx, [edx*8]
sub ecx, edx
lea edi, [ecx + 0x4f2064]
push edi
call fcn.00410ec0
pop ecx
test eax, eax
jne 0x41af56
mov ecx, dword [ebp - 4]
lea eax, [ecx*4]
mov edx, ecx
shl edx, 5
sub edx, eax
cmp dword [edx + 0x4f2060], 0
je 0x41b59f
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
mov dword [ecx + 0x4f2064], 0
mov edx, dword [ebp - 4]
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4f2060]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea ecx, [edx + 0x4f2064]
push ecx
call fcn.00410ec0
pop ecx
mov ecx, dword [0x4ee720]
mov eax, dword [ebp - 4]
cmp ecx, 1
je 0x41b57e
lea edx, [eax*4]
shl eax, 5
sub eax, edx
mov edx, dword [eax + 0x4f2078]
mov dword [ebp - 0x20], edx
xor edi, edi
test edx, edx
je 0x41af9b
cmp esi, dword [edx + 0xf8]
jle 0x41b569
mov edi, edx
mov edx, dword [edx + 0x28]
mov dword [ebp - 0x20], edx
test edx, edx
jne 0x41af83
lea edx, [ebp - 0xc]
lea ecx, [ebp - 8]
lea eax, [eax + 0x4f2060]
push eax
push ecx
push ebx
push edx
push esi
call fcn.004218c0
add esp, 0x14
cmp eax, 0xfffffffd
je 0x41ace5
jmp 0x41b1e5
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov eax, 0x20
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x2c], 2
lea eax, [ebp - 0x2c]
push eax
call fcn.00410640
pop ecx
jmp 0x41aca9
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
test eax, eax
jne 0x41ad2c
cmp dword [ebp - 0x20], 0
je 0x41b0ae
mov eax, dword [ebp - 0x20]
mov dword [0x4f11c0], 1
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
cmp edx, 6
mov dword [ecx], eax
jne 0x41b01e
mov edx, 8
test edi, edi
je 0x41b025
mov dword [edi + 4], eax
mov dword [eax + 0x64], edi
cmp edx, 0xd
je 0x41b04d
cmp edx, 0x10
je 0x41b04d
cmp edx, 0xa
jne 0x41b043
mov eax, dword [ebp - 0x20]
or byte [eax + 0x16a], 2
jmp 0x41b04d
mov eax, dword [ebp - 0x20]
and byte [eax + 0x16a], 0xfd
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x154], dl
mov ecx, dword [ebp - 0x20]
and byte [ecx + 0x16a], 0xf7
mov ebx, dword [ebp - 0x20]
and byte [ebx + 0x16a], 0xef
cmp dword [ebp - 8], 0
je 0x41b09f
mov eax, dword [ebp - 0x20]
call fcn.0041c030
mov ebx, eax
test ebx, ebx
je 0x41b09f
mov eax, esi
xor edx, edx
call fcn.0041a4a0
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov eax, ebx
mov ebx, dword [ebp - 0x1c]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 0
lea eax, [ebp - 0x20]
push eax
push 1
push 0x178
call fcn.00419300
mov dword [ebp - 0x34], eax
add esp, 0xc
cmp dword [ebp - 0x34], 0
je 0x41b147
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
cmp dword [0x4ee720], 2
mov dword [edx + 0x4f206c], 0
mov dword [edx + 0x4f2068], 0xffffffff
jge 0x41b109
mov dword [edx + 0x4f2064], 0
jmp 0x41b12e
mov dword [edx + 0x4f2064], 0
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4f2060]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
push 0x178
push 0
push dword [ebp - 0x20]
call fcn.004aea20
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov dword [eax + 0xf8], esi
cmp ebx, 0x69
jl 0x41b184
mov edx, dword [ebp - 0x20]
xor eax, eax
mov dword [edx], eax
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 4], eax
mov ebx, dword [ebp - 0x20]
mov dword [ebx + 8], 0xffffffff
mov edx, dword [ebp - 0x20]
mov dword [edx + 0xc], eax
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x4f2078], eax
jmp 0x41b002
mov edi, dword [ebp - 0x34]
mov dword [ebp - 8], 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
jmp 0x41b002
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [ebp - 4]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x4f2060], eax
mov dword [ecx + 0x4f2064], 0
jmp 0x41adae
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x34]
test eax, eax
jne 0x41ad2c
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x41b416
mov dword [ebp - 0x20], edx
cmp dword [edx + 0x18], 0
je 0x41b2a7
mov eax, dword [0x4ee720]
cmp eax, 1
je 0x41b27a
cmp eax, 2
jge 0x41b23e
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4f2064], 0
mov eax, dword [ebp - 0x20]
jmp 0x41b00c
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4f2064], 0
mov ebx, dword [ebp - 4]
lea ecx, [ebx*4]
shl ebx, 5
sub ebx, ecx
push dword [ebx + 0x4f2060]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x20]
jmp 0x41b00c
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4f2074]
push dword [edx + 0x4f2070]
call fcn.00410ea0
add esp, 8
mov eax, dword [0x4ee720]
jmp 0x41b218
cmp dword [edx + 0xc], 0
je 0x41b2c5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x20]
cmp eax, dword [edx + 8]
jne 0x41b2c5
mov ebx, 0x28
jmp 0x41b354
cmp dword [0x4ee720], 2
jge 0x41b2e7
mov eax, dword [edx + 4]
test eax, eax
je 0x41b2dc
mov eax, 0x98
jmp 0x41b329
mov dword [edx + 4], 1
xor eax, eax
jmp 0x41b329
add edx, 4
push edx
call fcn.00410ec0
pop ecx
test eax, eax
je 0x41b2fc
mov eax, 0x98
jmp 0x41b329
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
je 0x41b3f7
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x20]
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x20]
add eax, 4
push eax
call fcn.00410ec0
pop ecx
test eax, eax
je 0x41b334
mov ebx, 0x98
jmp 0x41b34c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x20]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x20]
xor ebx, ebx
mov dword [eax + 0xc], 1
test ebx, ebx
je 0x41b20e
mov eax, dword [0x4ee720]
cmp eax, 1
je 0x41b3ca
cmp eax, 2
jge 0x41b37e
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4f2064], 0
jmp 0x41b3b2
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4f2064], 0
mov esi, dword [ebp - 4]
lea ecx, [esi*4]
shl esi, 5
sub esi, ecx
push dword [esi + 0x4f2060]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov eax, ebx
mov ebx, dword [ebp - 0x1c]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4f2074]
push dword [edx + 0x4f2070]
call fcn.00410ea0
add esp, 8
mov eax, dword [0x4ee720]
jmp 0x41b35e
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 4], 0
jmp 0x41b30f
mov dword [ebp - 8], 0
lea eax, [ebp - 0x30]
push eax
push 1
push 0x178
call fcn.00419300
mov dword [ebp - 0x34], eax
add esp, 0xc
cmp dword [ebp - 0x34], 0
je 0x41b4b4
mov eax, dword [0x4ee720]
cmp eax, 1
je 0x41b522
cmp eax, 2
jge 0x41b467
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4f2064], 0
jmp 0x41b49b
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4f2064], 0
mov ebx, dword [ebp - 4]
lea ecx, [ebx*4]
shl ebx, 5
sub ebx, ecx
push dword [ebx + 0x4f2060]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
push 0x178
push 0
push eax
call fcn.004aea20
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov dword [eax + 0xf8], esi
cmp ebx, 0x69
jl 0x41b4f5
mov edx, dword [ebp - 0x30]
xor eax, eax
mov dword [edx], eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 4], eax
mov ebx, dword [ebp - 0x30]
mov dword [ebx + 8], 0xffffffff
mov edx, dword [ebp - 0x30]
mov dword [edx + 0xc], eax
cmp dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x28], eax
je 0x41b54f
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x28], eax
mov edx, dword [ebp - 0x30]
mov dword [0x4f11c0], 1
mov dword [ebp - 0x20], edx
jmp 0x41b204
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4f2074]
push dword [edx + 0x4f2070]
call fcn.00410ea0
add esp, 8
mov eax, dword [0x4ee720]
jmp 0x41b447
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
mov dword [ecx + 0x4f2078], edx
jmp 0x41b510
jne 0x41af9b
mov edi, dword [ebp - 0x34]
mov dword [ebp - 8], 1
jmp 0x41b204
lea edx, [eax*4]
shl eax, 5
sub eax, edx
lea eax, [eax + 0x4f2070]
push eax
call fcn.00410e70
pop ecx
mov eax, dword [ebp - 4]
jmp 0x41af68
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [ebp - 4]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x4f2060], eax
mov dword [ecx + 0x4f2064], 0
jmp 0x41af1d
lea eax, [ebp - 0x20]
push eax
push 1
push 0x178
call fcn.00419300
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x41b625
push 0x178
push 0
push dword [ebp - 0x20]
call fcn.004aea20
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x34]
push edx
mov dword [eax + 0xf8], esi
push 0
push 0x54
call fcn.00419300
add esp, 0x18
mov ebx, eax
test ebx, ebx
je 0x41b641
push dword [ebp - 0x20]
call fcn.004193c0
pop ecx
mov dword [ebp - 0x20], 0
test ebx, ebx
je 0x41b683
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov eax, ebx
mov ebx, dword [ebp - 0x1c]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov dword [edx + 0x58], eax
mov ebx, dword [ebp - 0x20]
mov edx, 0x54
mov ecx, dword [ebp - 0x34]
mov dword [ebx + 0x5c], ecx
mov ecx, dword [ebp - 0x34]
xor eax, eax
mov dword [ecx + edx - 4], eax
mov dword [ecx + edx - 8], eax
mov dword [ecx + edx - 0xc], eax
mov dword [ecx + edx - 0x10], eax
mov dword [ecx + edx - 0x14], eax
mov dword [ecx + edx - 0x18], eax
mov dword [ecx + edx - 0x1c], eax
sub edx, 0x1c
jne 0x41b65b
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [0x4ee720]
cmp eax, 2
jge 0x41b6a4
cmp eax, 1
je 0x41b733
mov dword [ebp - 0x30], 0x4ee680
mov edx, 0x4ee680
jmp 0x41b6bc
lea eax, [ebp - 0x30]
push eax
call fcn.00410c30
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x41b712
mov eax, dword [0x4ee720]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
mov edx, dword [edx]
mov dword [ecx + 0x28], edx
mov edx, dword [ebp - 0x20]
cmp eax, 1
mov ebx, dword [ebp - 0x30]
mov dword [ebx], edx
je 0x41b748
mov eax, dword [ebp + 0x14]
mov byte [edx + 0x154], al
mov eax, dword [ebp - 0x20]
test edi, edi
je 0x41b6e4
mov dword [edi + 4], eax
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov dword [eax + 0x64], edi
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
and byte [edx + 0x16a], 0xf7
mov ecx, dword [ebp - 0x20]
and byte [ecx + 0x16a], 0xef
mov eax, dword [ebp - 0x20]
mov dword [ebx], eax
xor eax, eax
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20]
call fcn.004193c0
pop ecx
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov eax, ebx
mov ebx, dword [ebp - 0x1c]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
push 0x4ee6e4
call fcn.00410e70
pop ecx
mov eax, dword [0x4ee720]
jmp 0x41b696
mov eax, dword [ebp - 0x30]
push dword [eax + 0x68]
push dword [eax + 0x64]
call fcn.00410ea0
add esp, 8
mov edx, dword [ebp - 0x20]
jmp 0x41b6d1
call fcn.00411100
jmp 0x41ac8d