Function at 0x5beb80
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x875f3f
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x8ce6f4]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2a8]
mov esi, ecx
mov dword [esp + 0x34], 0
call fcn.005be8d0
mov eax, dword [edi + 8]
test eax, eax
je 0x5bef59
cmp eax, 1
jne 0x5bebec
mov dword [esp + 0x2ac], 0xffffffff
mov eax, dword [esp + 0x2ac]
mov dword [esi + 0x3c], eax
mov edi, dword [edi]
mov dword [esp + 0x14], edi
test edi, edi
je 0x5bee64
mov eax, dword [esp + 0x14]
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x5beefd
mov ecx, dword [eax]
mov edi, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi - 4], ebx
lea ecx, [edi - 4]
jl 0x5bec47
cmp eax, dword [edi - 0x10]
jne 0x5bec47
lea ebp, [edi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x5bec7f
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebp, eax
cmp ebp, ebx
je 0x5bef07
mov eax, dword [edi - 0xc]
mov dword [ebp + 4], eax
mov eax, dword [edi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebp + 0x10]
push eax
call fcn.0080217f
add esp, 0x10
add ebp, 0x10
mov dword [esp + 0x30], ebp
lea ecx, [esp + 0x44]
push ecx
push ebp
mov dword [esp + 0x2a8], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x5bef0c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.007cff5d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x5beefd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
lea eax, [ebp - 0x10]
lea edi, [ebx - 0x10]
mov byte [esp + 0x2a0], 1
mov dword [esp + 0x20], eax
cmp eax, edi
je 0x5bed2e
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x5bed1c
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x5bed1c
push eax
call fcn.004a9b50
add esp, 4
mov ebp, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x5bed13
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea ebx, [ebp + 0x10]
mov dword [esp + 0x18], ebx
jmp 0x5bed2e
mov eax, dword [ebp - 0xc]
push eax
push ebp
lea ecx, [esp + 0x20]
call fcn.004a8db0
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x60]
xor edi, edi
push edi
xor eax, eax
or eax, dword [esp + 0x68]
push 0x800
or ecx, edi
push ecx
push eax
call fcn.00803a40
mov edi, dword [esi + 0x24]
lea ebp, [esi + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], edi
cmp edi, dword [ebp + 8]
jb 0x5bed73
lea eax, [edi + 1]
push eax
mov ecx, ebp
call fcn.004f0a30
test al, al
je 0x5bef60
mov ecx, dword [ebp]
lea edi, [ecx + edi*8]
mov dword [esp + 0x28], edi
mov byte [esp + 0x2a0], 2
test edi, edi
je 0x5bedff
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea edi, [ebx - 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x5bedb0
cmp eax, dword [edi]
jne 0x5bedb0
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x5bedeb
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x5bef07
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0080217f
add esp, 0x10
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
add ebx, 0x10
mov dword [eax], ebx
mov ebx, dword [esp + 0x18]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x1c]
inc dword [ebp + 4]
add dword [esi + 0x38], edx
add ebx, 0xfffffff0
mov byte [esp + 0x2a0], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5bee2d
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2a0], 0xffffffff
add ecx, 0xc
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5bee59
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
jne 0x5bec04
cmp dword [esi + 0x24], 0
jbe 0x5bf2cd
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.005be9f0
test al, al
je 0x5bf2cd
cmp byte [esi + 0x56], 0
mov dword [esp + 0x14], 0
jne 0x5bf2cd
jmp 0x5beea0
mov edi, dword [esp + 0x14]
cmp edi, dword [esi + 0x24]
jae 0x5bf2cd
mov ecx, esi
call fcn.005bd500
test al, al
je 0x5bf201
mov ecx, esi
mov byte [esi + 0x54], 1
call fcn.005be0a0
mov ecx, esi
call fcn.005be330
mov ecx, esi
mov byte [esi + 0x55], al
call fcn.005bd3d0
cmp edi, dword [esi + 0x24]
jae 0x5bf207
mov ebp, edi
mov edi, dword [esi + 0x20]
add ebp, ebp
add ebp, ebp
add ebp, ebp
mov eax, dword [edi + ebp]
cmp dword [eax - 0xc], 0
jg 0x5bef6a
or eax, 0xffffffff
jmp 0x5bef83
push 0x80004005
call fcn.004a8210
call fcn.004a8580
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x5bef2c
mov ecx, dword [esi + 0x24]
push ecx
push eax
call fcn.005be700
mov edx, dword [esi + 0x20]
push edx
call fcn.00803053
add esp, 0xc
mov dword [esi + 0x20], ebx
lea eax, [ebp - 0x10]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esp + 0x2a0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5bef59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x5bf2e3
push 0x8007000e
call fcn.004a8210
push 0x3a
push eax
call fcn.0080308d
add esp, 8
test eax, eax
jne 0x5bef7e
or eax, 0xffffffff
jmp 0x5bef83
sub eax, dword [edi + ebp]
sar eax, 1
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esi + 0x24]
jae 0x5bf207
mov ecx, dword [esi + 0x20]
inc eax
push eax
lea edx, [esp + 0x24]
add ecx, ebp
push edx
call fcn.004aa4c0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2a4], 4
call fcn.004b6720
mov eax, dword [eax]
push eax
mov eax, dword [esi + 4]
push 0
push eax
mov byte [esp + 0x2ac], 5
call fcn.005c1ef0
mov edi, eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x2a0], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5beffb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x2a0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5bf026
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x5bf080
mov eax, dword [esi + 4]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x3c]
push edx
push edi
push eax
call fcn.005c1880
add esp, 0x10
test al, al
je 0x5bf077
mov ecx, esi
call fcn.005bd500
test al, al
je 0x5bf077
mov ecx, esi
call fcn.005be0a0
mov edx, dword [edi + 0x10a]
add edx, dword [esp + 0x38]
lea ecx, [esi + 0x17]
push ecx
push edx
mov ecx, esi
call fcn.005be530
mov ecx, esi
mov byte [esi + 0x56], al
call fcn.005bd3d0
push edi
call fcn.005c1850
add esp, 4
cmp byte [esi + 0x56], 0
mov eax, dword [esi + 0x17]
mov cl, byte [esi + 0x1b]
lea ebp, [esi + 0x17]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
je 0x5bf1ee
cmp dword [esp + 0x14], 0
jne 0x5bf1ee
cmp dword [esp + 0x2ac], 0
jl 0x5bf1ee
mov ecx, esi
mov dword [esp + 0x14], 1
call fcn.005bd500
test al, al
je 0x5bf2cd
mov ecx, esi
mov byte [esi + 0x54], 1
call fcn.005be0a0
mov ecx, esi
call fcn.005be330
mov ecx, esi
mov byte [esi + 0x55], al
call fcn.005bd3d0
push 1
lea ecx, [esi + 0x20]
call fcn.005bd4a0
mov edi, eax
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jg 0x5bf100
or eax, 0xffffffff
jmp 0x5bf118
push 0x3a
push eax
call fcn.0080308d
add esp, 8
test eax, eax
jne 0x5bf114
or eax, 0xffffffff
jmp 0x5bf118
sub eax, dword [edi]
sar eax, 1
inc eax
push eax
lea edx, [esp + 0x28]
push edx
push 1
lea ecx, [esi + 0x20]
call fcn.005bd4a0
mov ecx, eax
call fcn.004aa4c0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x2a4], 6
call fcn.004b6720
mov eax, dword [eax]
push eax
mov eax, dword [esi + 4]
push 0
push eax
mov byte [esp + 0x2ac], 7
call fcn.005c1ef0
add esp, 0xc
lea ecx, [esp + 0x2c]
mov edi, eax
call fcn.004a8c20
lea ecx, [esp + 0x24]
mov dword [esp + 0x2a0], 0xffffffff
call fcn.004a8c20
test edi, edi
je 0x5bf1d6
mov eax, dword [esi + 4]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
call fcn.005c1880
add esp, 0x10
test al, al
je 0x5bf1cd
mov ecx, esi
call fcn.005bd500
test al, al
je 0x5bf1cd
mov ecx, esi
call fcn.005be0a0
mov ecx, dword [edi + 0x10a]
add ecx, dword [esp + 0x30]
push ebp
push ecx
mov ecx, esi
call fcn.005be530
mov ecx, esi
mov byte [esi + 0x56], al
call fcn.005bd3d0
push edi
call fcn.005c1850
add esp, 4
cmp byte [esi + 0x56], 0
jne 0x5bf1ee
mov edx, dword [esp + 0x18]
mov al, byte [esp + 0x1c]
mov dword [ebp], edx
mov byte [ebp + 4], al
mov byte [esi + 0x56], 1
inc dword [esp + 0x14]
cmp byte [esi + 0x56], 0
je 0x5beea0
jmp 0x5bf2cd
cmp dword [esi + 0x24], 0
ja 0x5bf211
push 0x80070057
call fcn.004a8210
mov ebx, dword [esi + 0x20]
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.004a9b50
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x2a0], 3
call fcn.004b1130
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], 0
jl 0x5bf28c
push 0x42b618
push edi
call fcn.0080292f
add esp, 8
test eax, eax
je 0x5bf28c
sub eax, edi
sar eax, 1
cmp eax, 1
jne 0x5bf28c
push 3
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004ac570
mov eax, dword [eax]
push eax
mov dword [esp + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x5bf28c
mov bl, 1
jmp 0x5bf28e
xor bl, bl
test byte [esp + 0x34], 1
je 0x5bf29e
lea ecx, [esp + 0x24]
call fcn.004a8c20
test bl, bl
je 0x5bf2a6
mov byte [esi + 0x54], 1
lea eax, [edi - 0x10]
mov dword [esp + 0x2a0], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5bf2cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2ac]
xor ecx, ecx
test eax, eax
setle cl
dec ecx
and ecx, eax
mov dword [esi + 0x3c], ecx
mov al, 1
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0080262b
add esp, 0x290
ret 8