Function at 0x4037e0
Capabilities:
Get common file path
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x405975
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x128], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x128], 2
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x1c]
mov bl, 3
push 0x104
push eax
mov byte [esp + 0x130], bl
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push 0x4080b0
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
push 0x5c
call sub.MFC42.DLL_CString::Find
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], bl
call fcn.00404e56
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::MakeUpper
lea ecx, [esp + 0x130]
call sub.MFC42.DLL_CString::MakeUpper
mov ecx, dword [esp + 0x130]
push 0x5c
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x134]
call sub.MFC42.DLL_CString::ReverseFind
sub esi, eax
lea edx, [esp + 0x10]
dec esi
lea ecx, [esp + 0x130]
push esi
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], bl
call fcn.00404e56
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov eax, dword [eax - 8]
add eax, 0xfffffffc
push eax
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], bl
call fcn.00404e56
lea edx, [esp + 0x10]
push 2
push edx
lea ecx, [esp + 0x138]
call sub.MFC42.DLL_CString::Left
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push ecx
push eax
call esi
add esp, 8
test eax, eax
je 0x4039b5
mov edx, dword [esp + 0xc]
push str.RECYCLER
push edx
call esi
add esp, 8
test eax, eax
sete al
test al, al
jne 0x4039b5
mov eax, dword [esp + 0xc]
push str.SYSTEM_VOLUME_INFORMATION
push eax
call esi
add esp, 8
test eax, eax
sete al
test al, al
jne 0x4039b5
mov ecx, dword [esp + 0xc]
push str.RECYCLED
push ecx
call esi
add esp, 8
mov byte [esp + 0xb], 0
test eax, eax
sete al
test al, al
je 0x4039ba
mov byte [esp + 0xb], 1
lea ecx, [esp + 0x10]
call fcn.00404e56
mov al, byte [esp + 0xb]
test al, al
je 0x403a1c
lea ecx, [esp + 0xc]
mov byte [esp + 0x128], 2
call fcn.00404e56
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 1
call fcn.00404e56
lea ecx, [esp + 0x18]
mov byte [esp + 0x128], 0
call fcn.00404e56
lea ecx, [esp + 0x130]
mov dword [esp + 0x128], 0xffffffff
call fcn.00404e56
xor eax, eax
jmp 0x403ac2
mov edx, dword [esp + 0x130]
lea ecx, [esp + 0x130]
mov eax, dword [edx - 8]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x134]
mov byte [esp + 0x12c], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], bl
call fcn.00404e56
mov ecx, dword [esp + 0x130]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x128], 2
call fcn.00404e56
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 1
call fcn.00404e56
lea ecx, [esp + 0x18]
mov byte [esp + 0x128], 0
call fcn.00404e56
lea ecx, [esp + 0x130]
mov dword [esp + 0x128], 0xffffffff
call fcn.00404e56
mov eax, 1
mov ecx, dword [esp + 0x120]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 4