Function at 0x10027550
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d8010
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x1010f16c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x174], ecx
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x164], 0
call fcn.10027340
mov dword [ebp - 4], 1
mov eax, str.nfwfp.sys
test bl, bl
lea ecx, [ebp - 0x148]
mov edi, str.nftdi.sys
cmove edi, eax
lea eax, [ebp - 0x168]
push eax
mov dword [ebp - 0x168], edi
call fcn.1002a7d0
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.100a8dc0
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x130]
mov byte [ebp - 0x168], 0
mov dword [ebp - 0x170], eax
mov byte [ebp - 4], 2
lea esi, [ebp - 0x118]
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10027620
sub ecx, edx
push ecx
push esi
push dword [ebp - 0x168]
lea ecx, [ebp - 0x130]
call fcn.1000ead0
add esp, 0xc
mov dword [ebp - 0x164], 2
mov byte [ebp - 4], 1
mov esi, 2
mov dword [ebp - 0x164], esi
and esi, 0xfffffffd
mov dword [ebp - 0x164], esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x160]
mov byte [ebp - 0x168], 0
mov dword [ebp - 0x170], eax
mov byte [ebp - 4], 4
mov ecx, eax
push 0x12
push str._system32drivers_
push dword [ebp - 0x168]
call fcn.1000ead0
or esi, 4
add esp, 0xc
mov dword [ebp - 0x164], esi
mov byte [ebp - 4], 3
and esi, 0xfffffffb
mov dword [ebp - 0x164], esi
mov byte [ebp - 4], 5
lea eax, [ebp - 0x160]
cmp dword [ebp - 0x14c], 8
lea ecx, [ebp - 0x130]
push dword [ebp - 0x150]
cmovae eax, dword [ebp - 0x160]
push eax
call fcn.10015530
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x160]
call fcn.10005b50
lea eax, [ebp - 0x168]
mov dword [ebp - 0x168], edi
push eax
lea ecx, [ebp - 0x130]
call fcn.1002a7d0
cmp dword [ebp - 0x11c], 8
lea ecx, [ebp - 0x130]
push 0
cmovae ecx, dword [ebp - 0x130]
lea eax, [ebp - 0x148]
cmp dword [ebp - 0x134], 8
push ecx
cmovae eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
lea ecx, [ebp - 0x130]
lea eax, [ebp - 0x148]
setne bl
cmp dword [ebp - 0x11c], 8
cmovae ecx, dword [ebp - 0x130]
cmp dword [ebp - 0x134], 8
push ecx
cmovae eax, dword [ebp - 0x148]
push eax
push str.copy_file__s___s
push str.copy_driver_to_sys
push 0xd8
push str.d:projectwireguard_engine_rulesproxy_api.cpp
push 4
call fcn.10070dc0
add esp, 0x1c
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0x16c]
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x16c], edi
lea eax, [ebp - 0x130]
mov ecx, edi
push eax
call fcn.1002bfd0
mov dword [ebp - 4], 0xb
lea ecx, [edi + 0x18]
lea eax, [ebp - 0x148]
mov dword [ebp - 0x170], ecx
push eax
mov dword [ebp - 0x16c], ecx
call fcn.1002bfd0
mov dword [ebp - 4], 0xf
mov byte [edi + 0x30], bl
mov dword [ebp - 4], 7
or esi, 8
mov dword [ebp - 0x164], esi
and esi, 0xfffffff7
mov dword [ebp - 0x164], esi
mov dword [ebp - 4], 3
or esi, 1
mov dword [ebp - 0x164], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x130]
call fcn.10005b50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x148]
call fcn.10005b50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100908e7
mov esp, ebp
pop ebp
ret