Function at 0x428730
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f9f5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4c6180]
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 eax, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x4cc3ec]
cmp eax, dword [esi + 4]
jle 0x4287cd
push 0x4cc3ec
call fcn.00474b45
add esp, 4
cmp dword [0x4cc3ec], 0xffffffff
jne 0x4287cd
push 0x4a5430
mov dword [0x4cc3f0], 0
mov dword [0x4cc3f4], 0
mov dword [0x4cc3f8], 0
call fcn.00474de5
push 0x4cc3ec
call fcn.00474af4
add esp, 8
mov eax, dword [0x4cc3fc]
cmp eax, dword [esi + 4]
jle 0x428825
push 0x4cc3fc
call fcn.00474b45
add esp, 4
cmp dword [0x4cc3fc], 0xffffffff
jne 0x428825
push 0x4a5420
mov dword [0x4cc400], 0
mov dword [0x4cc404], 0
mov dword [0x4cc408], 0
call fcn.00474de5
push 0x4cc3fc
call fcn.00474af4
add esp, 8
cmp dword [0x4cc340], 0
mov ebx, 1
jne 0x428a45
mov eax, dword [0x4b1e68]
mov dword [ebp - 0x18], eax
mov ax, word [0x4b1e6c]
mov word [ebp - 0x14], ax
mov byte [ebp - 4], bl
call fcn.0040a3a0
mov ecx, eax
test ecx, ecx
je 0x428b34
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
mov ecx, ebx
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x42888b
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.004099f0
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 8], 0x104
jl 0x428b3e
xor eax, eax
mov dword [esi - 0xc], 0x104
mov word [esi + 0x208], ax
mov eax, 0x41
mov dword [ebp - 0x24], eax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x428a0e
cmp dword [esi - 4], 1
jle 0x4288db
push dword [esi - 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00409bb0
mov esi, dword [ebp - 0x1c]
push 0x103
push esi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x428b3e
mov eax, dword [esi - 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x428910
push edi
lea ecx, [ebp - 0x1c]
call fcn.004099f0
mov esi, dword [ebp - 0x1c]
lea eax, [edi + 1]
push eax
push esi
call fcn.004832bb
add esp, 8
cmp edi, dword [esi - 8]
jg 0x428b3e
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [0x4cc3f4]
cmp edi, dword [0x4cc3f8]
je 0x428953
lea ecx, [esi - 0x10]
call fcn.004064d0
add eax, 0x10
mov dword [edi], eax
add dword [0x4cc3f4], 4
jmp 0x428960
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.0042af80
mov esi, dword [ebp - 0x1c]
call fcn.0040a3a0
mov ecx, eax
test ecx, ecx
je 0x428b34
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x20]
call fcn.00409810
test al, al
jne 0x4289b0
lea ecx, [ebp - 0x18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428994
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00409a50
mov byte [ebp - 4], 4
mov ebx, dword [0x4cc404]
cmp ebx, dword [0x4cc408]
je 0x4289db
mov edi, dword [ebp - 0x20]
lea ecx, [edi - 0x10]
call fcn.004064d0
add eax, 0x10
mov dword [ebx], eax
add dword [0x4cc404], 4
jmp 0x4289ed
lea eax, [ebp - 0x20]
mov ecx, 0x4cc400
push eax
push ebx
call fcn.0040d970
mov edi, dword [ebp - 0x20]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x428a09
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, 1
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp ax, 0x5a
jbe 0x4288b0
mov dword [0x4cc340], 1
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x428a45
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0xc]
test esi, esi
js 0x428b3e
mov ecx, dword [eax - 8]
sub ebx, dword [eax - 4]
sub ecx, esi
or ebx, ecx
jge 0x428a6b
push esi
lea ecx, [ebp + 8]
call fcn.004099f0
mov eax, dword [ebp + 8]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.004832bb
mov eax, dword [ebp + 8]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x428b3e
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp + 8]
mov word [eax + esi*2], cx
mov esi, dword [0x4cc3f0]
mov edi, dword [0x4cc400]
mov eax, dword [ebp + 8]
cmp esi, dword [0x4cc3f4]
je 0x428aeb
mov ecx, dword [esi]
test ecx, ecx
je 0x428acc
cmp dword [eax - 0xc], 0
jl 0x428acc
push ecx
push eax
call fcn.00476293
mov ecx, eax
add esp, 8
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x428acc
sub ecx, eax
sar ecx, 1
je 0x428adc
add esi, 4
add edi, 4
cmp esi, dword [0x4cc3f4]
jne 0x428aa7
jmp 0x428aeb
push dword [edi]
lea ecx, [ebp + 8]
push dword [esi]
call fcn.0042a1c0
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x10]
call fcn.004064d0
mov esi, dword [ebp - 0x28]
add eax, 0x10
or ecx, 0xffffffff
mov dword [esi], eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x428b16
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
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 - 0x10]
xor ecx, ebp
call fcn.00474a5a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407590
push 0x80070057
call fcn.00407590
int3