Function at 0x404770
Capabilities:
Check os version
Extract resource via kernel32 functions
Get session user name
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x428e23
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x435c14]
xor eax, esp
mov dword [esp + 0x1c4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435c14]
xor eax, esp
push eax
lea eax, [esp + 0x1dc]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x2c], ebp
call fcn.0040cbc2
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4047cd
push 0x80004005
call fcn.00401ab0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x1e8], edi
mov dword [esp + 0x44], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x42b7b3
lea ecx, [esp + 0x24]
call fcn.00402230
push 0x42b7b3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1e8], 1
call fcn.00402230
push 0x42b7b3
lea ecx, [esp + 0x18]
mov byte [esp + 0x1e8], 2
call fcn.00402230
push 0x42b7b3
lea ecx, [esp + 0x20]
mov byte [esp + 0x1e8], 3
call fcn.00402230
mov eax, dword [esp + 0x44]
cmp eax, 5
mov byte [esp + 0x1e4], 4
ja 0x404871
push 0x4c
push str.Documents_and_SettingsAdministratorApplication_DataApple_ComputeriTunes_
lea ecx, [esp + 0x28]
call fcn.00401fe0
push 0x50
push str.Documents_and_SettingsAll_UsersApplication_DataApple_ComputeriTunesSC_Info_
jmp 0x40488d
cmp eax, 6
jb 0x404896
push 0x3a
push str.UsersAdministratorAppDataRoamingApple_ComputeriTunes_
lea ecx, [esp + 0x28]
call fcn.00401fe0
push 0x2a
push str.ProgramDataApple_ComputeriTunesSC_Info_
lea ecx, [esp + 0x20]
call fcn.00401fe0
push 0x104
lea edx, [esp + 0xd8]
push edi
push edx
call fcn.00413fb0
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xd8]
push ecx
mov dword [esp + 0x44], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x4048e1
lea edx, [esp + 0xd4]
push edx
push str.Administrator
lea ecx, [esp + 0x28]
call fcn.004037d0
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0x42be58
push 0x82
push edi
call ebx
cmp byte [ebp + 0x94], 0
mov esi, eax
je 0x40490e
push 0x42be50
push 0x8f
push edi
call ebx
mov esi, eax
cmp esi, edi
jne 0x4049ea
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x1e4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40493e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x1e4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404966
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x1e4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40498e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x1e4], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x1e4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404c6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x404c6e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
cmp ebp, edi
je 0x404916
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x404916
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
je 0x404c41
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
push ecx
add edi, 0x78
lea edx, [esp + 0x34]
push edi
push edx
call fcn.00404020
push str.SC_Info.txt
push eax
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x1fc], 5
call fcn.004040e0
add esp, 0x18
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1e8], 6
call fcn.00403d60
lea ecx, [esp + 0x34]
call fcn.00401e20
lea ecx, [esp + 0x30]
mov byte [esp + 0x1e4], 4
call fcn.00401e20
mov ecx, dword [esp + 0x14]
push 0x42be40
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.004159c3
add esp, 0xc
test eax, eax
jne 0x404c19
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x404c19
push ecx
push ebp
push 1
push esi
call fcn.00415872
mov eax, dword [esp + 0x38]
push eax
call fcn.004156dc
add esp, 0x14
push 0x42be58
push 0x92
push 0
call ebx
mov ecx, dword [esp + 0x2c]
cmp byte [ecx + 0x94], 0
mov esi, eax
je 0x404aee
push 0x42be50
push 0x8e
push 0
call ebx
mov esi, eax
test esi, esi
je 0x404c41
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [esp + 0x38], eax
je 0x404c41
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404c41
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x404c41
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push edi
push eax
xor bl, bl
call fcn.00404020
push str.SC_Info.sidb
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x1fc], 7
call fcn.004040e0
add esp, 0x18
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1e8], 8
call fcn.00403d60
lea ecx, [esp + 0x30]
call fcn.00401e20
lea ecx, [esp + 0x34]
mov byte [esp + 0x1e4], 4
call fcn.00401e20
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push edx
call esi
mov eax, dword [esp + 0x14]
push 0x42be40
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.004159c3
add esp, 0xc
test eax, eax
jne 0x404c19
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x404c19
mov edi, dword [esp + 0x38]
push ecx
push edi
push 1
push ebp
call fcn.00415872
add esp, 0x10
cmp edi, eax
jne 0x404bd2
mov bl, 1
mov edx, dword [esp + 0x28]
push edx
call fcn.004156dc
mov eax, dword [esp + 0x18]
add esp, 4
push 2
push eax
call esi
lea ecx, [esp + 0x1c]
call fcn.00401e20
lea ecx, [esp + 0x14]
call fcn.00401e20
lea ecx, [esp + 0x18]
call fcn.00401e20
lea ecx, [esp + 0x20]
call fcn.00401e20
lea ecx, [esp + 0x24]
call fcn.00401e20
mov al, bl
jmp 0x404c70
push eax
lea ecx, [esp + 0x20]
push 0x42b7b0
push ecx
call fcn.00402180
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
add esp, 0xc
push 0
push edx
push eax
call fcn.00408adc
lea ecx, [esp + 0x1c]
call fcn.00401e20
lea ecx, [esp + 0x14]
call fcn.00401e20
lea ecx, [esp + 0x18]
call fcn.00401e20
lea ecx, [esp + 0x20]
call fcn.00401e20
lea ecx, [esp + 0x24]
call fcn.00401e20
xor al, al
mov ecx, dword [esp + 0x1dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c4]
xor ecx, esp
call fcn.00413ddb
add esp, 0x1d4
ret