Function at 0x40e630
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4a3078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x1c]
push 0x4beec4
push eax
call fcn.00427f30
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
mov dword [esp + 0x58], 0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x60]
mov edi, dword [ecx]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push edi
call ebp
test eax, eax
jg 0x40e699
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov esi, dword [esp + 0x18]
mov edx, dword [esi]
mov eax, dword [esp + 0x60]
mov dword [eax], edx
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x1c]
push eax
mov edi, eax
call ebp
test eax, eax
jg 0x40e6c3
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
push 0x4beecc
lea ecx, [esp + 0x14]
push ecx
lea esi, [eax + 3]
mov dword [esp + 0x60], 1
call fcn.00419c10
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 0xc]
add eax, 0xc
cmp cx, 0x5a
ja 0x40eab7
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x40e91e
cmp dword [0x4d9e98], 0
jne 0x40e73e
push 0
push 0x83
push str.d:_build10_fineobjects_src_nativefilesystem.cpp
push 0x4b84f0
push 0x4b84f0
push 0
call fcn.0041d410
add esp, 0x18
lea edx, [esp + 0x10]
push edx
call fcn.0043b4d0
test al, al
je 0x40e8e8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push str.Removable_drive
push ecx
call fcn.00401920
add esp, 0xc
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x5c], 3
call fcn.00401fa0
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x20]
push eax
mov edi, eax
call ebp
test eax, eax
jg 0x40e795
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00418d60
push eax
lea ecx, [esp + 0x30]
push str.Label_
mov bl, 4
push ecx
mov byte [esp + 0x6c], bl
call fcn.00401920
add esp, 0x14
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x5c], 5
call fcn.00401fa0
mov byte [esp + 0x58], bl
mov eax, dword [esp + 0x24]
push eax
mov edi, eax
call ebp
test eax, eax
jg 0x40e7ea
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov byte [esp + 0x58], 2
mov edi, dword [esp + 0x28]
push edi
call ebp
test eax, eax
jg 0x40e807
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00418e80
push eax
lea ecx, [esp + 0x38]
push str.Serial_number_
mov bl, 6
push ecx
mov byte [esp + 0x6c], bl
call fcn.00401920
add esp, 0x14
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x5c], 7
call fcn.00401fa0
mov byte [esp + 0x58], bl
mov eax, dword [esp + 0x2c]
push eax
mov edi, eax
call ebp
test eax, eax
jg 0x40e85c
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov byte [esp + 0x58], 2
mov edi, dword [esp + 0x30]
push edi
call ebp
test eax, eax
jg 0x40e879
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.0040eb70
lea ebx, [esp + 0x14]
mov ecx, 0x10
mov edi, 0x4da170
mov dword [esp + 0x14], 0
call fcn.00432260
mov ecx, dword [esp + 0x14]
mov edi, eax
mov dword [edi], 1
mov dword [edi + 4], 1
mov dword [edi + 8], ecx
mov edx, dword [0x4bef30]
mov dword [esp + 0x34], edi
mov dword [edi + 0xc], edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x5c], 8
call fcn.00401fa0
mov byte [esp + 0x58], 2
push edi
jmp 0x40ea1c
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x3c]
push edx
mov ecx, 0x4d7e78
call fcn.00422560
mov byte [esp + 0x58], 9
mov ecx, dword [0x4d9e60]
push eax
add ecx, 4
call fcn.00401fa0
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x38]
jmp 0x40ea19
cmp eax, 5
jne 0x40ea2f
cmp dword [0x4d9e98], 0
jne 0x40e950
push 0
push 0x83
push str.d:_build10_fineobjects_src_nativefilesystem.cpp
push 0x4b84f0
push 0x4b84f0
push 0
call fcn.0041d410
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call fcn.0043b4d0
lea ecx, [esp + 0x10]
push ecx
test al, al
je 0x40e9ed
lea edx, [esp + 0x40]
push 0x4bef34
push edx
call fcn.00401920
add esp, 0xc
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x5c], 0xa
call fcn.00401fa0
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x3c]
push eax
mov edi, eax
call ebp
test eax, eax
jg 0x40e9a7
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x68]
call fcn.0040eb70
push 0x4bef30
lea edx, [esp + 0x1c]
push edx
mov esi, 1
call fcn.00419c10
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x5c], 0xb
call fcn.00401fa0
mov byte [esp + 0x58], 2
mov edi, dword [esp + 0x18]
push edi
jmp 0x40ea1c
lea edx, [esp + 0x44]
push edx
mov ecx, 0x4d7e84
call fcn.00422560
mov byte [esp + 0x58], 0xc
mov ecx, dword [0x4d9e60]
push eax
add ecx, 4
call fcn.00401fa0
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x40]
push eax
mov edi, eax
call ebp
test eax, eax
jg 0x40ea2f
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov eax, dword [esp + 0x10]
mov cx, word [eax + 0xc]
mov esi, dword [eax + 4]
inc cx
movzx edi, cx
lea ecx, [esi + esi + 0xe]
cmp dword [eax + 8], ecx
jge 0x40ea7a
cmp ecx, 0x80
mov ecx, esi
jg 0x40ea59
lea edx, [esp + 0x10]
push edx
jmp 0x40ea88
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
cmp esi, eax
jle 0x40ea71
mov eax, esi
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
jmp 0x40ea88
mov edx, dword [eax]
cmp edx, 1
je 0x40ea8d
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00419f20
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov word [edx + esi*2 + 0xc], cx
mov eax, dword [esp + 0x10]
mov word [eax + 0xc], di
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov eax, dword [esp + 0x10]
xor edx, edx
mov word [eax + esi*2 + 0xc], dx
jmp 0x40e6f0
mov ecx, dword [esp + 0x60]
push ecx
lea ecx, [esp + 0x48]
call fcn.00421ac0
mov byte [esp + 0x5c], 1
mov edi, dword [esp + 0x14]
add esp, 4
push edi
call ebp
test eax, eax
jg 0x40eae5
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
lea ecx, [esp + 0x44]
mov dword [esp + 0x58], 0xffffffff
call fcn.00402190
mov eax, dword [esp + 0x48]
pop edi
pop esi
pop ebp
mov dword [esp + 0x3c], 0
pop ebx
test eax, eax
je 0x40eb18
mov ecx, dword [eax - 8]
mov edx, dword [ecx]
add eax, 0xfffffff8
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 4