Function at 0x425db0
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 0x425dd0
je 0x426207
jmp 0x425de6
push 0x564
push str.for_lub_mgt.c
push 2
push 8
call fcn.004222a0
add esp, 0x10
lea ecx, [esi + 5]
cmp ecx, 0x69
jge 0x426076
lea eax, [esi*4 + 0x14]
lea edx, [eax*8]
sub edx, eax
mov ebx, dword [edx + 0x5312f8]
mov dword [ebp - 0x18], edx
test ebx, ebx
je 0x425e15
cmp dword [ebx + 0x18], 0
je 0x425e32
mov dword [ebp - 0x10], ecx
push 0
push esi
call fcn.0042a170
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 0x425f48
test byte [ebx + 0x159], 0x18
mov dword [ebp - 0x10], ecx
jne 0x425eb5
xor eax, eax
cmp dword [0x525800], 2
mov dword [edx + 0x5312f8], eax
mov dword [edx + 0x5312e8], 0xffffffff
mov dword [edx + 0x5312ec], eax
jge 0x425e82
mov eax, edx
mov dword [eax + 0x5312e4], 0
jmp 0x425ea9
mov eax, edx
mov dword [eax + 0x5312e4], 0
mov ecx, dword [ebp - 0x10]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
push dword [ecx + 0x5312e0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call fcn.0042e370
pop ecx
jmp 0x426057
push 0x170
push 0
mov esi, dword [ebx + 0xf0]
push ebx
call fcn.004b11c0
add esp, 0xc
mov edx, dword [ebp - 0x18]
movzx eax, byte [ebx + 0x159]
or byte [ebx + 0x162], 4
and eax, 0xffffffe7
or eax, 8
cmp dword [0x525800], 2
mov byte [ebx + 0x159], al
mov dword [ebx + 0xf0], esi
mov dword [edx + 0x5312ec], 0
mov dword [edx + 0x5312e8], 0xffffffff
jge 0x425f1c
mov eax, edx
mov dword [eax + 0x5312e4], 0
jmp 0x426057
mov eax, edx
mov dword [eax + 0x5312e4], 0
mov ecx, dword [ebp - 0x10]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
push dword [ecx + 0x5312e0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x426057
movzx eax, byte [ebx + 0x163]
test al, 1
je 0x425f75
movzx esi, byte [ebx + 0x15b]
mov edx, esi
and edx, 0xffffffdf
and esi, 0x40
shr esi, 1
or edx, esi
mov byte [ebx + 0x15b], dl
and eax, 0xfffffffe
mov byte [ebx + 0x163], al
test al, 2
je 0x425f8f
movzx edx, byte [ebx + 0x152]
mov byte [ebx + 0x151], dl
and eax, 0xfffffffd
mov byte [ebx + 0x163], al
test al, 4
je 0x425fa9
movzx edx, byte [ebx + 0x14a]
mov byte [ebx + 0x149], dl
and eax, 0xfffffffb
mov byte [ebx + 0x163], al
test al, 8
je 0x425fcf
movzx esi, byte [ebx + 0x15e]
mov edx, esi
and edx, 0xfffffffd
and esi, 4
shr esi, 1
or edx, esi
mov byte [ebx + 0x15e], dl
and eax, 0xfffffff7
mov byte [ebx + 0x163], al
test al, 0x10
je 0x425fe9
movzx edx, byte [ebx + 0x150]
mov byte [ebx + 0x14f], dl
and eax, 0xffffffef
mov byte [ebx + 0x163], al
test al, 0x20
je 0x426003
movzx edx, byte [ebx + 0x154]
mov byte [ebx + 0x153], dl
and eax, 0xffffffdf
mov byte [ebx + 0x163], al
cmp dword [0x525800], 2
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x5312ec], 0
mov dword [eax + 0x5312e8], 0xffffffff
jge 0x42602f
mov dword [eax + 0x5312e4], 0
jmp 0x426057
mov dword [ebp - 0x10], ecx
mov dword [eax + 0x5312e4], 0
mov ecx, dword [ebp - 0x10]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
push dword [ecx + 0x5312e0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x14], 0
je 0x426067
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 [0x525800]
mov dword [ebp - 0x10], eax
cmp edx, 2
jge 0x4260d0
lea ebx, [ecx*4 + 0x1a4]
lea ecx, [ebx*8]
sub ecx, ebx
mov ebx, dword [ecx + 0x5312e4]
test ebx, ebx
jne 0x426167
mov dword [ecx + 0x5312e4], 1
mov eax, dword [ebp - 0x10]
jmp 0x426167
lea eax, [ecx*4 + 0x1a4]
lea edx, [eax*8]
sub edx, eax
lea ecx, [edx + 0x5312e4]
push ecx
call fcn.004257e0
pop ecx
test eax, eax
jne 0x42615e
mov ecx, dword [ebp - 0x10]
lea eax, [ecx*4]
mov edx, ecx
shl edx, 5
sub edx, eax
cmp dword [edx + 0x5312e0], 0
je 0x4264e8
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
mov dword [ecx + 0x5312e4], 0
mov edx, dword [ebp - 0x10]
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x5312e0]
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 + 0x5312e4]
push ecx
call fcn.004257e0
pop ecx
mov edx, dword [0x525800]
mov eax, dword [ebp - 0x10]
cmp edx, 1
je 0x4264c1
lea ecx, [eax*4]
mov ebx, eax
shl ebx, 5
sub ebx, ecx
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebx + 0x5312f8]
test ebx, ebx
je 0x4261a2
xor ecx, ecx
cmp esi, dword [ebx + 0xf0]
jle 0x4262f9
mov ecx, ebx
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x42618d
cmp edx, 1
je 0x4262d4
lea ecx, [eax*4]
shl eax, 5
sub eax, ecx
cmp edx, 2
jge 0x4261c8
mov dword [eax + 0x5312e4], 0
jmp 0x4261ed
mov dword [eax + 0x5312e4], 0
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x5312e0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
push esi
call fcn.0042a170
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 [0x525800]
cmp eax, 2
jge 0x426224
cmp eax, 1
je 0x426289
mov dword [ebp - 0x18], 0x525760
mov edx, 0x525760
jmp 0x426235
lea eax, [ebp - 0x18]
push eax
call fcn.00425550
pop ecx
test eax, eax
jne 0x42627f
mov edx, dword [ebp - 0x18]
mov ebx, dword [edx]
test ebx, ebx
je 0x4262ac
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 0x426262
push dword [eax + 4]
call fcn.0042e370
pop ecx
mov eax, dword [ebx + 0x58]
push eax
call fcn.0042e370
push ebx
call fcn.0042e370
add esp, 8
cmp dword [0x525800], 1
je 0x426296
jmp 0x426057
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push 0x5257c4
call fcn.00425790
pop ecx
jmp 0x426216
mov eax, dword [ebp - 0x18]
push dword [eax + 0x68]
push dword [eax + 0x64]
call fcn.004257c0
add esp, 8
jmp 0x426057
cmp dword [0x525800], 1
je 0x4262c4
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.004257c0
add esp, 8
jmp 0x4262b5
mov eax, dword [ebp - 0x18]
push dword [eax + 0x5312f4]
push dword [eax + 0x5312f0]
call fcn.004257c0
add esp, 8
mov eax, dword [ebp - 0x10]
mov edx, dword [0x525800]
jmp 0x4261ab
jne 0x4261a2
test edi, edi
je 0x426311
test ecx, ecx
je 0x42648b
mov esi, dword [ebx + 0x28]
mov dword [ecx + 0x28], esi
cmp edx, 1
je 0x42649c
lea ecx, [eax*4]
shl eax, 5
sub eax, ecx
cmp edx, 2
jge 0x426337
mov dword [eax + 0x5312e4], 0
jmp 0x42635c
mov dword [eax + 0x5312e4], 0
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x5312e0]
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 + 0x163]
test al, 1
je 0x426396
movzx ecx, byte [ebx + 0x15b]
mov edx, ecx
and edx, 0xffffffdf
and ecx, 0x40
shr ecx, 1
or edx, ecx
mov byte [ebx + 0x15b], dl
and eax, 0xfffffffe
mov byte [ebx + 0x163], al
test al, 2
je 0x4263b0
movzx edx, byte [ebx + 0x152]
mov byte [ebx + 0x151], dl
and eax, 0xfffffffd
mov byte [ebx + 0x163], al
test al, 4
je 0x4263ca
movzx edx, byte [ebx + 0x14a]
mov byte [ebx + 0x149], dl
and eax, 0xfffffffb
mov byte [ebx + 0x163], al
test al, 8
je 0x4263f0
movzx ecx, byte [ebx + 0x15e]
mov edx, ecx
and edx, 0xfffffffd
and ecx, 4
shr ecx, 1
or edx, ecx
mov byte [ebx + 0x15e], dl
and eax, 0xfffffff7
mov byte [ebx + 0x163], al
test al, 0x10
je 0x42640a
movzx edx, byte [ebx + 0x150]
mov byte [ebx + 0x14f], dl
and eax, 0xffffffef
mov byte [ebx + 0x163], al
test al, 0x20
je 0x426424
movzx edx, byte [ebx + 0x154]
mov byte [ebx + 0x153], dl
and eax, 0xffffffdf
mov byte [ebx + 0x163], al
cmp dword [0x525800], 2
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0xffffffff
jge 0x426444
mov dword [ebx + 4], 0
jmp 0x426453
push dword [ebx]
mov dword [ebx + 4], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test edi, edi
je 0x426057
cmp dword [0x525800], 2
jl 0x426471
mov eax, dword [ebx]
test eax, eax
je 0x426471
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 8], 0xffffffff
push ebx
mov dword [ebx + 0xc], 0
call fcn.0042e370
pop ecx
jmp 0x426057
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x28]
mov dword [esi + 0x5312f8], ecx
jmp 0x426311
mov eax, dword [ebp - 0x18]
push dword [eax + 0x5312f4]
push dword [eax + 0x5312f0]
call fcn.004257c0
add esp, 8
mov eax, dword [ebp - 0x10]
mov edx, dword [0x525800]
jmp 0x42631a
lea edx, [eax*4]
shl eax, 5
sub eax, edx
lea eax, [eax + 0x5312f0]
push eax
call fcn.00425790
pop ecx
mov edx, dword [0x525800]
mov eax, dword [ebp - 0x10]
jmp 0x426170
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 + 0x5312e0], eax
mov dword [ecx + 0x5312e4], 0
jmp 0x426125