Function at 0x4412e0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x4cd0e8]
test eax, eax
mov dword [esp], 0
jne 0x441300
push 0x4cd0e8
call fcn.0045a1c9
add esp, 4
push ebp
push str.KaseyaMonitorListSema
push 0
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 8], ebp
jne 0x441351
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:_Failed_to_create_list_mutex_in_updateSyscheckCache__._Code:__d_n
call fcn.0043ed20
add esp, 8
or eax, 0xffffffff
pop ebp
add esp, 0x30
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push ebp
call esi
cmp eax, 0x80
jne 0x441369
push 0xffffffffffffffff
push ebp
call esi
test eax, eax
je 0x441393
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:_Failed_to_obtain_list_mutex_in_updateSyscheckCache__._Code:__d_n
call fcn.0043ed20
add esp, 8
pop esi
mov eax, 0xfffffffe
pop ebp
add esp, 0x30
ret
push edi
mov edi, dword [0x4cd0cc]
test edi, edi
je 0x441595
mov ebp, 6
jmp 0x4413b0
cmp dword [edi + 0x114], ebp
jne 0x441586
mov eax, dword [edi + 0x124]
test eax, eax
je 0x441586
push 0x2b0
push 1
call fcn.00459dd1
mov esi, eax
add esp, 8
test esi, esi
je 0x441574
push 0x103
lea ecx, [edi + 8]
push ecx
lea edx, [esi + 8]
push edx
call fcn.00458f80
mov eax, dword [edi + 0x10c]
mov dword [esi + 0x10c], eax
mov ecx, dword [edi + 0x110]
mov dword [esi + 0x110], ecx
mov edx, dword [edi + 0x114]
mov dword [esi + 0x114], edx
mov eax, dword [edi + 0x11c]
mov dword [esi + 0x11c], eax
mov ecx, dword [edi + 0x118]
mov dword [esi + 0x118], ecx
mov edx, dword [edi + 0x120]
mov dword [esi + 0x120], edx
mov eax, dword [edi + 0x234]
mov dword [esi + 0x234], eax
mov ecx, dword [edi + 0x238]
mov dword [esi + 0x238], ecx
mov edx, dword [edi + 0x23c]
mov dword [esi + 0x23c], edx
mov eax, dword [edi + 0x240]
mov dword [esi + 0x240], eax
mov ecx, dword [edi + 0x244]
mov dword [esi + 0x244], ecx
mov edx, dword [edi + 0x248]
mov dword [esi + 0x248], edx
mov eax, dword [edi + 0x27c]
mov dword [esi + 0x27c], eax
mov ecx, dword [edi + 0x278]
mov dword [esi + 0x278], ecx
mov edx, dword [edi + 0x280]
mov dword [esi + 0x280], edx
mov eax, dword [edi + 0x2a0]
mov dword [esi + 0x2a0], eax
mov ecx, dword [edi + 0x28c]
mov dword [esi + 0x28c], ecx
mov edx, dword [edi + 0x290]
mov dword [esi + 0x290], edx
mov eax, dword [edi + 0x254]
mov dword [esi + 0x254], eax
lea eax, [edi + 0x128]
mov ecx, esi
add esp, 0xc
sub ecx, eax
lea edx, [ecx + 0x128]
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4414f0
mov eax, dword [edi + 0x124]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x441503
sub eax, edx
inc eax
push eax
push 1
call fcn.00459dd1
add esp, 8
test eax, eax
mov dword [esi + 0x124], eax
je 0x44154b
mov edx, dword [edi + 0x124]
mov cl, byte [edx]
inc edx
mov byte [eax], cl
inc eax
test cl, cl
jne 0x441528
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esi + 4], eax
mov dword [esi], 0
je 0x441545
mov dword [eax], esi
mov dword [esp + 0xc], esi
jmp 0x441586
mov eax, dword [edi + 0x124]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x441554
sub eax, edx
inc eax
push eax
push str.ERROR:_Allocate__d_bytes_for_copy_of_system_check_command_in_updateSyscheckCache___n
call fcn.0043ed20
push esi
call fcn.0043ec60
add esp, 0xc
jmp 0x441586
push 0x2b0
push str.ERROR:_Allocate__d_bytes_for_copy_of_monitor_entry_in_updateSyschekCache___n
call fcn.0043ed20
add esp, 8
mov edi, dword [edi + 4]
test edi, edi
jne 0x4413b0
mov ebp, dword [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call ebp
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
lea eax, [esp + 0x30]
push eax
call fcn.00467c8d
mov esi, dword [esp + 0x10]
mov eax, esi
add esp, 4
test eax, eax
je 0x4415f7
lea ecx, [esp + 0x14]
push ecx
call fcn.0045a1c9
mov eax, dword [esi + 0x248]
add esp, 4
test eax, eax
je 0x4415e7
mov edx, dword [esi + 0x238]
add edx, eax
cmp edx, dword [esp + 0x14]
jge 0x4415f0
push esi
call fcn.00440e90
add esp, 4
mov esi, dword [esi + 4]
test esi, esi
jne 0x4415c2
push 0x4cd0e8
call fcn.0045a1c9
lea eax, [esp + 0x28]
push eax
call fcn.00467c8d
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov ax, word [esp + 0x30]
mov cx, word [esp + 0x3c]
sub edx, esi
imul edx, edx, 0x3e8
add esp, 8
cmp ax, cx
movzx ecx, cx
movzx eax, ax
push str.KaseyaSyscheckCacheSema
sub edx, ecx
push 0
lea ecx, [esp + 0x20]
add edx, eax
push ecx
mov dword [0x48717c], edx
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x441694
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:_Failed_to_create_data_mutex_in_updateSyscheckCache__._Code:__d_n
call fcn.0043ed20
add esp, 8
lea edi, [esp + 0xc]
call fcn.0043f0f0
pop edi
pop esi
mov eax, 0xfffffffd
pop ebp
add esp, 0x30
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
jne 0x4416ad
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4416dd
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:_Failed_to_obtain_data_mutex_in_updateSyscheckCache__._Code:__d_n
call fcn.0043ed20
add esp, 8
lea edi, [esp + 0xc]
call fcn.0043f0f0
pop edi
pop esi
mov eax, 0xfffffffc
pop ebp
add esp, 0x30
ret
mov edx, dword [0x4cd0d4]
mov eax, dword [esp + 0xc]
push 0x4cd0e4
mov dword [esp + 0x14], edx
mov dword [0x4cd0d4], eax
call fcn.0045a1c9
add esp, 4
push esi
call ebp
push esi
call edi
lea edi, [esp + 0x10]
call fcn.0043f0f0
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x30
ret