Function at 0x43d8e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x86c
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov byte [esp + 0x20], 0
mov ecx, 0x8f
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0x261]
mov byte [esp + 0x260], 0
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
dec eax
cmp eax, 0x68
mov esi, 1
ja case.0x43d933.5
movzx eax, byte [eax + 0x43df18]
jmp dword [eax*4 + 0x43df00]
lea ecx, [esp + 0x468]
push ecx
push 0xf
call fcn.00423070
add esp, 8
jmp 0x43d9b5
lea edx, [esp + 0x468]
push edx
push 0xd
call fcn.00423070
add esp, 8
jmp 0x43d9b5
lea eax, [esp + 0x468]
push eax
push 0xe
call fcn.00423070
add esp, 8
jmp 0x43d9b5
mov dword [esp + 0x46c], esi
mov dword [esp + 0x468], esi
jmp 0x43d9d1
lea ecx, [esp + 0x468]
push ecx
push 0x10
call fcn.00423070
add esp, 8
jmp 0x43d9b5
push 0x200
lea edx, [esp + 0x24]
push str.Unknown_Event_Code
push edx
call fcn.0045a290
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x43d9d1
cmp dword [esp + 0x468], esi
jne 0x43d9d1
mov eax, dword [esp + 0x46c]
test eax, eax
je 0x43def6
mov eax, dword [ebx]
dec eax
cmp eax, 0x68
ja case.0x43d9e4.5
movzx eax, byte [eax + 0x43df9c]
jmp dword [eax*4 + 0x43df84]
push str.KaseyaConfigLogSema
push 0
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
test ebx, ebx
jne 0x43da56
lea edx, [esp + 0x674]
push str.ERROR:_Failed_to_create_mutex_in_logEvent___for_the_config_log.
push edx
call fcn.00458ee7
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x67c], esi
call fcn.0045a1c9
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x680]
push edx
call fcn.0043d8e0
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x43daa9
lea eax, [esp + 0x674]
push str.ERROR:_Failed_to_obtain_mutex_in_logEvent___for_the_config_log._n
push eax
call fcn.00458ee7
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x67c], esi
call fcn.0045a1c9
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x680]
push eax
call fcn.0043d8e0
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0x90
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [ebp + 0xc]
push ecx
call fcn.0045b026
push eax
push str._H:_M:_S__b__d__Y__
lea edx, [esp + 0x2c]
push 0x240
push edx
call fcn.0045b00b
mov eax, dword [ebp + 8]
push 0x200
add eax, 4
push eax
lea ecx, [esp + 0x27c]
push ecx
call fcn.00458f80
lea edx, [esp + 0x280]
push 0x27
push edx
call fcn.004590c0
add esp, 0x28
test eax, eax
je 0x43db15
push 0x27
push eax
mov byte [eax], 0x60
call fcn.004590c0
add esp, 8
test eax, eax
jne 0x43db03
push 0x200
lea eax, [esp + 0x264]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0045a290
lea eax, [esp + 0x2c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43db36
sub eax, edx
mov cl, byte [esp + eax + 0x1f]
cmp cl, 0xa
lea eax, [esp + eax + 0x1f]
jne 0x43db4f
mov byte [eax], 0
lea edi, [esp + 0x20]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43db54
mov dx, word [0x47ac1c]
mov al, byte [0x47ac1e]
mov word [edi], dx
mov byte [edi + 2], al
lea esi, [esp + 0x20]
mov eax, 0x4ccb10
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x43db9b
test cl, cl
je 0x43db97
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x43db9b
add eax, 2
add esi, 2
test cl, cl
jne 0x43db77
xor eax, eax
jmp 0x43dba0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x43dbe2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.0043d240
mov esi, eax
add esp, 4
test esi, esi
je 0x43dbd1
lea edx, [esp + 0x20]
push edx
push 0x4697b8
push esi
call fcn.0045917e
push esi
call fcn.00459521
add esp, 0x10
xor eax, eax
mov cl, byte [esp + eax + 0x20]
mov byte [eax + 0x4ccb10], cl
inc eax
test cl, cl
jne 0x43dbd3
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.KaseyaErrorLogSema
push 0
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x43def6
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x43de3a
mov ecx, 0x90
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [ebp + 0xc]
push ecx
call fcn.0045b026
mov edx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [0x4ccf90]
add esp, 4
cmp edx, eax
jne 0x43dcf3
mov eax, dword [0x4ccf94]
inc eax
cmp eax, 0x8e
mov dword [0x4ccf94], eax
jle 0x43dc81
mov dword [0x4ccf94], 0x8e
push esi
push str._H:_M:_S
lea eax, [esp + 0x28]
push 0x240
push eax
call fcn.0045b00b
lea eax, [esp + 0x30]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43dca0
mov ecx, dword [0x4ccf94]
imul ecx, ecx, 7
push ecx
sub eax, edx
lea edx, [esp + eax + 0x24]
push str.._03d
push edx
call fcn.00458ee7
lea eax, [esp + 0x2c]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43dcd0
sub eax, edx
push esi
mov ecx, 0x23f
push str.__b__d__Y__
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x2c]
push edx
call fcn.0045b00b
jmp 0x43dd1b
push esi
push str._H:_M:_S__b__d__Y__
lea eax, [esp + 0x28]
push 0x240
push eax
call fcn.0045b00b
mov ecx, dword [ebp + 0xc]
mov dword [0x4ccf90], ecx
mov dword [0x4ccf94], 0
add esp, 0x10
push 0x200
lea edx, [ebx + 4]
push edx
lea eax, [esp + 0x268]
push eax
call fcn.00458f80
lea ecx, [esp + 0x26c]
push 0x27
push ecx
call fcn.004590c0
add esp, 0x14
test eax, eax
je 0x43dd62
lea ebx, [ebx]
push 0x27
push eax
mov byte [eax], 0x60
call fcn.004590c0
add esp, 8
test eax, eax
jne 0x43dd50
push 0x200
lea edx, [esp + 0x264]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0045a290
lea eax, [esp + 0x2c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43dd83
sub eax, edx
mov cl, byte [esp + eax + 0x1f]
cmp cl, 0xa
lea eax, [esp + eax + 0x1f]
jne 0x43dd9c
mov byte [eax], 0
lea edi, [esp + 0x20]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43dda1
mov cx, word [0x47ac1c]
mov dl, byte [0x47ac1e]
mov word [edi], cx
mov byte [edi + 2], dl
lea esi, [esp + 0x20]
mov eax, 0x4ccd50
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x43dde9
test cl, cl
je 0x43dde5
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x43dde9
add eax, 2
add esi, 2
test cl, cl
jne 0x43ddc5
xor eax, eax
jmp 0x43ddee
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x43de2f
mov eax, dword [ebx]
push eax
call fcn.0043d240
mov esi, eax
add esp, 4
test esi, esi
je 0x43de1c
lea ecx, [esp + 0x20]
push ecx
push 0x4697b8
push esi
call fcn.0045917e
push esi
call fcn.00459521
add esp, 0x10
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x20]
mov byte [eax + 0x4ccd50], cl
inc eax
test cl, cl
jne 0x43de20
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0043c6f0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0043c0e0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.KaseyaErrorLogSema
push 0
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x43def6
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x43ded1
mov eax, dword [ebx]
push eax
call fcn.0043d240
mov esi, eax
add esp, 4
test esi, esi
je 0x43deca
add ebx, 4
push ebx
push 0x4697b8
push esi
call fcn.0045917e
push esi
call fcn.00459521
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x200
lea ecx, [esp + 0x24]
push str.Unknown_Event_Code
push ecx
call fcn.0045a290
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret