Function at 0x1003db00
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 0x1007c9d6
push eax
mov eax, dword [0x100a6050]
mov dword fs:[0], esp
sub esp, 0x2cc
push ebp
xor ebp, ebp
cmp eax, ebp
jne 0x1003e0b8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], 0x94
mov dword [0x100a6050], 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
call esi
test eax, eax
je 0x1003dc6e
lea ecx, [esp + 0x34]
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.1003e0e0
add esp, 8
push str.Ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebp
je 0x1003db98
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
mov dword [0x100a6604], edx
jmp 0x1003db9e
mov edx, dword [0x100a6604]
cmp edx, ebp
je 0x1003dbd6
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x1c8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c4]
mov dword [esp + 0x1c4], 0x114
push eax
call edx
test eax, eax
jne 0x1003dbd6
mov ecx, dword [esp + 0x1d0]
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [0x100a605c], eax
mov eax, dword [esp + 0x3c]
mov dword [0x100a6054], ecx
cmp eax, 2
mov dword [0x100a6058], edx
mov dword [0x100a6060], eax
jne 0x1003dc6e
cmp ecx, 4
jb 0x1003dc6e
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0xc4]
mov dword [esp + 0xc0], 0x9c
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc0]
push ecx
call esi
test eax, eax
je 0x1003dc6e
mov ax, word [esp + 0x156]
mov dx, word [esp + 0x154]
mov cx, word [esp + 0x158]
mov word [0x100a60e6], ax
mov ax, word [esp + 0x15a]
mov word [0x100a60e4], dx
mov byte [0x100a60ea], al
mov word [0x100a60e8], cx
mov byte [0x100a60eb], ah
push ebx
push 0x104
push 0x100a60ec
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x100a60ec
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1003decc
mov edi, 0x100a60ec
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, 0x100a61f0
push 0x100a61f0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.1000e1c7
add esp, 8
cmp eax, ebp
je 0x1003dcd3
mov byte [eax], 0
mov edi, 0x100a61f0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1003decc
mov edi, 0x100a61f0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, 0x100a64fc
push 0x100a64fc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.1000e1c7
add esp, 8
cmp eax, ebp
je 0x1003dd21
mov byte [eax], 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
push ecx
push 0x20019
push ebp
push 0x1008a1a0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003de0c
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x1003de0c
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
push ebp
push ecx
push ebp
push str.ProgramFilesDir
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
call ebx
test eax, eax
mov esi, 0x103
jne 0x1003ddaf
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x1003dd91
cmp eax, 2
je 0x1003dd91
cmp eax, 6
je 0x1003dd91
cmp eax, 7
jne 0x1003ddaf
cmp dword [esp + 0x18], esi
ja 0x1003ddaf
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0x100a62f4
push ebp
push ebp
push str.ProgramFilesDir
push eax
call ebx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push ebp
push edx
push ebp
push 0x1008a190
push eax
call ebx
test eax, eax
jne 0x1003de01
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x1003dde3
cmp eax, 2
je 0x1003dde3
cmp eax, 6
je 0x1003dde3
cmp eax, 7
jne 0x1003de01
cmp dword [esp + 0x18], esi
ja 0x1003de01
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x100a63f8
push ebp
push ebp
push 0x1008a190
push edx
call ebx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x100a62f4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x1003de6b
mov edi, 0x100a64fc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x100a62f4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Program_Files
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x100a62f4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x100a63f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x1003decc
mov edi, 0x100a62f4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x100a63f8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Common_Files
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x100a63f8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
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 [esp + 0x14], ebp
mov eax, dword [0x100987c4]
xor edi, edi
mov dword [esp + 0x2e4], edi
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2e4], 1
push ecx
push 0x20019
push edi
push str.SYSTEMCurrentControlSetControlNlsLanguage
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x1003df72
xor edx, edx
mov esi, dword [esp + 0x10]
mov dword [esp + 0x25], edx
lea eax, [esp + 0x1c]
mov dword [esp + 0x29], edx
lea ecx, [esp + 0x24]
mov word [esp + 0x2d], dx
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push edi
mov ebp, esi
push str.InstallLanguage
push esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], 0xa
mov byte [esp + 0x3c], 0
mov dword [esp + 0x28], edi
call ebx
cmp eax, edi
jne 0x1003df61
lea eax, [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
call fcn.1006de40
cmp esi, edi
je 0x1003df72
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x20]
pop ebx
cmp dword [eax - 8], edi
jle 0x1003df94
push 0x100a6600
push 0x1009d574
push eax
call fcn.100691a1
add esp, 0xc
jmp 0x1003e09a
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xc1]
mov byte [esp + 0xc0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x100a60ec
lea ecx, [esp + 0xc4]
push str._suser.exe
push ecx
stosb byte es:[edi], al
call fcn.1000ea8f
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0xc0]
mov dword [esp + 0x14], 0
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
push eax
mov dword [esp + 0x10], eax
call fcn.1006e388
mov esi, eax
add esp, 4
test esi, esi
je 0x1003e09a
mov ecx, dword [esp + 0xc]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
lea edx, [esp + 0xc4]
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1003e091
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
push ecx
push str.VarFileInfoTranslation
push esi
mov dword [esp + 0x28], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1003e091
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov ax, word [edx]
mov word [0x100a6600], ax
mov edx, dword [0x100a6600]
mov eax, 0x1009d4ce
mov di, word [eax + 2]
and edi, edx
cmp di, word [eax]
je 0x1003e07f
add eax, 6
inc ecx
cmp eax, 0x1009d56a
jb 0x1003e067
jmp 0x1003e091
lea ecx, [ecx + ecx*2]
mov dx, word [ecx*2 + 0x1009d4cc]
mov word [0x100a6600], dx
push esi
call fcn.1006e3b1
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2e0], 0
call fcn.1006dcb7
pop edi
pop esi
test ebp, ebp
je 0x1003e0b8
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2d0]
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x2d8
ret