Function at 0x40e2e3
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0x20c
mov eax, 0x4b7fb6
call fcn.004991ba
mov eax, dword [ebp + 8]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x1c4]
mov edi, ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x180], edi
mov dword [ebp - 0x170], ebx
call fcn.0041036b
lea esi, [ebp - 0x1c4]
mov dword [ebp - 4], ebx
call fcn.0040e264
cmp dword [ebp - 0x1a8], ebx
jne 0x40e35c
push 0x4c2980
push edi
call fcn.0044ca16
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c4]
push eax
call fcn.004103a1
xor eax, eax
inc eax
call fcn.0049923d
ret
xor eax, eax
mov dword [ebp - 0x134], 7
mov dword [ebp - 0x138], ebx
mov word [ebp - 0x148], ax
push ebx
push ebx
lea eax, [ebp - 0x1fc]
call fcn.004377e8
push str.addition
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 4
call fcn.00403461
lea eax, [ebp - 0x1fc]
push eax
sub esp, 0x1c
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x178], esp
mov edi, 0x4c102f
push edi
mov dword [ebp - 0x170], 1
call fcn.00403461
mov esi, dword [ebp - 0x184]
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0040694a
add esp, 0x24
mov dword [ebp - 4], 6
mov ecx, eax
mov dword [ebp - 0x170], 3
call fcn.00401475
pop ecx
test al, al
je 0x40e40a
cmp byte [ebp - 0x1f4], 7
mov byte [ebp - 0x169], 1
je 0x40e410
mov byte [ebp - 0x169], bl
push ebx
push 1
lea ecx, [ebp - 0x218]
call fcn.00403db0
push ebx
mov dword [ebp - 4], 4
push 1
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x170], ebx
call fcn.00403db0
cmp byte [ebp - 0x169], bl
je 0x40e4d8
push str.cdVols
lea ecx, [ebp - 0x130]
call fcn.00403461
sub esp, 0x1c
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x178], esp
push edi
call fcn.00403461
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x1e0]
push eax
lea esi, [ebp - 0x1fc]
call fcn.0040694a
add esp, 0x24
push eax
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 8
call fcn.00401215
pop ecx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x14c]
push ecx
mov byte [ebp - 4], 9
call fcn.00403dfb
push ebx
push 1
lea esi, [ebp - 0x218]
call fcn.00403ead
push ebx
push 1
lea ecx, [ebp - 0x1e0]
call fcn.00403db0
push ebx
push 1
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 4
call fcn.00403db0
cmp dword [ebp - 0x138], ebx
jne 0x40e514
push 0x4c299c
push dword [ebp - 0x180]
call fcn.0044ca16
pop ecx
pop ecx
lea esi, [ebp - 0x1fc]
mov byte [ebp - 4], 1
call fcn.00436b2e
push ebx
push 1
lea esi, [ebp - 0x14c]
call fcn.00403ead
jmp 0x40e343
cmp dword [ebp - 0x134], 8
mov eax, dword [ebp - 0x148]
jae 0x40e529
lea eax, [ebp - 0x148]
push 0x4c29b0
push eax
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042f77d
add esp, 0xc
push 0x4c29b4
push ebx
lea esi, [ebp - 0x1a4]
mov byte [ebp - 4], 0xa
call fcn.00410220
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.00411284
add esp, 0xc
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x1ac]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x188]
mov esi, dword [ebp - 0x1ac]
cmp eax, ebx
je 0x40e599
cmp eax, dword [ebp - 0x1c4]
je 0x40e59e
call fcn.00497df5
cmp dword [ebp - 0x184], esi
je 0x40e875
lea esi, [ebp - 0x188]
call fcn.00431223
movsx ax, byte [eax]
movzx eax, ax
push eax
push str._c:_
lea ecx, [ebp - 0x130]
call fcn.0042f9b3
pop ecx
pop ecx
mov byte [ebp - 4], 0xc
xor eax, eax
lea edi, [ebp - 0x178]
mov dword [ebp - 0x17c], ebx
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x12c]
push 8
pop edi
cmp dword [ebp - 0x118], edi
jae 0x40e5f9
lea eax, [ebp - 0x12c]
push ebx
lea ecx, [ebp - 0x17c]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
xor eax, eax
push 0xfe
mov word [ebp - 0x114], ax
lea eax, [ebp - 0x112]
push ebx
push eax
call fcn.00499dd0
mov eax, dword [ebp - 0x12c]
add esp, 0xc
cmp dword [ebp - 0x118], edi
jae 0x40e63b
lea eax, [ebp - 0x12c]
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x80
lea ecx, [ebp - 0x114]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 1
lea esi, [ebp - 0x1a4]
call fcn.00410220
cmp dword [eax + 0x18], edi
jb 0x40e66a
mov eax, dword [eax + 4]
jmp 0x40e66d
add eax, 4
cmp eax, ebx
je 0x40e75f
push 1
lea esi, [ebp - 0x1a4]
call fcn.00410220
cmp dword [eax + 0x18], edi
jb 0x40e68c
mov eax, dword [eax + 4]
jmp 0x40e68f
add eax, 4
lea ecx, [ebp - 0x114]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40e75f
push 2
lea esi, [ebp - 0x1a4]
call fcn.00410220
cmp dword [eax + 0x18], edi
jb 0x40e6bc
mov eax, dword [eax + 4]
jmp 0x40e6bf
add eax, 4
cmp eax, ebx
je 0x40e75f
push dword [ebp - 0x178]
mov esi, str._lld
push dword [ebp - 0x17c]
lea ecx, [ebp - 0x218]
push esi
call fcn.0042f9b3
add esp, 0xc
mov byte [ebp - 4], 0xd
or dword [ebp - 0x170], 4
cmp dword [eax + 0x18], edi
jb 0x40e6fc
mov eax, dword [eax + 4]
jmp 0x40e6ff
add eax, 4
cmp eax, ebx
je 0x40e75f
push dword [ebp - 0x178]
lea ecx, [ebp - 0x1e0]
push dword [ebp - 0x17c]
push esi
call fcn.0042f9b3
or dword [ebp - 0x170], edi
add esp, 0xc
cmp dword [eax + 0x18], edi
jb 0x40e72e
mov edi, dword [eax + 4]
jmp 0x40e731
lea edi, [eax + 4]
push 2
lea esi, [ebp - 0x1a4]
call fcn.00410220
cmp dword [eax + 0x18], 8
jb 0x40e749
mov eax, dword [eax + 4]
jmp 0x40e74c
add eax, 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov byte [ebp - 0x169], 1
test eax, eax
je 0x40e765
mov byte [ebp - 0x169], bl
test byte [ebp - 0x170], 8
je 0x40e783
and dword [ebp - 0x170], 0xfffffff7
push ebx
push 1
lea esi, [ebp - 0x1e0]
call fcn.00403ead
mov dword [ebp - 4], 0xc
test byte [ebp - 0x170], 4
je 0x40e7a8
and dword [ebp - 0x170], 0xfffffffb
push ebx
push 1
lea esi, [ebp - 0x218]
call fcn.00403ead
cmp byte [ebp - 0x169], bl
jne 0x40e7d2
push ebx
push 1
lea esi, [ebp - 0x130]
mov byte [ebp - 4], 0xb
call fcn.00403ead
lea esi, [ebp - 0x188]
call fcn.004104a9
jmp 0x40e581
cmp dword [ebp - 0x118], 8
mov eax, dword [ebp - 0x12c]
jae 0x40e7e7
lea eax, [ebp - 0x12c]
mov edi, dword [ebp - 0x18c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push 1
lea esi, [ebp - 0x130]
mov byte [ebp - 4], 0xb
call fcn.00403ead
cmp edi, ebx
je 0x40e849
cmp dword [ebp - 0x150], 8
mov eax, dword [ebp - 0x164]
jae 0x40e820
lea eax, [ebp - 0x164]
cmp eax, ebx
je 0x40e849
cmp dword [ebp - 0x150], 8
mov eax, dword [ebp - 0x164]
jae 0x40e839
lea eax, [ebp - 0x164]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40e96a
movzx eax, word [edi]
push eax
push 0x4c29ec
lea ecx, [ebp - 0x1e0]
call fcn.0042f9b3
pop ecx
pop ecx
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x18], 8
jb 0x40e92b
mov eax, dword [eax + 4]
jmp 0x40e92e
xor edi, edi
inc edi
push edi
lea esi, [ebp - 0x1a4]
call fcn.00410220
cmp dword [eax + 0x18], 8
jb 0x40e88f
mov eax, dword [eax + 4]
jmp 0x40e892
add eax, 4
push eax
push 0x4c29c8
lea ecx, [ebp - 0x1e0]
call fcn.0042f9b3
pop ecx
pop ecx
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x18], 8
jb 0x40e8b4
mov eax, dword [eax + 4]
jmp 0x40e8b7
add eax, 4
push eax
push dword [ebp - 0x180]
call fcn.0044ca16
pop ecx
pop ecx
push ebx
push edi
lea esi, [ebp - 0x1e0]
call fcn.00403ead
push ebx
push 1
lea esi, [ebp - 0x168]
call fcn.00403ead
lea esi, [ebp - 0x1a4]
call fcn.0040c5a0
push dword [ebp - 0x1a4]
call fcn.00497e2f
pop ecx
lea esi, [ebp - 0x1fc]
mov byte [ebp - 4], 1
call fcn.00436b2e
push ebx
push 1
lea esi, [ebp - 0x14c]
call fcn.00403ead
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c4]
push eax
call fcn.004103a1
mov eax, edi
jmp 0x40e356
add eax, 4
push eax
push 0x4c28e8
push dword [ebp - 0x180]
call fcn.0044ca2e
add esp, 0xc
push ebx
cmp eax, 6
push 1
lea esi, [ebp - 0x1e0]
setne byte [ebp - 0x169]
call fcn.00403ead
cmp byte [ebp - 0x169], bl
je 0x40e96a
push 2
pop edi
jmp 0x40e8d2
xor edi, edi
jmp 0x40e8d2