Function at 0x40e0e0
Capabilities:
Get disk size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42907b
push eax
mov dword fs:[0], esp
sub esp, 0xae8
push ebx
push ebp
push esi
push edi
call fcn.00410db0
xor ebx, ebx
cmp eax, ebx
jne 0x40e3e7
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ebx
call fcn.00410ef0
mov esi, dword [esp + 0xb08]
mov ecx, 0x232
xor eax, eax
lea edi, [esp + 0x22c]
rep stosd dword es:[edi], eax
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0xb04], ebx
stosb byte es:[edi], al
call fcn.00411090
mov ebp, dword [esp + 0xb0c]
lea eax, [esp + 0x22c]
push eax
push ebp
lea ecx, [esp + 0x1c]
call fcn.004110f0
lea ecx, [esp + 0x6bd]
push ecx
push esi
push str._CAccaSZCore::SZ_UnMountEx____lpszLetter___s__Fine_Name:__s
call fcn.0041ba60
lea edx, [esp + 0x6c9]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x10
test eax, eax
je 0x40e3d1
movsx esi, byte [esp + 0xb10]
push esi
lea eax, [esp + 0x24]
push str._c:_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0xac9]
lea edx, [esp + 0x20]
push ecx
push ebx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x40e2b4
push str._CAccaSZCore::SZ_UnMountEx____GetDiskFreeSpaceExA_Fail
call fcn.0041ba60
push esi
call dword [sym.imp.MSVCRT.dll_toupper]
mov byte [esp + 0x24], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.00410c90
push edi
call fcn.0040ec70
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x14
push edi
call fcn.00420260
push 0x64
mov esi, eax
call ebx
test esi, esi
je 0x40e222
mov eax, dword [esp + 0x10]
mov ecx, eax
inc eax
cmp ecx, 0x13
mov dword [esp + 0x10], eax
jl 0x40e202
push ebp
push edi
call fcn.00420150
lea edx, [esp + 0x24]
push edx
push ebp
call fcn.0041e450
push ebp
call fcn.0041fb30
push ebp
call fcn.0041f780
push edi
call fcn.0040ed30
mov eax, dword [esp + 0xb1c]
add esp, 4
test eax, eax
je 0x40e267
mov eax, dword [esp + 0xb08]
push ebp
push eax
call fcn.0040e4b0
add esp, 8
jmp 0x40e296
sub esp, 0x8cc
mov ecx, 0x232
lea esi, [esp + 0xaf8]
mov edi, esp
mov dword [esp + 0x13b1], 0
push ebp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x8e4]
movsb byte es:[edi], byte [esi]
call fcn.004116e0
mov ecx, dword [esp + 0xb10]
mov edx, dword [esp + 0xb08]
push ecx
push ebp
push edx
call fcn.004100a0
add esp, 0xc
jmp 0x40e3d1
push esi
call dword [sym.imp.MSVCRT.dll_toupper]
mov byte [esp + 0x20], al
mov ecx, 0x41
mov ebx, dword [esp + 0x20]
xor eax, eax
lea edi, [esp + 0x12c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x12c]
push eax
push ebx
call fcn.00410c90
push ebx
call fcn.0040ec70
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x10
push ebx
call fcn.00420260
push 0x64
mov esi, eax
call edi
test esi, esi
je 0x40e344
mov eax, dword [esp + 0x10]
mov ecx, eax
inc eax
cmp ecx, 0x13
mov dword [esp + 0x10], eax
jl 0x40e2f0
test esi, esi
je 0x40e344
cmp dword [esp + 0xb14], 1
je 0x40e344
push esi
call fcn.00410d00
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0xb00], 0xffffffff
call fcn.00410f30
mov eax, esi
jmp 0x40e3e7
push ebp
push ebx
call fcn.00420150
lea edx, [esp + 0x128]
push edx
push ebp
call fcn.0041e450
push ebp
call fcn.0041fb30
push ebp
call fcn.0041f780
mov eax, dword [esp + 0xb18]
test eax, eax
je 0x40e383
mov eax, dword [esp + 0xb08]
push ebp
push eax
call fcn.0040e4b0
add esp, 8
jmp 0x40e3b2
sub esp, 0x8cc
mov ecx, 0x232
lea esi, [esp + 0xaf8]
mov edi, esp
mov dword [esp + 0x13b1], 0
push ebp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x8e4]
movsb byte es:[edi], byte [esi]
call fcn.004116e0
push ebx
call fcn.0040ed30
mov ecx, dword [esp + 0xb14]
mov edx, dword [esp + 0xb0c]
push ecx
push ebp
push edx
call fcn.004100a0
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0xb00], 0xffffffff
call fcn.00410f30
xor eax, eax
mov ecx, dword [esp + 0xaf8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xaf4
ret