Function at 0x1021e82
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x1027ce4]
push ebx
push esi
push edi
mov ebx, ecx
push 0x25
mov dword [ebp - 4], eax
xor esi, esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 4
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
ja 0x1021f9d
lea eax, [ebp - 0xa4]
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0102060c
test eax, eax
jne 0x1021fd3
lea eax, [ebp - 0xa8]
push eax
push esi
push esi
push esi
mov ebx, str.CachePrimaryDomain
push ebx
push dword [ebp - 0xa4]
call fcn.01020686
test eax, eax
jne 0x1021fd3
mov eax, dword [ebp - 0xa8]
cmp eax, esi
jbe 0x1021fd3
lea eax, [eax + eax + 2]
push eax
push 0x40
call edi
cmp eax, esi
mov dword [ebp - 0xb4], eax
je 0x10222cd
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0xb4]
push esi
push esi
push ebx
push dword [ebp - 0xa4]
call fcn.01020686
test eax, eax
jne 0x1021fd3
mov eax, dword [ebp - 0xb4]
cmp word [eax], si
je 0x1021fd3
jmp 0x1021fcd
mov eax, dword [ebx + 0x64]
cmp eax, esi
je 0x10222c1
lea ecx, [ebp - 0x9c]
push ecx
push SysReAllocString
push esi
push esi
push esi
push esi
mov dword [ebp - 0x9c], esi
call eax
test eax, eax
jne 0x1021fd3
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x60]
cmp eax, esi
je 0x1022053
lea ecx, [ebp - 0x9c]
push ecx
push 0x64
push esi
mov dword [ebp - 0x9c], esi
call eax
test eax, eax
jne 0x1022053
mov eax, dword [ebp - 0x9c]
cmp eax, esi
je 0x1022053
mov ebx, dword [eax + 8]
cmp ebx, esi
je 0x1022010
push ebx
call fcn.010146ba
pop ecx
jmp 0x1022012
xor eax, eax
cmp eax, esi
je 0x102203e
lea eax, [eax + eax + 2]
push eax
push 0x40
call edi
cmp eax, esi
mov dword [ebp - 0xb8], eax
je 0x10222cd
push ebx
mov ebx, eax
push ebx
call fcn.0101425e
pop ecx
pop ecx
mov dword [ebp - 0xac], ebx
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x54]
cmp eax, esi
je 0x1022053
push dword [ebp - 0x9c]
call eax
mov eax, dword [ebp - 0xb4]
cmp eax, esi
je 0x1022086
cmp word [eax], si
je 0x1022086
cmp dword [ebp - 0xb8], esi
je 0x1022086
push dword [ebp - 0xb8]
push eax
call fcn.0101433d
test eax, eax
pop ecx
pop ecx
jne 0x1022086
mov dword [ebp - 0xc0], 1
cmp dword [ebp - 0xac], esi
je 0x10220a2
push dword [ebp - 0xac]
call fcn.010146ba
pop ecx
mov dword [ebp - 0xa8], eax
jmp 0x10220a8
mov dword [ebp - 0xa8], esi
cmp dword [ebp - 0xa8], esi
jbe 0x10222cd
cmp dword [ebp - 0xc0], esi
je 0x10221c4
cmp dword [ebp - 0xa4], esi
je 0x10221c4
cmp dword [ebp - 0x94], 4
jae 0x102213d
lea eax, [ebp - 0xa0]
push eax
push esi
push esi
push esi
push str.CacheTrustedDomains
push dword [ebp - 0xa4]
call fcn.01020686
test eax, eax
jne 0x10222cd
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa0]
add ecx, eax
lea eax, [ecx + ecx + 4]
push eax
push 0x40
call edi
cmp eax, esi
mov dword [ebp - 0xb0], eax
je 0x10222cd
push dword [ebp - 0xac]
mov edi, eax
push edi
call fcn.0101425e
push edi
call fcn.010146ba
add esp, 0xc
mov word [edi + eax*2 + 2], si
jmp 0x10222cd
jne 0x10221c4
lea eax, [ebp - 0xa0]
push eax
push esi
push esi
push esi
mov ebx, str.DCache
push ebx
push dword [ebp - 0xa4]
call fcn.01020686
test eax, eax
jne 0x10222cd
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa8]
add eax, ecx
lea eax, [eax + eax + 4]
push eax
push 0x40
call edi
cmp eax, esi
mov dword [ebp - 0xb0], eax
je 0x10222cd
push dword [ebp - 0xac]
mov edi, eax
push edi
call fcn.0101425e
push edi
call fcn.010146ba
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
lea eax, [edi + eax*2 + 2]
push eax
push esi
push esi
push ebx
mov word [eax], si
push dword [ebp - 0xa4]
call fcn.01020686
jmp 0x10222cd
cmp dword [ebp - 0x94], 5
jb 0x10222cd
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x68]
cmp eax, esi
mov dword [ebp - 0x9c], esi
je 0x10222cd
lea ecx, [ebp - 0x9c]
push ecx
push esi
mov dword [ebp - 0xa0], esi
xor ebx, ebx
call eax
test eax, eax
jne 0x102223c
mov ebx, dword [ebp - 0x9c]
jmp 0x102222e
movzx eax, ax
inc eax
je 0x1022236
push ebx
call fcn.010146ba
mov ecx, dword [ebp - 0xa0]
lea eax, [ecx + eax + 1]
push ebx
mov dword [ebp - 0xa0], eax
call fcn.010146ba
pop ecx
pop ecx
lea ebx, [ebx + eax*2 + 2]
mov ax, word [ebx]
cmp ax, si
jne 0x1022206
mov ebx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa0]
add ecx, eax
lea eax, [ecx + ecx + 4]
push eax
push 0x40
call edi
cmp eax, esi
mov dword [ebp - 0xb0], eax
je 0x10222cd
push dword [ebp - 0xac]
mov edi, eax
push edi
call fcn.0101425e
push edi
call fcn.010146ba
lea edi, [edi + eax*2 + 2]
add esp, 0xc
mov word [edi], si
cmp dword [ebp - 0xa0], esi
je 0x10222cd
jmp 0x10222ac
movzx eax, ax
inc eax
je 0x10222b4
push ebx
push edi
call fcn.0101faed
push edi
call fcn.010146ba
lea edi, [edi + eax*2]
mov word [edi], si
inc edi
push ebx
inc edi
call fcn.010146ba
pop ecx
pop ecx
lea ebx, [ebx + eax*2 + 2]
mov ax, word [ebx]
cmp ax, si
jne 0x1022285
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x54]
cmp eax, esi
jne 0x10222c5
xor eax, eax
jmp 0x102230d
push dword [ebp - 0x9c]
call eax
cmp dword [ebp - 0xa4], esi
je 0x10222e1
push dword [ebp - 0xa4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xb4], esi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x10222f7
push dword [ebp - 0xb4]
call edi
cmp dword [ebp - 0xb8], esi
je 0x1022307
push dword [ebp - 0xb8]
call edi
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01013eb1
leave
ret