Function at 0x4b2830
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x7c
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4c0150
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
test edi, edi
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
je 0x4b28af
mov dword [ebp - 0x70], 7
mov dword [ebp - 0x74], 0
mov word [ebp - 0x84], 0
push edi
call fcn.005d3244
add esp, 4
mov esi, eax
cmp eax, 7
jbe 0x4b28b3
sub esp, 0xc
mov al, byte [ebp - 0x54]
lea ecx, [ebp - 0x84]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], esi
call fcn.00405590
cmp dword [ebp - 0x74], 0
jne 0x4b28db
jmp 0x4b28e6
xor ebx, ebx
jmp 0x4b2926
mov eax, esi
mov dword [ebp - 0x74], esi
lea ecx, [ebp - 0x84]
add eax, esi
push eax
push edi
push ecx
call fcn.0061e340
add esp, 0xc
mov word [ebp + esi*2 - 0x84], 0
cmp dword [ebp - 0x74], 0
je 0x4b28e6
mov ecx, dword [ebp + 8]
lea eax, [ecx + 1]
cmp eax, 2
jae 0x4b2939
xor ebx, ebx
mov ecx, dword [ebp - 0x70]
cmp ecx, 8
jb 0x4b2926
mov eax, dword [ebp - 0x84]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b291c
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b2e6a
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x10], 6
push 0
push 0
push 0
push 0
mov dword [ebp - 0x20], eax
push eax
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationByHandleW]
test eax, eax
je 0x4b28e6
cmp dword [ebp - 0x54], 0x17e6a7f
jne 0x4b28e6
lea eax, [ebp - 0x54]
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], 0
mov dword [ebp - 0x10], 7
push eax
push dword [ebp + 8]
call fcn.0042e9e0
add esp, 8
test al, al
je 0x4b2b56
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4b2b56
mov ecx, dword [ebp - 0x74]
cmp dword [ebp - 0x70], 7
jbe 0x4b29c0
mov edx, dword [ebp - 0x84]
jmp 0x4b29c6
lea edx, [ebp - 0x84]
mov esi, dword [ebp - 0x40]
movzx ecx, word [edx + ecx*2 - 2]
cmp esi, 7
jbe 0x4b29d9
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x20], edx
cmp cx, 0x5c
mov ecx, dword [ebp - 0x20]
movzx ecx, word [ecx + eax*2 - 2]
jne 0x4b2a10
cmp cx, 0x5c
je 0x4b2af8
cmp eax, esi
jae 0x4b2a5c
mov edx, dword [ebp - 0x20]
lea ecx, [eax + 1]
mov dword [ebp - 0x44], ecx
mov word [edx + eax*2], 0x5c
mov word [edx + eax*2 + 2], 0
jmp 0x4b2af8
cmp cx, 0x5c
jne 0x4b2af8
lea edi, [eax - 1]
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x6c], 0
cmp eax, edi
cmovb edi, eax
cmp edi, 7
jbe 0x4b2a7f
sub esp, 0xc
mov al, byte [ebp - 0x3c]
lea ecx, [ebp - 0x6c]
mov byte [esp + 4], al
mov dword [esp], edi
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], eax
call fcn.00405590
mov esi, dword [ebp - 0x40]
jmp 0x4b2a9c
sub esp, 0xc
mov al, byte [ebp - 0x6c]
lea ecx, [ebp - 0x54]
mov byte [esp + 4], al
mov dword [esp + 8], 0x5c
mov dword [esp], 1
call fcn.0040a570
jmp 0x4b2af8
lea eax, [edi + edi]
mov dword [ebp - 0x5c], edi
lea ecx, [ebp - 0x6c]
push eax
push dword [ebp - 0x20]
push ecx
call fcn.0061e340
add esp, 0xc
mov word [ebp + edi*2 - 0x6c], 0
cmp esi, 8
jb 0x4b2ad4
mov eax, dword [ebp - 0x54]
lea ecx, [esi + esi + 2]
cmp ecx, 0x1000
jb 0x4b2aca
mov ecx, eax
mov eax, dword [eax - 4]
add ecx, 0xfffffffc
sub ecx, eax
cmp ecx, 0x20
jae 0x4b2e82
add esi, esi
add esi, 0x25
mov ecx, esi
push ecx
push eax
call fcn.005d319e
add esp, 8
movsd xmm0, qword [ebp - 0x5c]
movsd xmm2, qword [ebp - 0x6c]
movsd xmm1, qword [ebp - 0x64]
movsd qword [ebp - 0x44], xmm0
movsd qword [ebp - 0x4c], xmm1
movsd qword [ebp - 0x54], xmm2
cmp dword [ebp - 0x44], 0
je 0x4b2b56
cmp dword [ebp - 0x40], 7
jbe 0x4b2b03
mov eax, dword [ebp - 0x54]
jmp 0x4b2b06
lea eax, [ebp - 0x54]
push 8
push 0x65d266
push eax
call fcn.005dcc34
add esp, 0xc
test eax, eax
jne 0x4b2b56
mov ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x40], 7
jbe 0x4b2b28
mov edx, dword [ebp - 0x54]
jmp 0x4b2b2b
lea edx, [ebp - 0x54]
cmp ecx, 9
jb 0x4b2b56
lea edi, [ecx - 8]
lea eax, [edx + 0x10]
lea esi, [ecx + ecx - 0x10]
xor ebx, ebx
cmp word [eax], 0x5c
je 0x4b2b4d
add eax, 2
add esi, 0xfffffffe
dec edi
jne 0x4b2b3c
jmp 0x4b2b58
mov edi, eax
sub edi, edx
cmp edi, 0xfffffffe
jne 0x4b2b9c
xor ebx, ebx
mov ecx, dword [ebp - 0x40]
cmp ecx, 8
jb 0x4b28e8
mov eax, dword [ebp - 0x54]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b2b8d
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b2e76
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
jmp 0x4b28e8
test esi, esi
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x6c], 0
je 0x4b2d3e
lea ecx, [edx + ecx*2]
sub ecx, eax
mov esi, ecx
sar esi, 1
cmp esi, 7
jbe 0x4b2bee
mov dword [ebp - 0x10], 7
sub esp, 0xc
mov cl, byte [ebp - 0x3c]
mov byte [esp + 4], cl
lea ecx, [ebp - 0x6c]
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [ebp - 0x20], edi
call fcn.00405590
mov edi, dword [ebp - 0x20]
jmp 0x4b2c06
mov dword [ebp - 0x5c], esi
lea edx, [ebp - 0x6c]
push ecx
push eax
push edx
call fcn.0061e340
add esp, 0xc
mov word [ebp + esi*2 - 0x6c], 0
cmp dword [ebp - 0x5c], 0
je 0x4b2d3e
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x74]
sar edi, 1
sub ecx, edi
sub eax, ecx
jb 0x4b2d3e
cmp dword [ebp - 0x70], 7
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], 0
jbe 0x4b2c47
mov ecx, dword [ebp - 0x84]
jmp 0x4b2c4d
lea ecx, [ebp - 0x84]
mov esi, dword [ebp - 0x20]
lea eax, [ecx + eax*2]
cmp esi, 7
jbe 0x4b2c7a
mov dword [ebp - 0x10], 8
sub esp, 0xc
mov cl, byte [ebp - 0x24]
mov byte [esp + 4], cl
lea ecx, [ebp - 0x3c]
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.00405590
jmp 0x4b2c9c
lea ecx, [esi + esi]
mov dword [ebp - 0x2c], esi
lea edx, [ebp - 0x3c]
push ecx
push eax
push edx
call fcn.0061e340
add esp, 0xc
mov word [ebp + esi*2 - 0x3c], 0
mov dword [ebp - 0x10], 9
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 9
lea ecx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x88], ecx
push ecx
push eax
call fcn.0047afd0
add esp, 0xc
cmp dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x28]
mov ebx, eax
sete bh
cmp ecx, 8
jb 0x4b2d08
mov eax, dword [ebp - 0x3c]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b2cfe
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b2e9a
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
and bl, bh
je 0x4b2d3e
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], 0
mov esi, eax
sub esi, dword [ebp - 0x20]
inc esi
cmp eax, esi
cmovb esi, eax
cmp ecx, 7
jbe 0x4b2d84
mov eax, dword [ebp - 0x84]
jmp 0x4b2d8a
xor ebx, ebx
mov ecx, dword [ebp - 0x58]
cmp ecx, 8
jb 0x4b2b58
mov eax, dword [ebp - 0x6c]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b2d75
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b2e8e
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
jmp 0x4b2b58
lea eax, [ebp - 0x84]
cmp esi, 7
jbe 0x4b2db1
mov dword [ebp - 0x10], 8
sub esp, 0xc
mov cl, byte [ebp - 0x24]
mov byte [esp + 4], cl
lea ecx, [ebp - 0x3c]
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.00405590
jmp 0x4b2dcc
lea ecx, [esi + esi]
mov dword [ebp - 0x2c], esi
push ecx
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0061e340
add esp, 0xc
mov word [ebp + esi*2 - 0x3c], 0
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x4b2de1
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
mov dword [ebp - 0x88], ecx
je 0x4b2e34
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0xa
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4b2e14
mov ecx, dword [ebp - 0x24]
jmp 0x4b2e1d
xor ecx, ecx
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x28]
cmp ecx, 0x17e6a7f
sete bl
cmp eax, 8
jb 0x4b2d40
jmp 0x4b2e36
xor ebx, ebx
mov ecx, dword [ebp - 0x3c]
lea edx, [eax + eax + 2]
cmp edx, 0x1000
jb 0x4b2e5b
mov edx, ecx
mov ecx, dword [ecx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jae 0x4b2ea6
add eax, eax
add eax, 0x25
mov edx, eax
push edx
push ecx
call fcn.005d319e
add esp, 8
jmp 0x4b2d40
mov dword [ebp - 0x10], 5
call fcn.006207e0
mov dword [ebp - 0x10], 4
call fcn.006207e0
mov dword [ebp - 0x10], 0
call fcn.006207e0
mov dword [ebp - 0x10], 3
call fcn.006207e0
mov dword [ebp - 0x10], 1
call fcn.006207e0
mov dword [ebp - 0x10], 2
call fcn.006207e0
nop word cs:[eax + eax]
nop dword [eax]
push ebp
sub esp, 0x20
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x20
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x20
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x20
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x20
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x20
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x20
add ebp, 0xc
mov ecx, dword [ebp - 0x28]
cmp ecx, 8
jb 0x4b2f5e
mov eax, dword [ebp - 0x3c]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b2f54
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b2f77
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], 0
add esp, 0x20
pop ebp
ret
call fcn.006207e0
nop dword [eax]
push ebp
sub esp, 0x20
add ebp, 0xc
mov ecx, dword [ebp - 0x28]
cmp ecx, 8
jb 0x4b2fbe
mov eax, dword [ebp - 0x3c]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b2fb4
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b2fd7
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], 0
add esp, 0x20
pop ebp
ret
call fcn.006207e0
nop dword [eax]
push ebp
sub esp, 0x20
add ebp, 0xc
mov ecx, dword [ebp - 0x58]
cmp ecx, 8
jb 0x4b301e
mov eax, dword [ebp - 0x6c]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b3014
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b3037
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], 0
add esp, 0x20
pop ebp
ret
call fcn.006207e0
nop dword [eax]
push ebp
sub esp, 0x20
add ebp, 0xc
mov ecx, dword [ebp - 0x40]
cmp ecx, 8
jb 0x4b307e
mov eax, dword [ebp - 0x54]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b3074
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b3083
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
add esp, 0x20
pop ebp
ret
call fcn.006207e0
nop dword [eax + eax]
push ebp
sub esp, 0x20
add ebp, 0xc
mov ecx, dword [ebp - 0x70]
cmp ecx, 8
jb 0x4b30d1
mov eax, dword [ebp - 0x84]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b30c7
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b30d6
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
add esp, 0x20
pop ebp
ret
call fcn.006207e0
int3