Function at 0x10039e40
Capabilities:
Check os version
Get installed programs
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1014670b
mov eax, dword fs:[0]
push eax
mov eax, 0x2188
call fcn.10140530
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x2180], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10189710]
xor eax, esp
push eax
lea eax, [esp + 0x219c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x21b0]
mov ebp, dword [esp + 0x21ac]
xor ebx, ebx
push 0x7ff
lea edx, [esp + 0x1999]
push ebx
push edx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov byte [esp + 0x19a0], bl
call fcn.1012e060
add esp, 0xc
push 0x7ff
lea eax, [esp + 0x199]
push ebx
push eax
mov byte [esp + 0x1a0], bl
call fcn.1012e060
add esp, 0xc
push 0x7ff
lea ecx, [esp + 0x1199]
push ebx
push ecx
mov byte [esp + 0x11a0], bl
call fcn.1012e060
add esp, 0xc
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
mov dword [esp + 0x21a4], ebx
mov ecx, 0xd
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea edi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
movzx esi, byte [esp + 0x21b4]
neg esi
sbb esi, esi
and esi, 0xffffff00
add esi, 0x200
mov edi, esi
mov dword [esp + 0x18], ebx
or edi, 9
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x10039f7a
shr eax, 8
test al, al
jne 0x10039f7a
mov byte [esp + 0x17], 1
mov edi, 9
lea edx, [esp + 0x18]
push edx
push edi
push ebx
push ebp
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10039f80
mov byte [esp + 0x16], bl
jmp 0x1003a2e9
mov byte [esp + 0x17], bl
jmp 0x10039f5a
push 0x7ff
lea eax, [esp + 0x999]
push ebx
push eax
mov byte [esp + 0x9a0], bl
call fcn.1012e060
add esp, 0xc
lea ecx, [esp + 0x994]
push ecx
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x28], ebx
call fcn.100391c0
add esp, 8
mov byte [esp + 0x16], al
cmp al, bl
je 0x1003a2c9
cmp dword [0x101b3d98], ebx
je 0x10039fdf
lea edx, [esp + 0x994]
push edx
push str.achKeyCSV:__s_n
call fcn.10128a81
add esp, 8
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x103
lea ecx, [esp + 0x91]
push ebx
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x98], bl
call fcn.1012e060
add esp, 0xc
push 1
push 0x2c
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x98]
push eax
xor cl, cl
lea edx, [esp + 0x9a4]
call fcn.10061f00
mov ebp, dword [esp + 0x2c]
add esp, 0x10
cmp ebp, 0xffffffff
je 0x1003a1a1
mov edx, esi
or edx, 1
mov dword [esp + 0x28], edx
jmp 0x1003a054
mov edx, dword [esp + 0x28]
xor eax, eax
jmp 0x1003a060
mov cl, byte [esp + eax + 0x54]
mov byte [esp + eax + 0x194], cl
inc eax
cmp cl, bl
jne 0x1003a060
lea eax, [esp + 0x8c]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003a080
lea edi, [esp + 0x194]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x1003a091
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
cmp byte [esp + 0x17], bl
je 0x1003a0b4
mov esi, 1
cmp dword [0x101b3d98], ebx
je 0x1003a0d1
lea ecx, [esp + 0x194]
push ecx
push str.OpenKey:__s_n
call fcn.10128a81
add esp, 8
lea edx, [esp + 0x18]
push edx
push esi
push ebx
lea eax, [esp + 0x1a0]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1003a113
push 1
lea ecx, [esp + 0x20]
push 0x2c
push ecx
lea edx, [esp + 0x98]
push edx
xor cl, cl
lea edx, [esp + 0x9a4]
call fcn.10061f00
add esp, 0x10
jmp 0x1003a177
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1198]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push str.DisplayName
push eax
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1003a18d
push 1
lea ecx, [esp + 0x20]
push 0x2c
push ecx
lea edx, [esp + 0x98]
push edx
xor cl, cl
lea edx, [esp + 0x9a4]
call fcn.10061f00
mov eax, dword [esp + 0x28]
add esp, 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x1c]
cmp ebp, 0xffffffff
jne 0x1003a050
mov byte [esp + 0x16], bl
jmp 0x1003a2e9
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
cmp ebp, 0xffffffff
jne 0x1003a1aa
mov byte [esp + 0x16], bl
jmp 0x1003a2e9
cmp dword [0x101b3d98], ebx
je 0x1003a1c7
lea edx, [esp + 0x1194]
push edx
push str.DisplayName:__s_n
call fcn.10128a81
add esp, 8
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x194]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1003a1d4
lea eax, [esp + 0x8c]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003a1e7
lea edi, [esp + 0x194]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x1003a1f8
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [0x101b3d98], ebx
je 0x1003a22d
lea eax, [esp + 0x194]
push eax
push str.officeSubKeyName:__s_n
call fcn.10128a81
add esp, 8
mov eax, dword [esp + 0x28]
cmp byte [esp + 0x17], bl
je 0x1003a23c
mov eax, 1
lea ecx, [esp + 0x18]
push ecx
push eax
push ebx
lea edx, [esp + 0x1a0]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1003a263
mov byte [esp + 0x16], bl
jmp 0x1003a2e9
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1998]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push str.DigitalProductId
push eax
mov dword [esp + 0x38], 3
mov dword [esp + 0x3c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1003a2a0
mov byte [esp + 0x16], bl
jmp 0x1003a2c9
lea ecx, [esp + 0x38]
push ecx
lea eax, [esp + 0x1998]
call fcn.1003bae0
mov ecx, dword [esp + 0x30]
add esp, 4
lea edx, [esp + 0x1194]
push edx
mov byte [esp + 0x1a], al
call fcn.10009c10
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], ebx
call fcn.10009a50
cmp dword [esp + 0x50], 0x10
jb 0x1003a2fd
mov edx, dword [esp + 0x3c]
push edx
call fcn.10128f9e
add esp, 4
mov al, byte [esp + 0x16]
mov ecx, dword [esp + 0x219c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2180]
xor ecx, esp
call fcn.10127db1
add esp, 0x2194
ret