Function at 0x4e7be0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5189b1
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x572bb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
call fcn.00460220
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4e7c37
push 0x80004005
call fcn.004712d0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 1
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4e7c65
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4e7c92
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 3
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4e7cbf
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4e7cec
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4e7d19
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x34], 1
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
call fcn.00494440
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
setbe byte [ebp - 0xd]
mov dword [ebp - 0x44], 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.00471bb0
push 0x20019
mov byte [ebp - 4], 7
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4e7d9d
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x3c]
call fcn.00472fc0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
push ecx
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00472fc0
add esp, 8
mov byte [ebp - 4], 0xa
push dword [eax]
push ecx
mov ecx, esp
push str.users
call fcn.00471bb0
call fcn.0047d280
add esp, 4
lea ecx, [ebp - 0x4c]
push eax
call fcn.0047c920
mov byte [ebp - 4], 9
or edi, 0xffffffff
mov esi, dword [ebp - 0x38]
mov ecx, edi
add esi, 0xfffffff0
mov dword [ebp - 0x40], eax
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4e7e1c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov ecx, edi
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e7e3c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov ecx, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e7e5c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov ecx, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e7e7c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x40], 0
jne 0x4e7f4d
xor ecx, ecx
mov dword [ebp - 0x40], 0x1fffff
mov eax, 0x1fffff
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ea22e
push 0x3ffffe
mov esi, eax
push 0
push esi
call fcn.004ef3a0
add esp, 0x10
lea ecx, [ebp - 0x24]
push str.Desktop
call fcn.00471bb0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xb
push eax
push esi
push dword [ebp - 0x24]
lea ecx, [ebp - 0x4c]
call fcn.0047c990
test eax, eax
jne 0x4e7f08
test esi, esi
jne 0x4e7ee7
xor ecx, ecx
jmp 0x4e7eff
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e7ef0
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.004725a0
push esi
call fcn.004ea229
mov ebx, dword [ebp - 0x4c]
add esp, 4
test ebx, ebx
je 0x4e7f24
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 4], 6
mov ecx, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov dword [ebp - 0x48], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e7f50
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4e7f50
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x4e7f91
cmp byte [ebp - 0xd], 0
je 0x4e7f7b
push ecx
mov ecx, esp
lea esi, [ebp - 0x14]
push str.USERPROFILE
call fcn.00471bb0
mov ecx, esi
call fcn.0047ca10
add esp, 4
mov esi, dword [ebp - 0x14]
push esi
push str._sDesktop
push dword [ebp - 0x1c]
call fcn.00472d30
add esp, 0xc
jmp 0x4e7f94
mov esi, dword [ebp - 0x14]
test ebx, ebx
je 0x4e7f9f
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 4
mov ecx, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e7fbf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e7fdc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e7ffc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e801c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4e803a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret