Function at 0x49e5c0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d4cb
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x370], edx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x374], edx
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x378], edx
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x37c], ecx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x380], edx
test edi, edi
je 0x49e633
mov dword [edi], 0
test esi, esi
je 0x49e63d
mov dword [esi], 0
test ecx, ecx
je 0x49e647
mov dword [ecx], 0
test eax, eax
je 0x49e651
mov dword [eax], 0
mov eax, dword [ebp - 0x370]
test eax, eax
je 0x49e660
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x374]
test eax, eax
je 0x49e66f
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x378]
test eax, eax
je 0x49e67e
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x49e687
xor eax, eax
mov word [edx], ax
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x49e6c6
movzx eax, ax
cmp eax, 4
je 0x49e6b3
cmp eax, 0xa04
jne 0x49e6b3
test edi, edi
je 0x49eae0
mov dword [edi], 2
jmp 0x49eae0
test edi, edi
je 0x49eae0
mov dword [edi], 1
jmp 0x49eae0
push 0x11c
lea eax, [ebp - 0x368]
push 0
push eax
call fcn.00509680
add esp, 0xc
mov dword [ebp - 0x368], 0x11c
lea eax, [ebp - 0x368]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x36c], eax
test eax, eax
jne 0x49e731
push 0x11c
push eax
lea eax, [ebp - 0x368]
push eax
call fcn.00509680
add esp, 0xc
mov dword [ebp - 0x368], 0x94
lea eax, [ebp - 0x368]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x49eae0
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.user32.dll
push eax
call fcn.0048f340
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00480cc0
mov ax, word [ebp - 0x21c]
add esp, 0x54
mov cx, word [ebp - 0x220]
test ax, ax
jne 0x49e81a
test cx, cx
jne 0x49e81a
mov edx, dword [ebp - 0x364]
mov ecx, dword [ebp - 0x360]
mov eax, dword [ebp - 0x358]
sub eax, 1
je 0x49e9fa
sub eax, 1
jne 0x49ea32
mov eax, edx
shl eax, 8
or eax, ecx
mov cl, byte [ebp - 0x24e]
cmp eax, 0x600
ja 0x49e8a9
je 0x49e87e
sub eax, 0x500
je 0x49e86b
sub eax, 1
je 0x49e807
sub eax, 1
jne case.default.0x49e8bc
cmp cl, 1
jne 0x49e858
test esi, esi
je 0x49e935
mov dword [esi], 3
jmp 0x49e935
mov edx, dword [ebp - 0x364]
movzx eax, ax
mov dword [ebp - 0x228], eax
cmp edx, eax
jne 0x49e842
movzx eax, cx
cmp dword [ebp - 0x360], eax
je 0x49e7b1
mov eax, dword [ebp - 0x228]
mov edx, eax
movzx ecx, cx
mov dword [ebp - 0x364], edx
mov dword [ebp - 0x360], ecx
jmp 0x49e7b7
test esi, esi
je 0x49e935
mov dword [esi], 4
jmp 0x49e935
test esi, esi
je 0x49e935
mov dword [esi], 2
jmp 0x49e935
cmp cl, 1
jne 0x49e896
test esi, esi
je 0x49e935
mov dword [esi], 5
jmp 0x49e935
test esi, esi
je 0x49e935
mov dword [esi], 6
jmp 0x49e935
cmp eax, 0xa00
ja case.default.0x49e8bc
je 0x49e8fd
sub eax, 0x601
cmp eax, 3
ja case.default.0x49e8bc
jmp dword [eax*4 + 0x49eafc]
cmp cl, 1
jne 0x49e896
test esi, esi
je 0x49e935
mov dword [esi], 7
jmp 0x49e935
cmp cl, 1
jne 0x49e8e5
test esi, esi
je 0x49e935
mov dword [esi], 8
jmp 0x49e935
test esi, esi
je 0x49e935
mov dword [esi], 0xa
jmp 0x49e935
test esi, esi
je 0x49e935
mov dword [esi], 9
jmp 0x49e935
cmp cl, 1
jne 0x49e90e
test esi, esi
je 0x49e935
mov dword [esi], 0xb
jmp 0x49e935
test esi, esi
je 0x49e935
mov dword [esi], 0xc
jmp 0x49e935
cmp edx, 4
ja 0x49e92b
test esi, esi
je 0x49e935
mov dword [esi], 1
jmp 0x49e935
test esi, esi
je 0x49e935
mov dword [esi], 0xff
mov esi, dword [ebp - 0x224]
mov edi, dword [ebp - 0x36c]
test esi, esi
je 0x49ea38
test edi, edi
je 0x49e964
sub cl, 2
cmp cl, 1
ja 0x49ea38
mov dword [esi], 1
jmp 0x49ea38
lea eax, [ebp - 0x36c]
mov dword [ebp - 0x36c], 0
push eax
push str.SystemCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x224], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x49e9f2
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push str.ProductType
push dword [ebp - 0x36c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x49e9c8
xor eax, eax
mov word [ebp - 0x218], ax
push dword [ebp - 0x36c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push str.ServerNt
push eax
call fcn.0050d5a0
add esp, 8
test eax, eax
jne 0x49e9f2
mov dword [esi], 1
mov edx, dword [ebp - 0x364]
jmp 0x49ea38
mov eax, edx
shl eax, 8
or eax, ecx
sub eax, 0x400
je 0x49ea28
sub eax, 0xa
je 0x49ea1c
sub eax, 0x50
test edi, edi
je 0x49ea32
mov dword [edi], 3
jmp 0x49ea32
test edi, edi
je 0x49ea32
mov dword [edi], 2
jmp 0x49ea32
test edi, edi
je 0x49ea32
mov dword [edi], 1
mov edi, dword [ebp - 0x36c]
mov eax, dword [ebp - 0x370]
test eax, eax
je 0x49ea45
mov word [eax], dx
mov edx, dword [ebp - 0x374]
test edx, edx
je 0x49ea58
mov eax, dword [ebp - 0x360]
mov word [edx], ax
mov edx, dword [ebp - 0x378]
test edx, edx
je 0x49ea70
test edi, edi
je 0x49ea70
mov ax, word [ebp - 0x254]
mov word [edx], ax
mov esi, dword [ebp - 0x37c]
test esi, esi
je 0x49ea81
call fcn.0049fd90
mov dword [esi], eax
mov esi, dword [ebp - 0x380]
test esi, esi
je 0x49eae0
push 1
xorps xmm0, xmm0
lea ecx, [ebp - 0x238]
push str.comctl32.dll
movups xmmword [ebp - 0x238], xmm0
call fcn.004873a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004874f0
test eax, eax
je 0x49eace
mov ax, word [ebp - 0x248]
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.004873e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret