Function at 0x40a842
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427ed5
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4360c8]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [0x4360c8]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, ecx
mov eax, dword [edi]
mov dword [esp + 0x18], esi
call dword [eax + 8]
cmp dword [esi + 0x14], 0
jne 0x40a8c5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
xor eax, eax
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004197af
mov esp, ebp
pop ebp
ret 4
push 1
mov dword [esp + 0x20], vtable.._AVNonErrMes__4__Load_CFileImpl_File_Base_NekoGameSDK4th__UAEHABV__basic_string_DU__char_traits_D_std__V__allocator_D_2__std___Z_.0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [esp + 0x20], eax
and dword [esp + 0xc8], 0
lea eax, [esp + 0x78]
push esi
push eax
call fcn.004016d4
pop ecx
pop ecx
lea ebx, [esp + 0x78]
mov ecx, edi
mov byte [esp + 0xc8], 1
call fcn.0040abba
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, ebx
push edx
call dword [eax + 4]
xor ebx, ebx
cmp eax, 0xffffffff
jne 0x40a93a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push 0
push 1
lea ecx, [esp + 0x80]
call fcn.0040313e
lea ecx, [esp + 0x1c]
call fcn.0040aafc
mov eax, ebx
jmp 0x40a89f
inc ebx
cmp eax, ebx
je 0x40a91a
call fcn.00401677
test al, al
jne 0x40aadc
cmp byte [0x437b9d], al
je 0x40a9a1
push 0x41
pop esi
xor ebx, ebx
mov byte [0x437b9d], al
sub esi, 0xc51238
lea eax, [esi + ebx + 0xc51238]
push eax
lea eax, [esp + 0xb4]
push 0x42eeb0
push eax
call fcn.0041a312
add esp, 0xc
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
sete al
mov byte [ebx + 0xc51238], al
inc ebx
cmp ebx, 0x19
jle 0x40a964
mov al, byte [0xc50dc8]
mov byte [esp + 0x17], al
test al, al
jne 0x40a9b3
mov byte [esp + 0x17], 0x41
xor esi, esi
movsx eax, byte [esp + 0x17]
cmp byte [eax + 0xc511f7], 0
jne 0x40a9dc
inc byte [esp + 0x17]
cmp byte [esp + 0x17], 0x5a
jle 0x40aad2
mov byte [esp + 0x17], 0x41
jmp 0x40aad2
mov cl, byte [esp + 0x17]
push eax
lea eax, [esp + 0xb4]
push str._c:_
push eax
mov byte [0xc50dc8], cl
call fcn.0041a312
add esp, 0xc
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x98]
call fcn.004032b4
push 0x42ee6c
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0xd4], 2
call fcn.00404a81
add esp, 0xc
push dword [esp + 0x18]
mov byte [esp + 0xcc], 3
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00402c36
add esp, 0xc
push eax
lea eax, [esp + 0x60]
push eax
mov byte [esp + 0xd0], 4
call fcn.0040148e
pop ecx
pop ecx
push 0
push 1
lea ecx, [esp + 0x48]
call fcn.0040313e
push 0
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd0], 7
call fcn.0040313e
lea ebx, [esp + 0x5c]
mov ecx, edi
call fcn.0040abba
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, ebx
push edx
call dword [eax + 4]
xor ebx, ebx
inc ebx
push 0
lea ecx, [esp + 0x60]
push ebx
cmp eax, ebx
je 0x40aae3
call fcn.0040313e
inc byte [esp + 0x17]
cmp byte [esp + 0x17], 0x5a
jle 0x40aabc
mov byte [esp + 0x17], 0x41
push 0
push ebx
lea ecx, [esp + 0x9c]
mov byte [esp + 0xd0], bl
call fcn.0040313e
inc esi
cmp esi, 0x19
jle 0x40a9b5
xor ebx, ebx
jmp 0x40a913
call fcn.0040313e
push 0
push ebx
lea ecx, [esp + 0x9c]
call fcn.0040313e
jmp 0x40a91a