Function at 0x4ad260
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a416c
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x62cf50]
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 0x4ad2a6
xor al, al
jmp 0x4ad5cc
mov ecx, edx
mov dword [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ad2c0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.00409db0
mov edi, dword [ebp - 0x38]
mov dword [ebp - 4], 0
test edi, edi
je 0x4ad5ac
test esi, esi
je 0x4ad5ac
cmp esi, 0xffffffff
je 0x4ad5ac
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 0x4ad5ac
cmp dword [ebp - 0x30], 0x17e6a7f
jne 0x4ad5ac
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], 3
push eax
push esi
call fcn.00433a80
add esp, 8
test al, al
je 0x4ad579
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x4ad579
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x2c]
cmp word [eax + edi*2 - 2], 0x5c
jne 0x4ad39d
cmp ecx, 8
lea eax, [ebp - 0x2c]
cmovae eax, edx
cmp word [eax + esi*2 - 2], 0x5c
je 0x4ad39d
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.0040ef60
jmp 0x4ad3f4
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
cmp word [eax + edi*2 - 2], 0x5c
je 0x4ad3fa
cmp ecx, 8
lea eax, [ebp - 0x2c]
cmovae eax, edx
cmp word [eax + esi*2 - 2], 0x5c
jne 0x4ad3fa
lea eax, [esi - 1]
push eax
push 0
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00410b80
push eax
lea ecx, [ebp - 0x2c]
call fcn.00410e40
lea ecx, [ebp - 0x94]
call fcn.0040a580
cmp dword [ebp - 0x1c], 0
je 0x4ad579
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
lea eax, [ebp - 0x2c]
push 8
cmovae eax, edx
push 0x5c45dc
push eax
call fcn.0042228c
add esp, 0xc
test eax, eax
jne 0x4ad579
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
mov ebx, dword [ebp - 0x2c]
cmp edx, 8
mov eax, dword [ebp - 0x1c]
cmovae ecx, ebx
cmp eax, 8
jbe 0x4ad57c
lea esi, [ecx + 0x10]
add eax, 0xfffffff8
je 0x4ad57c
cmp word [esi], 0x5c
je 0x4ad455
add esi, 2
sub eax, 1
jne 0x4ad442
jmp 0x4ad57c
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x4ad57c
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmp edx, 8
lea edx, [ebp - 0x79]
push edx
cmovae eax, ebx
lea eax, [eax + ecx*2]
lea ecx, [ebp - 0x2c]
cmovae ecx, ebx
push eax
lea ecx, [ecx + esi*2]
push ecx
lea ecx, [ebp - 0x78]
call fcn.004a6bd0
cmp dword [ebp - 0x68], 0
mov byte [ebp - 4], 0xc
je 0x4ad56a
mov ebx, dword [ebp - 0x1c]
sub ebx, esi
cmp edi, ebx
jb 0x4ad4d9
push 0xffffffffffffffff
sub edi, ebx
lea eax, [ebp - 0x94]
push edi
push eax
lea ecx, [ebp - 0x48]
lfence
call fcn.00410b80
push eax
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 0xf
push eax
mov dword [ebp - 0x14], 1
call fcn.00461390
mov edi, dword [ebp - 0x38]
add esp, 8
mov byte [ebp - 0x79], 0
test al, al
jne 0x4ad4dd
mov byte [ebp - 0x79], 1
test byte [ebp - 0x14], 1
mov dword [ebp - 4], 0xc
je 0x4ad4f5
lea ecx, [ebp - 0x94]
call fcn.0040a580
cmp byte [ebp - 0x79], 0
jne 0x4ad56a
sub edi, ebx
lea eax, [ebp - 0x60]
inc edi
lea ecx, [ebp - 0x48]
push edi
push 0
push eax
call fcn.00410b80
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0x12
jb 0x4ad525
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x4ad525
xor esi, esi
jmp 0x4ad54c
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 - 0x60]
call fcn.0040a580
cmp esi, 0x17e6a7f
lea ecx, [ebp - 0x78]
sete bl
call fcn.0040a580
mov edx, dword [ebp - 0x18]
jmp 0x4ad57e
lea ecx, [ebp - 0x78]
xor bl, bl
call fcn.0040a580
mov edx, dword [ebp - 0x18]
jmp 0x4ad57e
mov edx, dword [ebp - 0x18]
xor bl, bl
mov byte [ebp - 4], 0x15
cmp edx, 8
jb 0x4ad596
lea eax, [edx + 1]
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.0040a5e0
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
jmp 0x4ad5ae
xor bl, bl
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 4], 0x16
cmp ecx, 8
jb 0x4ad5ca
inc ecx
push ecx
push dword [ebp - 0x48]
lea ecx, [ebp - 0x48]
call fcn.0040a5e0
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 int.004016cd
mov esp, ebp
pop ebp
ret