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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe68
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xe68], ecx
call fcn.100253b3
test eax, eax
je 0x10025dde
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.10031310
mov ecx, dword [ebp - 0xe68]
add esp, 0xc
lea eax, [ebp - 0x43c]
push eax
call fcn.10024c99
test eax, eax
je 0x10025ddd
push ebx
push edi
xor eax, eax
push esi
push eax
mov word [ebp - 0xa54], ax
lea eax, [ebp - 0xa52]
push eax
call fcn.10031310
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
push 0x1004efc8
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, 0x1004efb8
push edi
push 0x1004efa8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2c]
push eax
push 0x1004ef90
call fcn.1000ce20
pop ecx
pop ecx
test eax, eax
jle 0x10025c8f
xor eax, eax
push esi
push eax
mov word [ebp - 0xc5c], ax
lea eax, [ebp - 0xc5a]
push eax
call fcn.10031310
add esp, 0xc
push edi
push 0x1005bd1c
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.10031310
add esp, 0xc
push edi
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0xe64]
push eax
call ebx
push dword [0x1005d6b0]
lea eax, [ebp - 0xe64]
push 0
push eax
lea eax, [ebp - 0xc5c]
push eax
call fcn.1000f436
add esp, 0x10
test eax, eax
je 0x10025d63
lea eax, [ebp - 0xa54]
push eax
push 0x1004ef90
push edi
push 0x1004efa8
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.10031310
add esp, 0xc
push 0x1004e240
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x234]
push eax
call ebx
cmp dword [ebp + 8], 0
je 0x10025cd9
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10025da1
xor eax, eax
push esi
push eax
mov word [ebp - 0x84c], ax
lea eax, [ebp - 0x84a]
push eax
call fcn.10031310
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.10031310
add esp, 0xc
push 0x1004ef7c
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 0x10025d63
mov esi, dword [ebp - 0xe68]
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x84c]
push eax
mov ecx, esi
call fcn.1002412e
test eax, eax
jne 0x10025d67
xor eax, eax
jmp 0x10025ddb
lea eax, [ebp - 0x234]
push eax
mov ecx, esi
call fcn.10024a63
cmp eax, 1
jne 0x10025da6
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x234]
push eax
mov ecx, esi
call fcn.10024019
cmp eax, 1
jne 0x10025da6
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x10025ddb
lea eax, [ebp - 0x234]
push eax
mov ecx, esi
call fcn.10023556
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.10031770
leave
ret 4