Function at 0x40a0e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47aef1
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x4a62e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x150], ecx
mov ebx, 2
call fcn.0040bd70
mov ecx, eax
test ecx, ecx
je 0x40a3e3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14c], esi
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00450d40
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
test eax, eax
je 0x40a363
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x134], 0
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
call fcn.0040e510
mov ecx, 3
mov byte [ebp - 4], 1
cmp dword [ebp - 0x134], ecx
lea eax, [ebp - 0x144]
mov dword [ebp - 0x11c], 0
cmovb ecx, dword [ebp - 0x134]
cmp dword [ebp - 0x130], 0x10
push ecx
cmovae eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x12c]
push eax
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.0040e510
cmp dword [ebp - 0x118], 0x10
lea ecx, [ebp - 0x158]
push 0
push ecx
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], bl
cmovae eax, dword [ebp - 0x12c]
xorps xmm0, xmm0
push 0
push eax
movq qword [ebp - 0x158], xmm0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x40a244
lea ecx, [ebp - 0x12c]
call fcn.00406570
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0
call fcn.00406570
jmp 0x40a363
mov ebx, dword [ebp - 0x158]
mov edi, dword [ebp - 0x154]
shrd ebx, edi, 0x1e
shr edi, 0x1e
test edi, edi
ja 0x40a2a0
jb 0x40a262
cmp ebx, 0x40
jae 0x40a2a0
push str.Disk_capacity_is_less_than_minimum_requirement_
push 0x4a8b00
call fcn.00403660
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.00410a50
movzx ecx, al
push ecx
mov ecx, esi
call fcn.0040fe10
mov ecx, esi
call fcn.0040f650
xor eax, eax
mov dword [ebp - 0x148], eax
jmp 0x40a2aa
mov dword [ebp - 0x148], 1
push edi
push ebx
lea eax, [ebp - 0x14c]
push 0x482ec8
push eax
call fcn.0040b5a0
mov edx, dword [ebp - 0x118]
add esp, 0x10
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x40a2fe
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a2f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a3ed
push edx
push ecx
call fcn.00442ea6
add esp, 8
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x40a357
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a34d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a3f2
push edx
push ecx
call fcn.00442ea6
add esp, 8
mov ebx, dword [ebp - 0x148]
mov esi, dword [ebp - 0x14c]
sub esp, 0x18
mov ecx, esi
mov edx, esp
xor eax, eax
lea edi, [ecx + 2]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a380
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.0040e600
mov ecx, dword [ebp - 0x150]
push ebx
push 6
call fcn.0040c040
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40a3c5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443153
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407850
call fcn.00453ee9
call fcn.00453ee9
int3