Function at 0x4458b0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebp
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 4], ebp
mov dword [esp + 8], 0xffffffff
je 0x445ba4
mov ecx, dword [esp + 0x20]
cmp ecx, ebp
je 0x445ba4
push edi
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0xc]
push edx
call fcn.0043f4e0
mov edi, dword [esp + 0x10]
add esp, 8
cmp edi, ebp
jne 0x445902
call fcn.0043f120
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
push ebx
push esi
push str.KaseyaMonitorListSema
push ebp
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x28], esi
jne 0x445941
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:_Failed_to_create_list_mutex_in_initMonSetProc__._Code:__d_n
jmp 0x445976
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1388
push esi
call ebx
cmp eax, 0x80
mov dword [esp + 0x14], eax
jne 0x445966
push 0x1388
push esi
call ebx
mov dword [esp + 0x14], eax
cmp eax, ebp
je 0x44597e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:_Failed_to_obtain_list_mutex_in_initMonSetProc__._Code:__d_n
call fcn.0043ed20
add esp, 8
mov eax, dword [0x4cd0cc]
cmp eax, ebp
je 0x445a55
mov esi, eax
jmp 0x445993
mov edi, dword [esp + 0x10]
lea ebx, [esi + 8]
lea ecx, [edi + 8]
push ebx
push ecx
call fcn.0045ba9a
add esp, 8
test eax, eax
je 0x4459ee
mov edi, dword [edi + 4]
test edi, edi
jne 0x445996
test ebp, ebp
jne 0x4459d1
mov eax, dword [esi + 4]
test eax, eax
mov dword [0x4cd0cc], eax
je 0x4459c0
mov dword [eax], ebp
push esi
call fcn.0043ec60
mov esi, dword [0x4cd0cc]
add esp, 4
jmp 0x4459f3
mov edx, dword [esi + 4]
mov dword [ebp + 4], edx
mov eax, dword [esi + 4]
test eax, eax
je 0x4459e0
mov dword [eax], ebp
push esi
call fcn.0043ec60
mov esi, dword [ebp + 4]
add esp, 4
jmp 0x4459f3
mov ebp, esi
mov esi, dword [esi + 4]
test esi, esi
jne 0x44598f
mov eax, dword [0x4cd0cc]
test eax, eax
je 0x445a51
mov esi, dword [esp + 0x10]
xor ebp, ebp
test eax, eax
mov edi, eax
je 0x445a43
lea ebx, [esi + 0x10c]
push ebx
lea eax, [edi + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jne 0x445a3c
lea ecx, [esi + 8]
push ecx
lea edx, [edi + 8]
push edx
call fcn.0045ba9a
add esp, 8
test eax, eax
je 0x445af8
mov edi, dword [edi + 4]
test edi, edi
jne 0x445a12
mov ebp, esi
mov esi, dword [esi + 4]
test esi, esi
mov eax, dword [0x4cd0cc]
jne 0x445a06
mov edi, dword [esp + 0x10]
test edi, edi
je 0x445a8d
xor ebp, ebp
test eax, eax
mov esi, eax
je 0x445a8d
lea ebx, [esi + 8]
lea ecx, [edi + 8]
push ebx
push ecx
call fcn.0045ba9a
add esp, 8
test eax, eax
je 0x445b38
mov edi, dword [edi + 4]
test edi, edi
jne 0x445a64
mov ebp, esi
mov esi, dword [esi + 4]
test esi, esi
mov edi, dword [esp + 0x10]
jne 0x445a61
xor ebx, ebx
test edi, edi
mov esi, edi
je 0x445aab
push esi
push 0x4cd0cc
inc ebx
call fcn.00445150
mov esi, dword [esi + 4]
add esp, 8
test esi, esi
jne 0x445a95
push 0
call fcn.00445720
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
add esp, 4
test eax, eax
jne 0x445ac8
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x445ad3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x445ae0
lea edi, [esp + 0x10]
call fcn.0043f0f0
push ebx
push str.Monitor_Set:_init_file_count_new_d
call fcn.00432720
add esp, 8
pop esi
mov eax, ebx
pop ebx
pop edi
pop ebp
add esp, 0x14
ret
test ebp, ebp
mov eax, dword [esi + 4]
jne 0x445b1b
test eax, eax
mov edi, eax
mov dword [esp + 0x10], edi
je 0x445b0b
mov dword [eax], ebp
push esi
call fcn.0043ec60
add esp, 4
mov esi, edi
jmp 0x445a48
mov dword [ebp + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x445b27
mov dword [eax], ebp
push esi
call fcn.0043ec60
mov esi, dword [ebp + 4]
add esp, 4
jmp 0x445a48
test ebp, ebp
jne 0x445b73
mov edx, dword [esi + 4]
mov dword [0x4cd0cc], edx
mov eax, dword [esi + 4]
test eax, eax
je 0x445b4e
mov dword [eax], ebp
push esi
call fcn.0043eb10
push eax
push str.Remove_monitor_set:__s
call fcn.00432720
push esi
call fcn.0043ec60
mov esi, dword [0x4cd0cc]
add esp, 0x10
jmp 0x445a85
mov eax, dword [esi + 4]
mov dword [ebp + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x445b82
mov dword [eax], ebp
push esi
call fcn.0043eb10
push eax
push str.Remove_monitor_set:__s
call fcn.00432720
push esi
call fcn.0043ec60
mov esi, dword [ebp + 4]
add esp, 0x10
jmp 0x445a85
or eax, 0xffffffff
pop ebp
add esp, 0x14
ret