Function at 0x402760
Capabilities:
Set file attributes
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x40e394
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
mov eax, dword [0x412200]
push ebx
push esi
mov dword [esp + 0x230], eax
push 0x40f3b4
xor eax, eax
lea ecx, [esp + 0xb8]
mov dword [esp + 0xb8], eax
push 4
push ecx
mov byte [esp + 0xc4], al
call fcn.00405f9d
lea eax, [esp + 0xc0]
add esp, 0xc
lea edx, [eax + 1]
xor ebx, ebx
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4027c0
sub eax, edx
lea edx, [esp + 8]
push edx
push 2
mov esi, eax
mov eax, dword [str.SOFTWAREKWMUSIC]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40281a
mov edx, dword [esp + 8]
push esi
lea ecx, [esp + 0xb8]
push ecx
push 1
push ebx
push str.CACHE_DISK
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
je 0x40280f
mov byte [esp + 0xb4], bl
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
lea edx, [esp + 0xbc]
mov dword [esp + 0xb4], ecx
push edx
mov byte [esp + 0xbc], cl
call fcn.00401fa0
add esp, 4
cmp dword [esp + 0xd0], ebx
mov dword [esp + 0x23c], ebx
jne 0x40286d
cmp dword [esp + 0xd4], 0x10
jb 0x402d12
mov eax, dword [esp + 0xc0]
push eax
call fcn.00405f98
add esp, 4
jmp 0x402d12
push ebp
push 0xc
mov esi, 0xf
push str.SetCachePath
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.00401740
push 0xa
push str.encode.txt
lea ecx, [esp + 0x18]
mov byte [esp + 0x248], 1
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00401740
mov eax, dword [esp + 0xd8]
mov ebp, 0x10
cmp eax, ebp
mov eax, dword [esp + 0xc4]
mov byte [esp + 0x240], 2
jae 0x4028d9
lea eax, [esp + 0xc4]
push eax
push str.strCachePath:_s
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
mov eax, dword [esp + 0x3c]
add esp, 0x14
cmp eax, ebp
jb 0x402908
mov eax, dword [esp + 0x14]
push eax
call fcn.00405f98
add esp, 4
cmp dword [esp + 0x44], ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov byte [esp + 0x240], bl
jb 0x40292e
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00405f98
add esp, 4
lea edx, [esp + 0x130]
push 0x104
push edx
call fcn.004030d0
add esp, 8
test al, al
jne 0x402961
cmp dword [esp + 0xd8], ebp
jb 0x402d11
mov eax, dword [esp + 0xc4]
push eax
jmp 0x402d09
mov dword [esp + 0x110], esi
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], bl
lea ecx, [esp + 0x130]
push ecx
lea edx, [esp + 0xfc]
push str._s_setup.xml
push edx
mov byte [esp + 0x24c], 3
call fcn.00404ca0
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0xec]
push ecx
call fcn.00404890
add esp, 0x14
cmp dword [esp + 0xf0], ebx
mov byte [esp + 0x240], 4
jne 0x402a37
cmp dword [esp + 0xf4], ebp
jb 0x4029da
mov edx, dword [esp + 0xe0]
push edx
call fcn.00405f98
add esp, 4
cmp dword [esp + 0x110], ebp
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
jb 0x402a08
mov eax, dword [esp + 0xfc]
push eax
call fcn.00405f98
add esp, 4
cmp dword [esp + 0xd8], ebp
mov dword [esp + 0x110], esi
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], bl
jb 0x402d11
mov ecx, dword [esp + 0xc4]
push ecx
jmp 0x402d09
push edi
push 0xb
push ebx
push str._SharePath_
lea ecx, [esp + 0xec]
call fcn.00401180
push 0xc
push ebx
push str.__SharePath_
lea ecx, [esp + 0xec]
mov edi, eax
call fcn.00401180
cmp edi, 0xffffffff
je 0x402c9b
cmp eax, 0xffffffff
je 0x402c9b
push 0xffffffffffffffff
push eax
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0xec]
call fcn.00401870
mov esi, eax
push edi
push ebx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0xec]
mov byte [esp + 0x250], 5
call fcn.00401870
push str._SharePath_
push eax
lea ecx, [esp + 0xa8]
push ecx
mov byte [esp + 0x250], 6
call fcn.00401b40
lea edx, [esp + 0xd0]
push edx
push eax
lea eax, [esp + 0x98]
push eax
mov byte [esp + 0x25c], 7
call fcn.004018b0
push esi
push eax
lea ecx, [esp + 0x138]
push ecx
mov byte [esp + 0x268], 8
call fcn.004018b0
add esp, 0x24
lea ecx, [esp + 0x84]
call fcn.00401410
lea ecx, [esp + 0xa0]
call fcn.00401410
lea ecx, [esp + 0x68]
call fcn.00401410
lea ecx, [esp + 0x4c]
mov byte [esp + 0x244], 0xa
call fcn.00401410
lea edx, [esp + 0x118]
push edx
lea eax, [esp + 0x100]
push eax
call fcn.00404830
lea ecx, [esp + 0xcc]
push ecx
call fcn.00404450
mov eax, dword [esp + 0xe8]
add esp, 0xc
cmp eax, ebp
mov eax, dword [esp + 0xc8]
jae 0x402b68
lea eax, [esp + 0xc8]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 2
xor edx, edx
push ebx
lea eax, [esp + 0x38]
mov dword [esp + 0xc4], edx
push eax
lea ecx, [esp + 0xd0]
mov byte [esp + 0xcc], dl
call fcn.00401870
cmp dword [eax + 0x18], ebp
jb 0x402b9f
mov ecx, dword [eax + 4]
jmp 0x402ba2
lea ecx, [eax + 4]
lea edx, [esp + 0xbc]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x402bb0
lea ecx, [esp + 0x30]
call fcn.00401410
lea eax, [esp + 0xbc]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402bd0
lea ecx, [esp + 0x10]
push ecx
push 2
sub eax, edx
mov edx, dword [str.SOFTWAREKWMUSIC]
push ebx
push edx
push 0x80000002
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402c2b
mov ecx, dword [esp + 0x10]
push esi
lea eax, [esp + 0xc0]
push eax
push 1
push ebx
push str.CACHE_DISK
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
je 0x402c20
mov byte [esp + 0xbc], bl
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SetCachePath
lea ecx, [esp + 0x18]
call fcn.00401830
push str.encode.txt
lea ecx, [esp + 0x34]
mov byte [esp + 0x248], 0xe
call fcn.00401830
lea eax, [esp + 0xbc]
push eax
push 0x40f35c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push ebx
push edx
mov byte [esp + 0x258], 0xf
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x14
lea ecx, [esp + 0x30]
call fcn.00401410
lea ecx, [esp + 0x14]
call fcn.00401410
lea ecx, [esp + 0x118]
call fcn.00401410
mov esi, 0xf
cmp dword [esp + 0xf8], ebp
pop edi
jb 0x402cb5
mov eax, dword [esp + 0xe0]
push eax
call fcn.00405f98
add esp, 4
cmp dword [esp + 0x110], ebp
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
jb 0x402ce3
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.00405f98
add esp, 4
cmp dword [esp + 0xd8], ebp
mov dword [esp + 0x110], esi
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], bl
jb 0x402d11
mov edx, dword [esp + 0xc4]
push edx
call fcn.00405f98
add esp, 4
pop ebp
mov ecx, dword [esp + 0x234]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x22c]
pop ebx
call fcn.00405b2e
add esp, 0x238
ret