Function at 0x504020
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b7fc
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x640040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push 0x104
push 0x104
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
mov ebx, eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
push 0x5ef9bc
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
test ebx, ebx
jle 0x5041db
push 1
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1653]
lea ecx, [ebp - 0x14]
cmp ax, 0x3a
jne 0x5040e6
push 3
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__22]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__27]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
jmp 0x5041d5
push 0
call dword [sym.imp.mfc140u.dll_Ordinal_1653]
cmp ax, 0x5c
jne 0x5041db
push 1
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1653]
cmp ax, 0x5c
jne 0x5041db
mov esi, 2
xor edi, edi
cmp ebx, esi
jle 0x5041db
nop dword [eax]
push esi
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1653]
cmp ax, 0x5c
jne 0x504136
inc edi
cmp edi, 2
jge 0x504140
inc esi
cmp esi, ebx
jl 0x504120
jmp 0x5041db
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
cmp dword [eax - 0xc], esi
jle 0x504162
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__22]
mov byte [ebp - 4], 3
jmp 0x5040d0
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__22]
mov esi, eax
mov byte [ebp - 4], 5
mov ecx, esi
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [esi]
push 1
push 0x5dd26c
mov dword [ebp - 0x20], 1
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__27]
mov eax, 1
mov dword [ebp - 0x20], eax
and eax, 0xfffffffe
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0
push 0
push 0
push 0
push 0x641d34
push 0
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov byte [ebp - 4], 0
test eax, eax
lea ecx, [ebp - 0x18]
setne bl
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055c86d
mov esp, ebp
pop ebp
ret