Function at 0x10008a50
Capabilities:
Check os version
Identify system language via api
Query or enumerate registry value

Disassembly:
sub esp, 0x1e4
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x1e0], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1f4]
push edi
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebp, ebp
mov edi, eax
cmp edi, ebp
lea ebx, [esi + 0x40]
mov dword [ebx], ebp
je 0x10008a9d
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
lea eax, [esp + 0x50]
push eax
mov dword [esi], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], ebp
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x44], ebp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], ebp
mov dword [esp + 0x54], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x60], 2
je 0x10008af9
xor eax, eax
jmp 0x10009154
mov ecx, dword [esp + 0x54]
cmp ecx, 5
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [esi + 8], edx
jne 0x10008b37
cmp eax, ebp
jne 0x10008b1f
mov dword [esi + 0xc], 1
jmp 0x10008b69
mov ecx, 1
cmp eax, ecx
jne 0x10008b2d
mov dword [esi + 0x10], ecx
jmp 0x10008b69
cmp eax, 2
jne 0x10008af2
mov dword [esi + 0x14], ecx
jmp 0x10008b69
cmp ecx, 6
jne 0x10008b69
cmp eax, ebp
jne 0x10008b49
mov dword [esi + 0x18], 1
jmp 0x10008b69
mov ecx, 1
cmp eax, ecx
jne 0x10008b57
mov dword [esi + 0x1c], ecx
jmp 0x10008b69
cmp eax, 2
jne 0x10008b61
mov dword [esi + 0x20], ecx
jmp 0x10008b69
cmp eax, 3
jne 0x10008b69
mov dword [esi + 0x24], ecx
mov al, byte [esp + 0xea]
cmp al, 3
je 0x10008b78
cmp al, 2
jne 0x10008b82
mov edi, 1
mov dword [esi + 0x44], edi
jmp 0x10008b87
mov edi, 1
cmp dword [esi + 0x14], ebp
je 0x10008b9b
cmp dword [esi + 0x44], ebp
jne 0x10008b9b
cmp dword [ebx], ebp
je 0x10008b9b
mov dword [esi + 0x14], ebp
mov dword [esi + 0x10], edi
movzx ecx, word [esp + 0xe6]
movzx eax, word [esp + 0xe4]
mov dword [esi + 0x50], ecx
push 0x1002a7b3
lea ecx, [esp + 0x3c]
mov dword [esi + 0x4c], eax
call fcn.10007760
push 0x1002a7b3
lea ecx, [esp + 0x24]
call fcn.10007760
push 0x1002a7b3
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], 6
mov dword [esp + 0x4c], edi
call fcn.10007760
push str.Client
lea ecx, [esp + 0x30]
call fcn.10007760
push 0x1002a7b3
lea ecx, [esp + 0x28]
call fcn.10007760
push 0x1002a7b3
lea ecx, [esp + 0x1c]
call fcn.10007760
mov edi, dword [ebx]
neg edi
sbb edi, edi
lea edx, [esp + 0x38]
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
and edi, 0xffffff00
push edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x30], ebp
add edi, 0x20219
call fcn.10006880
mov ecx, dword [esp + 0x40]
add esp, 8
lea eax, [esp + 0x1c]
push eax
push edi
push ebp
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000906e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
push str.CurrentMajorVersionNumber
mov edi, 4
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call ebx
test eax, eax
jne 0x10008cc7
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x18]
push edx
push ebp
push str.CurrentMinorVersionNumber
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call ebx
test eax, eax
jne 0x10008cc7
mov dword [esp + 0x44], 1
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xf0]
push edx
lea eax, [esp + 0x18]
push eax
push ebp
push str.CurrentVersion
mov edi, 0x104
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], edi
call ebx
test eax, eax
jne 0x10008e19
lea edx, [esp + 0xec]
push edx
lea ecx, [esp + 0x1c]
call fcn.10006c30
lea ecx, [esp + 0x18]
call fcn.10006610
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], ebp
jl 0x10008e19
push 0x1002a7c8
push eax
call fcn.10014de7
add esp, 8
cmp eax, ebp
je 0x10008e19
mov ecx, dword [esp + 0x18]
sub eax, ecx
cmp eax, 0xffffffff
je 0x10008e19
cmp dword [ecx - 0xc], ebp
jge 0x10008d55
or eax, 0xffffffff
jmp 0x10008d70
push 0x1002a7c8
push ecx
call fcn.10014de7
add esp, 8
cmp eax, ebp
jne 0x10008d6c
or eax, 0xffffffff
jmp 0x10008d70
sub eax, dword [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
call fcn.10006060
push eax
lea ecx, [esp + 0x24]
call fcn.100067c0
lea ecx, [esp + 0x28]
call fcn.10004fe0
mov edx, dword [esp + 0x20]
push 0xa
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.10016220
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
mov edi, dword [eax - 0xc]
add esp, 0xc
cmp edi, ebp
jge 0x10008dba
or eax, 0xffffffff
jmp 0x10008dd5
push 0x1002a7c8
push eax
call fcn.10014de7
add esp, 8
cmp eax, ebp
jne 0x10008dd1
or eax, 0xffffffff
jmp 0x10008dd5
sub eax, dword [esp + 0x18]
sub edi, eax
sub edi, 1
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
call fcn.10005fe0
push eax
lea ecx, [esp + 0x24]
call fcn.100067c0
lea ecx, [esp + 0x28]
call fcn.10004fe0
mov edx, dword [esp + 0x20]
push 0xa
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.10016220
add esp, 0xc
mov dword [esp + 0x28], eax
mov edi, 0x104
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0xf0]
push ecx
lea edx, [esp + 0x18]
push edx
push ebp
push str.CurrentBuildNumber
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], edi
call ebx
test eax, eax
jne 0x10008e79
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0x34]
call fcn.10006c30
lea ecx, [esp + 0x30]
call fcn.10006610
mov eax, dword [esp + 0x30]
push 0xa
lea edx, [esp + 0x38]
push edx
push eax
call fcn.10016220
add esp, 0xc
mov dword [esi + 8], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xf0]
push edx
lea eax, [esp + 0x18]
push eax
push ebp
push str.CSDVersion
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], edi
call ebx
test eax, eax
jne 0x10008f27
lea edx, [esp + 0xec]
push edx
lea ecx, [esp + 0x28]
call fcn.10006c30
lea ecx, [esp + 0x24]
call fcn.10006610
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], ebp
jl 0x10008f27
push str.SERVICE_PACK
push eax
call fcn.10014de7
add esp, 8
cmp eax, ebp
je 0x10008f27
mov ecx, dword [esp + 0x24]
sub eax, ecx
cmp eax, 0xffffffff
je 0x10008f27
mov eax, dword [ecx - 0xc]
add eax, 0xfffffff3
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x2c]
call fcn.10005fe0
push eax
lea ecx, [esp + 0x24]
call fcn.100067c0
lea ecx, [esp + 0x4c]
call fcn.10004fe0
mov edx, dword [esp + 0x20]
push 0xa
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.10016220
add esp, 0xc
mov dword [esi + 0x4c], eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0xf0]
push ecx
lea edx, [esp + 0x18]
push edx
push ebp
push str.InstallationType
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], edi
call ebx
test eax, eax
jne 0x10008f9e
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0x30]
call fcn.10006c30
lea ecx, [esp + 0x2c]
call fcn.10006610
mov eax, dword [esp + 0x2c]
cmp dword [eax - 0xc], ebp
jl 0x10008f9e
push str.SERVER
push eax
call fcn.10014de7
add esp, 8
cmp eax, ebp
je 0x10008f9e
sub eax, dword [esp + 0x2c]
mov edi, 1
cmp eax, 0xffffffff
je 0x10008fa3
mov dword [esi + 0x44], edi
jmp 0x10008fa3
mov edi, 1
cmp dword [esp + 0x44], ebp
je 0x10008fb8
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
mov dword [esi], edx
mov dword [esi + 4], eax
jmp 0x10008fc5
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov dword [esi], ecx
mov dword [esi + 4], edx
cmp dword [esi], 0xa
jb 0x10009061
mov eax, dword [esi + 8]
cmp eax, 0x2800
jb 0x10009061
cmp eax, 0x2581
mov dword [esi + 0x28], edi
jbe 0x10008ffd
cmp eax, 0x295a
ja 0x10009004
mov eax, dword [esp + 0x1c]
push eax
mov dword [esi + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10009073
cmp eax, 0x295a
jbe 0x1000901b
cmp eax, 0x3839
ja 0x10009022
mov eax, dword [esp + 0x1c]
push eax
mov dword [esi + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10009073
cmp eax, 0x3839
jbe 0x10009039
cmp eax, 0x3ad7
ja 0x10009040
mov eax, dword [esp + 0x1c]
push eax
mov dword [esi + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10009073
cmp eax, 0x3ad7
jbe 0x10009057
cmp eax, 0x3fab
ja 0x1000905e
mov eax, dword [esp + 0x1c]
push eax
mov dword [esi + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10009073
cmp eax, 0x3fab
jbe 0x10009061
mov dword [esi + 0x3c], edi
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10009073
mov edi, 1
push 0x57
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [esi + 0x54], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [esi + 0x56], ax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100090b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100090d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100090f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009112
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009132
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009152
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1f0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001524a
add esp, 0x1e4
ret