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

Disassembly:
push 0xffffffffffffffff
push 0x44f4f8
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x48c], eax
push ebx
push ebp
push esi
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 0x4a0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4b4]
mov ebp, dword [esp + 0x4b0]
mov esi, edx
xor ebx, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], ecx
cmp esi, ebx
je 0x420996
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x420781
sub eax, edx
je 0x420996
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov eax, esi
mov dword [esp + 0x4a8], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4207a6
sub eax, edx
lea edx, [esp + 0x44]
push edx
push eax
push esi
call fcn.0043ef6f
mov eax, dword [esp + 0x54]
mov esi, 8
add esp, 0xc
cmp dword [esp + 0x5c], esi
jae 0x4207d1
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [edi], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x3c], ebx
cmp dword [esp + 0x5c], esi
jae 0x4207f0
lea eax, [esp + 0x48]
push 0x105
lea ecx, [esp + 0x290]
push ecx
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x2c]
push ecx
push ebx
push 0x105
lea edx, [esp + 0x94]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x42097d
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [esp + 0x7c]
mov byte [esp + 0x4a8], 1
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x420840
sub eax, edx
sar eax, 1
cmp eax, 0x105
jae 0x4208a0
lea eax, [esp + 0x7c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x420860
sub eax, edx
lea ecx, [esp + 0x60]
push ecx
sar eax, 1
push eax
lea edx, [esp + 0x84]
push edx
call fcn.0043eefa
mov edx, dword [esp + 0x70]
add esp, 0xc
cmp dword [esp + 0x78], 0x10
jae 0x420894
lea edx, [esp + 0x64]
mov ecx, ebp
mov al, byte [edx]
mov byte [ecx], al
inc edx
inc ecx
cmp al, bl
jne 0x420896
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x5c], esi
jae 0x4208be
lea eax, [esp + 0x48]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x42096c
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push ebx
push 0x6666666
push eax
push ecx
call fcn.0044c5b0
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, edx
and edx, 0x7fffffff
mov dword [esp + 0x18], edx
fild qword [esp + 0x14]
mov edx, dword [esp + 0x38]
and eax, 0x80000000
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
fild qword [esp + 0x14]
push ebx
push 0x6666666
push eax
fchs
push ecx
faddp st(1)
fld qword [0x45d1c0]
fmul st(1), st(0)
fxch st(1)
fstp qword [edx]
call fcn.0044c5b0
mov dword [esp + 0x14], eax
mov eax, edx
and edx, 0x7fffffff
mov dword [esp + 0x18], edx
fild qword [esp + 0x14]
mov edx, dword [esp + 0x40]
and eax, 0x80000000
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x14]
fchs
faddp st(1)
fmulp st(1)
fstp qword [edx]
lea ecx, [esp + 0x60]
mov byte [esp + 0x4a8], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x44]
mov dword [esp + 0x4a8], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
jmp 0x420998
xor al, al
mov ecx, dword [esp + 0x4a0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48c]
xor ecx, esp
call fcn.004390e8
add esp, 0x49c
ret