Function at 0x4b9360
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563289
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x5d6024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0x110], eax
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - 4], 0
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.00408b20
add eax, 0x10
mov dword [ebp - 0xe8], eax
mov byte [ebp - 4], 2
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4b985e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xf8], eax
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jle 0x4b94df
push 0x3f
push eax
call fcn.00522bf8
mov esi, eax
add esp, 8
test esi, esi
je 0x4b94df
sub esi, dword [edi]
sar esi, 1
test esi, esi
jle 0x4b94df
push esi
push 0
lea eax, [ebp - 0xe0]
mov ecx, edi
push eax
call fcn.0040d3b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xe8]
push eax
call fcn.00478250
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0xe0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b9479
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
sub eax, esi
push eax
push esi
lea eax, [ebp - 0xe0]
push eax
call fcn.0040d3b0
push eax
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xe4], 1
call fcn.00478250
mov esi, 1
mov dword [ebp - 0xe4], esi
and esi, 0xfffffffe
mov dword [ebp - 0xe4], esi
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0xe0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b94df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5c
push dword [ebp - 0xe8]
call fcn.00522f2a
mov ecx, dword [ebp - 0xe8]
add esp, 8
test eax, eax
je 0x4b9503
sub eax, ecx
sar eax, 1
jns 0x4b96e6
mov esi, 0x5945d4
movzx eax, word [esi]
push eax
push ecx
call fcn.00522f2a
mov ecx, dword [ebp - 0xe8]
add esp, 8
test eax, eax
je 0x4b9529
sub eax, ecx
sar eax, 1
jns 0x4b96e6
add esi, 2
cmp esi, 0x5945da
jl 0x4b9508
mov byte [ebp - 4], 9
lea eax, [ebp - 0xdc]
or dword [ebp - 0xe4], 2
push eax
push 0x64
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
xor esi, esi
lea ebx, [ebp - 0xdc]
lea ebx, [ebx + esi*2]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4b95c9
push ebx
lea ecx, [ebp - 0xe0]
call fcn.00415360
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x120]
call fcn.0048f8e0
mov byte [ebp - 4], 9
or eax, 0xffffffff
mov edx, dword [ebp - 0xe0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b95c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, edi
jae 0x4b95e0
nop dword [eax]
cmp word [ebp + esi*2 - 0xdc], 0
je 0x4b95e0
inc esi
cmp esi, edi
jb 0x4b95d0
inc esi
cmp esi, edi
jb 0x4b9570
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0xf4]
call fcn.004b1310
and dword [ebp - 0xe4], 0xfffffffd
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x120]
call fcn.0047f5b0
mov eax, dword [ebp - 0xf0]
xor ebx, ebx
mov ecx, eax
mov dword [ebp - 0x10c], ecx
test ecx, ecx
jle 0x4b972c
cmp ebx, eax
jge 0x4b9868
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + ebx*4]
sub ecx, 0x10
call fcn.00408b20
add eax, 0x10
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xe0]
mov eax, dword [ebp - 0xe8]
push dword [eax - 0xc]
push eax
call fcn.00418fd0
mov eax, dword [ebp - 0xf8]
lea ecx, [ebp - 0xe0]
push dword [eax - 0xc]
push eax
call fcn.00418fd0
cmp ebx, dword [ebp - 0xf0]
jge 0x4b9868
mov eax, dword [ebp - 0xf4]
mov esi, dword [eax + ebx*4]
lea edx, [eax + ebx*4]
mov eax, dword [ebp - 0xe0]
sub esi, 0x10
mov dword [ebp - 0x108], edx
lea edi, [eax - 0x10]
cmp edi, esi
je 0x4b96ff
cmp dword [esi + 0xc], 0
jl 0x4b96f4
mov ecx, dword [edi]
cmp ecx, dword [esi]
jne 0x4b96f4
mov ecx, edi
call fcn.00408b20
mov dword [ebp - 0x104], eax
lea edx, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4b96d9
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x104]
mov ecx, dword [ebp - 0x108]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4b96ff
push edi
lea ecx, [ebp - 0xf4]
call fcn.0048f8e0
jmp 0x4b972f
push dword [eax - 0xc]
mov ecx, edx
push eax
call fcn.00408e90
mov byte [ebp - 4], 4
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4b9718
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
cmp ebx, dword [ebp - 0x10c]
jge 0x4b972c
mov eax, dword [ebp - 0xf0]
jmp 0x4b9625
or ebx, 0xffffffff
mov dword [ebp - 0x100], 0
mov byte [ebp - 0xfc], 0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp + 0xc]
test cl, cl
je 0x4b976c
call fcn.004ca9a0
mov eax, dword [0x5dc330]
test eax, eax
je 0x4b9769
lea ecx, [ebp - 0x100]
push ecx
call eax
mov byte [ebp - 0xfc], 1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xf0]
xor esi, esi
mov edi, eax
test edi, edi
jle 0x4b97bc
nop word [eax + eax]
cmp esi, eax
jge 0x4b9868
mov eax, dword [ebp - 0xf4]
push dword [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0x114]
lea eax, [eax + esi*4]
push eax
call fcn.004b9880
test eax, eax
je 0x4b97b8
inc esi
cmp esi, edi
jge 0x4b97bc
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp + 0xc]
jmp 0x4b9780
xor esi, esi
jmp 0x4b97c1
mov esi, 1
mov byte [ebp - 4], 4
cmp byte [ebp - 0xfc], 0
je 0x4b97ec
call fcn.004ca9a0
mov eax, dword [0x5dc32c]
test eax, eax
je 0x4b97ec
lea ecx, [ebp - 0x100]
push ecx
call eax
mov byte [ebp - 0xfc], 0
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0xf8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b980d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xe8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4b982c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.0047f5b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00521461
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00408fe0
push 1
push 0xc000008c
call fcn.00411080
int3