Function at 0x100f8d20
Capabilities:
Check if file exists
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0x10]
push ebx
push esi
push edi
push str._SystemRoot_System32DRIVERSETC
push eax
call fcn.10008d60
mov edi, eax
add esp, 8
mov ecx, dword [edi]
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x100f8d4e
mov edx, dword [ecx]
call dword [edx + 0x10]
test eax, eax
jne 0x100f8d5a
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ecx, 1
sub ecx, dword [eax + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
mov edi, dword [eax - 0xc]
mov eax, dword [esi - 8]
lea ebx, [edi + 0x13]
sub eax, ebx
or ecx, eax
jge 0x100f8d8f
push ebx
lea ecx, [ebp - 4]
call fcn.10003310
mov esi, dword [ebp - 4]
add edi, edi
push edi
push dword [ebp - 8]
push edi
push esi
call fcn.10004510
lea eax, [edi + esi]
add esp, 0x10
test eax, eax
jne 0x100f8db8
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.101e6c20
jmp 0x100f8dc8
push 0x26
push str.RepairReminder.txt
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100f8dec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10003180
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [eax + 0x154]
test edi, edi
je 0x100f8e04
push edi
call ebx
push 0x1f
call fcn.10003680
add esp, 4
push esi
test eax, eax
je 0x100f8e17
call eax
jmp 0x100f8e1d
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 4], eax
test edi, edi
je 0x100f8e2b
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 4], 0
jne 0x100f903c
call fcn.10003180
mov edi, dword [eax + 0x154]
test edi, edi
je 0x100f8e47
push edi
call ebx
push 8
call fcn.10003680
add esp, 4
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push esi
test eax, eax
je 0x100f8e6c
call eax
jmp 0x100f8e72
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
test edi, edi
je 0x100f8e7f
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0xffffffff
je 0x100f903c
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
push 0
push 0x9ce2
lea edi, [eax + 0x10]
mov dword [ebp - 4], edi
call fcn.1005bc30
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100f8f42
push 6
push 0x9cf
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100f8f42
push 0x9ce2
push eax
push dword [ebp - 0x10]
call fcn.10003980
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100f8f42
movzx ecx, word [eax]
add eax, 2
push 0
push 0
push 0
push 0
push ecx
push eax
push 0
push 3
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [edi - 8]
mov edx, 1
sub edx, dword [edi - 4]
sub ecx, eax
or edx, ecx
mov dword [ebp - 8], eax
jge 0x100f8f1e
push eax
lea ecx, [ebp - 4]
call fcn.1005ce30
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
push 0
push 0
push eax
mov eax, dword [ebp - 0x10]
push edi
movzx eax, word [eax]
push eax
push dword [ebp - 0x14]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 8]
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
mov dword [ebp - 0xc], 0
mov eax, dword [edi - 0xc]
mov dword [ebp - 8], eax
call fcn.10003180
mov eax, dword [eax + 0x154]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100f8f68
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xa
call fcn.10003680
add esp, 4
push 0
test eax, eax
je 0x100f8f85
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 8]
push edi
push ebx
call eax
jmp 0x100f8f94
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100f8fa2
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.10003180
mov eax, dword [eax + 0x154]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100f8fbb
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x14
call fcn.10003680
add esp, 4
push ebx
test eax, eax
je 0x100f8fce
call eax
jmp 0x100f8fd4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test eax, eax
je 0x100f8fe4
push eax
call ebx
call fcn.10003180
mov eax, dword [eax + 0x154]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100f8ffd
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x2c
call fcn.10003680
add esp, 4
push 4
push 0
push esi
test eax, eax
je 0x100f9014
call eax
jmp 0x100f901a
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100f9024
push eax
call ebx
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100f903c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100f9054
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret