Function at 0x1003b370
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x101466c6
mov eax, dword fs:[0]
push eax
mov eax, 0x1094
call fcn.10140530
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x1090], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10189710]
xor eax, esp
push eax
lea eax, [esp + 0x10a8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x10b8]
xor ebx, ebx
push 0x7ff
mov dword [esp + 0x28], eax
lea eax, [esp + 0xa9]
push ebx
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
mov byte [esp + 0xb0], bl
call fcn.1012e060
push 0x7ff
lea ecx, [esp + 0x8b5]
push ebx
push ecx
mov byte [esp + 0x8bc], bl
call fcn.1012e060
mov ebp, 0xf
add esp, 0x18
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov dword [esp + 0x10b0], ebx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov byte [esp + 0x10b0], 1
mov edx, dword [0x101622b0]
mov eax, dword [0x101622b4]
mov ecx, 0xb
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea edi, [esp + 0x74]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x101622b8]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
mov esi, 0x101
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x1003b478
shr eax, 8
test al, al
jne 0x1003b478
mov esi, 1
lea edx, [esp + 0x18]
push edx
push esi
push ebx
lea eax, [esp + 0x80]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1003b4d4
mov esi, 0x10
cmp dword [esp + 0x48], esi
jb 0x1003b4ae
mov ecx, dword [esp + 0x34]
push ecx
call fcn.10128f9e
add esp, 4
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
cmp dword [esp + 0x64], esi
jb 0x1003b4cd
mov edx, dword [esp + 0x50]
push edx
call fcn.10128f9e
add esp, 4
xor al, al
jmp 0x1003b72f
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push str.DigitalProductId
mov esi, 0x800
push eax
mov dword [esp + 0x38], 3
mov dword [esp + 0x34], esi
call edi
test eax, eax
je 0x1003b55b
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x10
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x48], esi
jb 0x1003b535
mov edx, dword [esp + 0x34]
push edx
call fcn.10128f9e
add esp, 4
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
cmp dword [esp + 0x64], esi
jb 0x1003b4cd
mov eax, dword [esp + 0x50]
push eax
call fcn.10128f9e
add esp, 4
xor al, al
jmp 0x1003b72f
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x8a8]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
push ebx
lea ecx, [esp + 0x78]
push ecx
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x34], esi
call edi
test eax, eax
je 0x1003b59e
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
jmp 0x1003b496
lea eax, [esp + 0x8a4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003b5a8
sub eax, edx
push eax
lea eax, [esp + 0x8a8]
push eax
lea ecx, [esp + 0x38]
call fcn.10009b30
lea ecx, [esp + 0xa4]
push ecx
call fcn.1003b760
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x1003b5df
mov byte [esp + 0x17], bl
jmp 0x1003b5fd
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x1003b5e4
sub ecx, edx
push ecx
push esi
lea ecx, [esp + 0x54]
call fcn.10009b30
mov byte [esp + 0x17], 1
cmp dword [esp + 0x64], 0x10
mov eax, dword [esp + 0x50]
jae 0x1003b60c
lea eax, [esp + 0x50]
push str.BBBBB_BBBBB_BBBBB_BBBBB_BBBBB
push eax
call fcn.10135887
add esp, 8
test eax, eax
jne 0x1003b6b9
push 0x1014d5e3
lea ecx, [esp + 0x50]
call fcn.10009c10
push 0x800
lea edx, [esp + 0xa8]
push ebx
push edx
mov dword [esp + 0x2c], 3
mov dword [esp + 0x28], 0x800
call fcn.1012e060
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push str.DigitalProductId4
push eax
call edi
test eax, eax
je 0x1003b6a1
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], ebx
call fcn.100098e0
lea ecx, [esp + 0x4c]
call fcn.100098e0
xor al, al
jmp 0x1003b72f
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0xa8]
call fcn.1003bae0
add esp, 4
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ebx
call fcn.10009a50
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x54]
push edx
call fcn.10009a50
mov esi, dword [esp + 0x24]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.10009a50
push 2
push 0x10155f64
mov eax, esi
call fcn.1000de90
push ebx
lea ecx, [esp + 0x50]
push ecx
or eax, 0xffffffff
call fcn.1000e1f0
lea ecx, [esp + 0x30]
call fcn.100098e0
lea ecx, [esp + 0x4c]
call fcn.100098e0
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x10a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.10127db1
add esp, 0x10a0
ret