Function at 0x48f800
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], ebx
mov edi, edx
mov esi, eax
cmp esi, 0xfffffffb
jl 0x48f820
je 0x48fcad
jmp 0x48f836
push 0x553
push str.for_lub_mgt.c
push 2
push 8
call fcn.00492dd0
add esp, 0x10
lea ecx, [esi + 5]
cmp ecx, 0x69
jge 0x48fb0a
lea edx, [esi*4 + 0x14]
lea eax, [edx*8]
sub eax, edx
mov ebx, dword [eax + 0x518178]
test ebx, ebx
je 0x48f863
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x48f880
mov dword [ebp - 0x10], ecx
push 0
push esi
call fcn.00494880
add esp, 8
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 edx, dword [ebx + 0x64]
mov dword [ebx + 0x64], 0
test edi, edi
mov dword [ebp - 0x18], edx
je 0x48f9a8
movzx edx, byte [ebx + 0x159]
mov dword [ebp - 0x10], ecx
test dl, 0x18
jne 0x48f904
mov ecx, dword [0x50fea0]
mov dword [eax + 0x518168], 0xffffffff
xor edx, edx
cmp ecx, 2
mov dword [eax + 0x518178], edx
mov dword [eax + 0x51816c], edx
jge 0x48f8d3
mov dword [eax + 0x518164], 0
jmp 0x48f8f8
mov dword [eax + 0x518164], 0
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x518160]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call fcn.004849b0
pop ecx
jmp 0x48faed
push 0x170
push 0
mov eax, dword [ebx + 0xf0]
mov dword [ebp - 0x1c], eax
push ebx
call fcn.004e2770
add esp, 0xc
mov edx, dword [ebp - 0x1c]
movzx eax, byte [ebx + 0x159]
or byte [ebx + 0x162], 4
and eax, 0xffffffe7
or eax, 8
mov byte [ebx + 0x159], al
mov dword [ebx + 0xf0], edx
mov ebx, dword [0x50fea0]
lea ecx, [esi*4 + 0x14]
lea eax, [ecx*8]
sub eax, ecx
mov dword [eax + 0x51816c], 0
cmp ebx, 2
mov dword [eax + 0x518168], 0xffffffff
jge 0x48f97e
mov dword [eax + 0x518164], 0
jmp 0x48faed
mov dword [eax + 0x518164], 0
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x518160]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x48faed
movzx edx, byte [ebx + 0x163]
mov dword [ebp - 0x1c], edx
test dl, 1
je 0x48f9e6
movzx esi, byte [ebx + 0x15b]
mov edx, esi
and edx, 0xffffffdf
and esi, 0x40
shr esi, 6
and esi, 1
shl esi, 5
or edx, esi
mov byte [ebx + 0x15b], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xfffffffe
mov byte [ebx + 0x163], dl
mov dword [ebp - 0x1c], edx
test dl, 2
je 0x48fa07
movzx edx, byte [ebx + 0x152]
mov byte [ebx + 0x151], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xfffffffd
mov byte [ebx + 0x163], dl
mov dword [ebp - 0x1c], edx
test dl, 4
je 0x48fa28
movzx edx, byte [ebx + 0x14a]
mov byte [ebx + 0x149], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xfffffffb
mov byte [ebx + 0x163], dl
mov dword [ebp - 0x1c], edx
test dl, 8
je 0x48fa5b
movzx esi, byte [ebx + 0x15e]
mov edx, esi
and edx, 0xfffffffd
and esi, 4
shr esi, 2
and esi, 1
add esi, esi
or edx, esi
mov byte [ebx + 0x15e], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xfffffff7
mov byte [ebx + 0x163], dl
mov dword [ebp - 0x1c], edx
test dl, 0x10
je 0x48fa7c
movzx edx, byte [ebx + 0x150]
mov byte [ebx + 0x14f], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xffffffef
mov byte [ebx + 0x163], dl
mov dword [ebp - 0x1c], edx
test dl, 0x20
je 0x48fa9a
movzx edx, byte [ebx + 0x154]
mov byte [ebx + 0x153], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xffffffdf
mov byte [ebx + 0x163], dl
mov edx, dword [0x50fea0]
mov dword [eax + 0x51816c], 0
cmp edx, 2
mov dword [eax + 0x518168], 0xffffffff
jge 0x48fac5
mov dword [eax + 0x518164], 0
jmp 0x48faed
mov dword [ebp - 0x10], ecx
mov dword [eax + 0x518164], 0
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x518160]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x48fafb
mov dword [eax + 4], 0
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 eax, 0x3ee4f99d
imul ecx
mov ebx, ecx
sar ebx, 0x1f
sar edx, 7
sub edx, ebx
imul eax, edx, 0x209
sub ecx, eax
lea ebx, [ecx + 0x69]
mov eax, dword [0x50fea0]
mov dword [ebp - 0x10], ebx
cmp eax, 2
jge 0x48fb6f
lea eax, [ecx*4 + 0x1a4]
lea edx, [eax*8]
sub edx, eax
mov ecx, dword [edx + 0x518164]
test ecx, ecx
jne 0x48fbff
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x518164], 1
jmp 0x48fbff
lea eax, [ecx*4 + 0x1a4]
lea edx, [eax*8]
sub edx, eax
lea ecx, [edx + 0x518164]
push ecx
call fcn.004833c0
pop ecx
test eax, eax
jne 0x48fbff
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov ecx, dword [edx + 0x518160]
test ecx, ecx
je 0x48ffa7
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x518164], 0
mov edx, dword [ebp - 0x10]
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x518160]
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 + 0x518164]
push ecx
call fcn.004833c0
pop ecx
mov ecx, dword [0x50fea0]
cmp ecx, 1
je 0x48ff80
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
mov ebx, edx
shl ebx, 5
sub ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebx + 0x518178]
test ebx, ebx
je 0x48fc48
mov dword [ebp - 0x18], edi
xor eax, eax
mov edi, dword [ebx + 0xf0]
cmp edi, esi
jge 0x48fda0
mov eax, ebx
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x48fc31
cmp ecx, 1
je 0x48fd7b
lea eax, [edx*4]
shl edx, 5
sub edx, eax
cmp ecx, 2
jge 0x48fc6e
mov dword [edx + 0x518164], 0
jmp 0x48fc93
mov dword [edx + 0x518164], 0
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x518160]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
push esi
call fcn.00494880
add esp, 8
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 eax, dword [0x50fea0]
cmp eax, 2
jge 0x48fcc6
cmp eax, 1
je 0x48fd2f
mov edx, 0x50fe00
mov dword [ebp - 0x1c], edx
jmp 0x48fcd7
lea eax, [ebp - 0x1c]
push eax
call fcn.00483740
pop ecx
test eax, eax
jne 0x48fd25
mov edx, dword [ebp - 0x1c]
mov ebx, dword [edx]
test ebx, ebx
je 0x48fd52
mov eax, dword [ebx + 0x28]
mov dword [edx], eax
mov edx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x18], edx
mov dword [ebx + 0x64], 0
movzx ecx, byte [eax + 0x4f]
test cl, 2
je 0x48fd07
push dword [eax + 4]
call fcn.004849b0
pop ecx
mov eax, dword [ebx + 0x58]
push eax
call fcn.004849b0
push ebx
call fcn.004849b0
add esp, 8
mov eax, dword [0x50fea0]
cmp eax, 1
je 0x48fd3c
jmp 0x48faed
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push 0x50fe64
call fcn.00483390
pop ecx
jmp 0x48fcbc
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x68]
push dword [eax + 0x64]
call fcn.00483370
add esp, 8
jmp 0x48faed
mov eax, dword [0x50fea0]
cmp eax, 1
je 0x48fd6b
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
xor eax, eax
mov esp, ebp
pop ebp
ret
push dword [edx + 0x68]
push dword [edx + 0x64]
call fcn.00483370
add esp, 8
jmp 0x48fd5c
mov eax, dword [ebp - 0x14]
push dword [eax + 0x518174]
push dword [eax + 0x518170]
call fcn.00483370
add esp, 8
mov edx, dword [ebp - 0x10]
mov ecx, dword [0x50fea0]
jmp 0x48fc51
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x1c]
jne 0x48fc48
test edi, edi
je 0x48fdc1
test eax, eax
je 0x48ff4a
mov esi, dword [ebx + 0x28]
mov dword [eax + 0x28], esi
cmp ecx, 1
je 0x48ff5b
lea eax, [edx*4]
shl edx, 5
sub edx, eax
cmp ecx, 2
jge 0x48fde7
mov dword [edx + 0x518164], 0
jmp 0x48fe0c
mov dword [edx + 0x518164], 0
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x518160]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebx + 0x64]
mov dword [ebx + 0x64], 0
mov dword [ebp - 0x18], eax
movzx eax, byte [ebx + 0x163]
test al, 1
je 0x48fe4d
movzx ecx, byte [ebx + 0x15b]
mov edx, ecx
and edx, 0xffffffdf
and ecx, 0x40
shr ecx, 6
and ecx, 1
shl ecx, 5
or edx, ecx
mov byte [ebx + 0x15b], dl
and eax, 0xfffffffe
mov byte [ebx + 0x163], al
test al, 2
je 0x48fe67
movzx edx, byte [ebx + 0x152]
mov byte [ebx + 0x151], dl
and eax, 0xfffffffd
mov byte [ebx + 0x163], al
test al, 4
je 0x48fe81
movzx edx, byte [ebx + 0x14a]
mov byte [ebx + 0x149], dl
and eax, 0xfffffffb
mov byte [ebx + 0x163], al
test al, 8
je 0x48fead
movzx ecx, byte [ebx + 0x15e]
mov edx, ecx
and edx, 0xfffffffd
and ecx, 4
shr ecx, 2
and ecx, 1
add ecx, ecx
or edx, ecx
mov byte [ebx + 0x15e], dl
and eax, 0xfffffff7
mov byte [ebx + 0x163], al
test al, 0x10
je 0x48fec7
movzx edx, byte [ebx + 0x150]
mov byte [ebx + 0x14f], dl
and eax, 0xffffffef
mov byte [ebx + 0x163], al
test al, 0x20
je 0x48fee1
movzx edx, byte [ebx + 0x154]
mov byte [ebx + 0x153], dl
and eax, 0xffffffdf
mov byte [ebx + 0x163], al
mov eax, dword [0x50fea0]
mov dword [ebx + 0xc], 0
cmp eax, 2
mov dword [ebx + 8], 0xffffffff
jge 0x48ff02
mov dword [ebx + 4], 0
jmp 0x48ff11
push dword [ebx]
mov dword [ebx + 4], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test edi, edi
je 0x48faed
mov eax, dword [0x50fea0]
cmp eax, 2
jl 0x48ff30
mov eax, dword [ebx]
test eax, eax
je 0x48ff30
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 8], 0xffffffff
push ebx
mov dword [ebx + 0xc], 0
call fcn.004849b0
pop ecx
jmp 0x48faed
mov esi, dword [ebp - 0x14]
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x518178], eax
jmp 0x48fdc1
mov eax, dword [ebp - 0x14]
push dword [eax + 0x518174]
push dword [eax + 0x518170]
call fcn.00483370
add esp, 8
mov edx, dword [ebp - 0x10]
mov ecx, dword [0x50fea0]
jmp 0x48fdca
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea ecx, [edx + 0x518170]
push ecx
call fcn.00483390
pop ecx
mov ecx, dword [0x50fea0]
jmp 0x48fc0e
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 + 0x518160], eax
mov dword [ecx + 0x518164], 0
jmp 0x48fbc6