Function at 0x403860
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1eb2
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x4f4214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x12c], esi
mov dword [esi], vtable.DeviceManager::Notify.0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CAppleDeviceManager.0
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], ebx
mov byte [esi + 0xc], bl
mov byte [ebp - 4], 1
lea eax, [esi + 0x130]
push 1
mov dword [ebp - 0x128], eax
mov dword [eax + 8], ebx
call fcn.004086e0
mov ecx, dword [ebp - 0x128]
mov dword [ecx + 4], eax
mov dword [eax], eax
mov eax, dword [ecx + 4]
mov dword [eax + 4], eax
mov eax, dword [ecx + 4]
mov dword [eax + 8], eax
mov eax, dword [ecx + 4]
mov byte [eax + 0x44], 1
mov ecx, dword [ecx + 4]
mov byte [ecx + 0x45], 1
mov byte [ebp - 4], 4
mov dword [esi + 0x140], ebx
mov dword [esi + 0x144], ebx
mov dword [esi + 0x148], ebx
mov byte [ebp - 4], 5
mov dword [esi + 0x150], ebx
mov dword [esi + 0x154], ebx
mov dword [esi + 0x158], ebx
mov byte [ebp - 4], 6
lea eax, [esi + 0x190]
push 1
mov dword [ebp - 0x128], eax
mov dword [eax + 4], ebx
call fcn.00408650
mov ecx, dword [ebp - 0x128]
mov dword [ecx], eax
mov dword [eax], eax
mov eax, dword [ecx]
add esp, 8
mov dword [eax + 4], eax
mov byte [ebp - 4], 8
lea eax, [esi + 0xc]
mov dword [esi + 4], 1
mov dword [esi + 0x1a4], ebx
mov dword [esi + 0x19c], ebx
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x160], ebx
mov dword [esi + 0x164], ebx
mov dword [esi + 0x168], ebx
mov dword [esi + 0x16c], ebx
mov dword [esi + 0x170], ebx
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], ebx
jb 0x403991
mov eax, dword [eax]
mov byte [eax], bl
mov edx, dword [esi + 0x134]
mov eax, dword [edx + 4]
push eax
lea ecx, [esi + 0x130]
call fcn.004077d0
mov eax, dword [esi + 0x134]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x134]
mov dword [eax], eax
mov eax, dword [esi + 0x134]
mov dword [eax + 8], eax
lea eax, [esi + 0x140]
mov dword [esi + 0x138], ebx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea ecx, [ebp - 0x128]
push ecx
push eax
call fcn.004078c0
lea edx, [esi + 0x174]
push edx
mov dword [esi + 0x1a0], ebx
mov dword [esi + 0x1b0], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [esi + 0x190]
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [esi + 0x190]
mov dword [eax + 4], eax
mov dword [esi + 0x194], ebx
cmp ecx, dword [esi + 0x190]
je 0x403a35
lea esp, [esp]
mov edi, dword [ecx]
push ecx
call fcn.0049c71f
add esp, 4
mov ecx, edi
cmp edi, dword [esi + 0x190]
jne 0x403a20
push 0x104
lea edi, [esi + 0x28]
push ebx
push edi
call fcn.0049f910
push 0x114
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.0049f910
add esp, 0x18
lea ecx, [ebp - 0x124]
push ecx
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x120], 6
jae 0x403ac2
push 0x103
lea edx, [ebp - 0x113]
push ebx
push edx
mov byte [ebp - 0x114], bl
call fcn.0049f910
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [ebp - 0x114]
push ecx
push str._sApplelockdown_
push 0x104
push edi
call fcn.0049cd3e
add esp, 0x10
jmp 0x403ad5
push str.C:ProgramDataAppleLockdown_
push 0x104
push edi
call fcn.0049cd3e
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebx
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x18c], eax
call edi
mov dword [esi + 0x1a8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049c72a
mov esp, ebp
pop ebp
ret