Function at 0x1000fd7c
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push 0x494
mov eax, 0x1008985f
call fcn.10075620
mov edi, ecx
lea ecx, [ebp - 0x49c]
mov ebx, 0x100
call fcn.100561bf
push 7
xor edx, edx
pop ecx
xor eax, eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x45c], ecx
mov dword [ebp - 0x460], edx
mov word [ebp - 0x470], ax
mov dword [ebp - 0x444], ecx
mov dword [ebp - 0x448], edx
mov word [ebp - 0x458], ax
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], edx
mov word [ebp - 0x440], ax
mov byte [ebp - 4], 3
cmp dword [edi + 0x28], edx
jne 0x1000fdf0
push 0x3e9
jmp 0x1000fe0d
lea esi, [edi + 0x10]
cmp dword [esi + 0x14], 8
jb 0x1000fdfd
mov eax, dword [esi]
jmp 0x1000fdff
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000fe18
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1001000f
push dword [edi + 8]
lea ecx, [edi + 4]
push dword [edi + 4]
call fcn.1000615c
mov eax, dword [edi + 4]
mov dword [edi + 8], eax
lea eax, [ebp - 0x440]
cmp eax, esi
je 0x1000fe42
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.10004004
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.10074510
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.10074510
add esp, 0x18
lea eax, [ebp - 0x428]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1000ff11
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x1009a72c
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1000ff11
cmp dword [esi + 0x14], 8
jb 0x1000feac
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1000ff11
lea eax, [ebp - 0x21c]
push eax
xor esi, esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x80
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp word [ebp - 0x21c], si
jne 0x1000fef1
mov eax, esi
jmp 0x1000fefe
lea eax, [ebp - 0x21c]
push eax
call fcn.10074c74
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x440]
call fcn.100040be
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
push 0x1009a734
push 0x1009a754
push 5
call fcn.10009c3c
push 0xf65
push 0x1009a76c
push 0x200
call fcn.1004501b
add esp, 0x1c
jmp 0x1000ffc1
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
push 2
lea eax, [ebp - 0x4a0]
push eax
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
lea ecx, [ebx - 2]
cmp ecx, eax
jne 0x1000ffc7
push esi
call fcn.100450c6
add ebx, 0x100
mov dword [esp], 0xf70
lea eax, [ebx + ebx]
push 0x1009a79c
push eax
call fcn.1004501b
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x1000ff50
cmp word [ebp - 0x21c], 0
je 0x1001000b
lea eax, [ebp - 0x21c]
push eax
push 0x1009a7e4
push str.CIniSections::GetList
push 5
call fcn.10009c3c
add esp, 0x10
lea eax, [ebp - 0x21c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
jne 0x10010013
xor esi, esi
jmp 0x10010088
push esi
lea ecx, [ebp - 0x49c]
call fcn.1005638c
push esi
call fcn.100450c6
pop ecx
lea ecx, [ebp - 0x49c]
xor esi, esi
call fcn.1005625d
test eax, eax
je 0x10010085
push esi
lea ecx, [ebp - 0x49c]
call fcn.1005626a
push eax
lea ecx, [ebp - 0x488]
call fcn.100038af
lea eax, [ebp - 0x488]
push eax
lea ecx, [edi + 4]
mov byte [ebp - 4], 4
call fcn.1001290a
push 0
push 1
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 3
call fcn.10003d41
lea ecx, [ebp - 0x49c]
inc esi
call fcn.1005625d
cmp esi, eax
jb 0x10010037
xor esi, esi
inc esi
push 0
push 1
lea ecx, [ebp - 0x440]
call fcn.10003d41
push 0
push 1
lea ecx, [ebp - 0x458]
call fcn.10003d41
push 0
push 1
lea ecx, [ebp - 0x470]
call fcn.10003d41
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x49c]
call fcn.100561d6
mov eax, esi
call fcn.100755cf
ret