Function at 0x40c97b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 8
call fcn.00417793
add esp, 4
mov dword [ebp - 0x1c], eax
mov edi, eax
mov esi, 0x26996ec
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
push 8
call fcn.00417793
add esp, 4
mov dword [ebp - 0x28], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x1bc
call fcn.00419200
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ca2b
push ebx
call fcn.0041778d
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004096c3
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 8]
push eax
push 0x400
mov eax, dword [ebp - 0x2c]
cdq
push edx
push eax
push 0x1b
mov eax, dword [ebp + 8]
cdq
push edx
push eax
call fcn.00408b7e
cmp dword [ebp - 8], 0
jle 0x40d103
push 0x80000301
push 0
push 0x7d0
push 0x80000301
push 0
push 0x11
push 0x80000005
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40ca8f
mov eax, 0x26996ec
push eax
push 3
mov ebx, 0x1a8
call fcn.00419990
add esp, 0x28
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040d240
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40cac1
push ebx
call fcn.0041778d
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40cad5
push ebx
call fcn.0041778d
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40caec
mov eax, 0x421240
push eax
push 1
mov ebx, 0x130
call fcn.00418f60
add esp, 0x10
mov dword [ebp - 0x2c], eax
push 0x80000002
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
push 0x4212b9
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40cb33
mov eax, 0x421240
push eax
push 4
mov ebx, 0x14c
call fcn.004199e0
add esp, 0x34
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x2c]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fild dword [ebp - 0x30]
fstp qword [ebp - 0x40]
fsub qword [ebp - 0x40]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.00403641
push 0x80000301
push 0
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40cb81
mov eax, 0x421240
push eax
push 2
mov ebx, 0x138
call fcn.00418bb0
add esp, 0x1c
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40cbab
push ebx
call fcn.0041778d
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov ebx, dword [0x2699ebb]
call fcn.00403ac2
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x40cf8b
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x1bc
call fcn.00419200
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40cbfc
push ebx
call fcn.0041778d
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], esp
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40cc0d
add eax, 8
push eax
push 0x100
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40cc39
push 0x243
push 0x402e99f
push 6
call fcn.0041779f
add esp, 0xc
mov dword [ebp - 0x18], eax
push 0x80000301
push 0
push dword [ebp - 0x18]
push 0x80000005
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40cc59
mov eax, 0x26996ec
push eax
push 2
mov ebx, 0x1a0
call fcn.00419af0
add esp, 0x1c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40cc83
push ebx
call fcn.0041778d
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0x80000005
push 0
push 0x26998b2
push 0x80000005
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40ccac
mov eax, 0x26996ec
push eax
push 3
mov ebx, 0x1c4
call fcn.00419b20
add esp, 0x28
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x1c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40cce4
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40cce0
imul eax, dword [ebx]
jmp 0x40ccd5
mov ecx, eax
test ecx, ecx
je 0x40cd03
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40ccfc
push ebx
push eax
call fcn.0041778d
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40ccea
call fcn.0041778d
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x1c]
call fcn.00403ac2
xor ecx, ecx
push eax
lea eax, [ebp - 0x20]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40cf81
push 0x80000301
push 0
push 0x80
push 1
mov ebx, 0x184
call fcn.004194f0
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40cd63
push ebx
call fcn.0041778d
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x20]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push 0x2699743
mov ebx, dword [ebp - 0x2c]
push dword [ebx]
mov ecx, 2
call fcn.004035ea
add esp, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 0x80
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40cdaf
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x40cdd6
push 0x367
push 0x402e99f
push 6
call fcn.0041779f
add esp, 0xc
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40cde6
push ebx
call fcn.0041778d
add esp, 4
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x20]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x30], ebx
push 0x2699743
mov ebx, dword [ebp - 0x30]
push dword [ebx]
mov ecx, 2
call fcn.004035ea
add esp, 8
mov dword [ebp - 0x34], eax
push 0x80000005
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x40ce32
mov eax, 0x26996ec
push eax
push 1
mov ebx, 0x168
call fcn.004186a0
add esp, 0x10
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40ce58
push ebx
call fcn.0041778d
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40ce6e
push ebx
call fcn.0041778d
add esp, 4
pop eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x28]
add ebx, 4
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40ce99
push eax
mov ebx, eax
call fcn.00401081
inc eax
push eax
call fcn.00417793
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40ceac
push ebx
call fcn.0041778d
add esp, 4
pop eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebx], eax
push 0x2699ebb
push 4
mov eax, 2
call fcn.00417bb0
add esp, 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov ebx, dword [0x2699ebb]
mov dword [ebp - 0x30], ebx
call fcn.00403adb
mov dword [ebp - 0x34], ecx
mov edi, dword [ebp - 0x30]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x40cef9
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x34]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0x30]
call fcn.004177ab
add esp, 8
mov dword [0x2699ebb], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x34]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x2c]
push edi
push eax
push 8
call fcn.00417793
add esp, 4
pop esi
mov edi, eax
push eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x40cf53
push eax
mov ebx, eax
call fcn.00401081
inc eax
push eax
call fcn.00417793
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x40cf72
push eax
mov ebx, eax
call fcn.00401081
inc eax
push eax
call fcn.00417793
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
pop eax
pop edi
mov dword [edi], eax
pop eax
pop ebx
pop ecx
jmp 0x40cd20
add esp, 0xc
mov dword [ebp - 0x20], 0
mov ebx, dword [0x2699ebb]
call fcn.00403ac2
xor ecx, ecx
push eax
lea eax, [ebp - 0x20]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40d100
mov ebx, dword [0x2699ebb]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x20]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x2c], ebx
push 0x80000002
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x40cff5
mov eax, 0x421240
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40d009
mov eax, 0x421240
push eax
push 4
mov ebx, 0x148
call fcn.00417e60
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x40d0f8
mov ebx, dword [0x2699ebb]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x20]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x2c], ebx
mov ebx, dword [0x2699ebb]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x20]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 0x30], ebx
push 0x80000002
push 0
push 1
push 0x80000301
push 0
push 1
push 0
push 0
push 0
push 0x80000004
push 0
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebx]
test eax, eax
jne 0x40d09b
mov eax, 0x421240
push eax
push 0x80000004
push 0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x40d0b1
mov eax, 0x421240
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40d0c5
mov eax, 0x421240
push eax
push 6
mov ebx, 0x180
call fcn.00418c10
add esp, 0x4c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40d0ef
push ebx
call fcn.0041778d
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
jmp 0x40d100
pop eax
pop ebx
pop ecx
jmp 0x40cf9f
add esp, 0xc
cmp dword [ebp + 0x10], 0
mov eax, 0
sete al
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x40d151
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40d138
push eax
mov ebx, eax
call fcn.00401081
inc eax
push eax
call fcn.00417793
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d14b
push ebx
call fcn.0041778d
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40d16d
push eax
mov ebx, eax
call fcn.00401081
inc eax
push eax
call fcn.00417793
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40d172
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40d183
push ebx
call fcn.0041778d
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40d193
push ebx
call fcn.0041778d
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40d1a3
push ebx
call fcn.0041778d
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40d1b3
push ebx
call fcn.0041778d
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40d1d1
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40d1cd
imul eax, dword [ebx]
jmp 0x40d1c2
mov ecx, eax
test ecx, ecx
je 0x40d1f0
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40d1e9
push ebx
push eax
call fcn.0041778d
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40d1d7
call fcn.0041778d
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40d208
push ebx
call fcn.0041778d
add esp, 4
mov ebx, dword [ebp - 0x28]
push ebx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d21c
push ebx
call fcn.0041778d
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d230
push ebx
call fcn.0041778d
add esp, 4
pop ebx
call fcn.0041778d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc