Function at 0x41a730
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5b7e09
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x6d2e20]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d2e20]
xor eax, esp
push eax
lea eax, [esp + 0x2c4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2d4]
mov edi, ecx
xor esi, esi
mov dword [esp + 0x24], eax
cmp dword [edi], esi
jne 0x41a786
lea eax, [esi + 1]
jmp 0x41ac9e
push 6
lea ecx, [esp + 0x58]
call fcn.00424cf0
push esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x2d0], esi
call fcn.00424cf0
mov byte [esp + 0x2cc], 1
push str.Select__FROM_Win32_DiskDrive
lea ebx, [esp + 0x20]
mov dword [esp + 0x1c], esi
call fcn.00410f60
mov esi, eax
push 0x6ac068
lea ebx, [esp + 0x18]
mov byte [esp + 0x2d0], 2
call fcn.00410f60
mov byte [esp + 0x2cc], 3
mov ecx, dword [esi]
xor ebx, ebx
cmp ecx, ebx
je 0x41a7e8
mov ecx, dword [ecx]
jmp 0x41a7ea
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x41a7f4
mov edx, dword [eax]
jmp 0x41a7f6
xor edx, edx
mov eax, dword [edi]
mov esi, dword [eax]
lea edi, [esp + 0x18]
push edi
push ebx
push 0x30
push ecx
mov ecx, dword [esi + 0x50]
push edx
push eax
call ecx
mov edi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41a852
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x41a84e
cmp esi, ebx
je 0x41a84e
mov eax, dword [esi]
cmp eax, ebx
je 0x41a835
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x41a845
push eax
call fcn.0044fdf0
add esp, 4
push esi
call fcn.0044fdf0
add esp, 4
mov dword [esp + 0x14], ebx
mov byte [esp + 0x2cc], 1
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x41a89c
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x41a89c
cmp esi, ebx
je 0x41a89c
mov eax, dword [esi]
cmp eax, ebx
je 0x41a883
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x41a893
push eax
call fcn.0044fdf0
add esp, 4
push esi
call fcn.0044fdf0
add esp, 4
cmp edi, ebx
jge 0x41a8db
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x41a8b0
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x2cc], bl
call fcn.00425280
lea ecx, [esp + 0x54]
mov dword [esp + 0x2cc], 0xffffffff
call fcn.00425280
mov eax, edi
jmp 0x41ac9e
xor ecx, ecx
push ebx
mov eax, 0x6a73b4
lea esi, [esp + 0x94]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], cx
call fcn.0040e1e0
mov byte [esp + 0x2cc], 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x41ab5f
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
push ecx
mov ebp, 1
push ebp
push 0xffffffffffffffff
push eax
call edx
cmp dword [esp + 0x28], ebx
je 0x41ab5f
cmp eax, ebx
jne 0x41ab5f
push ebx
xor eax, eax
push ebx
lea edx, [esp + 0x34]
push edx
mov word [esp + 0x38], ax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov word [esp + 0x46], ax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
push ebx
push str.Caption
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, ebx
jne 0x41aa52
cmp word [esp + 0x2c], bp
je 0x41aa52
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0x14]
push ecx
call fcn.00410d70
mov byte [esp + 0x2cc], 5
mov esi, dword [eax]
cmp esi, ebx
je 0x41a9c6
cmp dword [esi + 4], ebx
jne 0x41a9c1
mov edx, dword [esi]
push edx
call fcn.005ac970
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x41a9c8
xor esi, esi
push esi
lea ecx, [esp + 0x80]
call fcn.00424f20
push eax
push str.Disk_Caption
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2d4], 6
call fcn.004260e0
mov ecx, eax
call fcn.00425380
lea ecx, [esp + 0x7c]
mov byte [esp + 0x2cc], 5
call fcn.00425280
mov byte [esp + 0x2cc], 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41aa52
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x41aa4e
cmp esi, ebx
je 0x41aa4e
mov eax, dword [esi]
cmp eax, ebx
je 0x41aa35
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x41aa45
push eax
call fcn.0044fdf0
add esp, 4
push esi
call fcn.0044fdf0
add esp, 4
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x34]
push edx
push ebx
push str.Size
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, ebx
jne 0x41ab2e
cmp word [esp + 0x2c], bp
je 0x41ab2e
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x20]
call fcn.0041ec70
mov byte [esp + 0x2cc], 7
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x7c], esp
mov edi, esp
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
lea esi, [esp + 0x44]
call fcn.0041e660
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00429940
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
add esp, 4
push edx
push eax
lea ecx, [esp + 0x6c]
call fcn.00424ea0
push eax
push str.Disk_Capacity
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2d4], 8
call fcn.004260e0
mov ecx, eax
call fcn.00425380
lea ecx, [esp + 0x64]
mov byte [esp + 0x2cc], 7
call fcn.00425280
mov byte [esp + 0x2cc], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ab2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x58]
call fcn.00426350
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x41a925
mov ebp, dword [esp + 0x24]
lea eax, [esp + 0x54]
push eax
push str.Disk
mov ecx, ebp
call fcn.004260e0
mov ecx, eax
call fcn.00425380
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x41ab8b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0x208
lea ecx, [esp + 0xb2]
xor eax, eax
push ebx
push ecx
mov word [esp + 0xb8], ax
call fcn.00588e80
add esp, 0xc
push 0x104
lea edx, [esp + 0xb0]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x6ac498
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x41ac42
lea eax, [esp + 0x24]
push eax
lea edi, [esp + 0xb0]
call fcn.00410d70
mov byte [esp + 0x2cc], 9
mov esi, dword [eax]
cmp esi, ebx
je 0x41ac00
cmp dword [esi + 4], ebx
jne 0x41abfb
mov ecx, dword [esi]
push ecx
call fcn.005ac970
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x41ac02
xor esi, esi
push esi
lea ecx, [esp + 0x68]
call fcn.00424f20
push eax
push str.Disk_File_System
mov ecx, ebp
mov byte [esp + 0x2d4], 0xa
call fcn.004260e0
mov ecx, eax
call fcn.00425380
lea ecx, [esp + 0x64]
mov byte [esp + 0x2cc], 9
call fcn.00425280
lea edi, [esp + 0x24]
call fcn.00410f10
cmp dword [esp + 0xa8], 8
jb 0x41ac5c
mov edx, dword [esp + 0x94]
push edx
call fcn.0044fdf0
add esp, 4
xor eax, eax
lea ecx, [esp + 0x44]
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], ax
mov byte [esp + 0x2cc], bl
call fcn.00425280
lea ecx, [esp + 0x54]
mov dword [esp + 0x2cc], 0xffffffff
call fcn.00425280
xor eax, eax
mov ecx, dword [esp + 0x2c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.0058848d
add esp, 0x2bc
ret 4