Function at 0x486f50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60b757
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x858]
mov dword fs:[0], eax
lea eax, [esp + 0x24]
push eax
mov esi, ecx
call fcn.00443eb0
mov dword [esp + 0x860], 0
lea ecx, [esp + 0x24]
push ecx
call fcn.00434990
lea eax, [esi + 0xbc]
add esp, 4
push eax
mov dword [esp + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x860], 1
mov edi, dword [esi + 0x7c]
add esi, 0x6c
mov dword [esp + 0x44], esi
cmp dword [esi + 0xc], edi
jbe 0x486fe1
call fcn.005c475a
mov ebx, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [esp + 0x3c], edx
cmp ebx, dword [esi + 0x10]
jbe 0x486ff4
call fcn.005c475a
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi]
push edi
push ecx
push ebx
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.0048d590
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x30]
xor esi, esi
sar eax, 2
mov dword [esp + 0x20], esi
test eax, eax
jbe 0x487312
cmp esi, eax
jb 0x48702a
call fcn.005c475a
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [eax + esi*4]
mov ecx, 2
call fcn.00442dc0
mov ebx, eax
mov byte [esp + 0x860], 2
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0x30]
sar edx, 2
cmp esi, edx
jb 0x48705e
call fcn.005c475a
mov eax, dword [esp + 0x30]
mov ecx, dword [ebx]
mov ebx, dword [eax + esi*4]
lea edi, [eax + esi*4]
lea eax, [ecx - 0x10]
sub ebx, 0x10
cmp eax, ebx
je 0x4870bc
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x4870ad
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x4870ad
call fcn.0040fb70
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x4870a2
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x4870b8
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.0040fac0
mov esi, dword [esp + 0x20]
mov byte [esp + 0x860], 1
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4870e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x56]
push edx
mov word [esp + 0x58], cx
call fcn.005c8fb0
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
add esp, 0xc
sar eax, 2
cmp esi, eax
jb 0x487112
call fcn.005c475a
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + esi*4]
push 0x400
lea edx, [esp + 0x50]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4872fa
lea eax, [esp + 0x10]
push eax
call fcn.00486320
mov byte [esp + 0x860], 4
lea eax, [esp + 0x4c]
lea edx, [eax + 2]
jmp 0x487150
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x487150
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x4c]
mov ebx, eax
push ecx
lea eax, [esp + 0x14]
call fcn.0040fac0
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0x30]
sar edx, 2
cmp esi, edx
jb 0x487183
call fcn.005c475a
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + esi*4]
mov ebx, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add ebx, 0xfffffff0
cmp eax, ebx
je 0x4871e0
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x4871d3
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x4871d3
call fcn.0040fb70
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4871c6
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [esp + 0x14], ecx
jmp 0x4871e0
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.0040fac0
mov edx, dword [esp + 0x10]
mov ebx, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, ebx
or eax, ecx
jge 0x487207
mov ecx, ebx
lea eax, [esp + 0x10]
call fcn.004123c0
mov edx, dword [esp + 0x10]
lea eax, [ebx + 1]
push eax
push edx
call fcn.005c44a8
add esp, 8
test ebx, ebx
jl 0x48735e
mov eax, dword [esp + 0x10]
cmp ebx, dword [eax - 8]
jg 0x48735e
mov dword [eax - 0xc], ebx
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov word [edx + ebx*2], cx
mov edx, dword [esp + 0x14]
mov ebx, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, ebx
or eax, ecx
jge 0x48725d
mov ecx, ebx
lea eax, [esp + 0x14]
call fcn.004123c0
mov edx, dword [esp + 0x14]
lea eax, [ebx + 1]
push eax
push edx
call fcn.005c44a8
add esp, 8
test ebx, ebx
jl 0x48735e
mov eax, dword [esp + 0x14]
cmp ebx, dword [eax - 8]
jg 0x48735e
mov edi, dword [esp + 0x44]
mov dword [eax - 0xc], ebx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
xor ecx, ecx
push eax
mov word [edx + ebx*2], cx
call fcn.0048caf0
mov al, 5
mov byte [esp + 0x860], al
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x860], al
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4872d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x860], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4872fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x30]
inc esi
sar eax, 2
mov dword [esp + 0x20], esi
cmp esi, eax
jb 0x48702a
mov byte [esp + 0x860], 0
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x860], 0xffffffff
lea edx, [esp + 0x24]
push edx
call fcn.00424990
mov ecx, dword [esp + 0x858]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.005c397a
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403d10
int3