Function at 0x40e510
Capabilities:
Get disk information
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41d7fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x664
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor edi, edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x67c], edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x67c], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x67c], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x38]
mov byte [esp + 0x67c], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
mov byte [esp + 0x67c], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x67c], 5
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x54]
mov byte [esp + 0x67c], 6
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x3c]
mov byte [esp + 0x67c], 7
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x67c], 8
inc edi
push str.Custom
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], edi
call fcn.0041b81e
push edi
lea eax, [esp + 0x28]
push 0x4290b8
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x24]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x34]
push ecx
push edx
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x680], 9
call fcn.0041b82a
lea ecx, [esp + 0x34]
mov byte [esp + 0x67c], 8
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x684]
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
lea edx, [esp + 0x178]
push 0x500
push edx
push 0x42a438
push eax
push str.FileGroup
call esi
test eax, eax
je 0x40e8fc
lea ecx, [esp + 0x174]
push ecx
lea ecx, [esp + 0x24]
call fcn.0041b81e
push 0x429094
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40e5c2
lea edx, [esp + 0x48]
push eax
push edx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x680], 0xa
call fcn.0041b82a
lea ecx, [esp + 0x48]
mov byte [esp + 0x67c], 8
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14]
push eax
call fcn.0041b7f4
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x67c], 0xb
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40e6e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x67c], 8
call sub.MFC42.DLL_CString::CString
jmp 0x40e5c2
lea edx, [esp + 0x18]
push 3
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
lea eax, [esp + 0x10]
push 2
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x684], 0xc
call sub.MFC42.DLL_CString::Left
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push ecx
mov byte [esp + 0x680], 0xd
call ebp
mov edx, dword [esp + 0x10]
push edx
call ebp
test eax, eax
je 0x40e8d5
mov eax, dword [esp + 0x18]
push eax
call ebp
cmp eax, 1
je 0x40e8d5
mov ecx, dword [esp + 0x10]
push ecx
call ebp
cmp eax, 4
je 0x40e8d5
mov edx, dword [esp + 0x10]
push edx
call ebp
cmp eax, 5
je 0x40e8d5
mov eax, dword [esp + 0x10]
push eax
call ebp
cmp eax, 2
je 0x40e8d5
lea ecx, [esp + 0x24]
lea edx, [esp + 0x28]
push ecx
push str.SizeOfCustom
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [esp + 0x684]
mov edx, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x74]
push 0x500
push ecx
push 0x42a438
push edx
push str.FileGroup
mov byte [esp + 0x694], 0xe
call esi
mov esi, eax
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov ebp, eax
test esi, esi
je 0x40e8c4
test ebp, ebp
jbe 0x40e8c4
mov eax, dword [ebx + 0x74]
mov esi, dword [eax]
cmp esi, eax
je 0x40e819
mov ecx, dword [esi + 8]
push ecx
lea ecx, [esp + 0x34]
call fcn.0041b7f4
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x18]
push edx
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40e853
lea ecx, [esp + 0x30]
mov byte [esp + 0x67c], 0xe
call sub.MFC42.DLL_CString::CString
mov esi, dword [esi]
mov eax, dword [ebx + 0x74]
cmp esi, eax
jne 0x40e7da
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x4c], esi
test esi, esi
mov byte [esp + 0x67c], 0x10
je 0x40e86c
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x58], esp
push 0x42a438
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.0040e4b0
mov edi, eax
jmp 0x40e86e
mov esi, dword [esi + 8]
lea ecx, [esp + 0x30]
mov byte [esp + 0x67c], 0xe
add dword [esi + 4], ebp
call sub.MFC42.DLL_CString::CString
jmp 0x40e8c4
xor edi, edi
lea eax, [esp + 0x18]
mov ecx, edi
push eax
mov byte [esp + 0x680], 0xe
call fcn.0041b82a
mov dword [edi + 4], ebp
mov esi, dword [ebx + 0x74]
push 0xc
mov ebp, dword [esi + 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ecx, esi
test esi, esi
jne 0x40e89d
mov ecx, eax
test ebp, ebp
mov dword [eax], ecx
jne 0x40e8a5
mov ebp, eax
mov dword [eax + 4], ebp
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
add eax, 8
test eax, eax
je 0x40e8b9
mov dword [eax], edi
mov eax, dword [ebx + 0x78]
mov edi, dword [esp + 0x44]
inc eax
mov dword [ebx + 0x78], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x67c], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x67c], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x67c], 0xb
call sub.MFC42.DLL_CString::CString
jmp 0x40e6ce
lea ecx, [esp + 0x3c]
mov byte [esp + 0x67c], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x54]
mov byte [esp + 0x67c], 6
call fcn.0041ba10
lea ecx, [esp + 0x40]
mov byte [esp + 0x67c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x67c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x67c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x67c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x67c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x67c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x684]
mov dword [esp + 0x67c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x670
ret 4