Function at 0x40ade0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Move file
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x48b7f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8cc
push ebx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x6ce]
mov word [esp + 0x6cc], bx
mov word [esp + 0x6c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x6e]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x70]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x6c]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
cmp eax, ebx
je 0x40b1f0
push ebp
push esi
mov esi, eax
mov word [eax + 2], bx
lea edx, [esp + 0x74]
lea eax, [esp + 0x74]
sub esi, edx
push eax
push str._sdep360.ini
lea ecx, [esp + 0x6dc]
sar esi, 1
push 0x208
push ecx
inc esi
call fcn.0040b210
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 0x104
add esp, 0x10
sub eax, esi
lea esi, [esp + esi*2 + 0x74]
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
mov edx, dword [esp + 0x18]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x36]
mov word [esp + 0x34], bx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4b0b90
lea eax, [esp + 0x3c]
push 0x40
push eax
call fcn.0040b210
mov edi, dword [esp + 0x2c]
add esp, 0x10
lea ecx, [esp + 0x6d4]
lea edx, [esp + 0x34]
push ecx
push edi
push esi
push 0x4b99c0
push edx
push str.Clean
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40b19e
push 0x4b0b7c
push esi
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x40b19e
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40b0f6
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_2
mov edx, dword [esp + 0x14]
mov dword [esp + 0x8e4], ebx
cmp dword [edx - 8], 3
jle 0x40b0dd
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.00436032
mov ecx, dword [esp + 0x10]
push 0x5c
mov byte [esp + 0x8e8], 1
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::ReverseFind
dec esi
cmp eax, esi
jne 0x40af80
push 0x4b0b74
jmp 0x40af85
push 0x4b00b4
lea ecx, [esp + 0x14]
call fcn.0043606e
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x484]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
setne al
cmp eax, ebx
je 0x40b0b7
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea ecx, [esp + 0x4b0]
push 0x4b0b70
push ecx
call edi
add esp, 8
test eax, eax
je 0x40b0a0
lea edx, [esp + 0x4b0]
push 0x4b0b7c
push edx
call edi
add esp, 8
test eax, eax
je 0x40b0a0
mov al, byte [esp + 0x484]
push 0x4b00b0
test al, 0x10
je 0x40b057
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
push ecx
call sub.MFC42u.DLL_operator_2
lea edx, [esp + 0x4b0]
mov byte [esp + 0x8e4], 2
push edx
push eax
lea eax, [esp + 0x34]
push eax
call sub.MFC42u.DLL_operator_2
push eax
mov byte [esp + 0x8e8], 3
call fcn.0040b280
add esp, 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8e4], 2
call sub.MFC42u.DLL_CString::CString
mov byte [esp + 0x8e4], 1
lea ecx, [esp + 0x24]
jmp 0x40b09b
lea ecx, [esp + 0x18]
lea edx, [esp + 0x34]
push ecx
push edx
call sub.MFC42u.DLL_operator_2
lea ecx, [esp + 0x4b0]
lea edx, [esp + 0x28]
push ecx
push eax
push edx
mov byte [esp + 0x8f0], 4
call sub.MFC42u.DLL_operator_2
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::CString
mov byte [esp + 0x8e4], 1
lea ecx, [esp + 0x30]
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x484]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x40afb3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x10]
mov byte [esp + 0x8e4], bl
call sub.MFC42u.DLL_CString::CString
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x14]
mov dword [esp + 0x8e4], 0xffffffff
call sub.MFC42u.DLL_CString::CString
jmp 0x40b186
lea edx, [esp + 0x74]
push edx
call ebp
test eax, eax
jne 0x40b186
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b186
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x27e]
mov word [esp + 0x27c], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x74]
push 0x104
lea edx, [esp + 0x280]
push ecx
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
push 4
lea eax, [esp + 0x28c]
push 0x4b0708
push eax
call dword [sym.imp.MSVCRT.dll_wcsncat]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0x18
lea ecx, [esp + 0x27c]
lea edx, [esp + 0x74]
push 1
push ecx
push edx
call edi
test eax, eax
je 0x40b186
push 4
lea eax, [esp + 0x280]
push ebx
push eax
call edi
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0x3e8
mov dword [esp + 0x18], eax
jl 0x40aea7
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x6d4]
push ecx
call ebp
cmp edi, 0x7fffffff
ja 0x40b1e1
cmp edi, ebx
mov edx, edi
mov eax, esi
je 0x40b1e1
mov ecx, dword [esp + 0x20]
mov esi, 0x4b0b68
sub esi, ecx
mov cx, word [esi + eax]
cmp cx, bx
je 0x40b1d7
mov word [eax], cx
add eax, 2
dec edx
jne 0x40b1c3
jmp 0x40b1db
cmp edx, ebx
jne 0x40b1de
sub eax, 2
mov word [eax], bx
lea edx, [esp + 0x74]
push edx
call fcn.004074b0
add esp, 4
pop esi
pop ebp
mov ecx, dword [esp + 0x8d4]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x8d8
ret