Function at 0x43dda0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x124]
sub esp, 0x124
push 0xffffffffffffffff
push 0x46904a
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x483008]
xor eax, ebp
mov dword [ebp + 0x120], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x43dde5
call fcn.0043e0d0
cmp byte [0x483e24], 0
jne 0x43ddf8
mov eax, 0x80000001
jmp 0x43e0a1
mov eax, dword [esi]
test eax, eax
jne 0x43de63
push 8
call fcn.0045e179
mov edi, eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0
push 1
call fcn.0045e179
mov dword [edi + 4], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
mov dword [ebp + 4], 0x11c
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43de52
cmp dword [ebp + 8], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x43e090
call fcn.00436f20
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test al, al
jne 0x43dfca
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x28]
mov eax, dword [esi]
add eax, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], eax
xor eax, eax
push 0xc
mov dword [ebp - 0x14], 0
push str.Advapi32.dll
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00405840
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
call fcn.0043e4a0
mov ecx, eax
call fcn.0043e560
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x43df21
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43df17
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x43df17
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0045e524
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test edi, edi
je 0x43e090
push str.OpenProcessToken
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x43e090
push dword [ebp - 0x30]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x43e090
lea eax, [ebp]
mov dword [ebp], 0
push eax
push 0x20008
push edi
call ebx
test eax, eax
je 0x43df8f
push dword [ebp]
mov ecx, dword [ebp - 0x2c]
call fcn.00437620
mov bl, al
jmp 0x43df92
mov bl, byte [ebp - 0xd]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov ecx, dword [ebp]
test ecx, ecx
je 0x43dfa5
push ecx
call edi
test bl, bl
je 0x43e090
mov ecx, dword [esi]
add ecx, 4
call fcn.00436970
call fcn.00436f20
test al, al
je 0x43e090
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xc
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push str.Advapi32.dll
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00405840
mov dword [ebp - 4], 3
lea eax, [ebp - 0x28]
push eax
call fcn.0043e4a0
mov ecx, eax
call fcn.0043e560
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x43e057
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43e04d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x43e04d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0045e524
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test edi, edi
je 0x43e090
push str.RegOpenCurrentUser
push edi
call ebx
test eax, eax
je 0x43e090
push dword [esi]
push 0x20019
call eax
test eax, eax
je 0x43e090
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x43e09f
mov dword [eax], 0x80000001
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.0045e155
lea esp, [ebp + 0x124]
pop ebp
ret 4