Function at 0x402850
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70cb49
mov eax, dword fs:[PtInRect]
push eax
sub esp, 0xc4
mov eax, dword [0x804580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x90], edi
xor eax, eax
xorps xmm0, xmm0
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xb8]
push 1
push eax
movups xmmword [ebp - 0xb8], xmm0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je PeekNamedPipe
push 0
push 0
push 1
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je PeekNamedPipe
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
lea eax, [ebp - 0xb8]
push str.GlobalFEE5889A_32DE_4707_8698_D4958609C085
push 0
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x9c]
push 0
push eax
mov dword [ebp - 0x9c], 0xc
mov dword [ebp - GetClientRectx94], 0
call esi
mov ecx, dword [edi]
push 0
push 0
push 0
push 0
mov dword [ecx + 4], eax
call esi
mov ecx, dword [edi]
push str.Global6546FC07_CF0C_4010_8EC3_F25ED16CC555
push 0x7fff
push 0
mov dword [ecx + 8], eax
lea eax, [ebp - 0x9c]
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x8176e4], eax
test eax, eax
jne 0x402965
push str.Global6546FC07_CF0C_4010_8EC3_F25ED16CC555
push eax
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [0x8176e4], eax
test eax, eax
jne 0x402965
mov eax, dword [0x8176e8]
jmp GetMonitorInfoW
push 0x7fff
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x8176e8], eax
test eax, eax
je PeekNamedPipe
mov ecx, dword [edi]
push str.Global0FCB8EB3_A39B_4908_95AB_BDA3BD017B07
push 0
mov eax, dword [ecx + 4]
mov dword [ebp - 0xa4], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x8176ec], eax
test eax, eax
jne IsIconic
push str.Global0FCB8EB3_A39B_4908_95AB_BDA3BD017B07
push eax
push IsZoomed
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [0x8176ec], eax
test eax, eax
je PeekNamedPipe
mov byte [ebp - 0x80], 0
mov esi, 0x5c
mov edi, str._service
nop dword [eax]
nop dword [eax + eax]
push 0x2710
push 0
lea eax, [ebp - 0xa4]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne BeginPaint
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
push 0x3e8
push dword [InvalidateRect]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne getaddrinfo
mov edx, dword [0x8176e8]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402a43
sub eax, esi
lea ecx, [ebp - 0x70]
sar eax, 1
push eax
push edx
call fcn.004050a0
mov eax, dword [ebp - 0x60]
add eax, eax
push eax
push 0
push dword [0x8176e8]
call fcn.004c3e70
add esp, 0xc
push dword [SetCaretPos]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x60], 0
je ScreenToClient
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push 4
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
push 0x7210cc
mov word [ecx], ax
call fcn.004050a0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x40]
push eax
call LoadBitmapW
movups xmm0, xmmword [ebp - 0x28]
add esp, 0x20
movups xmm2, xmmword [ebp - 0x58]
movq xmm1, qword [ebp - 0x48]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [ebp - 0x48], xmm0
movups xmm0, xmmword [ebp - 0x40]
movq qword [ebp - 0xc0], xmm1
mov edx, dword [ebp - 0xbc]
movq qword [ebp - 0x18], xmm1
movups xmm1, xmmword [ebp - 0x70]
movups xmmword [ebp - 0xd0], xmm2
movups xmmword [ebp - 0x28], xmm2
movq xmm2, qword [ebp - 0x60]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x60], xmm0
movq qword [ebp - 0x30], xmm2
movups xmmword [ebp - 0x40], xmm1
cmp edx, 8
jb 0x402b65
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402b5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40303a
push edx
push ecx
call fcn.004382df
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb SystemParametersInfoA
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb MapVirtualKeyA
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40303a
push edx
push ecx
call fcn.004382df
add esp, 8
push 7
xor eax, eax
mov dword [ebp - UpdateLayeredWindowx18], 0
push 0x7210bc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004050a0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00403e00
mov edx, dword [ebp - 0x14]
add esp, 8
test al, al
mov byte [ebp - 4], 1
sete al
mov byte [ebp - 0x71], al
cmp edx, 8
jb GetMenuItemCount
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb AppendMenuW
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40303a
push edx
push ecx
call fcn.004382df
mov al, byte [ebp - 0x71]
add esp, 8
test al, al
je 0x402d34
cmp dword [ebp - 0x48], 0
mov edx, 0x7210bc
cmovne edx, edi
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402c50
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00404f20
mov esi, dword [ebp - 0x84]
lea ecx, [ebp - 0x28]
xor eax, eax
mov byte [ebp - 4], 3
mov word [ebp - 0x28], ax
or esi, 1
mov eax, dword [ebp - 0x48]
add eax, 8
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x78], esi
call fcn.004051b0
push 8
push str.___from
lea ecx, [ebp - 0x28]
call fcn.00404f20
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x28]
push eax
call fcn.00404f20
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x70]
push eax
call fcn.00404f20
mov edx, dword [ebp - 0x14]
and esi, 0xfffffffe
mov dword [ebp - 0x84], esi
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x402d20
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402d16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40303a
push edx
push ecx
call fcn.004382df
add esp, 8
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call InternetOpenUrlW
add esp, 4
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x402d72
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402d68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40303a
push edx
push ecx
call fcn.004382df
add esp, 8
mov esi, 0x5c
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4029f0
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402db2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40303a
push edx
push ecx
call fcn.004382df
add esp, 8
jmp ExitThread
cmp eax, 1
je 0x402fb4
cmp eax, 0x102
jne 0x4029f0
cmp byte [ebp - 0x80], 0
jne 0x4029f0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.0043e9f3
add esp, 8
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp edi, 8
mov ecx, dword [ebp - 0x18]
cmovae eax, edx
mov dword [ebp - 4], 4
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x78], ecx
cmp word [eax + ecx*2 - 2], 0x5c
je GetStringTypeW
mov eax, edi
sub eax, ecx
cmp eax, 1
jb 0x402e3f
lea eax, [ecx + 1]
cmp edi, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, edx
mov dword [eax + ecx*2], 0x5c
jmp LCMapStringW
mov eax, bind
sub eax, ecx
cmp eax, 1
jb GetLocaleInfoW
lea eax, [ecx + 1]
mov esi, eax
mov dword [ebp - 0x8c], eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x402e6c
mov esi, bind
jmp 0x402e8a
mov ecx, edi
mov eax, 0x7ffffffe
shr ecx, 1
sub eax, ecx
cmp edi, eax
jbe 0x402e82
mov esi, bind
jmp 0x402e8a
lea eax, [ecx + edi]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404d50
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x78]
add esi, esi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x18], ecx
push esi
cmp edi, 8
jb 0x402f01
mov edi, dword [ebp - 0x28]
push edi
push eax
call fcn.004c3370
mov eax, dword [ebp - 0x7c]
add esp, 0xc
mov dword [esi + eax], 0x5c
mov eax, dword [ebp - 0x88]
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x402ef2
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja FindFirstFileExW
mov edi, edx
push ecx
push edi
call fcn.004382df
mov eax, dword [ebp - 0x7c]
add esp, 8
jmp 0x402f18
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.004c3370
mov eax, dword [ebp - 0x7c]
add esp, 0xc
mov dword [esi + eax], 0x5c
mov esi, 0x5c
mov dword [ebp - 0x28], eax
push 0xf
push str.CleanMaster.exe
lea ecx, [ebp - 0x28]
call fcn.00404f20
push 0x27
push str.___typeauto___showhide___fromservice
lea ecx, [ebp - 0x28]
call fcn.00404f20
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call GetEnvironmentStringsW
mov ecx, dword [ebp - 0x80]
add esp, 4
mov edx, dword [ebp - 0x14]
test al, al
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x80], ecx
mov edi, str._service
cmp edx, 8
jb 0x4029f0
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402fa5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40303a
push edx
push ecx
call fcn.004382df
add esp, 8
jmp 0x4029df
mov edi, dword [ebp - 0x90]
mov eax, dword [edi]
mov eax, dword [eax + 4]
test eax, eax
je 0x40301f
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov eax, dword [edi]
push dword [eax + 8]
call esi
push dword [FlushFileBuffers]
call esi
push dword [0x8176e8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [WriteConsoleW]
call esi
mov eax, dword [edi]
mov dword [SetEndOfFilex8176e4], 0
mov dword [0x8176e8], 0
mov dword [FormatMessageAx8176ec], 0
mov dword [eax + 4], 0
mov eax, dword [edi]
mov dword [eax + 8], SleepEx
mov ecx, dword [ebp - 0xc]
mov dword fs:[PeekNamedPipe], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00438587
mov esp, ebp
pop ebp
ret
call fcn.004c75d7
call fcn.00404cc0
int3