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

Disassembly:
push 0x3d4
mov eax, 0x39ebd8dd
call fcn.39eaecb8
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3e0], eax
mov eax, dword [ebp + 0x14]
and dword [eax], 0
mov esi, 0x11c
push esi
mov dword [ebp - 0x3dc], eax
lea eax, [ebp - 0x3c4]
push 0
push eax
mov dword [ebp - 0x3cc], edi
mov dword [ebp - 0x3c8], 0xe
call fcn.39e6fce0
add esp, 0xc
lea eax, [ebp - 0x3c4]
mov dword [ebp - 0x3c4], esi
mov esi, dword [sym.imp.kernel32.dll_GetVersionExW]
push eax
call esi
xor ecx, ecx
mov dword [ebp - 0x3d0], eax
cmp eax, ecx
jne 0x39e9de90
lea eax, [ebp - 0x3c4]
push eax
mov dword [ebp - 0x3c4], 0x114
call esi
test eax, eax
je 0x39e9e249
xor ecx, ecx
mov eax, dword [ebp - 0x3b4]
sub eax, ecx
je 0x39e9e22e
dec eax
je 0x39e9e146
dec eax
jne 0x39e9e249
push 0x39e0b054
push dword [ebp + 0x18]
push ebx
call fcn.39eb4742
mov eax, dword [ebp - 0x3c0]
add esp, 0xc
push 4
pop esi
cmp eax, esi
jae 0x39e9ded9
mov dword [ebp - 0x3c8], 1
jmp 0x39e9e03f
jne 0x39e9df85
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x3c8], esi
call fcn.39e6fce0
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, 0x39e1a218
push esi
push 0xffffffffffffffff
push ebx
push edi
call fcn.39eb4742
mov eax, edi
add esp, 0x20
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x39e9df1b
sub eax, ecx
sar eax, 1
mov ecx, ebx
sub ecx, eax
push ecx
push 0x39e17300
push ebx
push edi
call fcn.39eb4742
push dword [ebp - 0x3bc]
lea eax, [ebp - 0x218]
push esi
push 0xffffffffffffffff
push 0x104
push eax
call fcn.39eb4742
mov eax, edi
add esp, 0x24
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x39e9df5c
sub eax, ecx
sar eax, 1
mov ecx, ebx
sub ecx, eax
push ecx
lea eax, [ebp - 0x218]
push eax
push ebx
push edi
call fcn.39eb4742
add esp, 0x10
jmp 0x39e9e03f
push 5
pop ecx
cmp eax, ecx
jne 0x39e9dfeb
cmp dword [ebp - 0x3bc], 0
jne 0x39e9dfa5
mov dword [ebp - 0x3c8], ecx
push 0x39e0b064
jmp 0x39e9e033
cmp dword [ebp - 0x3bc], 1
jne 0x39e9dfc8
cmp byte [ebp - 0x2aa], 3
jne 0x39e9dfda
mov dword [ebp - 0x3c8], 0xa
push 0x39e0b084
jmp 0x39e9e033
cmp dword [ebp - 0x3bc], 2
jne 0x39e9e024
cmp byte [ebp - 0x2aa], 1
jne 0x39e9dfb7
mov dword [ebp - 0x3c8], 9
push 0x39e0b074
jmp 0x39e9e033
cmp eax, 6
jne 0x39e9e024
cmp dword [ebp - 0x3bc], 0
jne 0x39e9e024
cmp byte [ebp - 0x2aa], 1
jne 0x39e9e013
mov dword [ebp - 0x3c8], 0xb
push 0x39e0b0dc
jmp 0x39e9e033
mov dword [ebp - 0x3c8], 0xc
push 0x39e0b0f0
jmp 0x39e9e033
mov dword [ebp - 0x3c8], 8
push 0x39e0b098
push dword [ebp + 0x18]
push ebx
call fcn.39eb4742
add esp, 0xc
xor edi, edi
cmp dword [ebp - 0x3d0], edi
je 0x39e9e06f
cmp byte [ebp - 0x2aa], 2
je 0x39e9e05f
cmp byte [ebp - 0x2aa], 3
je 0x39e9e05f
xor eax, eax
jmp 0x39e9e062
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x3dc]
mov dword [ecx], eax
jmp 0x39e9e249
lea eax, [ebp - 0x3cc]
push eax
push 0x39e0b230
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
test eax, eax
jne 0x39e9e249
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.39e6fce0
add esp, 0xc
lea eax, [ebp - 0x3d0]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x3d4]
push eax
push edi
push 0x39e0b214
push dword [ebp - 0x3cc]
xor esi, esi
inc esi
mov dword [ebp - 0x3d0], 0x208
mov dword [ebp - 0x3d4], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x39e9e135
lea eax, [ebp - 0x218]
push 0x39e0b200
push eax
call fcn.39eb4742
pop ecx
pop ecx
test eax, eax
je 0x39e9e12d
lea eax, [ebp - 0x218]
push 0x39e0b1ec
push eax
call fcn.39eb4742
pop ecx
pop ecx
test eax, eax
je 0x39e9e12d
lea eax, [ebp - 0x218]
push 0x39e0b1d8
push eax
call fcn.39eb4742
pop ecx
pop ecx
test eax, eax
jne 0x39e9e135
mov eax, dword [ebp - 0x3dc]
mov dword [eax], esi
push dword [ebp - 0x3cc]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x39e9e249
cmp dword [ebp - 0x3bc], ecx
jne 0x39e9e16b
push 0x39e0b034
push dword [ebp + 0x18]
push ebx
call fcn.39eb4742
add esp, 0xc
and dword [ebp - 0x3c8], 0
jmp 0x39e9e1fd
mov dword [ebp - 0x3d8], ecx
mov dword [ebp - 0x3d4], ecx
mov dword [ebp - 4], ecx
push 0x23
pop ecx
mov esi, 0x39e0b148
lea edi, [ebp - 0x2a8]
rep movsd dword es:[edi], dword [esi]
push 0x39e0b044
push dword [ebp + 0x18]
movsw word es:[edi], word [esi]
push ebx
call fcn.39eb4742
add esp, 0xc
push 0x2001f
lea eax, [ebp - 0x2a8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x3d8]
call fcn.39eb4742
test eax, eax
jne 0x39e9e1ce
mov dword [ebp - 0x3c8], 3
push 0x39e0b118
jmp 0x39e9e1dd
mov dword [ebp - 0x3c8], 2
push 0x39e0b138
push dword [ebp + 0x1c]
push dword [ebp - 0x3cc]
call fcn.39eb4742
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3d8]
call fcn.39e63504
mov eax, dword [ebp - 0x3b8]
shr eax, 0x10
mov ecx, eax
shr ecx, 8
cmp cl, 4
jne 0x39e9e249
cmp al, 0x5a
jne 0x39e9e249
push 0x39e0b0c0
push dword [ebp + 0x18]
push ebx
call fcn.39eb4742
mov dword [ebp - 0x3c8], 6
jmp 0x39e9e246
push 0x39e0b0b0
push dword [ebp + 0x18]
push ebx
call fcn.39eb4742
mov dword [ebp - 0x3c8], 0xd
add esp, 0xc
lea eax, [ebp - 0x3b0]
push eax
push dword [ebp + 0x20]
push dword [ebp - 0x3e0]
call fcn.39eb4742
mov eax, dword [ebp - 0x3c8]
add esp, 0xc
call fcn.39eaed4a
ret 0x1c