Function at 0x40d6f0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6041
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x4f0464]
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.0040f380
mov ecx, eax
test ecx, ecx
je 0x40d9f3
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.0048c160
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
test eax, eax
je 0x40d973
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.00411d10
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.00411d10
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 0x40d854
lea ecx, [ebp - 0x12c]
call fcn.00409da0
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0
call fcn.00409da0
jmp 0x40d973
mov ebx, dword [ebp - 0x158]
mov edi, dword [ebp - 0x154]
shrd ebx, edi, 0x1e
shr edi, 0x1e
test edi, edi
ja 0x40d8b0
jb 0x40d872
cmp ebx, 0x40
jae 0x40d8b0
push str.Disk_capacity_is_less_than_minimum_requirement_
push 0x4f44a0
call fcn.00406e20
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.004142b0
movzx ecx, al
push ecx
mov ecx, esi
call fcn.00413670
mov ecx, esi
call fcn.00412e50
xor eax, eax
mov dword [ebp - 0x148], eax
jmp 0x40d8ba
mov dword [ebp - 0x148], 1
push edi
push ebx
lea eax, [ebp - 0x14c]
push 0x4c1c74
push eax
call fcn.0040ebb0
mov edx, dword [ebp - 0x118]
add esp, 0x10
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x40d90e
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d904
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d9fd
push edx
push ecx
call fcn.00466e06
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 0x40d967
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d95d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40da02
push edx
push ecx
call fcn.00466e06
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 0x40d990
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00411e00
mov ecx, dword [ebp - 0x150]
push ebx
push 6
call fcn.0040f650
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40d9d5
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.004670b3
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040b080
call fcn.0048f279
call fcn.0048f279
int3