Function at 0x40f7da
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.004192a2
add esp, 4
mov dword [ebp - 0x1c], eax
mov edi, eax
mov esi, 0x423200
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.004192a2
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.00419a10
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40f88a
push ebx
call fcn.0041929c
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0040c522
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.0040bb92
cmp dword [ebp - 8], 0
jle 0x40ff62
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 0x40f8ee
mov eax, 0x423200
push eax
push 3
mov ebx, 0x1a8
call fcn.0041b600
add esp, 0x28
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0041009f
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40f920
push ebx
call fcn.0041929c
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f934
push ebx
call fcn.0041929c
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f94b
mov eax, 0x42320b
push eax
push 1
mov ebx, 0x130
call fcn.0041aca0
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 0x4233e1
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f992
mov eax, 0x42320b
push eax
push 4
mov ebx, 0x14c
call fcn.0041b650
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.00404e56
push 0x80000301
push 0
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f9e0
mov eax, 0x42320b
push eax
push 2
mov ebx, 0x138
call fcn.0041a960
add esp, 0x1c
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40fa0a
push ebx
call fcn.0041929c
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov ebx, dword [0x2c2641a]
call fcn.004052d7
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x40fdea
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x1bc
call fcn.00419a10
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40fa5b
push ebx
call fcn.0041929c
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], esp
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40fa6c
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 0x40fa98
push 0x243
push 0x402e986
push 6
call fcn.004192a8
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 0x40fab8
mov eax, 0x423200
push eax
push 2
mov ebx, 0x1a0
call fcn.0041b760
add esp, 0x1c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40fae2
push ebx
call fcn.0041929c
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0x80000005
push 0
push 0x2c25e2b
push 0x80000005
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40fb0b
mov eax, 0x423200
push eax
push 3
mov ebx, 0x1c4
call fcn.0041b790
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 0x40fb43
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40fb3f
imul eax, dword [ebx]
jmp 0x40fb34
mov ecx, eax
test ecx, ecx
je 0x40fb62
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40fb5b
push ebx
push eax
call fcn.0041929c
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40fb49
call fcn.0041929c
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x1c]
call fcn.004052d7
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 0x40fde0
push 0x80000301
push 0
push 0x80
push 1
mov ebx, 0x184
call fcn.0041b1a0
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40fbc2
push ebx
call fcn.0041929c
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 0x2c25cb3
mov ebx, dword [ebp - 0x2c]
push dword [ebx]
mov ecx, 2
call fcn.00404dff
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 0x40fc0e
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x40fc35
push 0x367
push 0x402e986
push 6
call fcn.004192a8
add esp, 0xc
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40fc45
push ebx
call fcn.0041929c
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 0x2c25cb3
mov ebx, dword [ebp - 0x30]
push dword [ebx]
mov ecx, 2
call fcn.00404dff
add esp, 8
mov dword [ebp - 0x34], eax
push 0x80000005
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x40fc91
mov eax, 0x423200
push eax
push 1
mov ebx, 0x168
call fcn.0041a450
add esp, 0x10
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40fcb7
push ebx
call fcn.0041929c
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40fccd
push ebx
call fcn.0041929c
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 0x40fcf8
push eax
mov ebx, eax
call fcn.0040162f
inc eax
push eax
call fcn.004192a2
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 0x40fd0b
push ebx
call fcn.0041929c
add esp, 4
pop eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebx], eax
push 0x2c2641a
push 4
mov eax, 2
call fcn.004198c0
add esp, 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov ebx, dword [0x2c2641a]
mov dword [ebp - 0x30], ebx
call fcn.004052f0
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 0x40fd58
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.004192ba
add esp, 8
mov dword [0x2c2641a], 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.004192a2
add esp, 4
pop esi
mov edi, eax
push eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x40fdb2
push eax
mov ebx, eax
call fcn.0040162f
inc eax
push eax
call fcn.004192a2
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 0x40fdd1
push eax
mov ebx, eax
call fcn.0040162f
inc eax
push eax
call fcn.004192a2
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 0x40fb7f
add esp, 0xc
mov dword [ebp - 0x20], 0
mov ebx, dword [0x2c2641a]
call fcn.004052d7
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 0x40ff5f
mov ebx, dword [0x2c2641a]
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 0x40fe54
mov eax, 0x42320b
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40fe68
mov eax, 0x42320b
push eax
push 4
mov ebx, 0x148
call fcn.00419c10
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x40ff57
mov ebx, dword [0x2c2641a]
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 [0x2c2641a]
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 0x40fefa
mov eax, 0x42320b
push eax
push 0x80000004
push 0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x40ff10
mov eax, 0x42320b
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40ff24
mov eax, 0x42320b
push eax
push 6
mov ebx, 0x180
call fcn.0041a9c0
add esp, 0x4c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40ff4e
push ebx
call fcn.0041929c
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
jmp 0x40ff5f
pop eax
pop ebx
pop ecx
jmp 0x40fdfe
add esp, 0xc
cmp dword [ebp + 0x10], 0
mov eax, 0
sete al
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x40ffb0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40ff97
push eax
mov ebx, eax
call fcn.0040162f
inc eax
push eax
call fcn.004192a2
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 0x40ffaa
push ebx
call fcn.0041929c
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40ffcc
push eax
mov ebx, eax
call fcn.0040162f
inc eax
push eax
call fcn.004192a2
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40ffd1
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ffe2
push ebx
call fcn.0041929c
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40fff2
push ebx
call fcn.0041929c
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x410002
push ebx
call fcn.0041929c
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x410012
push ebx
call fcn.0041929c
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x410030
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x41002c
imul eax, dword [ebx]
jmp 0x410021
mov ecx, eax
test ecx, ecx
je 0x41004f
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x410048
push ebx
push eax
call fcn.0041929c
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x410036
call fcn.0041929c
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x410067
push ebx
call fcn.0041929c
add esp, 4
mov ebx, dword [ebp - 0x28]
push ebx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x41007b
push ebx
call fcn.0041929c
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x41008f
push ebx
call fcn.0041929c
add esp, 4
pop ebx
call fcn.0041929c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc