Function at 0x101601f0
Capabilities:
Check os version
Get common file path
Get file version info
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10191696
push eax
mov eax, dword [0x1027d078]
mov dword fs:[0], esp
sub esp, 0x464
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
jne 0x10160723
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
mov esi, 0x114
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x15c]
mov dword [esp + 0x158], esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x158]
mov dword [0x1027d078], 1
push eax
call ebp
test eax, eax
je 0x10160365
lea ecx, [esp + 0x160]
lea edx, [esp + 0x15c]
push ecx
push edx
call fcn.10160760
add esp, 8
push str.Ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x10160299
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
mov dword [0x1027dbc0], edx
jmp 0x1016029f
mov edx, dword [0x1027dbc0]
cmp edx, ebx
je 0x101602ca
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], esi
push eax
call edx
test eax, eax
jne 0x101602ca
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x164], ecx
mov eax, dword [esp + 0x164]
mov ecx, dword [esp + 0x15c]
mov edx, dword [esp + 0x160]
mov dword [0x1027d084], eax
mov eax, dword [esp + 0x168]
mov dword [0x1027d07c], ecx
cmp eax, 2
mov dword [0x1027d080], edx
mov dword [0x1027d088], eax
jne 0x10160365
cmp ecx, 4
jb 0x10160365
mov ecx, 0x46
xor eax, eax
lea edi, [esp + 0x40]
mov dword [esp + 0x3c], 0x11c
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
push ecx
call ebp
test eax, eax
je 0x10160365
mov ax, word [esp + 0x152]
mov dx, word [esp + 0x150]
mov cx, word [esp + 0x154]
mov word [0x1027d18e], ax
mov ax, word [esp + 0x156]
mov word [0x1027d18c], dx
mov byte [0x1027d192], al
mov word [0x1027d190], cx
mov byte [0x1027d193], ah
push 0x104
push 0x1027d194
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x1027d194
call fcn.100c9da4
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 4
test eax, eax
jbe 0x10160540
push 0x1027d194
push 0x1027d39c
call fcn.100c9d7f
push 0x5c
push 0x1027d39c
call fcn.100c9d15
add esp, 0x10
cmp eax, ebx
je 0x101603bb
mov word [eax], bx
push 0x1027d39c
call fcn.100c9da4
add esp, 4
test eax, eax
jbe 0x10160540
push 0x1027d39c
push 0x1027d9b4
call fcn.100c9d7f
push 0x5c
push 0x1027d9b4
call fcn.100c9d15
add esp, 0x10
cmp eax, ebx
je 0x101603f5
mov word [eax], bx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push edx
push 0x20019
push ebx
push 0x101be234
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jne 0x101604dc
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x101604dc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push ebx
push edx
push ebx
push str.ProgramFilesDir
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call edi
test eax, eax
mov esi, 0x102
jne 0x1016047f
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x10160461
cmp eax, 2
je 0x10160461
cmp eax, 6
je 0x10160461
cmp eax, 7
jne 0x1016047f
cmp dword [esp + 0x18], esi
ja 0x1016047f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x1027d5a4
push ebx
push ebx
push str.ProgramFilesDir
push ecx
call edi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push 0x101be214
push ecx
call edi
test eax, eax
jne 0x101604d1
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x101604b3
cmp eax, 2
je 0x101604b3
cmp eax, 6
je 0x101604b3
cmp eax, 7
jne 0x101604d1
cmp dword [esp + 0x18], esi
ja 0x101604d1
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0x1027d7ac
push ebx
push ebx
push 0x101be214
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1027d5a4
call fcn.100c9da4
add esp, 4
test eax, eax
jne 0x1016050e
push 0x1027d9b4
push 0x1027d5a4
call fcn.100c9d7f
push str.Program_Files
push 0x1027d5a4
call fcn.100c9d55
add esp, 0x10
push 0x1027d7ac
call fcn.100c9da4
add esp, 4
test eax, eax
jne 0x10160540
push 0x1027d5a4
push 0x1027d7ac
call fcn.100c9d7f
push str.Common_Files
push 0x1027d7ac
call fcn.100c9d55
add esp, 0x10
xor esi, esi
mov dword [esp + 0x14], esi
mov edx, dword [0x101e2494]
mov dword [esp + 0x47c], ebx
mov dword [esp + 0x20], edx
lea eax, [esp + 0x10]
mov byte [esp + 0x47c], 1
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlNlsLanguage
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
call ebp
cmp eax, ebx
jne 0x101605e8
xor ecx, ecx
mov esi, dword [esp + 0x10]
mov dword [esp + 0x26], ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x2a], ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x2e], ecx
push edx
mov dword [esp + 0x36], ecx
push eax
mov dword [esp + 0x3e], ecx
lea ecx, [esp + 0x18]
push ecx
push ebx
push str.InstallLanguage
push esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], 0xa
mov word [esp + 0x3c], bx
mov dword [esp + 0x28], ebx
call edi
cmp eax, ebx
jne 0x101605d7
lea edx, [esp + 0x24]
lea ecx, [esp + 0x20]
push edx
call fcn.101733fe
cmp esi, ebx
je 0x101605e8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x20]
cmp dword [eax - 8], ebx
jle 0x10160609
push 0x1027dbbc
push 0x101f1798
push eax
call fcn.100ca5de
add esp, 0xc
jmp 0x10160706
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x26e]
mov word [esp + 0x26c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x1027d194
lea eax, [esp + 0x270]
push str._suser.exe
push eax
call fcn.100ca1f6
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x26c]
mov dword [esp + 0x18], ebx
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
push eax
mov dword [esp + 0x14], eax
call fcn.10173930
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x10160706
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
lea edx, [esp + 0x270]
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x101606fd
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push str.VarFileInfoTranslation
push ebp
mov dword [esp + 0x2c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x101606fd
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov ax, word [edx]
mov word [0x1027dbbc], ax
mov edx, dword [0x1027dbbc]
mov eax, 0x101f16e6
mov di, word [eax + 2]
and edi, edx
cmp di, word [eax]
je 0x101606eb
add eax, 6
inc ecx
cmp eax, 0x101f1782
jb 0x101606d3
jmp 0x101606fd
lea ecx, [ecx + ecx*2]
mov dx, word [ecx*2 + 0x101f16e4]
mov word [0x1027dbbc], dx
push ebp
call fcn.10173959
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x47c], bl
call fcn.10173267
pop edi
cmp esi, ebx
pop ebp
je 0x10160723
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x46c]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x470
ret