Function at 0x61c9e8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [0x65d704]
cmp dword [eax], 2
jne 0x61ca13
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 5
jae 0x61ca1f
mov dword [ebp - 0xc], 1
jmp 0x61cc62
push 0x61cc70
call sub.kernel32.dll_GetModuleHandleW_2
mov esi, eax
push 0x61cc8c
push esi
call sub.kernel32.dll_GetProcAddress_2
mov edi, eax
push 0x61cca4
push esi
call sub.kernel32.dll_GetProcAddress_2
mov dword [ebp - 0x10], eax
push 0x61ccbc
push esi
call sub.kernel32.dll_GetProcAddress_2
mov dword [ebp - 0x14], eax
test edi, edi
je 0x61ca64
cmp dword [ebp - 0x10], 0
je 0x61ca64
cmp dword [ebp - 0x14], 0
jne 0x61ca70
mov dword [ebp - 0xc], 0x7f
jmp 0x61cc62
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00408d1c
push eax
call edi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x61cc62
xor ecx, ecx
push ebp
push 0x61cc5b
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp + 0xc]
shl eax, 5
call fcn.00404b68
mov dword [ebp - 0x24], eax
mov esi, ebx
mov edi, dword [ebp + 0xc]
dec edi
test edi, edi
jl 0x61cb97
inc edi
xor ebx, ebx
mov eax, esi
movzx edx, byte [esi + 6]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x30], ecx
xor ecx, ecx
mov dword [ebp - 0x34], ecx
xor ecx, ecx
mov dword [ebp - 0x38], ecx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
xor ecx, ecx
mov dword [ebp - 0x40], ecx
xor ecx, ecx
mov dword [ebp - 0x44], ecx
xor ecx, ecx
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x2c]
push ecx
push edx
push eax
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
jne 0x61cb4c
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x61cb42
mov dword [ebp - 0xc], 0x57
call fcn.00407448
jmp 0x61cc62
mov eax, ebx
add eax, eax
add eax, eax
mov edx, dword [ebp - 0x24]
mov ecx, dword [esi + 0x10]
mov dword [edx + eax*8], ecx
mov edx, dword [ebp - 0x24]
mov dword [edx + eax*8 + 4], 1
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [edx + eax*8 + 8], ecx
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [edx + eax*8 + 0x14], ecx
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [edx + eax*8 + 0x18], ecx
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [edx + eax*8 + 0x1c], ecx
add esi, 0x14
inc ebx
dec edi
jne 0x61cace
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x61cbbd
call fcn.00407448
jmp 0x61cc62
xor eax, eax
push ebp
push 0x61cc01
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00408d1c
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 0x61cc08
mov eax, dword [ebp - 0x20]
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