Function at 0x4d5e30
Capabilities:
Get common file path
Get disk information
Get disk size
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e964b
mov eax, dword fs:[0]
push eax
sub esp, 0xac8
mov eax, dword [0x51b08c]
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
mov dword [ebp - 0xac8], ecx
call fcn.00412180
xor edi, edi
lea ebx, [eax + 0x14]
mov dword [ebp - 0xacc], ebx
cmp dword [ebx], edi
jbe 0x4d5eae
nop dword [eax + eax]
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + edi*4]
mov dword [ebp - 0xa34], esi
test esi, esi
je 0x4d5ea9
mov dword [ebp - 4], 0xffffffff
push dword [esi]
call fcn.004a51e5
push 4
push esi
call fcn.00499a96
add esp, 0xc
inc edi
cmp edi, dword [ebx]
jb 0x4d5e80
mov esi, dword [ebp - 0xac8]
mov ecx, dword [esi]
test ecx, ecx
je 0x4d5ec9
mov eax, dword [ecx + 0x6e4]
add ecx, 0x6e4
call dword [eax + 0x20]
mov ecx, dword [ebx + 0xc]
lea esi, [ebx + 0x10]
mov dword [ebx], 0
mov dword [ebx + 4], 0xf
cmp ecx, esi
je 0x4d5ef9
mov edx, dword [ebx + 0x50]
push ecx
test edx, edx
jne 0x4d5ef2
call fcn.004a51e5
add esp, 4
jmp 0x4d5ef9
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
push 0x40
push 0
push esi
mov dword [ebx + 0xc], esi
call fcn.004a35f0
push 4
call fcn.00499a63
mov esi, eax
mov dword [ebp - 0xa34], esi
mov dword [ebp - 4], 1
mov dword [esi], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x418]
push 0x208
push 0
push eax
call fcn.004a35f0
add esp, 0x1c
lea eax, [ebp - 0x418]
push eax
push 0
push 0
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4d5f5c
xor edi, edi
jmp 0x4d5f6d
lea eax, [ebp - 0x418]
push eax
call fcn.004affaa
add esp, 4
mov edi, eax
mov eax, dword [esi]
cmp edi, eax
je 0x4d5f7e
push eax
call fcn.004a51e5
add esp, 4
mov dword [esi], edi
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 0xac0], eax
lea edi, [eax + 1]
push edi
call fcn.00407320
test al, al
jne 0x4d5f99
xor eax, eax
mov byte [eax], al
mov edx, dword [ebp - 0xac0]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx]
lea eax, [eax + edx*4]
mov dword [ebp - 0xac0], eax
cmp ecx, edx
jbe 0x4d5fcf
sub ecx, edx
add eax, 4
shl ecx, 2
push ecx
push dword [ebp - 0xac0]
push eax
call fcn.004a1ce0
mov eax, dword [ebp - 0xac0]
add esp, 0xc
mov dword [ebx], edi
lea ecx, [ebp - 0xabc]
mov dword [eax], esi
call dword [sym.imp.CoreUI.dll_public:_void___thiscall_UiLib::CDuiString::constructor_void_]
mov dword [ebp - 4], 3
lea eax, [ebp - 0xabc]
push str.sidebaricon_mypc.png
push str._v_center__a__i__s___a___v__x_4_
push eax
call dword [sym.imp.CoreUI.dll_public:_int___cdecl_UiLib::CDuiString::Format_wchar_t_const__]
add esp, 8
push 0
push 1
push 1
push esi
push ecx
push 0x50000c
lea ecx, [ebp - 0xabc]
call dword [sym.imp.CoreUI.dll_public:_wchar_t_const____thiscall_UiLib::CDuiString::operator_wchar_t_const__void_const]
mov edi, dword [ebp - 0xac8]
push eax
mov ecx, dword [edi]
call fcn.004dc260
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xabc]
call dword [sym.imp.CoreUI.dll_public:_void___thiscall_UiLib::CDuiString::destructor_void_]
push 4
mov dword [edi + 4], esi
call fcn.00499a63
mov edi, eax
mov dword [ebp - 0xa34], edi
mov dword [ebp - 4], 4
mov dword [edi], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x620]
push 0x208
push 0
push eax
call fcn.004a35f0
add esp, 0x10
lea eax, [ebp - 0x620]
push eax
push 0
push 0
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4d6095
xor esi, esi
jmp 0x4d60a6
lea eax, [ebp - 0x620]
push eax
call fcn.004affaa
add esp, 4
mov esi, eax
mov eax, dword [edi]
cmp esi, eax
je 0x4d60b7
push eax
call fcn.004a51e5
add esp, 4
mov dword [edi], esi
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 0xac0], eax
lea esi, [eax + 1]
push esi
call fcn.00407320
test al, al
jne 0x4d60d2
xor eax, eax
mov byte [eax], al
mov edx, dword [ebp - 0xac0]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx]
lea eax, [eax + edx*4]
mov dword [ebp - 0xac0], eax
cmp ecx, edx
jbe 0x4d6108
sub ecx, edx
add eax, 4
shl ecx, 2
push ecx
push dword [ebp - 0xac0]
push eax
call fcn.004a1ce0
mov eax, dword [ebp - 0xac0]
add esp, 0xc
mov dword [ebx], esi
mov dword [eax], edi
mov ecx, dword [edi]
call fcn.00490e90
mov esi, dword [ebp - 0xac8]
lea ecx, [ebp - 0xabc]
test al, al
sete byte [ebp - 0xac0]
mov esi, dword [esi + 4]
call dword [sym.imp.CoreUI.dll_public:_void___thiscall_UiLib::CDuiString::constructor_void_]
mov dword [ebp - 4], 6
lea eax, [ebp - 0xabc]
push str.sidebaricon_desktop.png
push str._v_center__a__i__s___a___v__x_4_
push eax
call dword [sym.imp.CoreUI.dll_public:_int___cdecl_UiLib::CDuiString::Format_wchar_t_const__]
add esp, 8
push esi
push dword [ebp - 0xac0]
push 0
push edi
push ecx
push 0x500044
lea ecx, [ebp - 0xabc]
call dword [sym.imp.CoreUI.dll_public:_wchar_t_const____thiscall_UiLib::CDuiString::operator_wchar_t_const__void_const]
push eax
mov eax, dword [ebp - 0xac8]
mov ecx, dword [eax]
call fcn.004dc260
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xabc]
call dword [sym.imp.CoreUI.dll_public:_void___thiscall_UiLib::CDuiString::destructor_void_]
push 4
call fcn.00499a63
mov edi, eax
mov dword [ebp - 0xac4], edi
mov dword [ebp - 4], 7
mov dword [edi], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x828]
push 0x208
push 0
push eax
call fcn.004a35f0
add esp, 0x10
lea eax, [ebp - 0x828]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4d61e5
xor esi, esi
jmp 0x4d61f6
lea eax, [ebp - 0x828]
push eax
call fcn.004affaa
add esp, 4
mov esi, eax
mov eax, dword [edi]
cmp esi, eax
je 0x4d6207
push eax
call fcn.004a51e5
add esp, 4
mov dword [edi], esi
mov edi, dword [ebx]
mov ecx, ebx
lea esi, [edi + 1]
push esi
call fcn.00407320
test al, al
jne 0x4d621c
xor eax, eax
mov byte [eax], al
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx]
lea edx, [eax + edi*4]
mov dword [ebp - 0xac0], edx
cmp ecx, edi
jbe 0x4d6247
sub ecx, edi
lea eax, [edx + 4]
shl ecx, 2
push ecx
push edx
push eax
call fcn.004a1ce0
mov edx, dword [ebp - 0xac0]
add esp, 0xc
mov edi, dword [ebp - 0xac4]
mov dword [ebx], esi
mov dword [edx], edi
mov ecx, dword [edi]
call fcn.00490e90
test al, al
lea ecx, [ebp - 0xabc]
mov eax, dword [ebp - 0xac8]
sete byte [ebp - 0xac4]
mov esi, dword [eax + 4]
call dword [sym.imp.CoreUI.dll_public:_void___thiscall_UiLib::CDuiString::constructor_void_]
mov dword [ebp - 4], 9
lea eax, [ebp - 0xabc]
push str.sidebaricon_mydoc.png
push str._v_center__a__i__s___a___v__x_4_
push eax
call dword [sym.imp.CoreUI.dll_public:_int___cdecl_UiLib::CDuiString::Format_wchar_t_const__]
add esp, 8
push esi
push dword [ebp - 0xac4]
push 0
push edi
push ecx
push 0x500080
lea ecx, [ebp - 0xabc]
call dword [sym.imp.CoreUI.dll_public:_wchar_t_const____thiscall_UiLib::CDuiString::operator_wchar_t_const__void_const]
push eax
mov eax, dword [ebp - 0xac8]
mov ecx, dword [eax]
call fcn.004dc260
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xabc]
call dword [sym.imp.CoreUI.dll_public:_void___thiscall_UiLib::CDuiString::destructor_void_]
push 4
call fcn.00499a63
mov edi, eax
mov dword [ebp - 0xac0], edi
mov dword [ebp - 4], 0xa
mov dword [edi], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xa30]
push 0x208
push 0
push eax
call fcn.004a35f0
add esp, 0x10
lea eax, [ebp - 0xa30]
push eax
push 0
push 0
push 0x27
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4d632a
xor esi, esi
jmp 0x4d633b
lea eax, [ebp - 0xa30]
push eax
call fcn.004affaa
add esp, 4
mov esi, eax
mov eax, dword [edi]
cmp esi, eax
je 0x4d634c
push eax
call fcn.004a51e5
add esp, 4
mov dword [edi], esi
mov edi, dword [ebx]
mov ecx, ebx
lea esi, [edi + 1]
push esi
call fcn.00407320
test al, al
jne 0x4d6361
xor eax, eax
mov byte [eax], al
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx]
lea edx, [eax + edi*4]
mov dword [ebp - 0xac4], edx
cmp ecx, edi
jbe 0x4d638c
sub ecx, edi
lea eax, [edx + 4]
shl ecx, 2
push ecx
push edx
push eax
call fcn.004a1ce0
mov edx, dword [ebp - 0xac4]
add esp, 0xc
mov edi, dword [ebp - 0xac0]
mov dword [ebx], esi
mov dword [edx], edi
mov ecx, dword [edi]
call fcn.00490e90
mov ebx, dword [ebp - 0xac8]
lea ecx, [ebp - 0xabc]
test al, al
sete byte [ebp - 0xac4]
mov esi, dword [ebx + 4]
call dword [sym.imp.CoreUI.dll_public:_void___thiscall_UiLib::CDuiString::constructor_void_]
mov dword [ebp - 4], 0xc
lea eax, [ebp - 0xabc]
push str.sidebaricon_mypic.png
push str._v_center__a__i__s___a___v__x_4_
push eax
call dword [sym.imp.CoreUI.dll_public:_int___cdecl_UiLib::CDuiString::Format_wchar_t_const__]
add esp, 8
push esi
push dword [ebp - 0xac4]
push 0
push edi
push ecx
push 0x5000bc
lea ecx, [ebp - 0xabc]
call dword [sym.imp.CoreUI.dll_public:_wchar_t_const____thiscall_UiLib::CDuiString::operator_wchar_t_const__void_const]
mov ecx, dword [ebx]
push eax
call fcn.004dc260
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xabc]
call dword [sym.imp.CoreUI.dll_public:_void___thiscall_UiLib::CDuiString::destructor_void_]
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov esi, eax
push 2
push esi
call fcn.004acf95
mov ebx, eax
add esp, 8
mov dword [ebp - 0xa34], ebx
mov dword [ebp - 4], 0xd
push ebx
push esi
call edi
cmp word [ebx], 0
mov esi, ebx
je 0x4d6679
nop dword [eax + eax]
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x4d647e
cmp word [esi], ax
je 0x4d6666
nop word [eax + eax]
add esi, 2
cmp word [esi], 0
jne 0x4d6470
jmp 0x4d6666
push 0
push 0
push 0
push 0
push 0
push 0x200
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
xor eax, eax
cmp ax, word [ebp - 0x210]
jne 0x4d64c3
movq xmm0, qword [str._g0W]
mov ax, word [0x500110]
movq qword [ebp - 0x210], xmm0
mov word [ebp - 0x208], ax
push 4
call fcn.00499a63
mov ebx, eax
add esp, 4
mov dword [ebp - 0xad0], ebx
mov byte [ebp - 4], 0xe
mov dword [ebx], 0
mov byte [ebp - 4], 0xd
test esi, esi
je 0x4d64f4
push esi
call fcn.004affaa
add esp, 4
mov edi, eax
jmp 0x4d64f6
xor edi, edi
mov eax, dword [ebx]
cmp edi, eax
je 0x4d6507
push eax
call fcn.004a51e5
add esp, 4
mov dword [ebx], edi
mov edi, dword [ebx]
mov ebx, edi
movzx eax, word [edi]
test ax, ax
je 0x4d6545
movzx eax, ax
lea edi, [edi + 2]
push eax
push 0x4fe070
mov dword [ebp - 0xac4], eax
call fcn.004a45cd
add esp, 8
test eax, eax
jne 0x4d653d
mov eax, dword [ebp - 0xac4]
mov word [ebx], ax
add ebx, 2
movzx eax, word [edi]
test ax, ax
jne 0x4d6513
xor eax, eax
mov word [ebx], ax
mov ebx, dword [ebp - 0xacc]
mov ecx, ebx
mov edi, dword [ebx]
lea eax, [edi + 1]
push eax
mov dword [ebp - 0xac0], eax
call fcn.00407320
test al, al
jne 0x4d656b
xor eax, eax
mov byte [eax], al
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx]
lea edx, [eax + edi*4]
mov dword [ebp - 0xac4], edx
cmp ecx, edi
jbe 0x4d6596
sub ecx, edi
lea eax, [edx + 4]
shl ecx, 2
push ecx
push edx
push eax
call fcn.004a1ce0
mov edx, dword [ebp - 0xac4]
add esp, 0xc
mov eax, dword [ebp - 0xac0]
mov dword [ebx], eax
lea eax, [ebp - 0x210]
mov ebx, dword [ebp - 0xad0]
mov dword [edx], ebx
push dword [ebx]
push eax
push str._s___s_
call fcn.0048f120
add esp, 0xc
mov dword [ebp - 0xa38], eax
mov byte [ebp - 4], 0x10
mov ecx, dword [ebx]
call fcn.00490e90
test al, al
lea ecx, [ebp - 0xabc]
mov eax, dword [ebp - 0xac8]
sete byte [ebp - 0xad4]
mov edi, dword [eax + 4]
call dword [sym.imp.CoreUI.dll_public:_void___thiscall_UiLib::CDuiString::constructor_void_]
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0xabc]
push str.sidebaricon_folder.png
push str._v_center__a__i__s___a___v__x_4_
push eax
call dword [sym.imp.CoreUI.dll_public:_int___cdecl_UiLib::CDuiString::Format_wchar_t_const__]
add esp, 8
push edi
push dword [ebp - 0xad4]
mov edi, dword [ebp - 0xa38]
push 0
push ebx
push ecx
push edi
lea ecx, [ebp - 0xabc]
call dword [sym.imp.CoreUI.dll_public:_wchar_t_const____thiscall_UiLib::CDuiString::operator_wchar_t_const__void_const]
push eax
mov eax, dword [ebp - 0xac8]
mov ecx, dword [eax]
call fcn.004dc260
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xabc]
call dword [sym.imp.CoreUI.dll_public:_void___thiscall_UiLib::CDuiString::destructor_void_]
cmp word [esi], 0
je 0x4d6659
nop dword [eax + eax]
add esi, 2
cmp word [esi], 0
jne 0x4d6650
mov byte [ebp - 4], 0xd
push edi
call fcn.004a51e5
add esp, 4
add esi, 2
cmp word [esi], 0
jne 0x4d6450
mov ebx, dword [ebp - 0xa34]
mov dword [ebp - 4], 0xffffffff
push ebx
call fcn.004a51e5
add esp, 4
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.00499a52
mov esp, ebp
pop ebp
ret