Function at 0x401000
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ebx
call fcn.00403c7a
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 0xf
mov edi, eax
call fcn.00403bb3
pop ecx
push ebx
push 0xb
mov dword [ebp - 0x2c], eax
call fcn.00406347
push ebx
push 0xc
mov dword [ebp - 0x24], eax
call fcn.00406347
push ebx
push 0x14
mov dword [ebp - 0x28], eax
call fcn.00406347
mov ebx, eax
push 0
push 0x16
mov dword [ebp - 0x30], ebx
call fcn.00406347
push 0x20a
mov dword [ebp - 0x20], eax
call fcn.00409041
and dword [ebp - 8], 0
mov dword [ebp - 4], eax
mov eax, dword [0x40a200]
add esp, 0x24
mov dword [ebp - 0x38], eax
mov eax, dword [0x40a204]
push esi
push 0xd
mov dword [ebp - 0x34], eax
call fcn.00403c29
push esi
push 0xe
mov dword [ebp - 0x10], eax
call fcn.00403c29
xor esi, esi
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 4], esi
je 0x4011d3
mov eax, dword [ebp - 0x2c]
cmp eax, esi
je 0x4010b0
lea ecx, [ebp - 8]
push ecx
call fcn.004035d2
pop ecx
cmp ebx, esi
je 0x4010ef
push ebx
call fcn.004090c6
pop ecx
test eax, eax
je 0x4010ef
xor eax, eax
inc eax
mov ecx, esi
shl eax, cl
test edi, eax
je 0x4010e3
mov ax, word [ebx + esi*2]
mov word [ebp - 0x38], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x38]
call fcn.004035d2
pop ecx
test eax, eax
je 0x4010ef
push ebx
inc esi
call fcn.004090c6
pop ecx
cmp esi, eax
jb 0x4010bf
mov eax, dword [ebp - 8]
test eax, eax
je 0x4011d3
and dword [ebp - 0x18], 0
push 0
call fcn.004035a4
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4011d3
mov edi, 0x40a208
mov esi, 0x104
cmp dword [ebp - 0x24], 0
je 0x401172
cmp dword [ebp - 0x10], 0
je 0x401172
push dword [ebp - 0x24]
push edi
push dword [ebp - 0x1c]
push 3
push esi
push dword [ebp - 4]
call fcn.004059f1
add esp, 0x18
test eax, eax
je 0x401172
push dword [ebp - 0x10]
call fcn.004090b5
pop ecx
push dword [ebp - 0x10]
mov ebx, eax
push dword [ebp - 4]
call fcn.00403969
pop ecx
pop ecx
test eax, eax
je 0x401172
cmp dword [ebp - 0x20], 0
je 0x40116f
push dword [ebp - 0x20]
push dword [ebp - 4]
call fcn.00403e9e
pop ecx
pop ecx
inc dword [ebp - 0xc]
cmp dword [ebp - 0x28], 0
je 0x4011b6
cmp dword [ebp - 0x14], 0
je 0x4011b6
push dword [ebp - 0x28]
push edi
push dword [ebp - 0x1c]
push 3
push esi
push dword [ebp - 4]
call fcn.004059f1
add esp, 0x18
test eax, eax
je 0x4011b6
push dword [ebp - 0x14]
call fcn.004090b5
pop ecx
push dword [ebp - 0x14]
mov ebx, eax
push dword [ebp - 4]
call fcn.00403969
pop ecx
pop ecx
test eax, eax
je 0x4011b6
inc dword [ebp - 0xc]
inc dword [ebp - 0x18]
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004035a4
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x40111b
mov ebx, dword [ebp - 0x30]
push dword [ebp - 0x20]
call fcn.004039da
pop ecx
push dword [ebp - 0x2c]
call fcn.004039da
pop ecx
push dword [ebp - 0x24]
call fcn.004039da
pop ecx
push dword [ebp - 0x28]
call fcn.004039da
pop ecx
push ebx
call fcn.004039da
pop ecx
push dword [ebp - 0x10]
call fcn.004039f9
pop ecx
push dword [ebp - 0x14]
call fcn.004039f9
cmp dword [ebp - 4], 0
pop ecx
je 0x40121f
push dword [ebp - 4]
call fcn.004090a1
pop ecx
cmp dword [ebp - 8], 0
je 0x40122e
push dword [ebp - 8]
call fcn.004090a1
pop ecx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret