Function at 0x402d83
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42747a
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x43b028]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x43b028]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], eax
call dword [0x4299ec]
xor ebx, ebx
mov dword [esp + 0x70], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], 2
mov ecx, dword [esp + 0x14]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esp + 0x40]
test ecx, eax
je 0x402fa2
mov eax, dword [0x42a4f0]
mov dword [esp + 0x58], eax
mov eax, dword [0x42a4f4]
push 0x40
mov dword [esp + 0x60], eax
call sub.mfc90u.dll_new__
push 0x40
mov dword [esp + 0x24], eax
call sub.mfc90u.dll_new__
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x54], ebx
lea edi, [esp + 0x58]
stosd dword es:[edi], eax
mov dword [esp + 0x3c], ebx
lea edi, [esp + 0x40]
stosd dword es:[edi], eax
mov dword [esp + 0x34], ebx
lea edi, [esp + 0x38]
stosd dword es:[edi], eax
mov ax, word [esp + 0x1c]
add word [esp + 0x60], ax
pop ecx
pop ecx
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x402f8c
push 0x20
push dword [esp + 0x24]
lea eax, [esp + 0x60]
push ebx
push ebx
push ebx
push 0x20
push dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x402f8c
push 0x30
call sub.mfc90u.dll_new
pop ecx
cmp eax, ebx
je 0x402e94
mov esi, eax
call fcn.00402116
mov ebx, eax
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x20]
push str._s___0.2s_
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
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
call dword [0x4299a4]
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
mov byte [esp + 0x74], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [esp + 0x24]
mov byte [esp + 0x70], 0
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 eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea eax, [esp + 0x28]
push eax
lea ecx, [ebx + 8]
mov byte [esp + 0x74], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push dword [esp + 0x20]
lea ecx, [ebx + 4]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x402f81
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x44]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x30]
add esi, 0x3776cc
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x48], eax
test eax, eax
jl 0x402fdb
lea edi, [eax + 1]
call fcn.00404755
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x48]
mov dword [eax + ecx*4], ebx
jmp 0x402f8c
test ebx, ebx
je 0x402f8c
mov esi, ebx
call fcn.00402cd7
push dword [esp + 0x1c]
call sub.mfc90u.dll_delete__
push dword [esp + 0x24]
call sub.mfc90u.dll_delete__
pop ecx
pop ecx
xor ebx, ebx
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x20
jl 0x402de3
lea ecx, [esp + 0x18]
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 ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00423038
mov esp, ebp
pop ebp
ret 4
call sub.mfc90u.dll_AfxThrowInvalidArgException
int3