Function at 0x435c93
Capabilities:
Check if file exists
Create directory
Get disk information
Get file attributes
Read .ini file

Disassembly:
push 0x42c
mov eax, 0x4fff2f
call fcn.004e6cea
mov eax, dword [0x548750]
mov dword [ebp - 0x434], eax
push 0x54dbe8
lea eax, [ebp - 0x434]
xor ebx, ebx
push str._sUser.ini
push eax
mov dword [ebp - 4], ebx
call fcn.0040306c
mov eax, dword [0x548750]
add esp, 0xc
mov dword [ebp - 0x42c], eax
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x434]
push edi
push ebx
push str.gamespathcount
push 0x513960
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov dword [ebp - 0x438], esi
test esi, esi
jne 0x435da3
lea ecx, [ebp - 0x428]
call fcn.00436b9c
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x428]
cmp dword [eax - 8], ebx
jne 0x435d37
movzx eax, word [ebx + 0x54e030]
lea ebx, [ebx + 2]
mov word [ebx + 0x54de1e], ax
test ax, ax
jne 0x435d1c
jmp 0x435f38
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00402aef
push str.6wanDownload
lea ecx, [ebp - 0x42c]
call fcn.00402a52
push edi
push 0x512110
push str.gamespathcount
push 0x513960
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, dword [ebp - 0x42c]
push edi
push esi
push str.gamespath1
push 0x513960
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 1
call fcn.00403080
jmp 0x435e2f
xor eax, eax
push 0x40e
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push ebx
push eax
call fcn.004deff0
mov eax, dword [0x548750]
add esp, 0xc
mov dword [ebp - 0x428], eax
push esi
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 3
push str.gamespath_d
push eax
call fcn.0040306c
add esp, 0xc
lea eax, [ebp - 0x424]
push edi
push 0x208
push eax
push 0x512700
push dword [ebp - 0x428]
push 0x513960
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x42c]
call fcn.004028f2
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 1
call fcn.00403080
mov esi, dword [ebp - 0x42c]
mov ebx, 0x54de20
mov ecx, ebx
sub ecx, esi
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x435e38
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x430], eax
cmp eax, 0xffffffff
jne 0x435f45
lea ecx, [ebp - 0x428]
call fcn.00436b9c
mov byte [ebp - 4], 4
xor ecx, ecx
mov eax, dword [ebp - 0x428]
cmp dword [eax - 8], ecx
jne 0x435e94
movzx eax, word [ecx + 0x54e030]
lea ecx, [ecx + 2]
mov word [ecx + 0x54de1e], ax
test ax, ax
jne 0x435e79
jmp 0x435f38
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00402aef
push str.6wanDownload
lea ecx, [ebp - 0x42c]
call fcn.00402a52
mov eax, dword [0x548750]
mov dword [ebp - 0x430], eax
push dword [ebp - 0x438]
lea eax, [ebp - 0x430]
mov byte [ebp - 4], 5
push str.gamespath_d
push eax
call fcn.0040306c
mov esi, dword [ebp - 0x42c]
add esp, 0xc
push edi
push esi
push dword [ebp - 0x430]
push 0x513960
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, ebx
sub ecx, esi
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x435f06
sub ebx, 2
mov ax, word [ebx + 2]
add ebx, 2
cmp ax, di
jne 0x435f18
mov eax, dword [0x513338]
lea ecx, [ebp - 0x430]
mov edi, ebx
mov dword [edi], eax
call fcn.00403080
lea ecx, [ebp - 0x428]
call fcn.00403080
jmp 0x435f74
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x435f74
test byte [ebp - 0x430], 0x10
je 0x435f74
sub ebx, 2
xor edi, edi
mov ax, word [ebx + 2]
add ebx, 2
cmp ax, di
jne 0x435f5f
mov eax, dword [0x513338]
mov edi, ebx
mov dword [edi], eax
lea ecx, [ebp - 0x42c]
call fcn.00403080
lea ecx, [ebp - 0x434]
call fcn.00403080
call fcn.004e6c99
ret