Function at 0x105f917
Capabilities:
Get disk size

Disassembly:
mov eax, 0x10d609e
call fcn.0107a498
sub esp, 0x4c
mov eax, dword [0x10e607c]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], ecx
xor esi, esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x40], esi
call sub.MFC42u.dll_CString::CString_2
mov eax, dword [edi + 0xac]
cmp dword [eax - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x28], 0x41
jne 0x105f97f
call fcn.0105b487
cmp ax, si
mov dword [ebp - 0x28], eax
je 0x105f993
movzx eax, ax
push eax
push 0x100cff8
push 0x10ed830
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
jmp 0x105f98d
push eax
push 0x10ed830
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
cmp word [ebp - 0x28], si
jne 0x105f9ad
push 1
push esi
push 0x30
push esi
push 0x1212
push 0xfa6
call fcn.01056e47
jmp 0x105fafd
cmp dword [edi + 0x5c], esi
jne 0x105fa3e
movzx eax, word [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push 0x11
push eax
call sub.MFC42u.dll_CString::Format_1
add esp, 0xc
push 1
push esi
push 0x40
push esi
push dword [ebp - 0x2c]
push 0x17
call fcn.01056de7
mov ax, word [ebp - 0x28]
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov word [ebp - 0x22], 0x3a
mov word [ebp - 0x20], 0x5c
mov word [ebp - 0x1e], si
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x105fa3e
mov eax, dword [ebp - 0x34]
or eax, dword [ebp - 0x30]
je 0x105fa27
cmp dword [ebp - 0x30], esi
ja 0x105fa27
cmp dword [ebp - 0x34], 0xe4e1c0
jbe 0x105fa3e
push 1
push esi
push 0x40
push esi
push 0x4e85
push 0x17
call fcn.01056e47
jmp 0x105f9ad
lea eax, [ebp - 0x48]
push eax
push esi
call sub.MFC42u.dll_CWnd::GetSafeOwner
mov edi, eax
cmp edi, esi
je 0x105fafd
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x20]
cmp ecx, esi
je 0x105fafd
push esi
call sub.MFC42u.dll_CWnd::EnableWindow
mov edi, dword [edi + 0x20]
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 8]
push esi
push 0x105b5c9
push edi
push 0x8de4
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov edi, eax
push edi
call fcn.0105c762
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push 1
push 0x10ed830
call fcn.0103c7fb
push edi
mov dword [ebp - 0x44], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x20]
xor edi, edi
inc edi
push edi
call sub.MFC42u.dll_CWnd::EnableWindow
cmp word [ebp - 0x44], si
je 0x105faf7
call fcn.0103ba9c
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x5c], esi
jne 0x105fae9
push esi
push esi
push 0x10
push 5
push eax
push 0x17
call fcn.01056e47
cmp eax, 2
je 0x105fafa
mov edi, dword [ebp - 0x38]
jmp 0x105f9ad
push eax
push edi
push edi
push esi
call fcn.01053123
add esp, 0x10
jmp 0x105fafa
mov dword [ebp - 0x40], edi
mov esi, dword [ebp - 0x40]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call sub.MFC42u.dll_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
call fcn.01078836
leave
ret 4