Function at 0x60139d30
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x6014b3b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8ec
push ebx
push ebp
push esi
xor esi, esi
xor eax, eax
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov ebx, dword [esp + 0x90c]
mov ecx, dword [ebx + 4]
xor ebp, ebp
cmp ecx, esi
mov dword [esp + 0x904], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
jbe 0x6013a11a
cmp ebp, dword [ebx + 4]
jae 0x6013a182
mov eax, dword [ebx]
mov edi, dword [eax + ebp*4]
lea esi, [eax + ebp*4]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x60139dcf
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x60139dcf
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x1c]
call fcn.6010aef0
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jb 0x60139d86
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x6013a118
lea ecx, [esp + 0x18]
mov eax, 0x60138ec0
push ecx
push eax
call fcn.60137e40
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x6013a118
xor ebp, ebp
test eax, eax
mov dword [esp + 0x14], ebp
jbe 0x6013a110
cmp ebp, eax
jae 0x6013a182
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx + ebp*4]
lea edx, [esp + 0x144]
push edx
mov dword [esp + 0x148], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ebx, eax
test ebx, ebx
je 0x6013a0f5
mov eax, dword [esp + 0x154]
dec eax
je 0x60139f9f
dec eax
jne 0x60139f8c
lea ecx, [esp + 0x4e4]
call fcn.601264c0
lea ecx, [esp + 0x4e4]
mov byte [esp + 0x904], 2
call fcn.601268e0
test eax, eax
je 0x60139e95
lea ecx, [esp + 0x4e4]
mov byte [esp + 0x904], 0
call fcn.601268c0
jmp 0x60139f7f
push 0x601264d0
lea eax, [esp + 0x4e8]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.6011af90
add esp, 0xc
lea edx, [esp + 0x44]
mov byte [esp + 0x904], 3
mov dword [esp + 0x40], edx
call dword [0x6015b0d8]
test edi, edi
mov ebp, eax
jne 0x60139ed1
mov dword [esp + 0x40], edi
jmp 0x60139f1b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x80
jle 0x60139f02
lea eax, [esi + esi]
push eax
call dword [sym.imp.MSVCR71.dll_malloc]
add esp, 4
test eax, eax
mov dword [esp + 0x40], eax
jne 0x60139f06
push 0x8007000e
call fcn.601040a0
mov eax, dword [esp + 0x40]
push esi
push eax
push esi
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x6013a18c
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x4e8]
mov byte [esp + 0x908], 4
call fcn.60126500
test eax, eax
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x44]
setne bl
cmp eax, edx
je 0x60139f4f
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x904], 2
call dword [esp + 0x2c]
lea ecx, [esp + 0x4e4]
mov byte [esp + 0x904], 0
call fcn.601268c0
test bl, bl
mov ebp, dword [esp + 0x14]
je 0x6013a0ff
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ebx, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x6013a0ff
jmp 0x6013a0fb
push 0x104
lea eax, [esp + 0x3e4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x6013a0f5
mov edx, dword [0x60150364]
mov ecx, dword [str.WinInit.ini]
mov eax, dword [0x60150368]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov cl, byte [0x6015036c]
push 0x104
lea edx, [esp + 0x2e0]
push edx
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], cl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x30]
mov edx, ecx
sub eax, edx
lea edx, [esp + eax + 0x2dc]
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x6013a004
lea eax, [esp + 0x2dc]
push eax
push 0x104
lea ecx, [esp + 0x1e0]
push ecx
call fcn.60126970
push str.rename
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1e0]
call fcn.60138070
mov eax, dword [esp + 0x10]
mov edx, dword [eax - 0xc]
test edx, edx
sete cl
push 0
movzx esi, cl
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x90c], 1
call fcn.60138280
lea edx, [esp + 0x3e0]
push edx
push 0
lea ecx, [esp + 0x18]
call fcn.60138300
push 0x60150354
push 0
lea ecx, [esp + 0x18]
call fcn.60138300
push 0x6014eaf8
push 0
lea ecx, [esp + 0x18]
call fcn.60138300
test esi, esi
je 0x6013a0a4
push 0
lea ecx, [esp + 0x14]
call fcn.6010a1e0
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x1d8]
push eax
push esi
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x6013a0ca
call edi
call edi
lea eax, [esi - 0x10]
mov byte [esp + 0x904], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60139f92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x60139f92
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
call edi
mov eax, dword [esp + 0x1c]
inc ebp
cmp ebp, eax
mov dword [esp + 0x14], ebp
jb 0x60139e19
mov dword [esp + 0x14], 0x320001
xor esi, esi
mov edi, dword [esp + 0x18]
cmp edi, esi
mov dword [esp + 0x904], 0xffffffff
je 0x6013a163
cmp eax, esi
mov ebx, eax
jbe 0x6013a155
mov eax, dword [edi + esi*4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6013a150
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc esi
cmp esi, ebx
jb 0x6013a133
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov ecx, dword [esp + 0x8fc]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8f8
ret 4
push 0x80070057
call fcn.601040a0
call fcn.6010e0e0
int3