Function at 0x10008b10
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 0x10008b5d
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 0x10008bb9
xor eax, eax
jmp 0x10009214
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 0x10008bf7
cmp eax, ebp
jne 0x10008bdf
mov dword [esi + 0xc], 1
jmp 0x10008c29
mov ecx, 1
cmp eax, ecx
jne 0x10008bed
mov dword [esi + 0x10], ecx
jmp 0x10008c29
cmp eax, 2
jne 0x10008bb2
mov dword [esi + 0x14], ecx
jmp 0x10008c29
cmp ecx, 6
jne 0x10008c29
cmp eax, ebp
jne 0x10008c09
mov dword [esi + 0x18], 1
jmp 0x10008c29
mov ecx, 1
cmp eax, ecx
jne 0x10008c17
mov dword [esi + 0x1c], ecx
jmp 0x10008c29
cmp eax, 2
jne 0x10008c21
mov dword [esi + 0x20], ecx
jmp 0x10008c29
cmp eax, 3
jne 0x10008c29
mov dword [esi + 0x24], ecx
mov al, byte [esp + 0xea]
cmp al, 3
je 0x10008c38
cmp al, 2
jne 0x10008c42
mov edi, 1
mov dword [esi + 0x44], edi
jmp 0x10008c47
mov edi, 1
cmp dword [esi + 0x14], ebp
je 0x10008c5b
cmp dword [esi + 0x44], ebp
jne 0x10008c5b
cmp dword [ebx], ebp
je 0x10008c5b
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 0x1002a7cf
lea ecx, [esp + 0x3c]
mov dword [esi + 0x4c], eax
call fcn.100077e0
push 0x1002a7cf
lea ecx, [esp + 0x24]
call fcn.100077e0
push 0x1002a7cf
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.100077e0
push str.Client
lea ecx, [esp + 0x30]
call fcn.100077e0
push 0x1002a7cf
lea ecx, [esp + 0x28]
call fcn.100077e0
push 0x1002a7cf
lea ecx, [esp + 0x1c]
call fcn.100077e0
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.10006900
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 0x1000912e
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 0x10008d87
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 0x10008d87
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 0x10008ed9
lea edx, [esp + 0xec]
push edx
lea ecx, [esp + 0x1c]
call fcn.10006cb0
lea ecx, [esp + 0x18]
call fcn.10006690
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], ebp
jl 0x10008ed9
push 0x1002a7e4
push eax
call fcn.10014ea7
add esp, 8
cmp eax, ebp
je 0x10008ed9
mov ecx, dword [esp + 0x18]
sub eax, ecx
cmp eax, 0xffffffff
je 0x10008ed9
cmp dword [ecx - 0xc], ebp
jge 0x10008e15
or eax, 0xffffffff
jmp 0x10008e30
push 0x1002a7e4
push ecx
call fcn.10014ea7
add esp, 8
cmp eax, ebp
jne 0x10008e2c
or eax, 0xffffffff
jmp 0x10008e30
sub eax, dword [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
call fcn.100060e0
push eax
lea ecx, [esp + 0x24]
call fcn.10006840
lea ecx, [esp + 0x28]
call fcn.10005060
mov edx, dword [esp + 0x20]
push 0xa
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.100162e0
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
mov edi, dword [eax - 0xc]
add esp, 0xc
cmp edi, ebp
jge 0x10008e7a
or eax, 0xffffffff
jmp 0x10008e95
push 0x1002a7e4
push eax
call fcn.10014ea7
add esp, 8
cmp eax, ebp
jne 0x10008e91
or eax, 0xffffffff
jmp 0x10008e95
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.10006060
push eax
lea ecx, [esp + 0x24]
call fcn.10006840
lea ecx, [esp + 0x28]
call fcn.10005060
mov edx, dword [esp + 0x20]
push 0xa
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.100162e0
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 0x10008f39
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0x34]
call fcn.10006cb0
lea ecx, [esp + 0x30]
call fcn.10006690
mov eax, dword [esp + 0x30]
push 0xa
lea edx, [esp + 0x38]
push edx
push eax
call fcn.100162e0
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 0x10008fe7
lea edx, [esp + 0xec]
push edx
lea ecx, [esp + 0x28]
call fcn.10006cb0
lea ecx, [esp + 0x24]
call fcn.10006690
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], ebp
jl 0x10008fe7
push str.SERVICE_PACK
push eax
call fcn.10014ea7
add esp, 8
cmp eax, ebp
je 0x10008fe7
mov ecx, dword [esp + 0x24]
sub eax, ecx
cmp eax, 0xffffffff
je 0x10008fe7
mov eax, dword [ecx - 0xc]
add eax, 0xfffffff3
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x2c]
call fcn.10006060
push eax
lea ecx, [esp + 0x24]
call fcn.10006840
lea ecx, [esp + 0x4c]
call fcn.10005060
mov edx, dword [esp + 0x20]
push 0xa
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.100162e0
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 0x1000905e
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0x30]
call fcn.10006cb0
lea ecx, [esp + 0x2c]
call fcn.10006690
mov eax, dword [esp + 0x2c]
cmp dword [eax - 0xc], ebp
jl 0x1000905e
push str.SERVER
push eax
call fcn.10014ea7
add esp, 8
cmp eax, ebp
je 0x1000905e
sub eax, dword [esp + 0x2c]
mov edi, 1
cmp eax, 0xffffffff
je 0x10009063
mov dword [esi + 0x44], edi
jmp 0x10009063
mov edi, 1
cmp dword [esp + 0x44], ebp
je 0x10009078
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
mov dword [esi], edx
mov dword [esi + 4], eax
jmp 0x10009085
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov dword [esi], ecx
mov dword [esi + 4], edx
cmp dword [esi], 0xa
jb 0x10009121
mov eax, dword [esi + 8]
cmp eax, 0x2800
jb 0x10009121
cmp eax, 0x2581
mov dword [esi + 0x28], edi
jbe 0x100090bd
cmp eax, 0x295a
ja 0x100090c4
mov eax, dword [esp + 0x1c]
push eax
mov dword [esi + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10009133
cmp eax, 0x295a
jbe 0x100090db
cmp eax, 0x3839
ja 0x100090e2
mov eax, dword [esp + 0x1c]
push eax
mov dword [esi + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10009133
cmp eax, 0x3839
jbe 0x100090f9
cmp eax, 0x3ad7
ja 0x10009100
mov eax, dword [esp + 0x1c]
push eax
mov dword [esi + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10009133
cmp eax, 0x3ad7
jbe 0x10009117
cmp eax, 0x3fab
ja 0x1000911e
mov eax, dword [esp + 0x1c]
push eax
mov dword [esi + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10009133
cmp eax, 0x3fab
jbe 0x10009121
mov dword [esi + 0x3c], edi
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10009133
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 0x10009172
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 0x10009192
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 0x100091b2
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 0x100091d2
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 0x100091f2
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 0x10009212
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.1001530a
add esp, 0x1e4
ret