Function at 0x1000e1a3
Capabilities:
Check if file exists
Get common file path
Get disk information
Get disk size
Get file size
Read .ini file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe74
mov eax, dword [0x1013a420]
xor eax, esp
mov dword [esp + 0xe70], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [esp + 0x24], edx
mov edi, 0x206
mov word [esp + 0x248], ax
push edi
xor ebx, ebx
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x24e]
push ebx
push eax
call fcn.1003e9c0
xor eax, eax
push edi
mov word [esp + 0x50], ax
lea eax, [esp + 0x52]
push ebx
push eax
call fcn.1003e9c0
xor eax, eax
push edi
mov word [esp + 0xc8c], ax
lea eax, [esp + 0xc8e]
push ebx
push eax
call fcn.1003e9c0
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0xc94]
add esp, 0x24
push ebx
push 0x23
push eax
push ebx
call esi
xor eax, eax
push edi
mov word [esp + 0xa6c], ax
lea eax, [esp + 0xa6e]
push ebx
push eax
call fcn.1003e9c0
add esp, 0xc
lea eax, [esp + 0xa68]
push ebx
push 0x1a
push eax
push ebx
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0xc70]
push str.KuGou8KuGou.ini
push eax
lea eax, [esp + 0x250]
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x248]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1000e2ac
lea eax, [esp + 0x248]
push eax
push 0x208
lea eax, [esp + 0x48]
push eax
push 0
push str.DownloadPath
push str.DownloadConfigSection
call esi
cmp word [esp + 0x40], 0
jne 0x1000e482
push str.KuGou8KuGou.ini
lea eax, [esp + 0xa6c]
push eax
lea eax, [esp + 0x250]
push eax
call edi
lea eax, [esp + 0x248]
push eax
call ebx
test eax, eax
je 0x1000e2fd
lea eax, [esp + 0x248]
push eax
push 0x208
lea eax, [esp + 0x48]
push eax
push 0
push str.DownloadPath
push str.DownloadConfigSection
call esi
cmp word [esp + 0x40], 0
jne 0x1000e482
push str.KuGou7KuGou.ini
lea eax, [esp + 0xa6c]
push eax
lea eax, [esp + 0x250]
push eax
call edi
lea eax, [esp + 0x248]
push eax
call ebx
test eax, eax
je 0x1000e34e
lea eax, [esp + 0x248]
push eax
push 0x208
lea eax, [esp + 0x48]
push eax
push 0
push str.SongSavePath
push str.NormalConfig
call esi
cmp word [esp + 0x40], 0
jne 0x1000e482
call fcn.1000e008
test eax, eax
je 0x1000e482
xor eax, eax
push 0x206
push eax
mov word [esp + 0x660], ax
lea eax, [esp + 0x662]
push eax
call fcn.1003e9c0
add esp, 0xc
lea ecx, [esp + 0x658]
call fcn.1000df27
push str.KuGoo.xml
lea eax, [esp + 0x65c]
push eax
lea eax, [esp + 0x250]
push eax
call edi
lea eax, [esp + 0x248]
push eax
call ebx
test eax, eax
je 0x1000e482
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000e482
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003865f
lea esi, [esi*2 + 2]
mov ebx, eax
push esi
push 0
push ebx
call fcn.1003e9c0
and dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
add esp, 0x10
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000e474
push str._Misc_DefaultDownPath_
push ebx
call fcn.10038cb5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1000e474
push str._Misc_DefaultDownPath_
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esi + eax*2]
xor eax, eax
movzx ecx, word [edx]
test cx, cx
je 0x1000e474
cmp ecx, 0x22
je 0x1000e474
add edx, 2
mov word [esp + eax*2 + 0x40], cx
inc eax
cmp eax, 0x104
jl 0x1000e457
push ebx
call fcn.100389bf
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ebx, 0x206
push ebx
push eax
mov word [esp + 0x868], ax
lea eax, [esp + 0x86a]
push eax
call fcn.1003e9c0
xor eax, eax
push ebx
push eax
mov word [esp + 0x464], ax
lea eax, [esp + 0x466]
push eax
call fcn.1003e9c0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0x18
cmp word [esp + 0x40], 0
je 0x1000e5ba
lea eax, [esp + 0x40]
push 0x1012e5c4
push eax
call fcn.10038cb5
pop ecx
pop ecx
test eax, eax
je 0x1000e4e8
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x864]
push eax
call ebx
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x454]
push eax
call ebx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x1e
jge 0x1000e5ba
lea eax, [esp + 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x23
jl 0x1000e5ba
xor eax, eax
push 0x206
push eax
mov word [esp + 0x660], ax
lea eax, [esp + 0x662]
push eax
call fcn.1003e9c0
add esp, 0xc
lea eax, [esp + 0x450]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
lea eax, [esp + 0x454]
push eax
lea eax, [esp + 0x660]
push 0x1012e5c8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x658]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x23
jge 0x1000e55a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x450]
push str...._
push eax
call esi
push edi
lea eax, [esp + 0x454]
push eax
call esi
lea ecx, [esp + 0x40]
call fcn.1000def1
test eax, eax
jne 0x1000e6c8
and dword [esp + 0x14], 0
and dword [esp + 0x18], 0
push 0x43
pop eax
mov ecx, eax
mov esi, eax
push eax
mov dword [esp + 0x10], ecx
pop ebx
xor eax, eax
lea edi, [esp + 0x32]
mov word [esp + 0x30], ax
stosd dword es:[edi], eax
push ecx
push str._c:_
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x38]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
call edi
xor eax, eax
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1000e686
mov ecx, esi
call fcn.1000e072
test eax, eax
je 0x1000e686
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x1000e686
mov eax, dword [esp + 0x1c]
mul dword [esp + 0x20]
push 0
push dword [esp + 0x14]
push edx
push eax
call fcn.100462c0
cmp dword [esp + 0x18], edx
jg 0x1000e686
jl 0x1000e67b
cmp dword [esp + 0x14], eax
jae 0x1000e686
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
movzx ebx, si
mov ecx, dword [esp + 0xc]
inc esi
inc ecx
mov dword [esp + 0xc], ecx
cmp si, 0x5a
jbe 0x1000e5e2
movzx eax, bx
push eax
lea eax, [esp + 0x864]
push str._c:KuGou
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x86c]
add esp, 0xc
push eax
lea eax, [esp + 0x454]
push eax
call ebx
lea eax, [esp + 0x860]
push eax
push dword [esp + 0x30]
call ebx
lea eax, [esp + 0x450]
push eax
push dword [esp + 0x28]
call ebx
mov ecx, dword [esp + 0xe7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003890f
mov esp, ebp
pop ebp
ret