Function at 0x1002770
Capabilities:
Check mutex on windows
Check os version

Disassembly:
push 0x35c
mov eax, 0x101611f
call fcn.010039dd
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
call sub.wbemcomn.dll_public:_static_int___stdcall_CStaticCritSec::anyFailure_void_
test eax, eax
jne 0x1002ae2
mov edi, 0x101b3f8
push edi
call fcn.01003a25
push 0x1002b7c
mov dword [0x101b3d0], 0x1002aec
mov dword [0x101b3d4], 0x1002afc
mov dword [section..data], edi
call fcn.010041d7
lea ecx, [ebp - 0x325]
call fcn.01004224
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x324]
push eax
mov dword [ebp - 0x324], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1003e73
cmp dword [ebp - 0x314], 2
jne 0x1003e69
cmp dword [ebp - 0x320], 5
jb 0x1003e69
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, ebx
jl 0x100e547
mov byte [ebp - 4], 1
push ebx
push 2
push ebx
push 2
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov edi, eax
cmp edi, ebx
jl 0x100e54e
call fcn.01003a67
mov edi, eax
lea eax, [ebp - 0x330]
push eax
push 0x1f0003
call fcn.01003b25
mov dword [ebp - 0x334], eax
mov dword [ebp - 0x364], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x100e55f
mov ecx, dword [ebp - 0x330]
mov dword [ebp - 0x344], ecx
mov dword [ebp - 0x340], eax
cmp eax, ebx
je 0x100e56e
push edi
push 0x1002b38
lea eax, [ebp - 0x210]
push 0x100
push eax
mov dword [ebp - 0x33c], ebx
call fcn.01001451
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
push 2
push 2
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov edi, eax
mov dword [ebp - 0x32c], edi
cmp edi, ebx
je 0x100e57d
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x100e5d7
mov dword [ebp - 0x358], edi
mov byte [ebp - 4], 3
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call edi
test eax, eax
jne 0x100e5fb
lea eax, [ebp - 0x330]
push eax
push 0x1f0001
call fcn.01003b25
mov dword [ebp - 0x338], eax
mov dword [ebp - 0x35c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x100e630
mov ecx, dword [ebp - 0x330]
mov dword [ebp - 0x344], ecx
test eax, eax
je 0x100e63f
mov eax, dword [ebp - 0x334]
mov dword [ebp - 0x340], eax
and dword [ebp - 0x33c], 0
push 0x1002b0c
push 0
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x330], eax
test eax, eax
je 0x100e64e
mov dword [ebp - 0x354], eax
mov byte [ebp - 4], 5
push 0x61a80
push eax
call edi
xor ecx, ecx
cmp eax, ecx
jne 0x100e6d6
mov dword [ebp - 0x348], ecx
mov dword [ebp - 0x34c], ecx
mov dword [ebp - 0x350], ecx
cmp esi, ecx
je 0x1002a55
mov al, byte [esi]
test al, al
je 0x1002a55
mov ebx, dword [sym.imp.msvcrt.dll_isspace]
mov edi, dword [sym.imp.msvcrt.dll_toupper]
test al, al
je 0x10029e0
movzx eax, al
push eax
call ebx
pop ecx
test eax, eax
jne 0x1003e52
mov al, byte [esi]
cmp al, 0x2d
je 0x10029ea
cmp al, 0x2f
jne 0x1002a15
inc esi
movzx eax, byte [esi]
push eax
call edi
pop ecx
cmp eax, 0x54
je 0x1003e5a
movzx eax, byte [esi]
push eax
call edi
pop ecx
cmp eax, 0x52
jne 0x1007611
mov dword [ebp - 0x350], 1
mov al, byte [esi]
test al, al
je 0x1002a33
movsx eax, al
push eax
call ebx
pop ecx
test eax, eax
jne 0x1002a2d
inc esi
mov al, byte [esi]
test al, al
jne 0x1002a1b
mov al, byte [esi]
test al, al
jne 0x10029d1
cmp dword [ebp - 0x34c], 0
je 0x1002a41
call fcn.010071f8
cmp dword [ebp - 0x350], 0
je 0x1002a55
push dword [ebp - 0x348]
call fcn.01003799
push dword [ebp - 0x330]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [ebp - 0x360]
push eax
push 1
push dword [ebp - 0x32c]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
call fcn.0100a8f0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x330], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1002a96
push dword [ebp - 0x330]
call edi
mov byte [ebp - 4], 3
push dword [ebp - 0x338]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
mov byte [ebp - 4], 2
cmp dword [ebp - 0x32c], 0xffffffff
je 0x1002abd
push dword [ebp - 0x32c]
call edi
mov byte [ebp - 4], 1
push dword [ebp - 0x334]
call esi
mov byte [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x325]
call fcn.0100a9d4
xor eax, eax
call fcn.01002b9f
ret 0x10
inc esi
mov al, byte [esi]
jmp 0x10029cd
mov dword [ebp - 0x348], 1
jmp 0x1002a15
call fcn.0100a8f0
jmp 0x100e702
call fcn.0100a8f0
jmp 0x1002ad3
movzx eax, byte [esi]
push eax
call edi
pop ecx
cmp eax, 0x46
jne 0x100e6e6
mov dword [ebp - 0x34c], 1
jmp 0x1002a15
mov esi, eax
jmp 0x100e704
mov byte [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, edi
jmp 0x100e704
mov dword [ebp - 0x344], 0x80
jmp 0x1002889
mov dword [ebp - 0x340], 0x101b970
jmp 0x1002897
mov eax, dword [section..data]
cmp eax, section..data
je 0x100e5b3
test byte [eax + 0x1c], 1
je 0x100e5b3
cmp byte [eax + 0x19], 5
jb 0x100e5b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x101024c
push 0xb
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010108df
call fcn.0100a8f0
mov byte [ebp - 4], 1
push dword [ebp - 0x334]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x100e702
mov eax, dword [section..data]
cmp eax, section..data
je 0x100e5b3
test byte [eax + 0x1c], 1
je 0x100e5b3
cmp byte [eax + 0x19], 5
jb 0x100e5b3
call ebx
push eax
push 0x101024c
push 0xc
jmp 0x100e5a3
lea eax, [ebp - 0x338]
push eax
push 1
push dword [ebp - 0x32c]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
call fcn.0100a8f0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x32c], 0xffffffff
je 0x100e5b8
push dword [ebp - 0x32c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100e5b8
mov dword [ebp - 0x344], 0x80
jmp 0x1002944
mov dword [ebp - 0x340], 0x101b970
jmp 0x1002958
mov eax, dword [section..data]
cmp eax, section..data
je 0x100e680
test byte [eax + 0x1c], 1
je 0x100e680
cmp byte [eax + 0x19], 5
jb 0x100e680
call ebx
push eax
mov eax, dword [section..data]
push 0x101024c
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010108df
lea eax, [ebp - 0x348]
push eax
push 1
push dword [ebp - 0x32c]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
call fcn.0100a8f0
mov byte [ebp - 4], 3
push dword [ebp - 0x338]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
mov byte [ebp - 4], 2
cmp dword [ebp - 0x32c], 0xffffffff
je 0x100e6c5
push dword [ebp - 0x32c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
push dword [ebp - 0x334]
call esi
jmp 0x100e5c8
cmp eax, 0x80
je 0x100299d
jmp 0x1002a61
movzx eax, byte [esi]
push eax
call edi
pop ecx
cmp eax, 0x44
je 0x1002a15
movzx eax, byte [esi]
push eax
call edi
pop ecx
jmp 0x1002a15
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x325]
call fcn.0100a9d4
mov eax, esi
jmp 0x1002ae4