Function at 0x497ff0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e49f
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], 0
test edx, edx
jne 0x498036
xor al, al
jmp 0x4983c3
mov ecx, edx
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x498050
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.00408740
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 4], 0
test edi, edi
je 0x4983b7
test esi, esi
je 0x4983b7
cmp esi, 0xffffffff
je 0x4983b7
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationByHandleW]
test eax, eax
je 0x4983b7
cmp dword [ebp - 0x30], 0x17e6a7f
jne 0x4983b7
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push esi
call fcn.0043eae0
add esp, 8
test al, al
je 0x4983ab
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x4983ab
mov ebx, dword [ebp - 0x38]
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x18]
cmp ebx, 8
mov esi, dword [ebp - 0x2c]
cmovae eax, dword [ebp - 0x4c]
cmp word [eax + edi*2 - 2], 0x5c
jne 0x498154
cmp ecx, 8
lea eax, [ebp - 0x2c]
cmovae eax, esi
cmp word [eax + edx*2 - 2], 0x5c
je 0x498154
cmp edx, ecx
jae 0x49813f
lea eax, [edx + 1]
cmp ecx, 8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, esi
mov dword [eax + edx*2], 0x5c
jmp 0x4981aa
push 0x5c
mov byte [ebp - 0x30], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x30]
push 1
call fcn.0040cc20
jmp 0x4981aa
cmp ebx, 8
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
cmp word [eax + edi*2 - 2], 0x5c
je 0x4981b0
cmp ecx, 8
lea eax, [ebp - 0x2c]
cmovae eax, esi
cmp word [eax + edx*2 - 2], 0x5c
jne 0x4981b0
lea eax, [edx - 1]
push eax
push 0
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408d90
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042a225
lea ecx, [ebp - 0xa0]
call fcn.00408e50
cmp dword [ebp - 0x1c], 0
je 0x4983ab
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
cmp ecx, 8
lea eax, [ebp - 0x2c]
push 8
cmovae eax, esi
push 0x573538
push eax
call fcn.004263eb
add esp, 0xc
test eax, eax
jne 0x4983ab
push 8
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.004278a0
mov ebx, eax
mov dword [ebp - 0x30], ebx
cmp ebx, 0xffffffff
je 0x4983ab
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x85]
cmovae ecx, dword [ebp - 0x2c]
push edx
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push eax
lea eax, [ecx + ebx*2]
push eax
lea ecx, [ebp - 0x64]
call fcn.00492790
cmp dword [ebp - 0x54], 0
mov byte [ebp - 4], 2
je 0x498397
mov ebx, dword [ebp - 0x1c]
sub ebx, dword [ebp - 0x30]
cmp edi, ebx
jb 0x4982eb
push 0xffffffffffffffff
sub edi, ebx
lea eax, [ebp - 0xa0]
push edi
push eax
lea ecx, [ebp - 0x4c]
call fcn.00408d90
mov esi, eax
mov dword [ebp - 0x14], 1
cmp dword [0x5cceb4], 0
mov byte [ebp - 4], 3
jne 0x49827d
push 0x5735c8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4982e8
push str.RtlCompareUnicodeString
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5cceb4], eax
cmp dword [ebp - 0x50], 8
lea ecx, [ebp - 0x6c]
push ecx
push dword [ebp - 0x54]
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push eax
call fcn.00452800
add esp, 0xc
test al, al
je 0x4982e8
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4982a7
mov esi, dword [esi]
lea ecx, [ebp - 0x34]
push ecx
push eax
push esi
call fcn.00452800
add esp, 0xc
test al, al
je 0x4982e8
mov esi, dword [0x5cceb4]
lea eax, [ebp - 0x34]
push 1
push eax
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
call dword [0x5677a4]
call esi
test eax, eax
sete al
test al, al
je 0x4982e8
mov edi, dword [ebp - 0x3c]
mov byte [ebp - 0x85], 0
jmp 0x4982f2
mov edi, dword [ebp - 0x3c]
mov byte [ebp - 0x85], 1
test byte [ebp - 0x14], 1
mov dword [ebp - 4], 2
je 0x49830a
lea ecx, [ebp - 0xa0]
call fcn.00408e50
cmp byte [ebp - 0x85], 0
jne 0x498397
sub edi, ebx
lea eax, [ebp - 0x84]
inc edi
lea ecx, [ebp - 0x4c]
push edi
push 0
push eax
call fcn.00408d90
cmp dword [ebp - 0x70], 8
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 4
jb 0x49834a
mov eax, dword [ebp - 0x84]
test eax, eax
jne 0x49834a
xor esi, esi
jmp 0x498371
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x84]
call fcn.00408e50
cmp esi, 0x17e6a7f
lea ecx, [ebp - 0x64]
sete bl
call fcn.00408e50
lea ecx, [ebp - 0x2c]
call fcn.00408e50
jmp 0x4983b9
lea ecx, [ebp - 0x64]
xor bl, bl
call fcn.00408e50
lea ecx, [ebp - 0x2c]
call fcn.00408e50
jmp 0x4983b9
lea ecx, [ebp - 0x2c]
xor bl, bl
call fcn.00408e50
jmp 0x4983b9
xor bl, bl
lea ecx, [ebp - 0x4c]
call fcn.00408e50
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret