Function at 0x5373e4
Capabilities:
Get volume information via ioctl

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x8a
push 0
push 0
dec ecx
jne 0x5373ec
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x537de7
push dword fs:[eax]
mov dword fs:[eax], esp
or edx, 0xffffffff
mov eax, dword [esi + 0x3dc]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
push 0
push 1
mov ecx, 1
mov edx, 7
mov eax, esi
call fcn.00538368
mov dword [ebp - 0x50], eax
push 0
push 1
mov ecx, 0x12
mov edx, 7
mov eax, esi
call fcn.00538368
mov dword [ebp - 0x54], eax
push 0
push 0
xor ecx, ecx
mov edx, 0x56
mov eax, esi
call fcn.00538368
mov dword [ebp - 0x58], eax
push 0
push 0
mov ecx, 0x420
mov edx, 0x2d
mov eax, esi
call fcn.00538368
mov dword [ebp - 0x5c], eax
push 0x537df8
push 0x537e08
call fcn.00407290
push eax
call fcn.004072a0
mov dword [ebp - 0x40], eax
mov eax, dword [0x5cf28c]
mov eax, dword [eax]
mov edx, 0x258
call fcn.00535a44
mov edi, eax
mov dl, 1
mov eax, dword [0x41a8fc]
call fcn.004038fc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x3cc], edi
mov byte [ebp - 0x3c8], 0
lea edx, [ebp - 0x3cc]
xor ecx, ecx
mov eax, 0x537e1c
call fcn.005ad6d4
test edi, edi
jle 0x537b8e
push 0
push 0
call fcn.00407278
mov ebx, eax
mov eax, ebx
call fcn.00402a94
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push ebx
call fcn.00407278
test eax, eax
je 0x537a0a
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0040c6e8
mov eax, dword [ebp - 0x14]
call fcn.005ad678
jmp 0x537a00
mov eax, dword [ebp - 0x14]
call fcn.00404ce0
push eax
call fcn.00407230
cmp eax, 3
jne 0x5379d8
mov edx, dword [0x5373c4]
mov eax, 0x48
call fcn.00405838
mov ebx, eax
push ebx
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404d40
mov byte [ebx + 0xc], 0
mov byte [ebx + 0x40], 0
push 0x104
lea eax, [ebp - 0x27e]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x104
lea eax, [ebp - 0x179]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404ce0
push eax
call fcn.00407300
test eax, eax
je 0x5375e5
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x27e]
call fcn.0040c6e8
mov edx, 0x537e4c
mov eax, dword [ebp - 0x34]
call fcn.00404e24
test eax, eax
jle 0x5375b9
mov byte [ebx + 0xc], 1
jmp 0x5375e5
mov edx, 0x537e5c
mov eax, dword [ebp - 0x34]
call fcn.00404e24
test eax, eax
jle 0x5375d0
mov byte [ebx + 0xc], 2
jmp 0x5375e5
mov edx, 0x537e6c
mov eax, dword [ebp - 0x34]
call fcn.00404e24
test eax, eax
jle 0x5375e5
mov byte [ebx + 0xc], 3
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404ce0
push eax
call fcn.00407220
test eax, eax
je 0x537652
mov eax, dword [ebp - 0x28]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x30]
xor edx, edx
call fcn.004058f8
call fcn.004058f8
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
mov eax, dword [ebp - 0x30]
imul dword [ebp - 0x24]
xor edx, edx
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
mov eax, dword [ebp - 0x24]
imul dword [ebp - 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x2c], eax
lea eax, [ebp - 0x38]
mov ecx, dword [ebx]
mov edx, 0x537e78
call fcn.00404b2c
push 0
push 0x80
push 3
push 0
push 3
push 0x80000080
mov eax, dword [ebp - 0x38]
call fcn.00404ce0
push eax
call fcn.00407100
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x53798a
cmp dword [ebp - 0x40], 0
je 0x537709
push 0x60
lea eax, [ebp - 0x2e0]
push eax
push 0
push 0
push 0x90064
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x3c]
push eax
call dword [ebp - 0x40]
test eax, eax
jne 0x537709
mov eax, dword [ebp - 0x2d0]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x2cc]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x2d8]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x2d4]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x2b4]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x2b8]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x28]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
call fcn.004058f8
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
push 0
lea eax, [ebp - 0x4c]
push eax
push 0x28
lea eax, [ebp - 0x308]
push eax
push 0
push 0
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00407160
test eax, eax
je 0x5377de
mov eax, dword [ebp - 0x308]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x304]
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
add eax, dword [ebp - 0x300]
adc edx, dword [ebp - 0x2fc]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edx
mov eax, dword [ebp - 0x300]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x2fc]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx]
mov dword [ebp - 0x3f4], eax
mov byte [ebp - 0x3f0], 0xb
xor eax, eax
mov al, byte [ebp - 0x2f0]
mov dword [ebp - 0x3ec], eax
mov byte [ebp - 0x3e8], 0
lea eax, [ebx + 0x30]
mov dword [ebp - 0x3e4], eax
mov byte [ebp - 0x3e0], 0x10
lea eax, [ebp - 0x300]
mov dword [ebp - 0x3dc], eax
mov byte [ebp - 0x3d8], 0x10
lea eax, [ebx + 0x38]
mov dword [ebp - 0x3d4], eax
mov byte [ebp - 0x3d0], 0x10
lea edx, [ebp - 0x3f4]
mov ecx, 4
mov eax, 0x537e88
call fcn.005ad6d4
jmp 0x53791d
mov eax, dword [ebx]
mov dword [ebp - 0x40c], eax
mov byte [ebp - 0x408], 0xb
call fcn.00407260
mov dword [ebp - 0x404], eax
mov byte [ebp - 0x400], 0
mov dword [ebp - 0x3fc], 0x28
mov byte [ebp - 0x3f8], 0
lea edx, [ebp - 0x40c]
mov ecx, 2
mov eax, 0x537ed4
call fcn.005ad6d4
push 0
lea eax, [ebp - 0x4c]
push eax
push 0x90
lea eax, [ebp - 0x398]
push eax
push 0
push 0
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00407160
test eax, eax
je 0x5378e5
mov eax, dword [ebp - 0x390]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
add eax, dword [ebp - 0x388]
adc edx, dword [ebp - 0x384]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edx
mov eax, dword [ebp - 0x388]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x384]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx]
mov dword [ebp - 0x42c], eax
mov byte [ebp - 0x428], 0xb
lea eax, [ebx + 0x30]
mov dword [ebp - 0x424], eax
mov byte [ebp - 0x420], 0x10
lea eax, [ebp - 0x388]
mov dword [ebp - 0x41c], eax
mov byte [ebp - 0x418], 0x10
lea eax, [ebx + 0x38]
mov dword [ebp - 0x414], eax
mov byte [ebp - 0x410], 0x10
lea edx, [ebp - 0x42c]
mov ecx, 3
mov eax, 0x537f0c
call fcn.005ad6d4
jmp 0x53791d
call fcn.00407260
mov dword [ebp - 0x43c], eax
mov byte [ebp - 0x438], 0
mov dword [ebp - 0x434], 0x90
mov byte [ebp - 0x430], 0
lea edx, [ebp - 0x43c]
mov ecx, 1
mov eax, 0x537f48
call fcn.005ad6d4
push 0
lea eax, [ebp - 0x4c]
push eax
push 0x20
lea eax, [ebp - 0x3b8]
push eax
push 0
push 0
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00407160
test eax, eax
jne 0x537981
push 0
lea eax, [ebp - 0x4c]
push eax
push 0xc
lea eax, [ebp - 0x3c4]
push eax
push 0
push 0
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00407160
test eax, eax
je 0x537970
mov eax, dword [ebp - 0x3c0]
mov dword [ebx + 8], eax
jmp 0x53798a
mov eax, 0x537f80
call fcn.005ad678
xor eax, eax
mov dword [ebx + 8], eax
jmp 0x53798a
mov eax, dword [ebp - 0x3b0]
mov dword [ebx + 8], eax
mov eax, dword [ebx]
mov dword [ebp - 0x40c], eax
mov byte [ebp - 0x408], 0xb
mov eax, dword [ebx + 8]
mov dword [ebp - 0x404], eax
mov byte [ebp - 0x400], 0
lea eax, [ebx + 0x10]
mov dword [ebp - 0x3fc], eax
mov byte [ebp - 0x3f8], 0x10
lea edx, [ebp - 0x40c]
mov ecx, 2
mov eax, 0x537f9c
call fcn.005ad6d4
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0041d414
lea eax, [ebp - 0x440]
mov edx, dword [ebp - 4]
call fcn.00404a18
mov eax, dword [ebp - 0x440]
call fcn.00404ae0
inc eax
add dword [ebp - 8], eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0040c6e8
cmp dword [ebp - 0x14], 0
jne 0x53751a
mov eax, dword [ebp - 4]
call fcn.00402ab4
dec edi
test edi, edi
jl 0x537b8e
inc edi
mov dword [ebp - 0x74], edi
xor edi, edi
lea eax, [ebp - 0x444]
push eax
mov eax, dword [0x5cf28c]
mov eax, dword [eax]
mov ecx, edi
mov edx, 0x25a
call fcn.00535964
mov edx, dword [ebp - 0x444]
lea eax, [ebp - 0x70]
call fcn.00404aa8
mov dword [ebp - 0x43c], edi
mov byte [ebp - 0x438], 0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x434], eax
mov byte [ebp - 0x430], 0xb
lea edx, [ebp - 0x43c]
mov ecx, 1
mov eax, 0x537fc8
call fcn.005ad6d4
cmp dword [ebp - 0x70], 0
je 0x537b84
mov eax, dword [0x5cf28c]
mov eax, dword [eax]
mov ecx, edi
mov edx, 0x73d
call fcn.00535514
mov dword [ebp - 0x6c], eax
mov eax, dword [0x5cf28c]
mov eax, dword [eax]
mov ecx, edi
mov edx, 0x73e
call fcn.00535514
mov ebx, eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x43c], eax
mov byte [ebp - 0x438], 0
mov dword [ebp - 0x434], ebx
mov byte [ebp - 0x430], 0
lea edx, [ebp - 0x43c]
mov ecx, 1
mov eax, 0x537fe8
call fcn.005ad6d4
cmp dword [ebp - 0x6c], 0xffffffff
je 0x537aef
inc ebx
jne 0x537b84
mov edx, dword [0x5373c4]
mov eax, 0x48
call fcn.00405838
mov ebx, eax
mov eax, dword [0x5cf28c]
mov eax, dword [eax]
mov ecx, edi
mov edx, 0x73c
call fcn.00535514
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebx + 4], eax
mov ecx, ebx
mov edx, edi
mov eax, esi
call fcn.0053802c
mov eax, ebx
mov edx, dword [ebp - 0x70]
call fcn.00404874
mov byte [ebx + 0x40], 1
mov edx, ebx
mov eax, dword [esi + 0x400]
call fcn.0041d414
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x537b79
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0041d5c0
mov ebx, eax
cmp edi, dword [ebx + 8]
jne 0x537b76
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0041d460
mov edx, ebx
mov eax, dword [esi + 0x400]
call fcn.0041d414
jmp 0x537b79
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x10]
jg 0x537b4a
inc edi
dec dword [ebp - 0x74]
jne 0x537a21
cmp dword [ebp - 0xc], 0
je 0x537be1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x537bd9
inc eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0041d5c0
mov ebx, eax
mov eax, ebx
mov edx, dword [0x5373c4]
call fcn.00405604
mov edx, dword [0x5373c4]
mov eax, ebx
call fcn.0040584c
inc dword [ebp - 0x10]
dec dword [ebp - 0x74]
jne 0x537baa
mov eax, dword [ebp - 0xc]
call fcn.0040392c
mov dword [ebp - 0x68], 0xffffffff
mov eax, dword [esi + 0x400]
cmp dword [eax + 8], 0
jle 0x537bf9
xor eax, eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x60]
mov edx, 0x104
call fcn.00404e6c
push 0x104
mov eax, dword [ebp - 0x60]
call fcn.00404ce0
push eax
call fcn.004072c0
lea eax, [ebp - 0x64]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x60]
call fcn.00404d40
mov eax, dword [esi + 0x400]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x537d63
inc eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 0x400]
call fcn.0041d5c0
mov ebx, eax
cmp byte [ebx + 0x40], 0
je 0x537cdd
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x43c], eax
mov byte [ebp - 0x438], 0xb
push dword [ebx + 0x14]
push dword [ebx + 0x10]
lea edx, [ebp - 0x448]
mov eax, esi
call fcn.00538384
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x434], eax
mov byte [ebp - 0x430], 0xb
lea edx, [ebp - 0x43c]
mov ecx, 1
mov eax, 0x53800c
call fcn.0040cbd8
mov eax, dword [esi + 0x3dc]
mov eax, dword [eax + 0x23c]
mov edx, dword [ebp - 0x70]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi + 0x32c]
mov eax, dword [eax + 0x23c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x70]
mov edi, dword [eax]
call dword [edi + 0x3c]
jmp 0x537d45
lea eax, [ebp - 0x44c]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x43c], eax
mov byte [ebp - 0x438], 0xb
push dword [ebx + 0x14]
push dword [ebx + 0x10]
lea edx, [ebp - 0x450]
mov eax, esi
call fcn.00538384
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x434], eax
mov byte [ebp - 0x430], 0xb
lea edx, [ebp - 0x43c]
mov ecx, 1
mov eax, 0x538020
call fcn.0040cbd8
mov edx, dword [ebp - 0x44c]
mov eax, dword [esi + 0x3dc]
mov eax, dword [eax + 0x23c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx]
mov edx, dword [ebp - 0x64]
call fcn.00404c2c
jne 0x537d57
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x68], eax
inc dword [ebp - 0x10]
dec dword [ebp - 0x74]
jne 0x537c4c
mov eax, dword [esi + 0x3dc]
mov eax, dword [eax + 0x23c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x537d89
mov edx, dword [ebp - 0x68]
mov eax, dword [esi + 0x3dc]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x537dee
lea eax, [ebp - 0x450]
mov edx, 3
call fcn.00404844
lea eax, [ebp - 0x444]
call fcn.00404f00
lea eax, [ebp - 0x440]
call fcn.00404820
lea eax, [ebp - 0x70]
call fcn.00404820
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.00404844
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00404844
lea eax, [ebp - 0x14]
call fcn.00404820
ret