Function at 0x405100
Capabilities:
Check os version
Create directory
Extract resource via kernel32 functions
Get session user name
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x428f89
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x435c14]
xor eax, esp
mov dword [esp + 0x1c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435c14]
xor eax, esp
push eax
lea eax, [esp + 0x1e0]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x30], ebx
call fcn.0040cbc2
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40515d
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 + 0x20], eax
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x1ec], edi
mov dword [esp + 0x48], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x42b7b3
lea ecx, [esp + 0x1c]
call fcn.00402230
push 0x42b7b3
lea ecx, [esp + 0x28]
mov byte [esp + 0x1ec], 1
call fcn.00402230
push 0x42b7b3
lea ecx, [esp + 0x18]
mov byte [esp + 0x1ec], 2
call fcn.00402230
push 0x42b7b3
lea ecx, [esp + 0x20]
mov byte [esp + 0x1ec], 3
call fcn.00402230
mov eax, dword [esp + 0x48]
cmp eax, 5
mov byte [esp + 0x1e8], 4
ja 0x4051f1
push 0x4c
push str.Documents_and_SettingsAdministratorApplication_DataApple_ComputeriTunes_
jmp 0x4051fd
cmp eax, 6
jb 0x405206
push 0x3a
push str.UsersAdministratorAppDataRoamingApple_ComputeriTunes_
lea ecx, [esp + 0x20]
call fcn.00401fe0
push 0x104
lea edx, [esp + 0xdc]
push edi
push edx
call fcn.00413fb0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0xdc]
push ecx
mov dword [esp + 0x48], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x405251
lea edx, [esp + 0xd8]
push edx
push str.Administrator
lea ecx, [esp + 0x20]
call fcn.004037d0
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0x42be58
push 0x93
push edi
call ebp
cmp byte [ebx + 0x94], 0
mov esi, eax
je 0x40527e
push 0x42be50
push 0x90
push edi
call ebp
mov esi, eax
cmp esi, edi
jne 0x40535a
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x1e8], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4052ae
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 + 0x1e8], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4052d6
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 byte [esp + 0x1e8], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4052fe
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
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x1e8], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405326
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
mov dword [esp + 0x1e8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40566a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40566a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, edi
je 0x405286
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x405286
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
je 0x40563d
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push ecx
add edi, 0x78
lea edx, [esp + 0x38]
push edi
push edx
call fcn.00404020
push str.iTunesPrefs.xml
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x200], 5
call fcn.004040e0
add esp, 0x18
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1ec], 6
call fcn.00403d60
lea ecx, [esp + 0x38]
call fcn.00401e20
lea ecx, [esp + 0x34]
mov byte [esp + 0x1e8], 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 0x405615
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x405615
push ecx
push ebx
push 1
push esi
call fcn.00415872
mov eax, dword [esp + 0x38]
push eax
call fcn.004156dc
add esp, 0x14
push 0x42be58
push 0x87
push 0
call ebp
mov ecx, dword [esp + 0x30]
cmp byte [ecx + 0x94], 0
mov esi, eax
je 0x40545e
push 0x42be50
push 0x91
push 0
call ebp
mov esi, eax
test esi, esi
je 0x40563d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
je 0x40563d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40563d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40563d
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push edi
push eax
mov dword [esp + 0x34], 0
call fcn.00404020
push str.Cookies
push eax
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x200], 7
call fcn.004040e0
add esp, 0x18
mov bl, 9
lea ecx, [esp + 0x34]
mov byte [esp + 0x1e8], bl
call fcn.00401e20
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x405515
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405515
push eax
push 4
push 0x42bfe8
call fcn.0040f2b3
cmp eax, 6
je 0x40560a
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x40]
push edi
push edx
call fcn.00404020
push str.CookiesCookies.binarycookies
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x200], 0xa
call fcn.004040e0
add esp, 0x18
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1ec], 0xb
call fcn.00403d60
lea ecx, [esp + 0x38]
call fcn.00401e20
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1e8], bl
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 0x4055e2
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4055e2
push ecx
push ebp
push 1
push esi
call fcn.00415872
mov eax, dword [esp + 0x38]
push eax
call fcn.004156dc
add esp, 0x14
lea ecx, [esp + 0x2c]
call fcn.00401e20
lea ecx, [esp + 0x1c]
call fcn.00401e20
lea ecx, [esp + 0x14]
call fcn.00401e20
lea ecx, [esp + 0x24]
call fcn.00401e20
lea ecx, [esp + 0x18]
call fcn.00401e20
lea ecx, [esp + 0x20]
call fcn.00401e20
mov al, 1
jmp 0x40566c
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 + 0x3c]
add esp, 0xc
push 0
push edx
push eax
call fcn.00408adc
lea ecx, [esp + 0x2c]
call fcn.00401e20
jmp 0x40563d
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 + 0x3c]
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 + 0x24]
call fcn.00401e20
lea ecx, [esp + 0x18]
call fcn.00401e20
lea ecx, [esp + 0x20]
call fcn.00401e20
xor al, al
mov ecx, dword [esp + 0x1e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.00413ddb
add esp, 0x1d8
ret