Function at 0x43c940
Capabilities:
Check mutex on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x258
push ebx
push edi
push str.KaseyaFirewallLogByPeriodSema
push 0
lea eax, [esp + 0x38]
mov edi, 1
push eax
mov dword [esp + 0x3c], 0xc
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 8], ebx
jne 0x43c9a6
lea ecx, [esp + 0x60]
push str.ERROR:_Failed_to_create_mutex_in_writeFirewallLog__._n
push ecx
call fcn.00458ee7
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x68], edi
call fcn.0043e010
add esp, 0xc
pop edi
pop ebx
add esp, 0x258
ret
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x43c9e3
lea eax, [esp + 0x60]
push str.ERROR:_Failed_to_obtain_mutex_in_writeFirewallLog__._n
push eax
call fcn.00458ee7
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x68], edi
call fcn.0043e010
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
add esp, 0x258
ret
mov eax, dword [0x4ccb08]
push esi
xor esi, esi
test eax, eax
je 0x43ca02
nop
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x43c9f8
inc esi
mov eax, dword [eax]
test eax, eax
jne 0x43c9f0
test esi, esi
jne 0x43ca1a
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
add esp, 0x258
ret
imul esi, esi, 0x154
push esi
call fcn.00459619
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x43ca50
push esi
lea edx, [esp + 0x68]
push str.Failed_to_allocate__d_bytes_to_write_to_the_firewall_log._n
push edx
call fcn.00458ee7
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x70], edi
call fcn.0043e010
add esp, 0x10
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.0045a1c9
lea ecx, [esp + 0x18]
push ecx
call fcn.0045b026
xor edx, edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
push eax
mov dword [esp + 0x60], edx
push str._H:_M:_S__b__d__Y
mov dword [esp + 0x68], edx
lea eax, [esp + 0x54]
mov dword [esp + 0x6c], edx
push 0x20
push eax
mov dword [esp + 0x78], edx
call fcn.0045b00b
mov ebp, dword [0x4ccb08]
add esp, 0x18
test ebp, ebp
je 0x43cd15
mov edi, edi
mov eax, dword [ebp + 4]
test eax, eax
jle 0x43cd0a
lea eax, [esp + 0x44]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43cad1
mov edi, ebx
sub eax, esi
dec edi
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x43cae0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
push ecx
lea edx, [esp + 0x1c]
push str.___2d
push edx
call fcn.00458ee7
lea eax, [esp + 0x24]
add esp, 0xc
mov dword [ebp + 4], 0
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43cb20
mov edi, ebx
sub eax, ecx
mov esi, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x43cb30
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx eax, byte [ebp + 0xb]
movzx ecx, byte [ebp + 0xa]
movzx edx, byte [ebp + 9]
push eax
movzx eax, byte [ebp + 8]
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
push str.___d._d._d._d
push ecx
call fcn.00458ee7
lea eax, [esp + 0x30]
add esp, 0x18
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43cb72
mov edi, ebx
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x43cb80
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [esp + 0x1c]
push str.___d
push eax
call fcn.00458ee7
lea eax, [esp + 0x24]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43cbb2
mov edi, ebx
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x43cbc0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx ecx, byte [ebp + 0x13]
movzx edx, byte [ebp + 0x12]
movzx eax, byte [ebp + 0x11]
push ecx
movzx ecx, byte [ebp + 0x10]
push edx
push eax
push ecx
lea edx, [esp + 0x28]
push str.___d._d._d._d
push edx
call fcn.00458ee7
lea eax, [esp + 0x30]
add esp, 0x18
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43cc02
mov edi, ebx
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x43cc10
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push str.___d
push ecx
call fcn.00458ee7
lea eax, [esp + 0x24]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43cc42
mov edi, ebx
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x43cc50
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0x18]
push edx
lea eax, [esp + 0x1c]
push str.___2d
push eax
call fcn.00458ee7
lea eax, [esp + 0x24]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43cc82
mov edi, ebx
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x43cc90
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43ccb0
mov ecx, dword [0x47ac20]
lea eax, [ebp + 0x1c]
mov dword [edi], ecx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43ccc5
mov edi, ebx
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x43ccd3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43ccf0
mov dx, word [0x47ac1c]
mov word [edi], dx
mov al, byte [0x47ac1e]
mov byte [edi + 2], al
mov ebp, dword [ebp]
test ebp, ebp
jne 0x43cac0
push 3
call fcn.0043d240
add esp, 4
mov esi, eax
test esi, esi
pop ebp
je 0x43cd36
push ebx
push esi
call fcn.0045917e
push esi
call fcn.00459521
add esp, 0xc
push ebx
call fcn.0045932f
mov esi, dword [esp + 0x10]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
add esp, 0x258
ret