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

Disassembly:
push 0xb0
mov eax, 0x46e2f8
call fcn.00431db0
mov eax, dword [ebp + 8]
push 7
pop edi
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x50], edi
call fcn.00403e67
lea esi, [ebp - 0x68]
mov dword [ebp - 4], ebx
call fcn.00401596
push ebx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], edi
call fcn.00403e67
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x402ef1
lea eax, [ebp - 0x64]
push 3
push eax
lea ecx, [ebp - 0x4c]
call fcn.00403719
test byte [0x48d0e0], 1
jne 0x402f2e
or dword [0x48d0e0], 1
push 0x478088
mov ecx, 0x48d0c4
mov byte [ebp - 4], 2
call fcn.004036a3
push 0x470196
call fcn.0042f0c5
pop ecx
mov byte [ebp - 4], 1
test byte [0x48d0e0], 2
mov edi, 0x48d0a8
jne 0x402f62
or dword [0x48d0e0], 2
push 0x477eb8
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004036a3
push 0x470187
call fcn.0042f0c5
pop ecx
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push ebx
push ebx
call esi
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x70], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042d95a
pop ecx
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], ebx
call esi
test eax, eax
je 0x4030ef
mov esi, dword [ebp - 0x74]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40309f
cmp dword [ebp - 0x34], 8
mov ecx, dword [ebp - 0x48]
jae 0x402fb7
lea ecx, [ebp - 0x48]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402fdf
cmp dx, bx
je 0x402fdb
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402fdf
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x402fb9
xor eax, eax
jmp 0x402fe4
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40309f
push ebx
push ebx
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp dword [ebp - 0x80], ebx
ja 0x403011
cmp dword [ebp - 0x84], 0x1400000
jb 0x40309f
push 0x48d0c4
lea eax, [ebp - 0xbc]
push esi
push eax
call fcn.004048fa
push 0x477eb4
push eax
lea eax, [ebp - 0xa0]
push eax
mov byte [ebp - 4], 4
call fcn.00404868
push edi
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 5
call fcn.004048af
add esp, 0x24
push ebx
push 1
lea ecx, [ebp - 0xa0]
call fcn.00403f22
push ebx
push 1
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 8
call fcn.00403f22
lea eax, [ebp - 0x30]
push eax
call fcn.004015da
pop ecx
test al, al
je 0x403090
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x403085
lea eax, [ebp - 0x2c]
push eax
call fcn.00412e8e
pop ecx
test eax, eax
jne 0x4030c1
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00403f22
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4030a4
sub eax, edx
sar eax, 1
inc eax
lea esi, [esi + eax*2]
cmp eax, dword [ebp - 0x70]
jbe 0x402f9b
jmp 0x4030ef
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x4030cd
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x78]
movzx eax, word [ecx]
inc ecx
mov word [edx], ax
inc ecx
inc edx
inc edx
cmp ax, bx
jne 0x4030d0
xor eax, eax
inc eax
push ebx
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x6c], eax
call fcn.00403f22
push dword [ebp - 0x74]
call fcn.0042f2c4
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.00403f22
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.00403f22
mov eax, dword [ebp - 0x6c]
call fcn.00431e33
ret