Function at 0x40ad34
Capabilities:
Get disk size

Disassembly:
push 0x4c
mov eax, 0x4830ca
call fcn.0044baf5
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.004031a6
mov ecx, eax
call fcn.00401ae9
push 0x4a7da0
push 0x4a71e4
mov ebx, eax
call fcn.0044d439
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402ed1
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
mov ecx, dword [edi + 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00417b6f
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401aec
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x30], ecx
cmp eax, ecx
je 0x40ae3b
mov edi, eax
push 0
push 0x4a71e0
push 0x4a6dec
push 0
push dword [edi]
call fcn.0044dd40
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.0041b35e
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
mov edx, dword [eax]
call fcn.00406dbe
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00401aec
mov edx, dword [ebp - 0x20]
mov ecx, ebx
call fcn.0041f130
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00401aec
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
lea ecx, [ebp - 0x24]
push dword [eax]
call fcn.00403a43
mov byte [ebp - 4], 6
mov ecx, ebx
mov edx, dword [ebp - 0x24]
call fcn.0041f610
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00401aec
add edi, 4
cmp edi, dword [ebp - 0x30]
jne 0x40ada3
mov edi, dword [ebp - 0x14]
push 0x4a7da0
push 0x4a6e18
call fcn.0044d439
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.00402ed1
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 7
mov ecx, dword [edi + 0x68]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00417b6f
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00401aec
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], ecx
cmp eax, ecx
je 0x40af1e
mov edi, eax
push 0
push 0x4a6e14
push 0x4a6dec
push 0
push dword [edi]
call fcn.0044dd40
add esp, 0x14
mov esi, eax
mov ecx, esi
call fcn.00416e46
mov edx, dword [ebx + 8]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov ecx, esi
mov dword [edx + 4], 0x7ff7a501
add dword [ebx + 8], 8
mov eax, dword [esi]
call dword [eax + 0x54]
lea ecx, [ebp - 0x1c]
push dword [eax]
call fcn.00403a43
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.00416e46
test eax, eax
je 0x40aef6
mov ecx, dword [ebp - 0x1c]
call fcn.004013a3
test eax, eax
je 0x40aef6
push eax
call fcn.0044b876
pop ecx
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
call fcn.0041f610
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401aec
add edi, 4
cmp edi, dword [ebp - 0x2c]
jne 0x40ae8b
mov edi, dword [ebp - 0x14]
mov edx, 0x492934
mov ecx, ebx
call fcn.0041f340
push 0
or edx, 0xffffffff
mov ecx, ebx
call fcn.0041ee90
pop ecx
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.00403c5d
push 0xfffffffffffffffe
pop edx
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.0041e600
push dword [ebp - 0x10]
mov esi, dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
call esi
cmp eax, 0xffffffff
je 0x40b1a5
mov ecx, dword [ebp - 0x10]
call fcn.0040124c
test eax, eax
je 0x40b1a5
mov edx, 0x4930e0
mov ecx, ebx
call fcn.0041f340
push 0
or edx, 0xffffffff
mov ecx, ebx
call fcn.0041ee90
pop ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00403c5d
push 0xfffffffffffffffe
pop edx
mov ecx, ebx
mov byte [ebp - 4], 0xc
call fcn.0041e600
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x40afee
push 0x49248c
push eax
call fcn.00459de3
pop ecx
pop ecx
test eax, eax
je 0x40afee
push dword [ebp - 0x18]
call esi
cmp eax, 0xffffffff
je 0x40afd4
mov ecx, dword [ebp - 0x18]
call fcn.0040124c
test eax, eax
jne 0x40afee
push 0x30
push 0x4930bc
push 0x4930ec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40b198
mov edi, 0x104
lea ecx, [ebp - 0x10]
push edi
call fcn.00401c03
push edi
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00401d22
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.00406dbe
mov byte [ebp - 4], 0xd
mov ecx, ebx
mov edx, dword [ebp - 0x24]
call fcn.0041f130
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00401aec
mov edx, 0x492934
mov ecx, ebx
call fcn.0041f610
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401609
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 0xe
cmp dword [esi - 0xc], 2
jg 0x40b072
add esi, 0xfffffff0
mov ecx, esi
mov dword [ebp - 0x1c], esi
call fcn.00401609
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
jmp 0x40b08f
lea ecx, [ebp - 0x30]
call fcn.0040155f
push eax
push 2
push esi
lea ecx, [ebp - 0x24]
call fcn.004032d6
mov edi, dword [ebp - 0x24]
add esi, 0xfffffff0
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xf
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edx, 0x493108
mov ecx, ebx
call fcn.0041f340
push 0
or edx, 0xffffffff
mov ecx, ebx
call fcn.0041ee90
pop ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.00403c5d
push 0xfffffffffffffffe
pop edx
mov ecx, ebx
mov byte [ebp - 4], 0x10
call fcn.0041e600
lea eax, [ebp - 0x38]
push eax
push str._I64u
push dword [ebp - 0x28]
call fcn.0040c9a0
mov eax, dword [ebp - 0x3c]
add esp, 0xc
cmp eax, dword [ebp - 0x34]
ja 0x40b16c
jb 0x40b0f9
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x38]
jae 0x40b16c
call fcn.00401830
push eax
lea ecx, [ebp - 0x20]
call fcn.00401666
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
call fcn.0047d5e0
xorps xmm1, xmm1
lea eax, [ebp - 0x20]
cvtsd2ss xmm1, xmm0
push ecx
push ecx
mulss xmm1, dword [0x4985c0]
mulss xmm1, dword [0x4985c0]
cvtps2pd xmm0, xmm1
movsd qword [esp], xmm0
push 0x493130
push eax
call fcn.00409b06
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov esi, dword [ebp - 0x20]
push 0x40
push 0x493174
push esi
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esi - 0x10]
call fcn.00401aec
mov esi, dword [ebp - 0x1c]
jmp 0x40b17e
mov eax, dword [ebp - 0x14]
push 0
push 1
push 0x10
push dword [eax + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00401aec
lea ecx, [edi - 0x10]
call fcn.00401aec
mov ecx, esi
call fcn.00401aec
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401aec
jmp 0x40b1ba
push 0x30
push 0x4930bc
push 0x4930c4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401aec
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x40b1e8
mov eax, dword [ebp - 0x44]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.004036ce
xor eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x40b200
mov eax, dword [ebp - 0x50]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.004036ce
pop ecx
pop ecx
xor eax, eax
call fcn.0044bacf
ret 0x10