Function at 0x45bf5c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
cmp dword [0x4980dc], 2
jne 0x45bf85
call sub.kernel32.dll_GetVersion
and ax, 0xff
cmp ax, 5
jae 0x45bf91
mov dword [ebp - 0xc], 1
jmp 0x45c1d5
push 0x45c1e4
call sub.kernel32.dll_GetModuleHandleA_1
mov esi, eax
push 0x45c1f4
push esi
call sub.kernel32.dll_GetProcAddress
mov edi, eax
push 0x45c20c
push esi
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x10], eax
push 0x45c224
push esi
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x14], eax
test edi, edi
je 0x45bfd6
cmp dword [ebp - 0x10], 0
je 0x45bfd6
cmp dword [ebp - 0x14], 0
jne 0x45bfe2
mov dword [ebp - 0xc], 0x7f
jmp 0x45c1d5
mov eax, ebx
call fcn.0045be64
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x45c1ce
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x18]
push eax
call edi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x45c02c
call fcn.004031bc
jmp 0x45c1d5
xor edx, edx
push ebp
push 0x45c1b1
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp + 0xc]
shl eax, 5
call fcn.004069bc
mov dword [ebp - 0x28], eax
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 0xc]
dec edi
test edi, edi
jl 0x45c0ee
inc edi
xor ebx, ebx
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push eax
mov al, byte [esi + 6]
push eax
push esi
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
jne 0x45c0a4
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x45c095
mov dword [ebp - 0xc], 0x57
call fcn.004031bc
call fcn.004031bc
jmp 0x45c1d5
mov eax, ebx
shl eax, 2
mov edx, dword [ebp - 0x28]
mov ecx, dword [esi + 0x10]
mov dword [edx + eax*8], ecx
mov edx, dword [ebp - 0x28]
mov dword [edx + eax*8 + 4], 1
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
mov dword [edx + eax*8 + 8], ecx
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov dword [edx + eax*8 + 0x14], ecx
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov dword [edx + eax*8 + 0x18], ecx
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov dword [edx + eax*8 + 0x1c], ecx
add esi, 0x14
inc ebx
dec edi
jne 0x45c05a
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x45c119
call fcn.004031bc
call fcn.004031bc
jmp 0x45c1d5
xor eax, eax
push ebp
push 0x45c158
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x24]
push eax
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c15f
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_LocalFree_1
ret
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8