Function at 0x10015b15
Capabilities:
Check if file exists
Delete file
Move file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe68
mov eax, dword [0x10052b28]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xe68], ecx
call fcn.1001567a
test eax, eax
je 0x10015dcd
push esi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x43c], ax
lea eax, [ebp - 0x43a]
push eax
call fcn.1001a410
mov ecx, dword [ebp - 0xe68]
add esp, 0xc
lea eax, [ebp - 0x43c]
push eax
call fcn.100152c7
test eax, eax
je 0x10015dcc
push ebx
push edi
xor eax, eax
push esi
push eax
mov word [ebp - 0xa54], ax
lea eax, [ebp - 0xa52]
push eax
call fcn.1001a410
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
push 0x1004648c
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0xa54]
push eax
call ebx
push 9
pop ecx
xor eax, eax
mov word [ebp - 0x2c], ax
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xa54]
push eax
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0
mov edi, 0x1004647c
push edi
push 0x1004646c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2c]
push eax
push 0x10046454
call fcn.10004567
pop ecx
pop ecx
test eax, eax
jle 0x10015c86
xor eax, eax
push esi
push eax
mov word [ebp - 0xc5c], ax
lea eax, [ebp - 0xc5a]
push eax
call fcn.1001a410
add esp, 0xc
push edi
push 0x1005562c
lea eax, [ebp - 0xc5c]
push eax
call ebx
xor eax, eax
push esi
push eax
mov word [ebp - 0xe64], ax
lea eax, [ebp - 0xe62]
push eax
call fcn.1001a410
add esp, 0xc
push edi
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0xe64]
push eax
call ebx
push dword [0x10055b04]
lea eax, [ebp - 0xe64]
push 0
push eax
lea eax, [ebp - 0xc5c]
push eax
call fcn.10006610
add esp, 0x10
test eax, eax
je 0x10015d58
lea eax, [ebp - 0xa54]
push eax
push 0x10046454
push edi
push 0x1004646c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor eax, eax
push esi
push eax
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x232]
push eax
call fcn.1001a410
add esp, 0xc
push 0x10046170
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x234]
push eax
call ebx
cmp dword [ebp + 8], 0
je 0x10015cd0
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10015d9e
xor eax, eax
push esi
push eax
mov word [ebp - 0x84c], ax
lea eax, [ebp - 0x84a]
push eax
call fcn.1001a410
add esp, 0xc
push edi
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x84c]
push eax
call ebx
xor eax, eax
push esi
push eax
mov word [ebp - 0x644], ax
lea eax, [ebp - 0x642]
push eax
call fcn.1001a410
add esp, 0xc
push 0x10046440
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x644]
push eax
call ebx
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10015d58
mov ecx, dword [ebp - 0xe68]
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x84c]
push eax
call fcn.10014789
test eax, eax
jne 0x10015d5c
xor eax, eax
jmp 0x10015dca
mov ecx, dword [ebp - 0xe68]
lea eax, [ebp - 0x234]
push eax
call fcn.100150b4
cmp eax, 1
jne 0x10015da3
mov ecx, dword [ebp - 0xe68]
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.10014674
cmp eax, 1
jne 0x10015da3
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x10015dca
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
neg eax
sbb eax, eax
neg eax
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001a870
leave
ret 4