Function at 0x412f4c
Capabilities:
Get common file path
Get disk information
Get disk size
Get file system object information

Disassembly:
push 0x2e4
mov eax, 0x41a185
call fcn.004180c5
mov eax, dword [0x433dfc]
mov dword [ebp - 0x2e0], eax
add eax, 4
mov dword [ebp - 0x2d8], eax
call fcn.004121c1
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ebx, ebx
push ebx
push ebx
call esi
mov edi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new__
pop ecx
lea ecx, [ebp - 0x2e8]
mov dword [ebp - 0x2d4], eax
call dword [0x424328]
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 4], ebx
call dword [0x424328]
lea ecx, [ebp - 0x2d0]
call dword [0x424328]
push dword [ebp - 0x2d4]
mov byte [ebp - 4], 2
push edi
call esi
dec edi
cmp eax, edi
je 0x413010
push dword [ebp - 0x2d4]
call sub.mfc90u.dll_delete__
pop ecx
lea ecx, [ebp - 0x2d0]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x2cc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x2e8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
jmp 0x413264
mov eax, dword [ebp - 0x2d4]
mov esi, eax
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x41301b
mov edi, dword [ebp - 0x2e0]
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2e4], eax
mov dword [edi + 0xfc], 1
je 0x413195
push 0x2b0
lea eax, [ebp - 0x2c4]
push ebx
push eax
mov dword [ebp - 0x2c8], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x200
push 0x2b4
lea eax, [ebp - 0x2c8]
push eax
push ebx
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x413166
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x41309b
cmp eax, 2
je 0x41309b
cmp eax, 4
jne 0x413166
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x2d0]
call dword [0x424340]
push ebx
push 0x42ab8c
lea ecx, [ebp - 0x2d0]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
cmp eax, 0xffffffff
je 0x4130e0
mov ecx, dword [ebp - 0x2d0]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
inc ecx
push ecx
dec eax
push eax
lea ecx, [ebp - 0x2d0]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Delete]
push dword [ebp - 0x2d0]
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x2cc]
push 0x42ab90
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x10
xor eax, eax
push ebx
mov dword [ebp - 0x2f0], ebx
lea edi, [ebp - 0x2ec]
stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x2f0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x413166
push 8
call sub.mfc90u.dll_new
mov edi, eax
pop ecx
cmp edi, ebx
je 0x41313f
mov ecx, edi
call dword [0x424328]
mov dword [edi + 4], ebx
mov ecx, edi
jmp 0x413141
xor ecx, ecx
lea eax, [ebp - 0x2cc]
push eax
mov dword [ebp - 0x2dc], ecx
call dword [0x424334]
lea eax, [ebp - 0x2dc]
push eax
mov eax, dword [ebp - 0x2d8]
call fcn.004163dd
mov eax, dword [ebp - 0x2e4]
lea esi, [esi + eax*2 + 2]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x413175
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2e4], eax
jne 0x413045
mov edi, dword [ebp - 0x2e0]
push dword [ebp - 0x2d4]
call sub.mfc90u.dll_delete__
pop ecx
lea ecx, [ebp - 0x2cc]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
mov eax, 0x104
push eax
push eax
lea ecx, [ebp - 0x2cc]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x41323a
push 0xffffffffffffffff
lea ecx, [ebp - 0x2cc]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea eax, [ebp - 0x2cc]
push eax
mov ecx, edi
call dword [0x424334]
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::MakeLower]
xor esi, esi
cmp dword [edi + 0xc], ebx
jle 0x41323a
cmp esi, ebx
jl 0x413279
mov eax, dword [ebp - 0x2d8]
cmp esi, dword [eax + 8]
jge 0x413279
mov eax, dword [eax + 4]
mov ecx, dword [eax + esi*4]
push ebx
mov dword [ebp - 0x2dc], ecx
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
push ebx
lea ecx, [ebp - 0x2cc]
mov di, ax
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
cmp di, ax
je 0x41326a
mov eax, dword [ebp - 0x2e0]
inc esi
cmp esi, dword [eax + 0xc]
jl 0x4131f7
lea ecx, [ebp - 0x2d0]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x2cc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x2e8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [ebp - 0x2d8]
call fcn.0041810f
ret
mov eax, dword [ebp - 0x2dc]
mov dword [eax + 4], 1
jmp 0x41323a
call fcn.004174a2
int3