Function at 0x455f30
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x46ede0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b670]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
call fcn.004194d8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x455f71
push 0x80004005
call fcn.00401f50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], 0
call fcn.004194d8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x455fa3
push 0x80004005
call fcn.00401f50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x40]
mov esi, dword [ebx + 0x10]
mov byte [esp + 0x34], 1
cmp dword [ebx + 0xc], esi
jbe 0x455fc9
call fcn.00430a7b
mov edi, dword [ebx + 0xc]
mov ebp, dword [ebx]
cmp edi, dword [ebx + 0x10]
jbe 0x455fd8
call fcn.00430a7b
mov eax, dword [ebx]
push esi
push ebp
push edi
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call fcn.00454900
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ebp, ebp
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x456069
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x490d6c], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x34], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45602a
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
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x456052
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov dword [esp + 0x20], ebp
jmp 0x456074
mov eax, dword [esp + 0x14]
mov edi, 1
mov ecx, ebp
shl edi, cl
test eax, edi
je 0x456110
lea ecx, [ebp + 0x41]
movzx eax, cx
movzx esi, ax
push esi
lea edx, [esp + 0x1c]
push 0x479494
push edx
call fcn.00402020
push esi
lea eax, [esp + 0x2c]
push 0x479488
push eax
call fcn.00402020
mov ecx, dword [esp + 0x34]
add esp, 0x18
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x4560ce
cmp eax, 2
je 0x4560ce
not edi
and dword [esp + 0x14], edi
jmp 0x456110
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.00403750
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00455940
add esp, 4
cmp eax, dword [esp + 0x3c]
je 0x456100
not edi
and dword [esp + 0x14], edi
jmp 0x456110
inc dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
mov ecx, ebx
call fcn.00454d80
inc ebp
cmp ebp, 0x20
jb 0x456070
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45613f
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
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x456167
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret