Function at 0x41fce4
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [0x4a6200]
test eax, eax
je 0x42040c
cmp ebx, 0xfffffffb
jl 0x42021c
je 0x42033c
lea eax, [ebx + 5]
mov dword [ebp - 0x10], eax
cmp eax, 0x69
jge 0x41fe79
lea eax, [ebx*4 + 0x14]
mov ecx, eax
shl ecx, 3
sub ecx, eax
mov eax, dword [ecx + 0x4a6d0c]
test eax, eax
je 0x41fd63
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
mov ecx, dword [ebp - 0x10]
mov eax, ecx
shl eax, 2
shl ecx, 5
sub ecx, eax
cmp edx, dword [ecx + 0x4a6d08]
jne 0x41fd63
mov eax, 0x28
jmp 0x41fe6c
mov eax, dword [0x4a1100]
cmp eax, 2
jge 0x41fd9c
mov eax, dword [ecx + 0x4a6d04]
test eax, eax
je 0x41fd81
mov eax, 0x98
jmp 0x41fe0e
mov edx, dword [ebp - 0x10]
mov eax, edx
shl eax, 2
shl edx, 5
sub edx, eax
xor eax, eax
mov dword [edx + 0x4a6d04], 1
jmp 0x41fe0e
lea eax, [ecx + 0x4a6d04]
push eax
call fcn.004101ac
pop ecx
test eax, eax
je 0x41fdb4
mov eax, 0x98
jmp 0x41fe0e
mov edx, dword [ebp - 0x10]
mov eax, edx
shl eax, 2
shl edx, 5
sub edx, eax
mov eax, dword [edx + 0x4a6d00]
test eax, eax
je 0x4202cd
mov dword [edx + 0x4a6d04], 0
mov edx, dword [ebp - 0x10]
push 0xffffffffffffffff
mov eax, edx
shl eax, 2
shl edx, 5
sub edx, eax
push dword [edx + 0x4a6d00]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x10]
mov eax, edx
shl eax, 2
shl edx, 5
sub edx, eax
lea eax, [edx + 0x4a6d04]
push eax
call fcn.004101ac
pop ecx
test eax, eax
je 0x41fe19
mov eax, 0x98
jmp 0x41fe40
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
mov ecx, dword [ebp - 0x10]
mov eax, ecx
shl eax, 2
shl ecx, 5
sub ecx, eax
xor eax, eax
mov dword [ecx + 0x4a6d0c], 1
mov dword [ecx + 0x4a6d08], edx
test eax, eax
jne 0x41fe6c
mov edx, dword [ebp - 0x10]
mov eax, edx
shl eax, 2
shl edx, 5
sub edx, eax
mov eax, dword [edx + 0x4a6d18]
test eax, eax
je 0x42022e
mov dword [ebp - 0x14], eax
mov ecx, 1
jmp 0x420185
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
lea edx, [ebp - 0x10]
mov eax, ebx
lea ecx, [ebp - 0x14]
call fcn.00420520
test eax, eax
jne 0x41ff4b
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41feae
cmp ebx, dword [eax + 0xb8]
jne 0x41feae
mov ecx, 1
jmp 0x41ff80
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00420418
test eax, eax
je 0x41ff5e
mov ecx, dword [0x4a1100]
test ecx, ecx
jle 0x41fefc
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov ecx, ebx
shl ecx, 2
shl ebx, 5
sub ebx, ecx
push dword [ebx + 0x4a6d14]
push dword [ebx + 0x4a6d10]
call fcn.004103a8
mov eax, dword [ebp - 0x24]
add esp, 8
mov ecx, dword [0x4a1100]
cmp ecx, 2
jge 0x41ff15
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
shl ecx, 2
shl ebx, 5
sub ebx, ecx
mov dword [ebx + 0x4a6d04], 0
jmp 0x41ff4b
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov ecx, ebx
shl ecx, 2
shl ebx, 5
sub ebx, ecx
mov dword [ebx + 0x4a6d04], 0
mov ecx, dword [ebp - 0x10]
mov edi, ecx
shl edi, 2
shl ecx, 5
sub ecx, edi
push dword [ecx + 0x4a6d00]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [esi], 0
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x18], eax
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x420321
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov edx, dword [eax + 0xc]
test edx, edx
je 0x41ffa7
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x24]
mov edx, eax
mov eax, dword [ebp - 0x14]
cmp edx, dword [eax + 8]
jne 0x41ffa7
mov eax, 0x28
jmp 0x420058
mov edx, dword [0x4a1100]
cmp edx, 2
jge 0x41ffce
mov eax, dword [eax + 4]
test eax, eax
je 0x41ffc0
mov eax, 0x98
jmp 0x420027
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 1
xor eax, eax
jmp 0x420027
mov dword [ebp - 0x24], ecx
add eax, 4
push eax
call fcn.004101ac
mov ecx, dword [ebp - 0x24]
add esp, 4
test eax, eax
je 0x41ffeb
mov eax, 0x98
jmp 0x420027
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
je 0x4202fc
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x14]
push 0xffffffffffffffff
push dword [eax]
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], ecx
add eax, 4
push eax
call fcn.004101ac
mov ecx, dword [ebp - 0x24]
add esp, 4
test eax, eax
je 0x420032
mov eax, 0x98
jmp 0x420050
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc], 1
xor eax, eax
test eax, eax
je 0x4200f6
mov ecx, dword [0x4a1100]
test ecx, ecx
jle 0x420094
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov ecx, ebx
shl ecx, 2
shl ebx, 5
sub ebx, ecx
push dword [ebx + 0x4a6d14]
push dword [ebx + 0x4a6d10]
call fcn.004103a8
mov eax, dword [ebp - 0x28]
add esp, 8
mov ecx, dword [0x4a1100]
cmp ecx, 2
jge 0x4200ad
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
shl ecx, 2
shl ebx, 5
sub ebx, ecx
mov dword [ebx + 0x4a6d04], 0
jmp 0x4200e3
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov ecx, ebx
shl ecx, 2
shl ebx, 5
sub ebx, ecx
mov dword [ebx + 0x4a6d04], 0
mov ecx, dword [ebp - 0x10]
mov edi, ecx
shl edi, 2
shl ecx, 5
sub ecx, edi
push dword [ecx + 0x4a6d00]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [esi], 0
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4a1100]
test eax, eax
jle 0x420130
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ecx
mov eax, edx
shl eax, 2
shl edx, 5
sub edx, eax
push dword [edx + 0x4a6d14]
push dword [edx + 0x4a6d10]
call fcn.004103a8
mov ecx, dword [ebp - 0x24]
add esp, 8
mov eax, dword [0x4a1100]
cmp eax, 2
jge 0x42014c
mov edx, dword [ebp - 0x10]
mov eax, edx
shl eax, 2
shl edx, 5
sub edx, eax
mov dword [edx + 0x4a6d04], 0
mov eax, dword [ebp - 0x14]
jmp 0x420185
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ecx
mov eax, edx
shl eax, 2
shl edx, 5
sub edx, eax
mov dword [edx + 0x4a6d04], 0
mov edx, dword [ebp - 0x10]
mov eax, edx
shl eax, 2
shl edx, 5
sub edx, eax
push dword [edx + 0x4a6d00]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
test edi, edi
je 0x42018e
mov dword [edi + 4], eax
mov dword [eax + 0x54], edi
mov eax, dword [ebp + 0x14]
cmp eax, 4
je 0x4201bc
mov eax, dword [ebp + 0x14]
cmp eax, 0xa
je 0x4201bc
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp + 0x14]
cmp eax, 8
jne 0x4201b5
or byte [edi + 0x121], 0x80
jmp 0x4201bc
and byte [edi + 0x121], 0x7f
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp + 0x14]
mov byte [edi + 0x113], al
mov edi, dword [ebp - 0x14]
and byte [edi + 0x122], 0xfd
mov edi, dword [ebp - 0x14]
and byte [edi + 0x122], 0xfb
test ecx, ecx
je 0x42020d
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x14]
call fcn.00421300
mov edi, eax
test edi, edi
je 0x42020d
mov eax, ebx
call fcn.004206b8
mov ebx, dword [ebp - 0xc]
mov dword [esi], 0
mov eax, edi
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, 0x20
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00420418
test eax, eax
je 0x4202b0
mov edi, dword [ebp - 0x10]
mov ebx, dword [0x4a1100]
mov ecx, edi
shl ecx, 2
shl edi, 5
sub edi, ecx
mov dword [edi + 0x4a6d0c], 0
cmp ebx, 2
mov dword [edi + 0x4a6d08], 0xffffffff
jge 0x420274
mov dword [edi + 0x4a6d04], 0
jmp 0x42029d
mov dword [edi + 0x4a6d04], 0
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov ecx, ebx
shl ecx, 2
shl ebx, 5
sub ebx, ecx
push dword [ebx + 0x4a6d00]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [esi], 0
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, ecx
shl edx, 2
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x4a6d18], eax
xor ecx, ecx
jmp 0x420185
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, eax
mov ecx, dword [ebp - 0x10]
mov eax, ecx
shl eax, 2
shl ecx, 5
sub ecx, eax
mov dword [ecx + 0x4a6d00], edx
mov dword [ecx + 0x4a6d04], 0
jmp 0x41fdd9
mov dword [ebp - 0x24], ecx
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0
jmp 0x41ffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov edx, ecx
shl edx, 2
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x4a6d18], eax
jmp 0x41ff7b
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00420418
test eax, eax
jne 0x41ff4b
mov eax, dword [0x4a1100]
cmp eax, 2
jge 0x420370
test eax, eax
jle 0x420367
push 0x4a10f4
call fcn.00410278
pop ecx
mov dword [ebp - 0x20], 0x4a10d0
jmp 0x420380
lea eax, [ebp - 0x20]
push eax
call fcn.004103c8
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x4203ee
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov ebx, dword [eax]
mov dword [edx + 0x18], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
mov eax, dword [0x4a1100]
test eax, eax
jle 0x4203ad
mov eax, dword [ebp - 0x20]
push dword [eax + 0x28]
push dword [eax + 0x24]
call fcn.004103a8
add esp, 8
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x14]
mov byte [ebx + 0x113], al
mov eax, dword [ebp - 0x14]
test edi, edi
je 0x4203c3
mov dword [edi + 4], eax
mov dword [eax + 0x54], edi
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 8]
and byte [ecx + 0x122], 0xfd
mov eax, dword [ebp - 0x14]
and byte [eax + 0x122], 0xfb
xor eax, eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x14]
call fcn.00421eac
pop ecx
mov edi, dword [ebp - 8]
mov dword [esi], 0
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call fcn.004105f4
jmp 0x41fd06