Function at 0x4011e0
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get common file path
Get file attributes
Set current directory
Set registry value

Disassembly:
sub esp, 0x97c
push esi
lea eax, [esp + 0x120]
push 0x104
push eax
mov dword [esp + 0x14], 0xf750e6c3
mov word [esp + 0x18], 0x38ee
mov word [esp + 0x1a], 0x11d1
mov byte [esp + 0x1c], 0x85
mov byte [esp + 0x1d], 0xe5
mov byte [esp + 0x1e], 0
mov byte [esp + 0x1f], 0xc0
mov byte [esp + 0x20], 0x4f
mov byte [esp + 0x21], 0xc2
mov byte [esp + 0x22], 0x95
mov byte [esp + 0x23], 0xee
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
lea ecx, [esp + 0x120]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov al, byte [esp + 0x120]
test al, al
je 0x40157d
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [esp + 0x120]
push edx
call esi
test eax, eax
je 0x40157d
push 0x40e044
call esi
test eax, eax
je 0x40157d
push str.CATALOG
call esi
test eax, eax
je 0x40157d
lea eax, [esp + 0xc]
push 0
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [0x410994]
test eax, eax
je 0x40157d
mov esi, dword [0x4109b4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
test esi, esi
je 0x40147d
mov eax, dword [esi + 4]
lea edx, [esp + 0x28]
push 0
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [esp + 0x28]
push ecx
call edi
lea edx, [esp + 0x28]
push eax
push edx
call dword [sym.imp.USER32.dll_CharLowerBuffA]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401472
lea ecx, [esp + 0x578]
push 0x208
push ecx
lea edx, [esp + 0x30]
push 0xffffffffffffffff
push edx
push 0
push 0
call ebp
mov ecx, dword [esi + 4]
lea eax, [esp + 0x370]
push 0x208
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call ebp
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x370]
push 0
lea eax, [esp + 0x57c]
push edx
push eax
push ecx
call dword [0x410998]
mov ebx, eax
test ebx, ebx
je 0x401468
lea edx, [esp + 0x780]
push 0
push edx
push ebx
mov byte [esp + 0x34], 0
mov dword [esp + 0x78c], 0x20c
call dword [0x41099c]
test eax, eax
je 0x401468
push 0
push 0
lea eax, [esp + 0x30]
push 0x104
push eax
lea ecx, [esp + 0x794]
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edx, [esp + 0x12c]
push 0xf
push edx
call fcn.00401680
add esp, 8
lea eax, [esp + 0x10]
lea ecx, [esp + 0x12c]
push eax
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401402
lea edx, [esp + 0x28]
push edx
call edi
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x10]
inc eax
push eax
lea eax, [esp + 0x2c]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x12c]
push 0x10
push ecx
call fcn.00401680
add esp, 8
lea edx, [esp + 0x10]
lea eax, [esp + 0x12c]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40145a
lea ecx, [esp + 0x28]
push ecx
call edi
mov edx, dword [esi]
mov ecx, dword [esp + 0x10]
inc eax
push eax
mov eax, dword [esi + 8]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
push 0
push ebx
push eax
call dword [0x4109a0]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4012c7
mov eax, dword [0x4109ac]
test eax, eax
jne 0x40156d
lea edx, [esp + 0x12c]
push str..cat
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x230]
lea ecx, [esp + 0x12c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40156d
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 0x28]
push 0
push edx
lea eax, [esp + 0x264]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [esp + 0x28]
push ecx
call edi
lea edx, [esp + 0x28]
push eax
push edx
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [esp + 0x578]
push 0x208
push eax
lea ecx, [esp + 0x30]
push 0xffffffffffffffff
push ecx
push 0
push 0
call ebp
lea edx, [esp + 0x370]
push 0x208
push edx
lea eax, [esp + 0x264]
push 0xffffffffffffffff
push eax
push 0
push 0
call ebp
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x370]
push 0
lea edx, [esp + 0x57c]
push ecx
push edx
push eax
call dword [0x410998]
lea ecx, [esp + 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x230]
push edx
push esi
call ebx
test eax, eax
jne 0x4014c4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [0x4109a4]
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x97c
ret