Function at 0x4938c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52bc11
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x595cb8]
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 - 0x30], 0
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x493910
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 1
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x493937
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 2
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x49395b
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x49397f
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x4939a3
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x4939c7
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], 1
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x2c]
call fcn.00442320
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 - 0x20]
mov byte [ebp - 4], 6
call fcn.0041f910
push 0x20019
mov byte [ebp - 4], 7
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x493a42
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x3c]
call fcn.00420f70
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 9
push ecx
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00420f70
add esp, 8
mov byte [ebp - 4], 0xa
push dword [eax]
push ecx
mov ecx, esp
push str.users
call fcn.0041f910
call fcn.0042b920
add esp, 4
lea ecx, [ebp - 0x4c]
push eax
call fcn.0042b000
mov byte [ebp - 4], 9
or edi, 0xffffffff
mov edx, dword [ebp - 0x38]
mov ecx, edi
mov dword [ebp - 0x40], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x493abd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov eax, edi
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x493adb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
lea edx, [esi - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x493af6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x493b14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x40], 0
jne 0x493bdf
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.004f45af
push 0x3ffffe
mov esi, eax
push 0
push esi
call fcn.004f9110
add esp, 0x10
lea ecx, [ebp - 0x20]
push str.Desktop
call fcn.0041f910
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xb
push eax
push esi
push dword [ebp - 0x20]
lea ecx, [ebp - 0x4c]
call fcn.0042b0b0
test eax, eax
jne 0x493b9c
test esi, esi
jne 0x493b7f
xor ecx, ecx
jmp 0x493b93
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x493b84
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.0041fd40
push esi
call fcn.004f4577
mov ebx, dword [ebp - 0x4c]
add esp, 4
test ebx, ebx
je 0x493bb8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 4], 6
mov eax, edi
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x48], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x493be2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x493be2
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x493c23
cmp byte [ebp - 0xd], 0
je 0x493c0d
push ecx
mov ecx, esp
lea esi, [ebp - 0x14]
push str.USERPROFILE
call fcn.0041f910
mov ecx, esi
call fcn.0042b130
add esp, 4
mov esi, dword [ebp - 0x14]
push esi
push str._sDesktop
push dword [ebp - 0x1c]
call fcn.00420c20
add esp, 0xc
jmp 0x493c26
mov esi, dword [ebp - 0x14]
test ebx, ebx
je 0x493c31
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 4
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x493c4f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x493c6a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x493c88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x493ca6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x493cc2
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