Function at 0x40ddd0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x44bef0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4638dc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x24], ebx
call fcn.0041591e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40de17
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x38], ebx
call fcn.0041591e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40de45
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x38], 1
call fcn.0041591e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40de74
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov byte [esp + 0x38], 2
call fcn.0041591e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40dea3
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
cmp eax, 4
mov byte [esp + 0x38], 3
jne 0x40deca
push 0x1a
push str.DeviceVirtualDriveCdDvd
jmp 0x40dedf
cmp eax, 3
jne 0x40ded8
push 0x1b
push str.DeviceVirtualDriveFloppy
jmp 0x40dedf
push 0x1a
push str.DeviceVirtualDriveFixed
lea ecx, [esp + 0x1c]
call fcn.00401980
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
cmp eax, ebx
mov dword [esp + 0x24], eax
jne 0x40df75
mov ebx, dword [esp + 0x40]
push 0x44e90f
mov ecx, ebx
call fcn.00402ab0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x38], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40df2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40df4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40df6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
jmp 0x40e120
mov ebp, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x44], ebx
jmp 0x40df85
mov eax, dword [esp + 0x24]
mov ecx, edi
shr eax, cl
test al, 1
je 0x40e07f
lea ecx, [edi + 0x41]
push ecx
lea edx, [esp + 0x20]
push 0x44f480
push edx
call fcn.00402cf0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov ebx, 0x400
sub eax, ebx
add esp, 0xc
or eax, ecx
jge 0x40dfcb
push ebx
lea ecx, [esp + 0x1c]
call fcn.00401490
mov esi, dword [esp + 0x18]
cmp dword [esi - 8], ebx
jl 0x40e155
mov eax, dword [esp + 0x1c]
push ebx
push esi
mov dword [esi - 0xc], ebx
push eax
mov byte [esi + 0x400], 0
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceA]
test eax, eax
je 0x40e07f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40dff8
sub eax, edx
js 0x40e155
cmp eax, dword [esi - 8]
jg 0x40e155
test ebp, ebp
mov dword [esi - 0xc], eax
mov byte [eax + esi], cl
je 0x40e07f
cmp dword [esi - 0xc], 0
jl 0x40e07f
push ebp
push esi
call fcn.00431da6
add esp, 8
test eax, eax
je 0x40e07f
sub eax, esi
jne 0x40e07f
push 1
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00404a10
mov eax, dword [eax]
push eax
call fcn.0043278a
add esp, 4
cmp eax, dword [esp + 0x44]
mov eax, dword [esp + 0x28]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e076
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40e08b
add dword [esp + 0x44], 1
add edi, 1
cmp edi, 0x1a
jl 0x40df81
mov ecx, dword [esp + 0x44]
push ecx
push ebp
lea edx, [esp + 0x28]
push str._s_d
push edx
call fcn.00402cf0
mov edi, dword [esp + 0x30]
add edi, 0xfffffff0
push edi
call fcn.004014e0
mov ebx, dword [esp + 0x54]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x10]
add esp, 0x14
mov byte [esp + 0x38], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e0da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e0f8
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea eax, [esi - 0x10]
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e119
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x38], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e13d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
push 0x80070057
call fcn.00401010
int3