Function at 0x1002df3
Capabilities:
Check os version
Create thread
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x598
mov eax, dword [0x101647c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
xor esi, esi
push eax
push esi
mov dword [ebp - 0x524], esi
mov dword [ebp - 0x520], esi
call fcn.010072c9
push 0x100158c
push 0x1001570
mov dword [ebp - 0x51c], eax
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, esi
je 0x1002e4a
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x100308e
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
call dword [sym.imp.ole32.dll_OleInitialize]
lea eax, [ebp - 0x518]
push eax
mov dword [ebp - 0x518], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1002e8c
cmp dword [ebp - 0x508], 2
jne 0x1002e8c
cmp dword [ebp - 0x514], 4
jbe 0x1002e8c
push 0x1001548
jmp 0x1002e91
push 0x100152c
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x524], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x524], esi
je 0x1002f0d
cmp eax, 0xb7
je 0x1002f12
push 0xc
pop ecx
xor eax, eax
lea edi, [ebp - 0x57c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x57c]
push eax
mov dword [ebp - 0x57c], 0x30
mov dword [ebp - 0x568], ebx
mov dword [ebp - 0x554], 0x1001570
mov dword [ebp - 0x574], 0x1002d69
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x1002fa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x520], eax
jmp 0x100308e
cmp eax, 5
jne 0x1002eb5
push 0xc8
push 0x40
mov dword [ebp - 0x528], esi
mov dword [ebp - 0x52c], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push eax
push 0xc7
push ebx
mov dword [ebp - 0x52c], eax
call edi
push 0x200
lea eax, [ebp - 0x404]
push eax
push 0xc6
push ebx
call edi
lea eax, [ebp - 0x52c]
push eax
push esi
lea eax, [ebp - 0x528]
push eax
push esi
push esi
lea eax, [ebp - 0x404]
push eax
push 0x2500
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push esi
push esi
push dword [ebp - 0x528]
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x528]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
call edi
push dword [ebp - 0x52c]
call edi
jmp 0x100308e
push 0xc
pop ecx
xor eax, eax
lea edi, [ebp - 0x57c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x57c]
push eax
mov dword [ebp - 0x57c], 0x30
mov dword [ebp - 0x568], ebx
mov dword [ebp - 0x554], 0x100151c
mov dword [ebp - 0x574], 0x1002dc5
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
je 0x1002efc
push esi
push ebx
push esi
push esi
push 0x12c
push 0x190
mov eax, 0x80000000
push eax
push eax
push 0xcf0000
push 0x100158c
push 0x1001570
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, esi
je 0x1002efc
push 0x101668c
mov dword [ebp - 0x53c], eax
mov eax, dword [ebp - 0x51c]
push esi
mov dword [ebp - 0x534], eax
lea eax, [ebp - 0x53c]
push eax
push 0x1002c35
push esi
push esi
mov dword [ebp - 0x538], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x1016688], eax
je 0x1002efc
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x100307e
lea eax, [ebp - 0x598]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x598]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
lea eax, [ebp - 0x598]
push esi
push eax
call edi
test eax, eax
jne 0x1003064
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x524], esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10030b0
push dword [ebp - 0x524]
call ebx
cmp dword [ebp - 0x51c], esi
je 0x10030c4
push dword [ebp - 0x51c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x1016684], esi
je 0x1003159
lea eax, [ebp - 0x51c]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1003169
lea eax, [ebp - 0x530]
push eax
push 0x10014f4
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x100314f
mov eax, dword [ebp - 0x530]
push 2
pop edi
push esi
mov dword [ebp - 0x548], eax
mov eax, dword [ebp - 0x52c]
push esi
push esi
mov dword [ebp - 0x544], eax
lea eax, [ebp - 0x54c]
push eax
push esi
push dword [ebp - 0x51c]
mov dword [ebp - 0x54c], 1
mov dword [ebp - 0x540], edi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x100314f
push esi
push edi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push dword [ebp - 0x51c]
call ebx
jmp 0x1003169
cmp dword [0x1016680], esi
je 0x1003169
push esi
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x520]
pop edi
pop esi
pop ebx
call fcn.01011c2a
leave
ret 0x10