Function at 0x4a1cc0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5760bc
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5edd38]
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 0x4a1d06
xor al, al
jmp 0x4a202c
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 0x4a1d20
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.00408f30
mov edi, dword [ebp - 0x38]
mov dword [ebp - 4], 0
test edi, edi
je 0x4a200c
test esi, esi
je 0x4a200c
cmp esi, 0xffffffff
je 0x4a200c
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 0x4a200c
cmp dword [ebp - 0x30], 0x17e6a7f
jne 0x4a200c
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.004304a0
add esp, 8
test al, al
je 0x4a1fd9
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x4a1fd9
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 0x4a1dfd
cmp ecx, 8
lea eax, [ebp - 0x2c]
cmovae eax, edx
cmp word [eax + esi*2 - 2], 0x5c
je 0x4a1dfd
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.0040dc80
jmp 0x4a1e54
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
cmp word [eax + edi*2 - 2], 0x5c
je 0x4a1e5a
cmp ecx, 8
lea eax, [ebp - 0x2c]
cmovae eax, edx
cmp word [eax + esi*2 - 2], 0x5c
jne 0x4a1e5a
lea eax, [esi - 1]
push eax
push 0
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409610
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040f610
lea ecx, [ebp - 0x94]
call fcn.0040a280
cmp dword [ebp - 0x1c], 0
je 0x4a1fd9
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
lea eax, [ebp - 0x2c]
push 8
cmovae eax, edx
push 0x591fec
push eax
call fcn.00420fc8
add esp, 0xc
test eax, eax
jne 0x4a1fd9
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 0x4a1fdc
lea esi, [ecx + 0x10]
add eax, 0xfffffff8
je 0x4a1fdc
cmp word [esi], 0x5c
je 0x4a1eb5
add esi, 2
sub eax, 1
jne 0x4a1ea2
jmp 0x4a1fdc
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x4a1fdc
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.0049b540
cmp dword [ebp - 0x68], 0
mov byte [ebp - 4], 0xc
je 0x4a1fca
mov ebx, dword [ebp - 0x1c]
sub ebx, esi
cmp edi, ebx
jb 0x4a1f39
push 0xffffffffffffffff
sub edi, ebx
lea eax, [ebp - 0x94]
push edi
push eax
lea ecx, [ebp - 0x48]
lfence
call fcn.00409610
push eax
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 0xf
push eax
mov dword [ebp - 0x14], 1
call fcn.00459270
mov edi, dword [ebp - 0x38]
add esp, 8
mov byte [ebp - 0x79], 0
test al, al
jne 0x4a1f3d
mov byte [ebp - 0x79], 1
test byte [ebp - 0x14], 1
mov dword [ebp - 4], 0xc
je 0x4a1f55
lea ecx, [ebp - 0x94]
call fcn.0040a280
cmp byte [ebp - 0x79], 0
jne 0x4a1fca
sub edi, ebx
lea eax, [ebp - 0x60]
inc edi
lea ecx, [ebp - 0x48]
push edi
push 0
push eax
call fcn.00409610
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0x12
jb 0x4a1f85
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x4a1f85
xor esi, esi
jmp 0x4a1fac
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.0040a280
cmp esi, 0x17e6a7f
lea ecx, [ebp - 0x78]
sete bl
call fcn.0040a280
mov edx, dword [ebp - 0x18]
jmp 0x4a1fde
lea ecx, [ebp - 0x78]
xor bl, bl
call fcn.0040a280
mov edx, dword [ebp - 0x18]
jmp 0x4a1fde
mov edx, dword [ebp - 0x18]
xor bl, bl
mov byte [ebp - 4], 0x15
cmp edx, 8
jb 0x4a1ff6
lea eax, [edx + 1]
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
jmp 0x4a200e
xor bl, bl
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 4], 0x16
cmp ecx, 8
jb 0x4a202a
inc ecx
push ecx
push dword [ebp - 0x48]
lea ecx, [ebp - 0x48]
call fcn.0040a2e0
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.00401682
mov esp, ebp
pop ebp
ret