Function at 0x10260d0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1290
call fcn.01047580
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 6
mov esi, 0x100682c
lea edi, [ebp - 0x128c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ax, word [0x10015d4]
mov word [ebp - 0x1058], ax
push 0x20a
push 0
lea ecx, [ebp - 0x1056]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x1268], dx
push 0x20a
push 0
lea eax, [ebp - 0x1266]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0xa18], cx
push 0x20a
push 0
lea edx, [ebp - 0xa16]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ax, word [0x10015d4]
mov word [ebp - 0xc30], ax
push 0x20a
push 0
lea ecx, [ebp - 0xc2e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0xe48], dx
push 0x208
push 0
lea eax, [ebp - 0xe46]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0x808], cx
push 0x3fe
push 0
lea edx, [ebp - 0x806]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ax, word [0x10015d4]
mov word [ebp - 0x408], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x406]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x1290], 0
mov dword [ebp - 0x1270], 0
mov dword [ebp - 0xc34], 0
mov dword [ebp - 0x126c], 0
mov dword [ebp - 0xa1c], 0
cmp dword [ebp + 8], 0
jne 0x1026237
xor eax, eax
jmp 0x1026718
movzx edx, word [0x104cb5c]
test edx, edx
je 0x10266da
cmp dword [0x104e7dc], 0
je 0x10266da
push 0x104cb5c
push 0x106
lea eax, [ebp - 0x1058]
push eax
call fcn.01010390
push 0x2e
lea ecx, [ebp - 0x1058]
push ecx
call fcn.010203d0
add esp, 8
test eax, eax
je 0x1026334
lea edx, [ebp - 0x1058]
push edx
call dword [sym.imp.MSVCR80.dll__wcsrev]
add esp, 4
mov dword [ebp - 0xa1c], 0
mov eax, dword [ebp - 0xa1c]
movzx ecx, word [ebp + eax*2 - 0x1058]
cmp ecx, 0x2e
je 0x10262dc
mov edx, dword [ebp - 0xa1c]
mov eax, dword [ebp - 0xa1c]
mov cx, word [ebp + eax*2 - 0x1058]
mov word [ebp + edx*2 - 0xe48], cx
mov edx, dword [ebp - 0xa1c]
add edx, 1
mov dword [ebp - 0xa1c], edx
jmp 0x102629c
lea eax, [ebp - 0xe48]
push eax
call dword [sym.imp.MSVCR80.dll__wcsrev]
add esp, 4
push 0x2e
lea ecx, [ebp - 0x1058]
push ecx
call fcn.010203d0
add esp, 8
add eax, 2
push eax
push 0x106
lea edx, [ebp - 0x1268]
push edx
call fcn.01010390
lea eax, [ebp - 0x1268]
push eax
call dword [sym.imp.MSVCR80.dll__wcsrev]
add esp, 4
push eax
push 0x106
lea ecx, [ebp - 0x1058]
push ecx
call fcn.01010390
lea edx, [ebp - 0x1058]
push edx
push 0x1006820
push 0x106
lea eax, [ebp - 0xc30]
push eax
call fcn.01011d00
add esp, 0x10
lea ecx, [ebp - 0xc30]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10263d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1270], eax
cmp dword [ebp - 0x1270], 2
je 0x10263d9
cmp dword [ebp - 0x1270], 3
je 0x10263d9
push 0x200
lea edx, [ebp - 0x408]
push edx
push 0xf5
mov eax, dword [0x104ef34]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x400
lea ecx, [ebp - 0x808]
push ecx
mov edx, dword [ebp - 0x1270]
push edx
call fcn.010425e0
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0xc30]
push ecx
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 0xc
mov dword [ebp - 0x126c], 0x38
jmp 0x10263f4
mov eax, dword [ebp - 0x126c]
sub eax, 1
mov dword [ebp - 0x126c], eax
cmp dword [ebp - 0x126c], 0x30
jle 0x10264f9
mov ecx, dword [ebp - 0x126c]
push ecx
lea edx, [ebp - 0x1058]
push edx
push 0x1006814
push 0x106
lea eax, [ebp - 0xc30]
push eax
call fcn.01011d00
add esp, 0x14
mov ecx, dword [ebp - 0x126c]
add ecx, 1
push ecx
lea edx, [ebp - 0x1058]
push edx
push 0x1006814
push 0x106
lea eax, [ebp - 0xa18]
push eax
call fcn.01011d00
add esp, 0x14
lea ecx, [ebp - 0xa18]
push ecx
lea edx, [ebp - 0xc30]
push edx
call dword [sym.imp.MSVCR80.dll__wrename]
add esp, 8
mov dword [ebp - 0xc34], eax
cmp dword [ebp - 0xc34], 0
je 0x10264f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1270], eax
cmp dword [ebp - 0x1270], 2
je 0x10264f4
cmp dword [ebp - 0x1270], 3
je 0x10264f4
push 0x200
lea eax, [ebp - 0x408]
push eax
push 0xf4
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x400
lea edx, [ebp - 0x808]
push edx
mov eax, dword [ebp - 0x1270]
push eax
call fcn.010425e0
add esp, 0xc
lea ecx, [ebp - 0x808]
push ecx
lea edx, [ebp - 0xa18]
push edx
lea eax, [ebp - 0xc30]
push eax
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 0x10
jmp 0x10263e5
push 0x104c8f4
call dword [0x104ef44]
test eax, eax
jne 0x102653a
cmp dword [0x104e7a8], 0
je 0x102652f
cmp dword [0x104e0cc], 0
je 0x102652f
lea edx, [ebp - 0x128c]
push edx
push 0x1001c84
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
push 0x104c8f4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x104e7a8], 0
je 0x1026561
cmp dword [0x104e0cc], 0
je 0x1026561
lea eax, [ebp - 0x128c]
push eax
push 0x1001c50
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
cmp dword [0x104e7dc], 0
je 0x10266a8
mov ecx, dword [0x104e7dc]
push ecx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov dword [0x104e7dc], 0
lea edx, [ebp - 0xe48]
push edx
lea eax, [ebp - 0x1058]
push eax
push 0x1006808
push 0x106
lea ecx, [ebp - 0xc30]
push ecx
call fcn.01011d00
add esp, 0x14
lea edx, [ebp - 0x1058]
push edx
push 0x10067fc
push 0x106
lea eax, [ebp - 0xa18]
push eax
call fcn.01011d00
add esp, 0x10
lea ecx, [ebp - 0xa18]
push ecx
lea edx, [ebp - 0xc30]
push edx
call dword [sym.imp.MSVCR80.dll__wrename]
add esp, 8
mov dword [ebp - 0xc34], eax
cmp dword [ebp - 0xc34], 0
je 0x1026668
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1270], eax
cmp dword [ebp - 0x1270], 2
je 0x1026668
push 0x200
lea eax, [ebp - 0x408]
push eax
push 0xf4
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x400
lea edx, [ebp - 0x808]
push edx
mov eax, dword [ebp - 0x1270]
push eax
call fcn.010425e0
add esp, 0xc
lea ecx, [ebp - 0x808]
push ecx
lea edx, [ebp - 0xa18]
push edx
lea eax, [ebp - 0xc30]
push eax
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0x104cb5c
call fcn.0102b2c0
add esp, 8
mov dword [0x104e7dc], eax
cmp dword [0x104e7dc], 0
jne 0x10266a8
push 0x400
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010425e0
add esp, 0xc
push 0x104c8f4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x10266da
cmp dword [0x104e0cc], 0
je 0x10266da
lea eax, [ebp - 0x128c]
push eax
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
movzx ecx, word [ebp - 0x808]
test ecx, ecx
je 0x1026701
push 0x45
push 0x200
lea edx, [ebp - 0x808]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.01030e10
add esp, 0x10
jmp 0x1026713
push 0x4e
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.01030e10
add esp, 0x10
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret