Function at 0x4901c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ed5e
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x732480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x23c], 0
mov dword [edi], 0x71f078
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x23c], 1
call fcn.00480ad0
push 0
push 0x2200000
push 3
push 0
push 7
push 8
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0042f930
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x22c], esi
mov eax, dword [eax]
test eax, eax
je 0x49027c
cmp eax, 0xffffffff
je 0x49028e
mov eax, dword [ebp - 0x220]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x49028e
push 4
push 2
push dword [ebp - 0x220]
call fcn.00425140
add esp, 0xc
cmp esi, 0xffffffff
je 0x4905fa
push 0x4000
call fcn.005591ab
mov esi, eax
add esp, 4
test esi, esi
jne 0x4902af
call fcn.00469f00
push 0
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0
push eax
push 0x4000
push esi
push 0
push 0
push 0x900a8
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x490417
mov eax, dword [esi]
cmp eax, 0xa0000003
jne 0x490355
movzx eax, word [esi + 8]
movzx ecx, word [esi + 0xa]
shr eax, 1
add eax, 8
shr ecx, 1
push ecx
lea eax, [esi + eax*2]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00435080
mov ecx, dword [edi]
mov edx, eax
add esp, 0xc
mov eax, dword [edx]
mov dword [edi], eax
mov dword [edx], ecx
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax]
test eax, eax
je 0x490341
cmp eax, 0xffffffff
je 0x490394
mov eax, dword [ebp - 0x21c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x490394
push 4
push 2
push dword [ebp - 0x21c]
call fcn.00425140
add esp, 0xc
jmp 0x490394
cmp eax, 0xa000000c
jne 0x490394
movzx eax, word [esi + 8]
movzx ecx, word [esi + 0xa]
shr eax, 1
add eax, 0xa
shr ecx, 1
push ecx
lea eax, [esi + eax*2]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00435080
mov ecx, dword [edi]
mov edx, eax
add esp, 0xc
mov eax, dword [edx]
mov dword [edi], eax
mov dword [edx], ecx
lea ecx, [ebp - 0x21c]
call fcn.00406190
mov ecx, dword [edi]
cmp dword [ecx + 4], 4
jle 0x490417
mov eax, dword [ecx + 0xc]
cmp word [eax + ecx], 0x5c
jne 0x490417
cmp word [eax + ecx + 4], 0x3f
jne 0x490417
cmp word [eax + ecx + 6], 0x5c
jne 0x490417
push 0xffffffffffffffff
push 4
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.0042b560
mov ecx, dword [edi]
mov edx, eax
mov eax, dword [edx]
mov dword [edi], eax
mov dword [edx], ecx
lea ecx, [ebp - 0x21c]
call fcn.00406190
push 3
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.0042b190
push eax
push 0x6028f4
push 3
call fcn.00427bd0
add esp, 0xc
test al, al
je 0x490417
push ecx
mov eax, esp
mov ecx, 0x5c
push 3
push 0
mov word [eax], cx
mov ecx, edi
call fcn.0042cc80
push esi
call fcn.00558b70
add esp, 4
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x737a0c]
cmp eax, 0xfffffffe
jle 0x49043b
call fcn.0048f620
push 0x1d
push str.Volume__a_z__0_9____
mov dword [ebp - 0x244], 0x1d
call fcn.0042a840
add esp, 8
mov dword [ebp - 0x21c], eax
push 0
push 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x224]
call fcn.00444aa0
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 4
mov eax, dword [eax]
test eax, eax
je 0x4904a1
cmp eax, 0xffffffff
je 0x4904b3
mov eax, dword [ebp - 0x21c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4904b3
push 4
push 2
push dword [ebp - 0x21c]
call fcn.00425140
add esp, 0xc
push 0
push 0
push edi
lea ecx, [ebp - 0x224]
call fcn.00449c00
test eax, eax
jne 0x4905ef
lea ecx, [ebp - 0x224]
call fcn.0044b070
push eax
lea eax, [ebp - 0x254]
mov ecx, edi
push eax
call fcn.0042b190
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x244], ecx
push eax
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x230], 4
mov dword [ebp - 0x22c], 0x5c3a30
call fcn.0048c8a0
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 5
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.0042f930
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x4905b7
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00435080
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.0044b070
push esi
push eax
push 0
mov ecx, edi
call fcn.0042cbf0
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax]
test eax, eax
je 0x4905a5
or edx, 0xffffffff
cmp eax, edx
je 0x4905ba
mov eax, dword [ebp - 0x21c]
mov ecx, edx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4905ba
push 4
push 2
push dword [ebp - 0x21c]
call fcn.00425140
add esp, 0xc
or edx, 0xffffffff
mov eax, dword [ebp - 0x220]
mov eax, dword [eax]
test eax, eax
je 0x4905dd
cmp eax, 0xffffffff
je 0x4905ef
mov eax, dword [ebp - 0x220]
lock xadd dword [eax], edx
dec edx
setne al
test al, al
jne 0x4905ef
push 4
push 2
push dword [ebp - 0x220]
call fcn.00425140
add esp, 0xc
lea ecx, [ebp - 0x224]
call fcn.004452d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00553392
mov esp, ebp
pop ebp
ret