Function at 0x415da0
Capabilities:
Check if file exists
Copy file
Create directory
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x698
mov eax, dword [0x4ea080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push ebx
mov dword [ebp - 0x698], ecx
mov dword [ebp - 0x690], ebx
mov dword [ebp - 0x694], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4160cc
push 0x206
xor edi, edi
lea ecx, [ebp - 0x20a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x20c], ax
call fcn.0048f070
push esi
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0048f4e8
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x24
mov dword [ebp - 0x688], edi
call fcn.0048eae1
add esp, 4
lea ecx, [ebp - 0x68c]
cmp eax, edi
je 0x41609f
mov dword [eax], eax
mov dword [ebp - 0x68c], eax
mov dword [eax + 4], eax
call fcn.00411760
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp - 0x688]
test eax, eax
jne 0x415f36
jmp 0x415e70
xor edx, edx
lea eax, [ebp - 0x20c]
mov word [ebp - 0x430], dx
mov dword [ebp - 0x41c], 7
mov dword [ebp - 0x420], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415e96
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x430]
call fcn.004110e0
mov ecx, dword [ebp - 0x68c]
mov esi, dword [ecx]
mov eax, dword [esi + 4]
lea edx, [ebp - 0x430]
push edx
push eax
push esi
lea ecx, [ebp - 0x68c]
call fcn.004117c0
mov ecx, 0x9249248
sub ecx, edi
cmp ecx, 1
jb 0x41608f
mov dword [esi + 4], eax
mov edx, dword [eax + 4]
mov dword [edx], eax
lea eax, [ebp - 0x20c]
push eax
inc edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp - 0x41c], 8
jb 0x415f15
mov ecx, dword [ebp - 0x430]
push ecx
call fcn.0048e224
add esp, 4
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415e70
mov esi, dword [ebp - 0x694]
mov dword [ebp - 0x688], edi
test edi, edi
je 0x41600c
mov edi, edi
mov ebx, dword [ebp - 0x68c]
mov eax, dword [ebx]
xor ecx, ecx
push 0xffffffffffffffff
push ecx
add eax, 8
mov word [ebp - 0x430], cx
push eax
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x41c], 7
mov dword [ebp - 0x420], 0
call fcn.00410fe0
cmp dword [ebp - 0x41c], 8
mov eax, dword [ebp - 0x430]
jae 0x415f8c
lea eax, [ebp - 0x430]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [ebx]
cmp esi, ebx
je 0x415fda
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [edx], eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [ecx + 4], edx
cmp dword [esi + 0x1c], 8
jb 0x415fbc
mov eax, dword [esi + 8]
push eax
call fcn.0048e224
add esp, 4
xor ecx, ecx
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
push esi
mov word [esi + 8], cx
call fcn.0048e224
add esp, 4
dec edi
cmp dword [ebp - 0x41c], 8
jb 0x415ff2
mov edx, dword [ebp - 0x430]
push edx
call fcn.0048e224
add esp, 4
test edi, edi
jne 0x415f40
mov esi, dword [ebp - 0x694]
mov ebx, dword [ebp - 0x690]
mov dword [ebp - 0x688], edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x416020
push esi
call edi
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
call edi
mov ax, word [esi]
mov word [ebp - 0x20c], ax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x416062
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x68c]
call fcn.00411760
mov ecx, dword [ebp - 0x68c]
push ecx
call fcn.0048e224
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret 8
push str.list_T__too_long
mov dword [ebp - 0x688], edi
call fcn.00425a9a
mov dword [ebp - 0x690], edi
lea edx, [ebp - 0x690]
push edx
call fcn.0048e2c2
push 0x4cdfd8
lea eax, [ebp - 0x68c]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.0048eb61
test al, 0x10
je 0x4162bd
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4160fb
push esi
push 0x4b1ff8
push str.SMSetup
call fcn.0041a1c0
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov word [ebp - 0x414], cx
call fcn.0048f070
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0048f070
push ebx
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0048f4e8
push 0x4b1930
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0048f473
push 0x4b1aac
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0048f473
add esp, 0x3c
lea ecx, [ebp - 0x680]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41607c
lea esp, [esp]
cmp word [ebp - 0x654], 0x2e
je 0x416273
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0048f4e8
push 0x4b1930
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0048f473
lea edx, [ebp - 0x654]
push edx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0048f473
push esi
lea ecx, [ebp - 0x414]
push 0x104
push ecx
call fcn.0048f4e8
push 0x4b1930
lea edx, [ebp - 0x414]
push 0x104
push edx
call fcn.0048f473
lea eax, [ebp - 0x654]
push eax
lea ecx, [ebp - 0x414]
push 0x104
push ecx
call fcn.0048f473
add esp, 0x48
test byte [ebp - 0x680], 0x10
je 0x416245
mov ecx, dword [ebp - 0x698]
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.00415da0
jmp 0x416273
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x680]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416190
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push 0x4b1fe8
push str.SMSetup
call fcn.0041a1c0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ef91
mov esp, ebp
pop ebp
ret 8
push 0x206
xor edi, edi
lea ecx, [ebp - 0x20a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x20c], ax
call fcn.0048f070
push esi
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0048f4e8
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x24
mov dword [ebp - 0x688], edi
call fcn.0048eae1
add esp, 4
lea ecx, [ebp - 0x68c]
cmp eax, edi
je 0x416517
mov dword [eax], eax
mov dword [ebp - 0x68c], eax
mov dword [eax + 4], eax
call fcn.00411760
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [ebp - 0x68c]
mov edi, dword [ebp - 0x688]
test eax, eax
jne 0x416410
jmp 0x416350
xor edx, edx
lea eax, [ebp - 0x20c]
mov word [ebp - 0x430], dx
mov dword [ebp - 0x41c], 7
mov dword [ebp - 0x420], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416376
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x430]
call fcn.004110e0
mov esi, dword [ebx]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x430]
push ecx
push edx
push esi
lea ecx, [ebp - 0x68c]
call fcn.004117c0
mov ecx, 0x9249248
sub ecx, edi
cmp ecx, 1
jb 0x41608f
mov dword [esi + 4], eax
mov edx, dword [eax + 4]
mov dword [edx], eax
lea eax, [ebp - 0x20c]
push eax
inc edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp - 0x41c], 8
jb 0x4163ef
mov ecx, dword [ebp - 0x430]
push ecx
call fcn.0048e224
add esp, 4
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416350
mov esi, dword [ebp - 0x694]
mov dword [ebp - 0x688], edi
test edi, edi
je 0x4164d8
mov eax, dword [ebx]
xor ecx, ecx
push 0xffffffffffffffff
push ecx
add eax, 8
mov word [ebp - 0x430], cx
push eax
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x41c], 7
mov dword [ebp - 0x420], 0
call fcn.00410fe0
cmp dword [ebp - 0x41c], 8
mov eax, dword [ebp - 0x430]
jae 0x41645e
lea eax, [ebp - 0x430]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [ebx]
cmp esi, ebx
je 0x4164ac
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [edx], eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [ecx + 4], edx
cmp dword [esi + 0x1c], 8
jb 0x41648e
mov eax, dword [esi + 8]
push eax
call fcn.0048e224
add esp, 4
xor ecx, ecx
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
push esi
mov word [esi + 8], cx
call fcn.0048e224
add esp, 4
dec edi
cmp dword [ebp - 0x41c], 8
jb 0x4164c4
mov edx, dword [ebp - 0x430]
push edx
call fcn.0048e224
add esp, 4
test edi, edi
jne 0x416418
mov esi, dword [ebp - 0x694]
mov dword [ebp - 0x688], edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4164ec
push esi
call edi
push esi
mov esi, dword [ebp - 0x690]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push esi
call edi
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0048f4e8
add esp, 0xc
jmp 0x416037
mov dword [ebp - 0x698], edi
lea edx, [ebp - 0x698]
jmp 0x4160ab