Function at 0x1000db00
Capabilities:
Check os version
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b878
push 0x100199f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x294
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
mov ecx, 0x52
lea edi, [ebp - 0x2a0]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2a4]
push eax
push 0x20019
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x1001b060]
test eax, eax
je 0x1000db77
mov dword [ebp - 0x24], 0xffffffff
jmp case.0x1000dc3c.5
mov eax, dword [ebp + 0x24]
sub eax, ebx
je 0x1000dc2f
dec eax
je 0x1000db93
sub eax, 2
jne case.0x1000dc3c.5
jmp 0x1000ddc2
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0x104
mov eax, ebx
inc ebx
mov dword [ebp - 0x154], ebx
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x12c]
push edx
push eax
mov eax, dword [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne case.0x1000dc3c.5
lea ecx, [ebp - 0x12c]
push ecx
push 0x10022208
lea edx, [ebp - 0x2a0]
push edx
call dword [0x1001b4a4]
add esp, 0xc
lea edi, [ebp - 0x2a0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, dword [ebp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x24], 1
jmp 0x1000db93
mov eax, dword [ebp + 0x14]
dec eax
cmp eax, 6
ja case.0x1000dc3c.5
jmp dword [eax*4 + 0x1000de00]
mov dword [ebp - 0x1c], 0x104
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp + 0x14]
push eax
push ebx
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x2a4]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne case.0x1000dc3c.5
mov eax, dword [ebp + 0x20]
push eax
lea ecx, [ebp - 0x12c]
push ecx
call sym.comsvcs.dll_DllUnregisterServer
add esp, 4
push eax
mov edx, dword [ebp + 0x18]
push edx
call dword [0x1001b398]
add esp, 0xc
jmp 0x1000ddc2
mov dword [ebp - 0x1c], 0x104
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp + 0x14]
push edx
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x2a4]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne case.0x1000dc3c.5
lea ebx, [ebp - 0x12c]
mov dword [ebp - 0x28], ebx
cmp byte [ebx], 0
je 0x1000dd2a
push 0x14a
push ebx
lea edx, [ebp - 0x2a0]
push edx
call dword [0x1001b390]
add esp, 0xc
lea edx, [ebp - 0x2a0]
mov edi, 0x10022204
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [0x1001b12c]
lea ebx, [ebx + eax + 1]
jmp 0x1000dccf
mov eax, dword [ebp + 0x20]
push eax
lea ecx, [ebp - 0x2a0]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call dword [0x1001b398]
add esp, 0xc
jmp 0x1000ddc2
mov dword [ebp - 0x1c], 4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x150]
push ecx
lea edx, [ebp + 0x14]
push edx
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x2a4]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne case.0x1000dc3c.5
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x1000dd8f
mov edx, dword [ebp - 0x150]
push edx
push 0x10022200
push eax
call dword [0x1001b4a4]
add esp, 0xc
jmp 0x1000ddc2
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x24], eax
jmp case.0x1000dc3c.5
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x14]
push ecx
push ebx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne case.0x1000dc3c.5
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
call fcn.1000dde9
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret