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

Disassembly:
push 0x518
mov eax, 0x100894c1
call fcn.10075620
mov edi, ecx
mov dword [ebp - 0x4f0], edi
lea ecx, [ebp - 0x508]
mov dword [ebp - 0x4f4], 0x100
call fcn.100561bf
push 7
xor ebx, ebx
pop ecx
xor eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x444], ecx
mov dword [ebp - 0x448], ebx
mov word [ebp - 0x458], ax
mov dword [ebp - 0x45c], ecx
mov dword [ebp - 0x460], ebx
mov word [ebp - 0x470], ax
mov dword [ebp - 0x48c], ecx
mov dword [ebp - 0x490], ebx
mov word [ebp - 0x4a0], ax
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov word [ebp - 0x440], ax
mov byte [ebp - 4], 4
cmp dword [edi + 0x68], ebx
jne 0x1000c1b6
push 0x3e9
jmp 0x1000c1d3
lea esi, [edi + 0x1c]
cmp dword [esi + 0x14], 8
jb 0x1000c1c3
mov eax, dword [esi]
jmp 0x1000c1c5
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000c1de
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000c424
lea ebx, [edi + 4]
mov ecx, ebx
push dword [ebx + 4]
push dword [ebx]
call fcn.1000615c
mov eax, dword [ebx]
mov dword [ebx + 4], eax
lea ebx, [edi + 0x10]
mov ecx, ebx
push dword [ebx + 4]
push dword [ebx]
call fcn.1000615c
mov eax, dword [ebx]
mov dword [ebx + 4], eax
lea ebx, [edi + 0x328]
mov ecx, ebx
push dword [ebx + 4]
push dword [ebx]
call fcn.1000615c
mov eax, dword [ebx]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x440]
cmp eax, esi
je 0x1000c233
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.10004004
mov ebx, 0x20a
push ebx
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.10074510
push ebx
xor ebx, ebx
lea eax, [ebp - 0x21c]
push ebx
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 0x1000c2fc
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0x1009a87c
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1000c2fc
cmp dword [esi + 0x14], 8
jb 0x1000c29a
mov esi, dword [esi]
push ebx
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1000c2fc
lea eax, [ebp - 0x21c]
push eax
push ebx
push ebx
push ebx
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], bx
jne 0x1000c2dc
mov eax, ebx
jmp 0x1000c2e9
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 0x1009a884
push 0x1009a8a4
push 5
call fcn.10009c3c
push 0x917
push 0x1009a8bc
push 0x200
call fcn.1004501b
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x1000c3dc
lea ebx, [edi + 0x4c]
mov edi, dword [ebp - 0x4f4]
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
push 2
lea eax, [ebp - 0x50c]
push eax
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x42c], 8
lea ecx, [ebp - 0x440]
cmovae ecx, dword [ebp - 0x440]
cmp dword [ebx + 0x14], 8
jb 0x1000c393
mov eax, dword [ebx]
jmp 0x1000c395
mov eax, ebx
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea ecx, [edi - 2]
cmp ecx, eax
jne 0x1000c3d4
push esi
call fcn.100450c6
add edi, 0x100
mov dword [esp], 0x922
lea eax, [edi + edi]
push 0x1009a9c8
push eax
call fcn.1004501b
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000c34c
mov edi, dword [ebp - 0x4f0]
xor ebx, ebx
cmp word [ebp - 0x21c], 0
je 0x1000c420
lea eax, [ebp - 0x21c]
push eax
push 0x1009a9f8
push 0x1009aa18
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 0x1000c42b
mov esi, ebx
jmp 0x1000c6a9
push esi
lea ecx, [ebp - 0x508]
call fcn.1005638c
push esi
call fcn.100450c6
pop ecx
lea ecx, [ebp - 0x508]
mov esi, ebx
call fcn.1005625d
test eax, eax
je 0x1000c6a6
lea ecx, [ebp - 0x4ec]
call fcn.1005817e
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 5
call fcn.100564f5
push esi
lea ecx, [ebp - 0x508]
mov byte [ebp - 4], 6
call fcn.10056303
inc eax
push eax
push esi
lea ecx, [ebp - 0x508]
call fcn.1005626a
push eax
lea ecx, [ebp - 0x4ec]
call fcn.100581f5
lea ecx, [ebp - 0x4ec]
cmp dword [edi + 0x64], ebx
jne 0x1000c4d1
call fcn.100581dd
mov ebx, eax
xor eax, eax
cmp word [ebx], ax
je 0x1000c4b7
push ebx
call fcn.10074c74
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x458]
call fcn.100040be
lea ecx, [ebp - 0x4ec]
call fcn.100581e9
jmp 0x1000c510
call fcn.100581dd
mov ecx, dword [edi + 0x64]
push eax
call fcn.10057529
mov ebx, eax
xor eax, eax
cmp word [ebx], ax
je 0x1000c4ef
push ebx
call fcn.10074c74
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x458]
call fcn.100040be
lea ecx, [ebp - 0x4ec]
call fcn.100581e9
mov ecx, dword [edi + 0x64]
push eax
call fcn.10057529
mov ebx, eax
xor eax, eax
cmp word [ebx], ax
je 0x1000c520
push ebx
call fcn.10074c74
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x470]
call fcn.100040be
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
cmp word [eax], 0x3b
lea eax, [ebp - 0x458]
jne 0x1000c595
cmp dword [ebp - 0x444], 8
cmovae eax, dword [ebp - 0x458]
push eax
push 0x1009aa30
push str.CManufacturers::GetList
push 5
call fcn.10009c3c
add esp, 0x10
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 5
call fcn.10056507
lea ecx, [ebp - 0x4ec]
mov byte [ebp - 4], 4
call fcn.100581ae
xor ebx, ebx
jmp 0x1000c692
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push eax
lea ecx, [ebp - 0x4a0]
call fcn.10004004
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
push eax
lea ecx, [ebp - 0x488]
call fcn.100038af
lea eax, [ebp - 0x488]
push eax
lea ecx, [edi + 4]
mov byte [ebp - 4], 7
call fcn.1001290a
push ebx
push 1
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 6
call fcn.10003d41
cmp dword [ebp - 0x45c], 8
lea eax, [ebp - 0x470]
cmovae eax, dword [ebp - 0x470]
push eax
lea ecx, [ebp - 0x488]
call fcn.100038af
lea eax, [ebp - 0x488]
push eax
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 8
call fcn.1001290a
push ebx
push 1
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 6
call fcn.10003d41
cmp dword [ebp - 0x48c], 8
lea eax, [ebp - 0x4a0]
cmovae eax, dword [ebp - 0x4a0]
push eax
lea ecx, [ebp - 0x488]
call fcn.100038af
lea eax, [ebp - 0x488]
push eax
lea ecx, [edi + 0x328]
mov byte [ebp - 4], 9
call fcn.1001290a
push ebx
push 1
lea ecx, [ebp - 0x488]
call fcn.10003d41
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 5
call fcn.10056507
lea ecx, [ebp - 0x4ec]
mov byte [ebp - 4], 4
call fcn.100581ae
lea ecx, [ebp - 0x508]
inc esi
call fcn.1005625d
cmp esi, eax
jb 0x1000c453
xor esi, esi
inc esi
push ebx
push 1
lea ecx, [ebp - 0x440]
call fcn.10003d41
push ebx
push 1
lea ecx, [ebp - 0x4a0]
call fcn.10003d41
push ebx
push 1
lea ecx, [ebp - 0x470]
call fcn.10003d41
push ebx
push 1
lea ecx, [ebp - 0x458]
call fcn.10003d41
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x508]
call fcn.100561d6
mov eax, esi
call fcn.100755cf
ret