Function at 0x40b580
Capabilities:
Check os version
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a498
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x180], esi
cmp ebx, edi
je 0x40b898
push edi
push 0x4886f6
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
call fcn.004054e0
mov dword [ebp - 4], edi
push 0x114
lea eax, [ebp - 0x178]
push edi
push eax
call fcn.004316d0
add esp, 0xc
lea ecx, [ebp - 0x178]
push ecx
mov dword [ebp - 0x178], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x174], 6
jae 0x40b6dc
lea edx, [ebp - 0x168]
push edx
push edi
push edi
push 0x23
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x168]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b640
sub eax, edx
push eax
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x48]
call fcn.004054e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00403370
add esp, 4
mov byte [ebp - 4], 2
mov edi, eax
lea esi, [ebp - 0x2c]
call fcn.004050d0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], 0x10
jb 0x40b690
mov edx, dword [ebp - 0x64]
push edx
call fcn.0042ca67
add esp, 4
mov esi, 0xf
xor edi, edi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x64], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], 0x10
jb 0x40b6b7
mov eax, dword [ebp - 0x48]
push eax
call fcn.0042ca67
add esp, 4
push esi
mov eax, str.Applelockdown_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
call fcn.00402d60
mov ecx, dword [ebp - 0x180]
push edi
add ecx, 0x78
push ecx
jmp 0x40b6f0
push 0x1e
push str.C:ProgramDataAppleLockdown_
lea ecx, [ebp - 0x2c]
call fcn.004054e0
push edi
add esi, 0x78
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.004030f0
push 6
mov eax, str..plist
mov ecx, esi
call fcn.00402d60
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40b714
mov eax, esi
push 0x488740
push eax
call fcn.0042d99d
mov esi, eax
add esp, 8
test esi, esi
je 0x40b86d
push 2
push 0
push esi
call fcn.004304d9
push esi
call fcn.004306e9
mov edi, eax
push edi
call fcn.0042bc4e
push edi
push 0
push eax
mov dword [ebp - 0x184], eax
call fcn.004316d0
push 0
push 0
push esi
call fcn.004304d9
mov edx, dword [ebp - 0x184]
push esi
push edi
push 1
push edx
call fcn.0042dbfe
push esi
mov dword [ebp - 0x17c], eax
call fcn.0042dc88
mov eax, dword [ebp - 0x17c]
add esp, 0x40
test eax, eax
jle 0x40b7e5
cmp eax, edi
jne 0x40b7e5
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
push str.com.duoduo.tudownload
push 0
mov ecx, ebx
call edx
mov esi, eax
test esi, esi
je 0x40b7e5
mov eax, dword [ebx]
mov edx, dword [eax + 0x4c]
push 3
push str._Documents_config.plist
push esi
mov ecx, ebx
call edx
mov ecx, dword [ebp - 0x184]
mov edx, dword [ebx]
mov edx, dword [edx + 0x58]
push edi
push ecx
push eax
push esi
mov ecx, ebx
mov dword [ebp - 0x17c], eax
call edx
mov ecx, dword [ebp - 0x17c]
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
push ecx
push esi
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x3c]
push esi
mov ecx, ebx
call edx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x180], 0
jae 0x40b7fb
lea eax, [ebp - 0x2c]
mov edx, dword [ebx]
mov edx, dword [edx + 0x7c]
lea ecx, [ebp - 0x180]
push ecx
push eax
mov ecx, ebx
call edx
mov dword [ebp - 0x17c], eax
test eax, eax
je 0x40b86d
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
push str.com.duoduo.tudownload
push 0
mov ecx, ebx
call edx
mov esi, eax
test esi, esi
je 0x40b86d
mov eax, dword [ebx]
mov edx, dword [eax + 0x4c]
push 3
push str._Documents_duoduo.cfg
push esi
mov ecx, ebx
call edx
mov ecx, dword [ebp - 0x180]
mov edx, dword [ebp - 0x17c]
push ecx
mov edi, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x58]
push edx
push edi
push esi
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x50]
push edi
push esi
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x3c]
push esi
mov ecx, ebx
call eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x40b886
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042ca67
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
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.0042ca72
mov esp, ebp
pop ebp
ret