Function at 0x414960
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x59fb24]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x10], 0
movzx eax, byte [eax]
push 2
push 0x20a
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x41494e
mov esi, eax
push 0x20a
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x105
push esi
call sub.kernel32.dll_FindFirstVolumeW
mov dword [ebp - 0x28], eax
dec eax
cmp eax, 0xfffffffd
ja 0x4146bb
xor edi, edi
mov ebx, 0xfffffffe
nop word [eax + eax]
cmp word [esi + edi*2], 0
je 0x414747
add ebx, 0xfffffffe
inc edi
cmp ebx, 0xfffffdf4
jne 0x414690
push 0x57be40
push 0x105
push 0x106
call fcn.004e0750
call fcn.00446630
test edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 1
je 0x4146dd
lea eax, [ebp - 0x1c]
push eax
call fcn.004465e0
add esp, 4
push 2
push 0x20a
push esi
call fcn.0040cd20
add esp, 0xc
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x41471e
mov edi, dword [ebp - 0x14]
add edi, 4
jmp 0x414706
add edi, 0xc
dec esi
je 0x41471e
mov eax, dword [edi - 4]
test eax, eax
je 0x414700
add eax, eax
push 2
push eax
push dword [edi]
call fcn.0040cd20
add esp, 0xc
jmp 0x414700
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x414739
shl eax, 2
lea eax, [eax + eax*2]
push 4
push eax
push dword [ebp - 0x14]
call fcn.0040cd20
add esp, 0xc
mov eax, 4
xor ecx, ecx
xor edx, edx
jmp 0x4148ce
mov eax, dword [0x59fb24]
neg ebx
movzx eax, byte [eax]
push 2
push ebx
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x414946
inc edi
push ebx
push esi
push eax
mov ebx, eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.004180c0
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
mov dword [ebp - 0x10], 1
jmp 0x4147b9
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebx + ebx*2]
inc edi
inc ebx
mov dword [eax + ecx*4], edi
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [ebp - 0x10], ebx
push 0x105
push esi
push dword [ebp - 0x28]
call sub.kernel32.dll_FindNextVolumeW
test eax, eax
je 0x414848
xor edi, edi
mov ebx, 0xfffffffe
nop word cs:[eax + eax]
nop dword [eax]
cmp word [esi + edi*2], 0
je 0x414800
add ebx, 0xfffffffe
inc edi
cmp ebx, 0xfffffdf4
jne 0x4147e0
jmp 0x4146a7
mov eax, dword [0x59fb24]
neg ebx
movzx eax, byte [eax]
push 2
push ebx
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x414946
push ebx
push esi
mov dword [ebp - 0x2c], eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ebx, dword [ebp - 0x10]
cmp ebx, dword [ebp - 0x18]
jne 0x4147a0
lea eax, [ebp - 0x18]
push eax
call fcn.004180c0
add esp, 4
jmp 0x4147a0
call fcn.00446630
lea ebx, [ebp - 0x1c]
test edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], 1
je 0x41486a
push ebx
call fcn.004465e0
add esp, 4
call fcn.00446630
cmp eax, 0x80070012
lea ecx, [ebp - 0x20]
test edx, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
je 0x41488a
push ecx
call fcn.004465e0
add esp, 4
push dword [ebp - 0x28]
call sub.kernel32.dll_FindVolumeClose
test eax, eax
jne 0x4148b5
call fcn.00446630
test edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], 1
je 0x4148b5
push ebx
call fcn.004465e0
add esp, 4
push 2
push 0x20a
push esi
call fcn.0040cd20
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x24]
push eax
push ecx
call fcn.00424840
add esp, 8
mov eax, dword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x24]
mov dword [ebp - 0x30], eax
movsd qword [ebp - 0x38], xmm0
push esi
call fcn.00424f90
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x41492f
imul eax, eax, 0x58
push 8
push eax
push dword [esi + 4]
call fcn.0040cd20
add esp, 0xc
mov eax, dword [ebp - 0x30]
movsd xmm0, qword [ebp - 0x38]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
push 2
call fcn.004cf340
push 0x20a
push 2
call fcn.004cf360
nop word [eax + eax]
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 8]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov edx, esp
push ecx
push edx
push 0
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x4149c8
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edi
xor ecx, ecx
mov eax, 1
jmp 0x4149f2
call fcn.00446630
test edx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 1
je 0x4149ee
lea eax, [esp + 0x1c]
push eax
call fcn.004465e0
add esp, 4
xor eax, eax
xor ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret