Function at 0x1000ab6f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e620
push 0x1000c600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38c
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x1000b0cc
cmp dword [ebp + 0xc], ebx
je 0x1000b0cc
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x1000b0cc
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
lea eax, [esi + 0x200]
mov dword [ebp - 0x398], eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x1f], bl
push str.NtShutdownSystem
call fcn.1000c755
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x1000abf3
push 0xffffffffffffffba
jmp 0x1000b0ce
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.1000beb7
pop ecx
pop ecx
cmp eax, ebx
je 0x1000ac0d
push 0xffffffffffffffd4
jmp 0x1000b0ce
lea eax, [ebp - 0x50]
push eax
call fcn.10009bd3
pop ecx
test al, al
jne 0x1000ac22
push 0xffffffffffffffc3
jmp 0x1000b0ce
or dword [ebp - 0x7c], 0xffffffff
mov dword [ebp - 4], ebx
mov dword [ebp - 0x13c], ebx
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.1000b369
pop ecx
pop ecx
test al, al
jne 0x1000ac51
mov dword [ebp - 0x7c], 0xffffffc1
jmp 0x1000b0aa
push 0xd
lea eax, [ebp - 0x6c]
push eax
push 7
push 0x1000b0de
push esi
push 0x17
push 0x10010570
call fcn.10009835
mov dword [ebp - 0x178], esi
mov eax, esi
shr eax, 0x10
mov dword [ebp - 0x384], eax
mov edi, 0x9c
push edi
push ebx
lea eax, [ebp - 0x134]
push eax
call sub.MSVCRT.dll_memset
add esp, 0x28
mov dword [ebp - 0x134], edi
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 0x394], 0x1001059c
push 0xa
pop edi
mov dword [ebp - 0x98], edi
cmp dword [ebp - 0x130], 5
jne 0x1000acdf
cmp dword [ebp - 0x12c], 1
jne 0x1000acdf
cmp word [ebp - 0xa0], bx
jne 0x1000acdf
mov dword [ebp - 0x8c], 0xa4
jmp 0x1000ad3b
cmp word [ebp - 0xa0], 1
jne 0x1000acf5
mov dword [ebp - 0x8c], 0xa0
jmp 0x1000ad3b
cmp word [ebp - 0xa0], 2
jne 0x1000ad21
push str.v.2055
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
pop ecx
test eax, eax
mov dword [ebp - 0x8c], 0xa0
jne 0x1000ad2b
mov dword [ebp - 0x8c], 0xa4
mov dword [ebp - 0x394], 0x100105a8
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x16c], 0x30
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x140], ebx
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x94], eax
movzx eax, word [ebp - 0x8c]
mov dword [ebp - 0x39c], eax
sub esi, eax
and esi, 0xffff
mov dword [ebp - 0x15c], esi
push str.cnFormSyncExFBC
lea eax, [ebp - 0x380]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [ebp - 0x380]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0xc
shl eax, 1
mov word [ebp - 0x180], ax
mov word [ebp - 0x17e], 0x200
lea eax, [ebp - 0x380]
mov dword [ebp - 0x17c], eax
lea eax, [ebp - 0x180]
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x390], ebx
push 8
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
call esi
mov edi, eax
mov dword [ebp - 0x90], edi
push 0x10
push ebx
call esi
mov esi, eax
mov dword [ebp - 0x390], esi
push 8
push ebx
push edi
call sub.MSVCRT.dll_memset
push 0x10
push ebx
push esi
call sub.MSVCRT.dll_memset
push 8
push ebx
lea eax, [ebp - 0x38c]
push eax
call sub.MSVCRT.dll_memset
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], esi
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp + 8]
add eax, 0x500
mov dword [ebp - 0x170], eax
push 8
push 0x1c
push eax
push 0xa
push dword [ebp - 0x394]
call fcn.10009898
add esp, 0x38
push eax
push ebx
push ecx
push edx
push esi
push edi
push 0
push 0x80
push 0x256
push dword [ebp - 0x138]
push dword [ebp - 0x174]
push dword [ebp - 0x174]
push dword [ebp - 0x94]
mov eax, dword [ebp - 0x78]
call dword [ebp - 0x170]
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
xor ebx, ebx
push ebx
push 0x100104e4
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, dword [ebp - 0x384]
sub eax, dword [ebp - 0x39c]
and eax, 0xffff
mov dword [ebp - 0x15c], eax
push 8
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
call esi
mov edi, eax
mov dword [ebp - 0x90], edi
push 0x10
push ebx
call esi
mov esi, eax
mov dword [ebp - 0x390], esi
push 8
push ebx
push edi
call sub.MSVCRT.dll_memset
push 0x10
push ebx
push esi
call sub.MSVCRT.dll_memset
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], esi
push str.cnFormVoidFBC
lea eax, [ebp - 0x380]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [ebp - 0x380]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
shl eax, 1
mov word [ebp - 0x180], ax
mov word [ebp - 0x17e], 0x200
push 8
push 0x1c
push dword [ebp - 0x170]
push 0xa
push dword [ebp - 0x394]
call fcn.10009898
add esp, 0x38
push eax
push ebx
push ecx
push edx
push esi
push edi
push 0
push 0x80
push 0x257
push dword [ebp - 0x138]
push dword [ebp - 0x174]
push dword [ebp - 0x174]
push dword [ebp - 0x94]
mov eax, dword [ebp - 0x78]
call dword [ebp - 0x170]
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
push 0
push 0x100104b8
call dword [sym.imp.USER32.dll_UnregisterClassA]
push 8
push 0x1c
push dword [ebp - 0x170]
push 0xa
push dword [ebp - 0x394]
call fcn.10009898
push dword [ebp - 0x13c]
call fcn.1000c640
add esp, 0x18
test al, al
jne 0x1000afe7
mov dword [ebp - 0x7c], 0xffffffc3
jmp 0x1000b0a8
push eax
push ebx
push ecx
push edx
push esi
push edi
push 0
push 0x1f
push 0
push 0
push 0
push 0x600
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x74]
call dword [ebp - 0x170]
mov dword [ebp - 0x7c], eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
push 0
call fcn.1000c640
pop ecx
cmp dword [ebp - 0x7c], 0
jne 0x1000b0a8
cmp byte [ebp - 0x20], 0
je 0x1000b0a1
push 7
lea eax, [ebp - 0x6c]
push eax
push 1
push 0x1000b1d2
push dword [ebp - 0x398]
push 0x11
push 0x10010588
call fcn.10009835
push 8
push 4
push dword [ebp - 0x170]
push 0xa
push dword [ebp - 0x394]
call fcn.10009898
push dword [ebp - 0x13c]
call fcn.1000c640
add esp, 0x34
test al, al
je 0x1000afdb
or dword [ebp - 0x7c], 0xffffffff
push eax
push ebx
push ecx
push edx
push esi
push edi
push 0x64
mov eax, dword [ebp - 0x1c]
call dword [ebp - 0x170]
mov dword [ebp - 0x7c], eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
push 0
call fcn.1000c640
pop ecx
cmp byte [ebp - 0x1f], 0
jne 0x1000b0a8
mov dword [ebp - 0x7c], 0xffffffc0
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
call fcn.1000b0ba
mov eax, dword [ebp - 0x7c]
jmp 0x1000b0cf
push 0x57
pop eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret