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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e0940
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x1010f16c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, cl
push 0x1b
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x58]
push str.System32driversetchosts
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.10005a10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.100723d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.1002a8a0
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.10005b50
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.10005b50
push ecx
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.10069230
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [0x1010fc9c]
test bl, bl
je 0x10068e9f
cmp eax, 0xffffffff
je 0x10068e14
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10068e71
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x10068e71
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Bakhost_MoveFile_False_erro:_d
push str.clear_host
push 0x327
push str.d:projectwireguard_engine_stdafx.cpp
push 8
call fcn.10070dc0
add esp, 0x18
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 2
push 0
push 1
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1010fc9c], eax
jmp 0x10068f55
cmp eax, 0xffffffff
je 0x10068f55
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [0x1010fc9c], 0xffffffff
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10068f55
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10068f0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Rhost_DeleteFile_False_erro:_d
push str.clear_host
push 0x336
push str.d:projectwireguard_engine_stdafx.cpp
push 8
call fcn.10070dc0
add esp, 0x18
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x10068f55
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Rhost_MoveFile_False_erro:_d
push str.clear_host
push 0x339
push str.d:projectwireguard_engine_stdafx.cpp
push 8
call fcn.10070dc0
add esp, 0x18
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.10005b50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005b50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100908e7
mov esp, ebp
pop ebp
ret