Function at 0x41a4a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
mov edi, edx
mov esi, eax
cmp esi, 0xfffffffb
jl 0x41a4c0
je 0x41a8f7
jmp 0x41a4d6
push 0x564
push str.for_lub_mgt.c
push 2
push 8
call fcn.00404e90
add esp, 0x10
lea ecx, [esi + 5]
cmp ecx, 0x69
jge 0x41a766
lea eax, [esi*4 + 0x14]
lea edx, [eax*8]
sub edx, eax
mov ebx, dword [edx + 0x4f2078]
mov dword [ebp - 0x18], edx
test ebx, ebx
je 0x41a505
cmp dword [ebx + 0x18], 0
je 0x41a522
mov dword [ebp - 0x10], ecx
push 0
push esi
call fcn.004214e0
add esp, 8
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x64]
mov dword [ebx + 0x64], 0
test edi, edi
mov dword [ebp - 0x14], eax
je 0x41a638
mov dword [ebp - 0x10], ecx
test byte [ebx + 0x161], 0x18
jne 0x41a5a5
xor eax, eax
cmp dword [0x4ee720], 2
mov dword [edx + 0x4f2078], eax
mov dword [edx + 0x4f2068], 0xffffffff
mov dword [edx + 0x4f206c], eax
jge 0x41a572
mov eax, edx
mov dword [eax + 0x4f2064], 0
jmp 0x41a599
mov eax, edx
mov dword [eax + 0x4f2064], 0
mov ecx, dword [ebp - 0x10]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
push dword [ecx + 0x4f2060]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call fcn.004193c0
pop ecx
jmp 0x41a747
push 0x178
push 0
mov esi, dword [ebx + 0xf8]
push ebx
call fcn.004aea20
add esp, 0xc
mov edx, dword [ebp - 0x18]
movzx eax, byte [ebx + 0x161]
or byte [ebx + 0x16a], 4
and eax, 0xffffffe7
or eax, 8
cmp dword [0x4ee720], 2
mov byte [ebx + 0x161], al
mov dword [ebx + 0xf8], esi
mov dword [edx + 0x4f206c], 0
mov dword [edx + 0x4f2068], 0xffffffff
jge 0x41a60c
mov eax, edx
mov dword [eax + 0x4f2064], 0
jmp 0x41a747
mov eax, edx
mov dword [eax + 0x4f2064], 0
mov ecx, dword [ebp - 0x10]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
push dword [ecx + 0x4f2060]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x41a747
movzx eax, byte [ebx + 0x16b]
test al, 1
je 0x41a665
movzx esi, byte [ebx + 0x163]
mov edx, esi
and edx, 0xffffffdf
and esi, 0x40
shr esi, 1
or edx, esi
mov byte [ebx + 0x163], dl
and eax, 0xfffffffe
mov byte [ebx + 0x16b], al
test al, 2
je 0x41a67f
movzx edx, byte [ebx + 0x15a]
mov byte [ebx + 0x159], dl
and eax, 0xfffffffd
mov byte [ebx + 0x16b], al
test al, 4
je 0x41a699
movzx edx, byte [ebx + 0x152]
mov byte [ebx + 0x151], dl
and eax, 0xfffffffb
mov byte [ebx + 0x16b], al
test al, 8
je 0x41a6bf
movzx esi, byte [ebx + 0x166]
mov edx, esi
and edx, 0xfffffffd
and esi, 4
shr esi, 1
or edx, esi
mov byte [ebx + 0x166], dl
and eax, 0xfffffff7
mov byte [ebx + 0x16b], al
test al, 0x10
je 0x41a6d9
movzx edx, byte [ebx + 0x158]
mov byte [ebx + 0x157], dl
and eax, 0xffffffef
mov byte [ebx + 0x16b], al
test al, 0x20
je 0x41a6f3
movzx edx, byte [ebx + 0x15c]
mov byte [ebx + 0x15b], dl
and eax, 0xffffffdf
mov byte [ebx + 0x16b], al
cmp dword [0x4ee720], 2
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x4f206c], 0
mov dword [eax + 0x4f2068], 0xffffffff
jge 0x41a71f
mov dword [eax + 0x4f2064], 0
jmp 0x41a747
mov dword [ebp - 0x10], ecx
mov dword [eax + 0x4f2064], 0
mov ecx, dword [ebp - 0x10]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
push dword [ecx + 0x4f2060]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x14], 0
je 0x41a757
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, 0x3ee4f99d
imul ecx
mov ebx, ecx
sar ebx, 0x1f
sar edx, 7
sub edx, ebx
imul eax, edx, 0x209
sub ecx, eax
lea eax, [ecx + 0x69]
mov edx, dword [0x4ee720]
mov dword [ebp - 0x10], eax
cmp edx, 2
jge 0x41a7c0
lea ebx, [ecx*4 + 0x1a4]
lea ecx, [ebx*8]
sub ecx, ebx
mov ebx, dword [ecx + 0x4f2064]
test ebx, ebx
jne 0x41a857
mov dword [ecx + 0x4f2064], 1
mov eax, dword [ebp - 0x10]
jmp 0x41a857
lea eax, [ecx*4 + 0x1a4]
lea edx, [eax*8]
sub edx, eax
lea ecx, [edx + 0x4f2064]
push ecx
call fcn.00410ec0
pop ecx
test eax, eax
jne 0x41a84e
mov ecx, dword [ebp - 0x10]
lea eax, [ecx*4]
mov edx, ecx
shl edx, 5
sub edx, eax
cmp dword [edx + 0x4f2060], 0
je 0x41abd8
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
mov dword [ecx + 0x4f2064], 0
mov edx, dword [ebp - 0x10]
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 - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea ecx, [edx + 0x4f2064]
push ecx
call fcn.00410ec0
pop ecx
mov edx, dword [0x4ee720]
mov eax, dword [ebp - 0x10]
cmp edx, 1
je 0x41abb1
lea ecx, [eax*4]
mov ebx, eax
shl ebx, 5
sub ebx, ecx
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebx + 0x4f2078]
test ebx, ebx
je 0x41a892
xor ecx, ecx
cmp esi, dword [ebx + 0xf8]
jle 0x41a9e9
mov ecx, ebx
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x41a87d
cmp edx, 1
je 0x41a9c4
lea ecx, [eax*4]
shl eax, 5
sub eax, ecx
cmp edx, 2
jge 0x41a8b8
mov dword [eax + 0x4f2064], 0
jmp 0x41a8dd
mov dword [eax + 0x4f2064], 0
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4f2060]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
push esi
call fcn.004214e0
add esp, 8
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4ee720]
cmp eax, 2
jge 0x41a914
cmp eax, 1
je 0x41a979
mov dword [ebp - 0x18], 0x4ee680
mov edx, 0x4ee680
jmp 0x41a925
lea eax, [ebp - 0x18]
push eax
call fcn.00410c30
pop ecx
test eax, eax
jne 0x41a96f
mov edx, dword [ebp - 0x18]
mov ebx, dword [edx]
test ebx, ebx
je 0x41a99c
mov eax, dword [ebx + 0x28]
mov dword [edx], eax
mov edx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x14], edx
mov dword [ebx + 0x64], 0
test byte [eax + 0x4f], 2
je 0x41a952
push dword [eax + 4]
call fcn.004193c0
pop ecx
mov eax, dword [ebx + 0x58]
push eax
call fcn.004193c0
push ebx
call fcn.004193c0
add esp, 8
cmp dword [0x4ee720], 1
je 0x41a986
jmp 0x41a747
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push 0x4ee6e4
call fcn.00410e70
pop ecx
jmp 0x41a906
mov eax, dword [ebp - 0x18]
push dword [eax + 0x68]
push dword [eax + 0x64]
call fcn.00410ea0
add esp, 8
jmp 0x41a747
cmp dword [0x4ee720], 1
je 0x41a9b4
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
xor eax, eax
mov esp, ebp
pop ebp
ret
push dword [edx + 0x68]
push dword [edx + 0x64]
call fcn.00410ea0
add esp, 8
jmp 0x41a9a5
mov eax, dword [ebp - 0x18]
push dword [eax + 0x4f2074]
push dword [eax + 0x4f2070]
call fcn.00410ea0
add esp, 8
mov eax, dword [ebp - 0x10]
mov edx, dword [0x4ee720]
jmp 0x41a89b
jne 0x41a892
test edi, edi
je 0x41aa01
test ecx, ecx
je 0x41ab7b
mov esi, dword [ebx + 0x28]
mov dword [ecx + 0x28], esi
cmp edx, 1
je 0x41ab8c
lea ecx, [eax*4]
shl eax, 5
sub eax, ecx
cmp edx, 2
jge 0x41aa27
mov dword [eax + 0x4f2064], 0
jmp 0x41aa4c
mov dword [eax + 0x4f2064], 0
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4f2060]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebx + 0x64]
mov dword [ebx + 0x64], 0
mov dword [ebp - 0x14], eax
movzx eax, byte [ebx + 0x16b]
test al, 1
je 0x41aa86
movzx ecx, byte [ebx + 0x163]
mov edx, ecx
and edx, 0xffffffdf
and ecx, 0x40
shr ecx, 1
or edx, ecx
mov byte [ebx + 0x163], dl
and eax, 0xfffffffe
mov byte [ebx + 0x16b], al
test al, 2
je 0x41aaa0
movzx edx, byte [ebx + 0x15a]
mov byte [ebx + 0x159], dl
and eax, 0xfffffffd
mov byte [ebx + 0x16b], al
test al, 4
je 0x41aaba
movzx edx, byte [ebx + 0x152]
mov byte [ebx + 0x151], dl
and eax, 0xfffffffb
mov byte [ebx + 0x16b], al
test al, 8
je 0x41aae0
movzx ecx, byte [ebx + 0x166]
mov edx, ecx
and edx, 0xfffffffd
and ecx, 4
shr ecx, 1
or edx, ecx
mov byte [ebx + 0x166], dl
and eax, 0xfffffff7
mov byte [ebx + 0x16b], al
test al, 0x10
je 0x41aafa
movzx edx, byte [ebx + 0x158]
mov byte [ebx + 0x157], dl
and eax, 0xffffffef
mov byte [ebx + 0x16b], al
test al, 0x20
je 0x41ab14
movzx edx, byte [ebx + 0x15c]
mov byte [ebx + 0x15b], dl
and eax, 0xffffffdf
mov byte [ebx + 0x16b], al
cmp dword [0x4ee720], 2
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0xffffffff
jge 0x41ab34
mov dword [ebx + 4], 0
jmp 0x41ab43
push dword [ebx]
mov dword [ebx + 4], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test edi, edi
je 0x41a747
cmp dword [0x4ee720], 2
jl 0x41ab61
mov eax, dword [ebx]
test eax, eax
je 0x41ab61
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 8], 0xffffffff
push ebx
mov dword [ebx + 0xc], 0
call fcn.004193c0
pop ecx
jmp 0x41a747
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x28]
mov dword [esi + 0x4f2078], ecx
jmp 0x41aa01
mov eax, dword [ebp - 0x18]
push dword [eax + 0x4f2074]
push dword [eax + 0x4f2070]
call fcn.00410ea0
add esp, 8
mov eax, dword [ebp - 0x10]
mov edx, dword [0x4ee720]
jmp 0x41aa0a
lea edx, [eax*4]
shl eax, 5
sub eax, edx
lea eax, [eax + 0x4f2070]
push eax
call fcn.00410e70
pop ecx
mov edx, dword [0x4ee720]
mov eax, dword [ebp - 0x10]
jmp 0x41a860
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x4f2060], eax
mov dword [ecx + 0x4f2064], 0
jmp 0x41a815