Function at 0x40e4a9
Capabilities:
Get disk size

Disassembly:
mov eax, 0x46023c
call fcn.0043b410
sub esp, 0x21c
and byte [ebp - 0x124], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x123]
rep stosd dword es:[edi], eax
and dword [ebp - 0x10], 0
stosw word es:[edi], ax
stosb byte es:[edi], al
and dword [ebp - 4], 0
cmp dword [0x476c54], 0xffffffff
jne 0x40e50a
push dword [0x476c50]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40e4f7
mov dword [ebp - 0x10], eax
push str.GetDiskFreeSpaceExA
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x476c54], eax
mov eax, dword [ebp + 8]
mov cl, byte [eax]
cmp cl, 0x5c
jne 0x40e53c
cmp byte [eax + 1], cl
jne 0x40e53c
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0043c4a0
lea eax, [ebp - 0x124]
push 0x476c60
push eax
call fcn.0043c4b0
add esp, 0x10
jmp 0x40e559
mov al, byte [eax + 1]
and byte [ebp - 0x225], 0
mov byte [ebp - 0x228], cl
mov byte [ebp - 0x227], al
mov byte [ebp - 0x226], 0x5c
mov ecx, dword [0x476c54]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x40e5a0
cmp byte [ebp - 0x124], 0
lea eax, [ebp - 0x124]
jne 0x40e581
lea eax, [ebp - 0x228]
push esi
push edi
push ebx
push eax
call ecx
test eax, eax
mov dword [ebp + 8], eax
jne 0x40e5ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40e5ea
and dword [0x476c54], 0
cmp byte [ebp - 0x124], 0
je 0x40e652
lea eax, [ebp - 0x228]
push 0x104
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0040e6f1
add esp, 0xc
test eax, eax
jne 0x40e652
cmp dword [ebp - 0x10], eax
je 0x40e5e3
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x40e5e3
push dword [ebp - 0x10]
call eax
xor eax, eax
jmp 0x40e6e2
cmp byte [ebp - 0x124], 0
lea eax, [ebp - 0x124]
jne 0x40e5ff
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40e626
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x18]
imul ecx, dword [ebp - 0x18]
mov dword [edx], ecx
cmp dword [ebp + 8], 0
je 0x40e635
test eax, eax
je 0x40e635
push 1
pop esi
jmp 0x40e637
xor esi, esi
cmp dword [ebp - 0x10], 0
je 0x40e64b
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x40e64b
push dword [ebp - 0x10]
call eax
mov eax, esi
jmp 0x40e6e2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
mov dword [ebp + 8], eax
je 0x40e6b5
push dword [ebp - 0x1c]
and dword [edi + 4], 0
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.0040e78d
push dword [ebp - 0x20]
mov dword [edi], eax
and dword [esi + 4], 0
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.0040e78d
mov dword [esi], eax
mov dword [ebx], eax
mov eax, dword [esi + 4]
add esp, 0x18
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp byte [ebp - 0x124], 0
je 0x40e6cb
lea eax, [ebp - 0x228]
push eax
call fcn.0040e7b6
pop ecx
cmp dword [ebp - 0x10], 0
je 0x40e6df
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x40e6df
push dword [ebp - 0x10]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret