Function at 0x40c7f8
Capabilities:
Check if file exists
Create directory
Delete directory
Enumerate files on windows
Get disk information
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov ecx, edi
mov dword [ebp - 0x14], ebx
call fcn.004014ac
mov eax, dword [edi + 0x22c]
add eax, 0x870
push eax
call fcn.0041b783
call fcn.0043c5cd
push eax
lea ecx, [ebp - 0x1c]
call fcn.0043ac50
mov esi, dword [ebp + 0xc]
test byte [esi + 0x28], 1
je 0x40c8b0
mov eax, dword [edi + 0x22c]
lea ecx, [ebp - 0x5c]
add eax, 0x870
push eax
call fcn.00403de2
push ecx
push dword [ebx + 4]
lea ecx, [ebp - 0x5c]
call fcn.004309cb
cmp eax, 1
je 0x40c883
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.0043c924
cmp dword [ebp - 0x48], 0
je 0x40c879
push dword [ebp - 0x48]
call fcn.004824c6
mov ebx, 0x800704c7
jmp 0x40cf32
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0043b599
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.0043c924
cmp dword [ebp - 0x48], 0
je 0x40c8b6
push dword [ebp - 0x48]
call fcn.004824c6
jmp 0x40c8b6
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0x2c]
sub ecx, 0x10
call fcn.0043baa0
add eax, 0x10
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [eax - 0xc]
dec eax
push eax
call fcn.0043a8ec
push 0x5c
pop ecx
cmp ax, cx
je 0x40c8e5
push ecx
lea ecx, [ebp - 0xc]
call fcn.0043b93f
call fcn.0043c5cd
push eax
lea ecx, [ebp - 4]
call fcn.0043ac50
test byte [esi + 0x28], 2
je 0x40ca5d
push str.ck_W_h
call sym.Dismx86.exe_DismMultiLanguage
push eax
mov ecx, edi
call fcn.0047de44
mov ecx, dword [edi + 0x22c]
mov esi, 0x870
add ecx, esi
call fcn.0044bc8f
push eax
mov eax, dword [edi + 0x22c]
add eax, esi
push eax
push dword [0x4ab30c]
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x40c966
push 0x10
push 0x486308
call sym.Dismx86.exe_DismMultiLanguage
push eax
push 0x490454
call sym.Dismx86.exe_DismMultiLanguage
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, 0x80004005
jmp 0x40cf1c
mov eax, dword [edi + 0x22c]
lea ecx, [ebp + 8]
add eax, esi
push eax
call fcn.0043b487
push 0x5c
lea ecx, [ebp + 8]
call fcn.0043b93f
mov esi, dword [ebp + 8]
xor eax, eax
push eax
push eax
push eax
push eax
push eax
mov word [ebp - 0x270], ax
lea eax, [ebp - 0x270]
push 0x105
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [edi + 0x22c]
push ecx
mov ecx, esp
add eax, 0x870
push eax
push str.Format.com__s__FS:NTFS__Q__X__Y
push ecx
call fcn.00449eea
add esp, 0xc
xor dl, dl
xor ecx, ecx
call fcn.0044a960
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40ca38
mov eax, dword [edi + 0x22c]
push ebx
add eax, 0x870
push eax
push 0x4904d0
call sym.Dismx86.exe_DismMultiLanguage
push eax
lea eax, [ebp + 8]
push eax
call fcn.00449eea
add esp, 0x10
mov edi, eax
push 0x10
push 0x486308
call sym.Dismx86.exe_DismMultiLanguage
push eax
mov eax, dword [ebp - 0x14]
push dword [edi]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
test ebx, ebx
jle 0x40ca2b
movzx ebx, bx
or ebx, 0x80070000
lea ecx, [esi - 0x10]
call fcn.0043c924
jmp 0x40cf1c
cmp word [ebp - 0x270], 0
je 0x40ca50
lea eax, [ebp - 0x270]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
lea ecx, [esi - 0x10]
call fcn.0043c924
jmp 0x40ccdf
push str.Windows
lea edx, [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.0043ab55
pop ecx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 8]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0043c924
test esi, esi
je 0x40ccdf
push str.Windows.old_
lea edx, [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.0043ab55
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.0043b599
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
xor edi, edi
lea eax, [ebp - 8]
inc edi
push edi
push str.Windows.old._.3d_
push eax
call fcn.00449eea
add esp, 0xc
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.00431007
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.0043b599
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40cb49
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40cc01
inc edi
lea eax, [ebp - 8]
push edi
push str.Windows.old._.3d_
push eax
call fcn.00449eea
add esp, 0xc
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.00431007
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.0043b599
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov esi, dword [ebp - 4]
push 0
push esi
call ebx
test eax, eax
je 0x40caf9
push 0x2a
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00430f7e
pop ecx
lea ecx, [ebp - 0x2b0]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x10]
mov edi, eax
mov dword [ebp - 8], edi
lea ecx, [ecx - 0x10]
call fcn.0043c924
cmp edi, 0xffffffff
je 0x40ccc2
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test byte [ebp - 0x2b0], 0x10
je 0x40cc0b
lea ecx, [ebp - 0x284]
call fcn.0044bd7f
test al, al
jne 0x40ccac
push str._RECYCLE.BIN
mov eax, ecx
push eax
call ebx
test eax, eax
je 0x40ccac
push str.System_Volume_Information
lea eax, [ebp - 0x284]
push eax
call ebx
test eax, eax
je 0x40ccac
push str.Boot
lea eax, [ebp - 0x284]
push eax
call ebx
test eax, eax
je 0x40ccac
push 0xb
push str.Windows.old
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
jmp 0x40cc53
mov ebx, 0x80070005
jmp 0x40cf1f
push str.bootmgr
lea eax, [ebp - 0x284]
push eax
call ebx
test eax, eax
je 0x40ccac
push str.pagefile.sys
lea eax, [ebp - 0x284]
push eax
call ebx
test eax, eax
je 0x40ccac
push str.swapfile.sys
lea eax, [ebp - 0x284]
push eax
call ebx
test eax, eax
je 0x40ccac
push str.hiberfil.sys
lea eax, [ebp - 0x284]
push eax
call ebx
test eax, eax
je 0x40ccac
lea eax, [ebp - 0x284]
push eax
lea edx, [ebp - 4]
lea ecx, [ebp - 0x20]
call fcn.0043ab55
pop ecx
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x10]
mov ebx, dword [eax]
lea eax, [ebp - 0x284]
push eax
call fcn.0043ab55
pop ecx
push 0
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x10]
mov ebx, eax
add ecx, 0xfffffff0
call fcn.0043c924
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0043c924
test ebx, ebx
je 0x40cd20
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
lea eax, [ebp - 0x2b0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40cb91
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x40ccd4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 8]
call fcn.0043899f
mov edi, dword [ebp + 8]
push str.ck_W_e
call sym.Dismx86.exe_DismMultiLanguage
push eax
mov ecx, edi
call fcn.0047de44
mov esi, dword [ebp + 0xc]
push edi
push ecx
push dword [ebp - 0xc]
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 0x34]
and eax, 0xfffffffc
mov ecx, dword [esi + 0x24]
push eax
call fcn.0040c74c
cmp dword [edi + 0x238], 0
mov ebx, eax
je 0x40cd79
mov ebx, 0x800704c7
jmp 0x40cf1c
xor ecx, ecx
call fcn.0044bc68
mov ebx, eax
lea eax, [ebp - 0x284]
push eax
push 0x490624
call sym.Dismx86.exe_DismMultiLanguage
push eax
lea eax, [ebp + 8]
push eax
call fcn.00449eea
add esp, 0xc
mov edi, eax
push 0x30
push 0x486308
call sym.Dismx86.exe_DismMultiLanguage
push eax
mov eax, dword [ebp - 0x14]
push dword [edi]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
lea ecx, [ebp - 8]
call fcn.0043899f
jmp 0x40cd8e
test ebx, ebx
je 0x40ce7a
test byte [esi + 0x28], 2
mov esi, dword [ebp - 4]
jne 0x40ce43
cmp dword [esi - 0xc], 0
je 0x40ce43
push 0x2a
lea edx, [ebp - 4]
lea ecx, [ebp + 8]
call fcn.00430f7e
pop ecx
lea ecx, [ebp - 0x2b0]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp + 8]
mov edi, eax
add ecx, 0xfffffff0
mov dword [ebp + 0xc], edi
call fcn.0043c924
cmp edi, 0xffffffff
je 0x40ce43
mov esi, edi
lea eax, [ebp - 0x284]
push eax
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x18]
call fcn.0043ab55
pop ecx
lea edx, [ebp - 4]
lea ecx, [ebp - 0x20]
mov edi, dword [eax]
lea eax, [ebp - 0x284]
push eax
call fcn.0043ab55
pop ecx
push 1
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0043c924
lea eax, [ebp - 0x2b0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40cdcc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x40ce43
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, ebx
lea ecx, [ebp - 8]
call fcn.0043b4b9
push 0x10
push 0x486308
mov edi, eax
call sym.Dismx86.exe_DismMultiLanguage
push eax
mov eax, dword [ebp - 0x14]
push dword [edi]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
jmp 0x40cf1f
lea eax, [ebp - 0x24]
mov ebx, 0x870
push eax
mov eax, dword [edi + 0x22c]
add eax, ebx
push eax
call sym.Dismx86.exe_DismGetSystemInfoByPath
mov ecx, dword [edi + 0x22c]
mov eax, dword [ebp - 0x24]
push ecx
mov dword [edi + 0x22c], eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test byte [esi + 0x28], 1
je 0x40cf1a
push 0x490668
call sym.Dismx86.exe_DismMultiLanguage
push eax
mov ecx, edi
call fcn.0047de44
push dword [ebp - 0x18]
mov eax, dword [edi + 0x22c]
push dword [ebp - 0x1c]
add eax, ebx
push eax
call fcn.0040be2d
test eax, eax
je 0x40cf1a
push eax
push 0x490678
call sym.Dismx86.exe_DismMultiLanguage
push eax
lea eax, [ebp + 8]
push eax
call fcn.00449eea
add esp, 0xc
mov esi, eax
push 0x10
push 0x486080
call sym.Dismx86.exe_DismMultiLanguage
push eax
mov eax, dword [ebp - 0x14]
push dword [esi]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
xor ebx, ebx
mov esi, dword [ebp - 4]
lea ecx, [esi - 0x10]
call fcn.0043c924
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.0043c924
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0043c924
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8