Function at 0x43a280
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, 0x12
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
mov eax, 0x24
call fcn.0047adc0
mov eax, esp
and eax, 0xfffffff0
add eax, 0x10
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov dword [ebp - 4], eax
cmp dword [edx + 0x144], 1
jne 0x43a2cf
push 0x4ecb90
push dword [ebp - 4]
call fcn.004803a0
add esp, 8
test eax, eax
je 0x43a327
push str.CONIN_
push dword [ebp - 4]
call fcn.004803a0
add esp, 8
test eax, eax
jne 0x43a32e
mov eax, dword [ebp + 8]
push dword [eax + 0xec]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x43a327
mov eax, dword [ebp + 8]
push dword [eax + 0xec]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x43a327
cmp dword [0x518340], 0
je 0x43a32e
mov eax, dword [ebp + 8]
push dword [eax + 0xec]
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
jne 0x43a32e
mov dword [ebp - 4], 0x4eb8c4
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x43a34b
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x43a336
dec eax
mov edi, eax
lea ecx, [edi - 0x10]
test ecx, ecx
jle 0x43a369
cmp ecx, 8
mov eax, dword [ebp - 4]
jle 0x43a361
mov ecx, 8
sub edi, ecx
lea edx, [eax + ecx]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
mov eax, edx
and eax, 0xfffffff8
mov dword [ebp - 0x20], eax
and edx, 7
mov dword [ebp - 0x18], edx
je 0x43a3a9
mov ecx, edx
mov edx, eax
shl ecx, 3
neg ecx
mov eax, dword [edx + 8]
add ecx, 0x40
mov dword [ebp - 0x24], eax
cmp ecx, 0x1f
mov eax, dword [edx + 0xc]
ja 0x43a3a0
mov ebx, dword [ebp - 0x24]
shld eax, ebx, cl
shl ebx, cl
jmp 0x43a3ad
mov eax, dword [ebp - 0x24]
xor ebx, ebx
shl eax, cl
jmp 0x43a3ad
xor ebx, ebx
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x18]
shl edx, 3
mov esi, dword [ecx + 4]
cmp edx, 0x1f
mov dword [ebp - 0x18], edx
ja 0x43a3da
mov ecx, edx
mov edx, esi
mov esi, dword [ebp - 0x24]
shrd esi, edx, cl
shr edx, cl
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edx
jmp 0x43a3ea
mov ecx, edx
mov edx, esi
shr edx, cl
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], edx
or ebx, dword [ebp - 0x24]
or eax, dword [ebp - 0x20]
cmp edi, 8
ja 0x43a40c
mov edx, dword [edi*8 + 0x4ecb20]
and ebx, edx
mov ecx, dword [edi*8 + 0x4ecb24]
and eax, ecx
jmp 0x43a4ac
mov edx, dword [ebp - 0x1c]
lea edi, [edx + edi - 8]
mov esi, edi
and esi, 0xfffffff8
mov dword [ebp - 0x20], esi
and edi, 7
je 0x43a461
lea ecx, [edi*8]
neg ecx
add ecx, 0x40
mov edx, dword [esi + 8]
cmp ecx, 0x1f
mov dword [ebp - 0x24], edx
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x18], edx
ja 0x43a450
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x18]
shld esi, edx, cl
shl edx, cl
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edx
jmp 0x43a469
mov edx, dword [ebp - 0x24]
shl edx, cl
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], edx
jmp 0x43a469
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov esi, dword [ebp - 0x20]
shl edi, 3
cmp edi, 0x1f
mov edx, dword [esi]
mov dword [ebp - 0x24], edx
mov edx, dword [esi + 4]
ja 0x43a48e
mov ecx, edi
mov esi, dword [ebp - 0x24]
shrd esi, edx, cl
shr edx, cl
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edx
jmp 0x43a49c
mov ecx, edi
shr edx, cl
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
or edx, dword [ebp - 0x24]
or ecx, dword [ebp - 0x20]
xor ebx, edx
xor eax, ecx
xor ebx, eax
mov eax, 0x3ee4f99d
imul ebx
mov ecx, ebx
sar edx, 7
sar ecx, 0x1f
sub edx, ecx
imul esi, edx, 0xfffffdf7
add ebx, esi
mov eax, ebx
cdq
xor ebx, edx
sub ebx, edx
mov edx, ebx
shl edx, 5
mov eax, dword [0x50acc0]
lea edi, [ebx*4]
sub edx, edi
mov dword [ebp - 0x1c], edx
cmp eax, 2
jge 0x43a4ff
mov ecx, dword [edx + 0x5129a8]
test ecx, ecx
jne 0x43a54d
mov dword [edx + 0x5129a8], 1
jmp 0x43a54d
mov eax, edx
lea esi, [eax + 0x5129a8]
push esi
call fcn.00410180
add esp, 4
test eax, eax
jne 0x43a548
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x5129a4], 0
je 0x43a83d
mov dword [eax + 0x5129a8], 0
mov eax, dword [ebp - 0x1c]
push 0xffffffffffffffff
push dword [eax + 0x5129a4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call fcn.00410180
add esp, 4
mov eax, dword [0x50acc0]
cmp eax, 1
je 0x43a826
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
mov edx, dword [eax + 0x5129a0]
test edx, edx
mov dword [ebp - 0x18], edx
je 0x43a5b9
mov dword [ebp - 0x24], ebx
mov ebx, edx
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 4]
mov esi, dword [ebx + 8]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x43a59b
test dl, dl
je 0x43a597
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x43a59b
add edi, 2
add esi, 2
test dl, dl
jne 0x43a57b
xor eax, eax
jmp 0x43a5a0
sbb eax, eax
or eax, 1
test eax, eax
jle 0x43a812
mov ecx, ebx
mov ebx, dword [ebx]
test ebx, ebx
jne 0x43a575
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ecx
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x24]
push eax
push 0
push 0x24
call fcn.00431e20
mov esi, eax
add esp, 0xc
test esi, esi
je 0x43a629
mov edx, dword [0x50acc0]
cmp edx, 1
je 0x43a79c
cmp edx, 2
jge 0x43a5f2
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x5129a8], 0
jmp 0x43a60b
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x5129a8], 0
push dword [edx + 0x5129a4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 0x12
mov edx, dword [ebp - 8]
mov eax, 0x24
add esp, eax
mov eax, esi
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x43a643
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x43a62e
dec eax
mov edx, eax
mov eax, dword [ebp - 0x24]
inc edx
add eax, 8
push eax
push 0
push edx
call fcn.00431e20
mov esi, eax
add esp, 0xc
test esi, esi
je 0x43a6c3
push dword [ebp - 0x24]
call fcn.00431ee0
add esp, 4
mov edx, dword [0x50acc0]
cmp edx, 1
je 0x43a7be
cmp edx, 2
jge 0x43a68c
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x5129a8], 0
jmp 0x43a6a5
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x5129a8], 0
push dword [edx + 0x5129a4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 0x12
mov edx, dword [ebp - 8]
mov eax, 0x24
add esp, eax
mov eax, esi
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 4]
mov esi, dword [eax + 8]
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x43a6cc
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
test edx, edx
mov dword [eax], edx
je 0x43a6e8
mov eax, dword [ebp - 0x24]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
test edx, edx
mov dword [eax + 4], edx
je 0x43a801
mov eax, dword [ebp - 0x24]
mov dword [edx], eax
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x1c], 0
mov edx, dword [ebp - 0x24]
mov byte [edx + 0x1d], 0
mov ecx, dword [ebp - 0x24]
mov byte [ecx + 0x1e], 0
mov esi, dword [ebp - 0x24]
mov byte [esi + 0x1f], 0
mov edi, dword [ebp - 0x24]
mov byte [edi + 0x20], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x14], ebx
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x7c], edx
inc dword [edx + 0x18]
mov eax, dword [0x50acc0]
cmp eax, 1
je 0x43a7e0
cmp eax, 2
jge 0x43a765
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x5129a8], 0
jmp 0x43a77e
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x5129a8], 0
push dword [eax + 0x5129a4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 0x12
mov edx, dword [ebp - 8]
mov eax, 0x24
add esp, eax
xor eax, eax
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1c]
push dword [edx + 0x5129b8]
push dword [edx + 0x5129b4]
call fcn.00410160
add esp, 8
mov edx, dword [0x50acc0]
jmp 0x43a5de
mov edx, dword [ebp - 0x1c]
push dword [edx + 0x5129b8]
push dword [edx + 0x5129b4]
call fcn.00410160
add esp, 8
mov edx, dword [0x50acc0]
jmp 0x43a678
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x5129b8]
push dword [eax + 0x5129b4]
call fcn.00410160
add esp, 8
mov eax, dword [0x50acc0]
jmp 0x43a751
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x5129a0], edx
jmp 0x43a701
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ecx
mov ebx, dword [ebp - 0x24]
jne 0x43a5b9
jmp 0x43a737
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 0x5129b4]
push edx
call fcn.00410130
add esp, 4
jmp 0x43a556
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x5129a4], eax
mov dword [edx + 0x5129a8], 0
jmp 0x43a52e