Function at 0x6650f5
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x69e42f
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x79b544]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
and dword [ebp - 4], 0
cmp byte [ebp + 0x264], 0
mov bl, 1
mov byte [ebp - 0x11], bl
mov byte [ebp - 4], 2
je 0x665170
push dword [ecx + 0x14]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
push eax
push esi
push str.RunAsSvcHandler::CopyFilesRecursivelyStoD
push str._s_::_ImpersonateLoggedOnUser___Res:_d___Err:_d
call fcn.00677869
add esp, 0x10
jmp 0x665176
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0x260]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x6651b7
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
push dword [ebp + 0x260]
call esi
test eax, eax
jne 0x6651a2
push eax
push dword [ebp + 0x260]
call esi
call edi
push eax
push str.RunAsSvcHandler::CopyFilesRecursivelyStoD
push str._s_::_Programdata_folder_not_found._So_creating_it___Res:_d
call fcn.00677869
add esp, 0xc
call fcn.00474f38
push eax
lea ecx, [ebp - 0x20]
call fcn.00451c1b
push 0x250
lea eax, [ebp]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.00506c70
push 0x7538c8
push dword [ebp + 0x25c]
lea eax, [ebp - 0x20]
push 0x751814
push eax
call fcn.00452465
add esp, 0x1c
lea eax, [ebp]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
push 4
mov dword [ebp - 0x24], esi
pop edi
cmp esi, 0xffffffff
je 0x66542c
mov ecx, 0x7538cc
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x66523f
test dx, dx
je 0x66523b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x66523f
add eax, edi
add ecx, edi
test dx, dx
jne 0x66521b
xor eax, eax
jmp 0x665244
sbb eax, eax
or eax, 1
test eax, eax
je 0x665419
mov ecx, 0x7538d0
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x665278
test dx, dx
je 0x665274
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x665278
add eax, edi
add ecx, edi
test dx, dx
jne 0x665254
xor eax, eax
jmp 0x66527d
sbb eax, eax
or eax, 1
test eax, eax
je 0x665419
mov ecx, str.Fallback
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x6652b1
test dx, dx
je 0x6652ad
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x6652b1
add eax, edi
add ecx, edi
test dx, dx
jne 0x66528d
xor eax, eax
jmp 0x6652b6
sbb eax, eax
or eax, 1
test eax, eax
je 0x665419
mov ecx, str.logs
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x6652ea
test dx, dx
je 0x6652e6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x6652ea
add eax, edi
add ecx, edi
test dx, dx
jne 0x6652c6
xor eax, eax
jmp 0x6652ef
sbb eax, eax
or eax, 1
test eax, eax
je 0x665419
mov ecx, 0x7538f8
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x665323
test dx, dx
je 0x66531f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x665323
add eax, edi
add ecx, edi
test dx, dx
jne 0x6652ff
xor eax, eax
jmp 0x665328
sbb eax, eax
or eax, 1
test eax, eax
je 0x665419
call fcn.00474f38
push eax
lea ecx, [ebp - 0x1c]
call fcn.00451c1b
mov byte [ebp - 4], 4
call fcn.00474f38
push eax
lea ecx, [ebp - 0x18]
call fcn.00451c1b
lea eax, [ebp + 0x2c]
mov byte [ebp - 4], 5
push eax
push dword [ebp + 0x260]
mov esi, 0x751814
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00452465
add esp, 0x10
lea eax, [ebp + 0x2c]
push eax
push dword [ebp + 0x25c]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00452465
mov esi, dword [ebp - 0x18]
add esp, 0x10
cmp dword [esi - 4], 1
jle 0x66539e
push dword [esi - 0xc]
lea ecx, [ebp - 0x18]
call fcn.00451ca4
mov esi, dword [ebp - 0x18]
push 1
xor dl, dl
mov ecx, esi
call fcn.0068a223
mov edi, dword [ebp - 0x1c]
pop ecx
test al, al
je 0x6653ff
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
cmp dword [esi - 4], 1
jle 0x6653d8
push dword [esi - 0xc]
lea ecx, [ebp - 0x18]
call fcn.00451ca4
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
movzx eax, bl
push eax
push esi
push str.RunAsSvcHandler::CopyFilesRecursivelyStoD
push str._s_::_file_name:__s___res:_d__err:_d
call fcn.00677869
add esp, 0x14
and byte [ebp - 0x11], bl
mov bl, byte [ebp - 0x11]
mov byte [ebp - 0x11], bl
lea ecx, [esi - 0x10]
call fcn.0044ec01
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 3
call fcn.0044ec01
mov esi, dword [ebp - 0x24]
push 4
pop edi
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x66520a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x264], 0
je 0x665442
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
movzx eax, bl
push eax
push dword [ebp + 0x260]
push dword [ebp + 0x25c]
push str.RunAsSvcHandler::CopyFilesRecursivelyStoD
push str._s___src__s___dest__s___::_Result___d__error___d
call fcn.00677869
mov ecx, dword [ebp - 0x20]
add esp, 0x18
lea ecx, [ecx - 0x10]
call fcn.0044ec01
jmp 0x665492
mov ecx, dword [ebp + 0x25c]
add ecx, 0xfffffff0
call fcn.0044ec01
mov ecx, dword [ebp + 0x260]
add ecx, 0xfffffff0
call fcn.0044ec01
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.0049b511
add ebp, 0x254
leave
ret 0xc