Function at 0x410340
Capabilities:
Get disk information
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57eb75
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
mov eax, dword [0x5f3edc]
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x5fda18
mov dword [esp + 0x1ac], eax
mov dword [esp + 0x20], esi
mov byte [esp + 0x12], 0
call fcn.004bec20
mov ecx, eax
call fcn.004d73d0
test al, al
je 0x4103c2
mov ecx, 0x5fd9ec
call fcn.004ba3f0
xor edi, edi
cmp eax, edi
je 0x4103c2
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0xffffffff
mov ecx, dword [eax]
push eax
call dword [ecx + 0x64]
cmp dword [esp + 0x14], 0xd
jne 0x4103c2
cmp dword [esi + 0x2ac], edi
jne 0x4103c9
xor al, al
jmp 0x4107ac
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x1bc], edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
mov esi, 0x41
mov dword [esp + 0x14], 0x1a
test bl, 1
je 0x410440
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_7]
push esi
lea eax, [esp + 0x10]
push str.._c:
push eax
mov byte [esp + 0x1c8], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x34]
call fcn.0040efe0
lea ecx, [esp + 0xc]
mov byte [esp + 0x1bc], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
shr ebx, 1
inc esi
dec eax
mov dword [esp + 0x14], eax
jne 0x4103f1
xor bl, bl
test edi, edi
mov byte [esp + 0x13], bl
jne 0x41045c
xor eax, eax
jmp 0x410465
mov eax, dword [esp + 0x38]
sub eax, edi
sar eax, 2
movsx ecx, bl
cmp ecx, eax
jge 0x41072d
lea eax, [edi + ecx*4]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_5]
lea ecx, [esp + 0xc]
mov byte [esp + 0x1bc], 2
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
test al, al
je 0x4104aa
lea ecx, [esp + 0xc]
mov byte [esp + 0x1bc], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
inc bl
jmp 0x410450
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.PSP
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Sony
mov byte [esp + 0x1c8], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_6]
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
mov byte [esp + 0x1cc], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_5]
mov byte [esp + 0x1c8], 2
call fcn.0044d050
add esp, 0xc
test al, al
lea ecx, [esp + 0xc]
jne 0x41051c
mov byte [esp + 0x1bc], al
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
inc bl
jmp 0x410450
push str.._
call dword [sym.imp.MFC71.DLL_ATL::CStringT::TrimLeft]
push 0x5c
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::TrimRight_1]
push 0x597664
lea ecx, [esp + 0x10]
call dword [0x59434c]
xor eax, eax
push 0x101
mov ecx, 0x58
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
push 0x160
lea eax, [esp + 0x50]
push eax
push 0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x596834
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_6]
push 0x82c1
lea ecx, [esp + 0x20]
mov byte [esp + 0x1c0], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA]
push 0x5c
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::TrimRight_1]
push 0x598374
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.0040ce10
lea ecx, [esp + 0x28]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x1d4], 6
call fcn.0040cd70
add esp, 0x18
lea ecx, [esp + 0x40]
mov byte [esp + 0x1bc], 8
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x41066c
call dword [0x5f2100]
push edi
push edi
push 0xffffffffffffffff
push esi
push edi
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
lea eax, [edi - 1]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
test ebx, ebx
je 0x41064f
mov eax, dword [esp + 0x18]
push edi
push ebx
push 0xffffffffffffffff
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x41064f
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x14]
call fcn.0040b820
xor ebx, ebx
jmp 0x410658
lea ecx, [esp + 0x14]
call fcn.0040b820
test ebx, ebx
mov edi, ebx
mov dword [esp + 0x18], edi
je 0x410723
mov bl, byte [esp + 0x13]
jmp 0x410670
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x2ac]
mov ecx, dword [esp + 0x48]
mov edx, dword [eax]
inc bl
movsx esi, bl
imul esi, esi, 0x6b8
inc esi
push esi
push edi
push ecx
push eax
mov byte [esp + 0x1cc], 9
call dword [edx + 0x14]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_7]
mov dword [esp + 0x2c], 0
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c0], 0xa
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_4]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
add ecx, 0x2b4
mov dword [esp + 0x30], esi
call fcn.0040f060
lea ecx, [esp + 0x28]
mov byte [esp + 0x12], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0xc]
mov byte [esp + 0x1bc], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov edi, dword [esp + 0x34]
inc bl
jmp 0x410450
push 0x8007000e
call fcn.0040b790
mov al, byte [esp + 0x12]
test al, al
je 0x410781
mov esi, dword [esp + 0x20]
lea eax, [esi + 0x11c]
test eax, eax
je 0x410781
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x410781
mov ecx, dword [esi + 0x13c]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x410781
mov eax, dword [esi + 0x2ac]
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x10]
mov eax, dword [esi + 0x2ac]
mov ecx, dword [eax]
push 0x6b9
push eax
call dword [ecx + 0x20]
mov ecx, esi
call fcn.004100b0
test edi, edi
je 0x4107a8
mov ebx, dword [esp + 0x38]
cmp edi, ebx
mov esi, edi
je 0x41079f
nop
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
add esi, 4
cmp esi, ebx
jne 0x410790
push edi
call sub.MFC71.DLL_operator_delete_1
add esp, 4
mov al, byte [esp + 0x12]
mov ecx, dword [esp + 0x1b4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1ac]
call fcn.00558076
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret