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

Disassembly:
mov eax, dword [0x100537a4]
sub esp, 0x248
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
jne 0x1002ebec
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], 0x94
mov dword [0x100537a4], 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
je 0x1002e894
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [0x100537b0], eax
mov eax, dword [esp + 0x30]
mov dword [0x100537a8], ecx
cmp eax, 2
mov dword [0x100537ac], edx
mov dword [0x100537b4], eax
jne 0x1002e894
cmp ecx, 4
jb 0x1002e894
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0xb8]
mov dword [esp + 0xb4], 0x9c
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xb4]
push ecx
call esi
test eax, eax
je 0x1002e894
mov ax, word [esp + 0x14a]
mov dx, word [esp + 0x148]
mov cx, word [esp + 0x14c]
mov word [0x1005383a], ax
mov ax, word [esp + 0x14e]
mov word [0x10053838], dx
mov byte [0x1005383e], al
mov word [0x1005383c], cx
mov byte [0x1005383f], ah
push 0x104
push 0x10053840
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x10053840
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1002eaef
mov edi, 0x10053840
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, 0x10053944
push 0x10053944
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.100075dd
add esp, 8
cmp eax, ebx
je 0x1002e8f1
mov byte [eax], bl
mov edi, 0x10053944
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1002eaef
mov edi, 0x10053944
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, 0x10053c50
push 0x10053c50
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.100075dd
add esp, 8
cmp eax, ebx
je 0x1002e93e
mov byte [eax], bl
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002ea2f
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1002ea2f
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x10]
push ebx
push ecx
push ebx
push str.ProgramFilesDir
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
mov edi, 0x103
jne 0x1002e9d2
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x1002e9b4
cmp eax, 2
je 0x1002e9b4
cmp eax, 6
je 0x1002e9b4
cmp eax, 7
jne 0x1002e9d2
cmp dword [esp + 0x14], edi
ja 0x1002e9d2
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x10053a48
push ebx
push ebx
push str.ProgramFilesDir
push eax
call esi
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push ebx
push edx
push ebx
push str.CommonFilesDir
push eax
call esi
test eax, eax
jne 0x1002ea24
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x1002ea06
cmp eax, 2
je 0x1002ea06
cmp eax, 6
je 0x1002ea06
cmp eax, 7
jne 0x1002ea24
cmp dword [esp + 0x14], edi
ja 0x1002ea24
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0x10053b4c
push ebx
push ebx
push str.CommonFilesDir
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x10053a48
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x1002ea8e
mov edi, 0x10053c50
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x10053a48
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, 0x10053a48
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, 0x10053b4c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x1002eaef
mov edi, 0x10053a48
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x10053b4c
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, 0x10053b4c
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 ecx, 0x40
xor eax, eax
lea edi, [esp + 0x151]
mov byte [esp + 0x150], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x10053840
lea eax, [esp + 0x154]
push str._suser.exe
push eax
call fcn.100070ff
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x150]
mov dword [esp + 0x1c], ebx
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
push eax
mov dword [esp + 0x1c], eax
call fcn.100337e7
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1002ebec
mov ecx, dword [esp + 0x18]
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 + 0x154]
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1002ebe3
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x1004f7cc
push esi
mov dword [esp + 0x1c], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1002ebe3
mov edx, dword [esp + 0xc]
xor ecx, ecx
mov ax, word [edx]
mov word [0x10053d54], ax
mov edx, dword [0x10053d54]
mov eax, 0x1004f732
mov di, word [eax + 2]
and edi, edx
cmp di, word [eax]
je 0x1002ebd1
add eax, 6
inc ecx
cmp eax, 0x1004f7ce
jb 0x1002ebb9
jmp 0x1002ebe3
lea ecx, [ecx + ecx*2]
mov dx, word [ecx*2 + 0x1004f730]
mov word [0x10053d54], dx
push esi
call fcn.10033810
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x248
ret