Function at 0x4200a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f598
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4620f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push 0x450adc
push eax
call fcn.0041f5c0
test al, al
je 0x420266
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 1]
cmp ecx, eax
ja 0x42011d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x42012a
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403be0
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x30]
mov eax, dword [eax + 4]
add eax, 8
add eax, esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042c470
mov eax, dword [esi + 4]
mov byte [ebp - 4], 2
mov eax, dword [eax + 4]
mov eax, dword [eax + esi + 8]
test eax, eax
je 0x420179
cmp dword [eax + 4], 0
je 0x420179
cmp dword [ebp + 0xc], 0
je 0x420255
xor eax, eax
lea ecx, [ebp - 0x30]
mov word [edi], ax
mov byte [ebp - 4], al
call fcn.0042c690
jmp 0x4202f8
lea ecx, [ebp - 0x3c]
call fcn.00436e20
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x34]
push 0
push 0
push ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
push ecx
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x420234
push str.Error_occurred_while_reading_the_file.
call fcn.004029e0
add esp, 4
push eax
push 0x40001
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
push 0x450564
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x3b21fb75
mov dword [ecx + 4], 0xf35f747b
mov dword [ecx + 8], 0x450598
mov dword [ecx + 0xc], str.winnt_dir::GetVolumeLabel
mov dword [ecx + 0x10], 0x46c
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0041d0b0
add esp, 0x2c
push eax
mov eax, dword [esi + 4]
lea ecx, [esi + 8]
mov byte [ebp - 4], 4
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004030c0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00402f20
cmp dword [ebp + 0xc], 0
je 0x420249
xor eax, eax
mov word [edi], ax
jmp 0x420249
mov eax, dword [esi + 4]
lea ecx, [esi + 8]
push 0x465148
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004030c0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00436eb0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0042c690
jmp 0x4202f8
push str.The_operation_is_not_supported.
call fcn.004029e0
add esp, 4
push eax
mov eax, dword [ebp - 0x14]
push 0x4000e
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x3b21fb61
mov dword [ecx + 4], 0xf35f747b
mov dword [ecx + 8], 0x450518
mov dword [ecx + 0xc], 0x450464
mov dword [ecx + 0x10], 0x458
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0x2c]
call fcn.00412b70
push eax
mov eax, dword [esi + 4]
lea ecx, [esi + 8]
mov byte [ebp - 4], 1
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004030c0
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x4202ed
mov edi, edi
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x4202ed
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
push ecx
mov eax, dword [eax]
call eax
add esp, 4
mov ecx, esi
test esi, esi
jne 0x4202d0
cmp dword [ebp + 0xc], 0
je 0x4202f8
xor eax, eax
mov word [edi], ax
cmp dword [ebp - 0x14], 8
jb 0x420309
push dword [ebp - 0x28]
call fcn.00404a15
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004051a4
mov esp, ebp
pop ebp
ret 8