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

Disassembly:
push 0xffffffffffffffff
push 0x41d70c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x670
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x34], ecx
xor edi, edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x688], edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x688], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
mov byte [esp + 0x688], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x688], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x688], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x54]
mov byte [esp + 0x688], 5
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x60]
mov byte [esp + 0x688], 6
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x58]
mov byte [esp + 0x688], 7
call sub.MFC42.DLL_CString::CString_2
mov ebx, 8
mov byte [esp + 0x688], bl
inc edi
push str.PathAddbyRegKey
lea ecx, [esp + 0x2c]
mov dword [esp + 0x50], edi
call fcn.0041b81e
push edi
lea eax, [esp + 0x34]
push 0x4290b8
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x30]
lea edx, [esp + 0x28]
lea eax, [esp + 0x44]
push ecx
push edx
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68c], 9
call fcn.0041b82a
lea ecx, [esp + 0x44]
mov byte [esp + 0x688], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x690]
mov eax, dword [esp + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
lea edx, [esp + 0x184]
push 0x500
push edx
push 0x42a438
push eax
push str.FileGroup
call ebp
test eax, eax
je 0x40e3f5
lea ecx, [esp + 0x180]
push ecx
lea ecx, [esp + 0x30]
call fcn.0041b81e
push 0x429094
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40e018
lea edx, [esp + 0x5c]
push eax
push edx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x68c], 0xa
call fcn.0041b82a
lea ecx, [esp + 0x5c]
mov byte [esp + 0x688], bl
call sub.MFC42.DLL_CString::CString
push 0x5c
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::ReverseFind
mov esi, eax
lea eax, [esp + 0x1c]
push esi
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x1c]
mov byte [esp + 0x688], 0xb
call sub.MFC42.DLL_CString::MakeUpper
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x24]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x20]
sub eax, esi
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
mov byte [esp + 0x690], 0xc
call fcn.0041b7f4
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
mov byte [esp + 0x694], 0xd
call fcn.0041b7f4
lea eax, [esp + 0x1c]
mov byte [esp + 0x690], 0xc
push eax
call fcn.00416dc0
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x688], 0xe
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40e1d8
lea ecx, [esp + 0x14]
mov byte [esp + 0x688], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x688], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x688], bl
call sub.MFC42.DLL_CString::CString
jmp 0x40e018
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 + 0x690], 0xf
call sub.MFC42.DLL_CString::Left
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push ecx
mov byte [esp + 0x68c], 0x10
call esi
test eax, eax
je 0x40e3ce
mov edx, dword [esp + 0x18]
push edx
call esi
cmp eax, 1
je 0x40e3ce
mov eax, dword [esp + 0x10]
push eax
call esi
cmp eax, 4
je 0x40e3ce
mov ecx, dword [esp + 0x10]
push ecx
call esi
cmp eax, 5
je 0x40e3ce
mov edx, dword [esp + 0x10]
push edx
call esi
cmp eax, 2
je 0x40e3ce
lea eax, [esp + 0x30]
lea ecx, [esp + 0x38]
push eax
push str.SizeOfPathAddbyRegKey
push ecx
call sub.MFC42.DLL_operator_1
mov edx, dword [esp + 0x690]
mov ecx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x80]
push 0x500
push eax
push 0x42a438
push ecx
push str.FileGroup
mov byte [esp + 0x6a0], 0x11
call ebp
lea edx, [esp + 0x7c]
mov esi, eax
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov ebp, eax
test esi, esi
je 0x40e3bd
test ebp, ebp
jbe 0x40e3bd
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x74]
mov esi, dword [eax]
cmp esi, eax
je 0x40e30f
mov ecx, dword [esi + 8]
push ecx
lea ecx, [esp + 0x40]
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 0x40e348
lea ecx, [esp + 0x3c]
mov byte [esp + 0x688], 0x11
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x34]
mov esi, dword [esi]
cmp esi, dword [eax + 0x74]
jne 0x40e2ce
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x50], esi
test esi, esi
mov byte [esp + 0x688], 0x13
je 0x40e361
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x42a438
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.0040e4b0
mov edi, eax
jmp 0x40e363
mov esi, dword [esi + 8]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x688], 0x11
add dword [esi + 4], ebp
call sub.MFC42.DLL_CString::CString
jmp 0x40e3bd
xor edi, edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x688], 0x11
push ecx
mov ecx, edi
call fcn.0041b82a
mov edx, dword [esp + 0x34]
mov dword [edi + 4], ebp
push 0xc
mov esi, dword [edx + 0x74]
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 0x40e396
mov ecx, eax
test ebp, ebp
mov dword [eax], ecx
jne 0x40e39e
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 0x40e3b2
mov dword [eax], edi
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x4c]
inc dword [eax + 0x78]
lea ecx, [esp + 0x38]
mov byte [esp + 0x688], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x688], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x688], 0xe
call sub.MFC42.DLL_CString::CString
jmp 0x40e1a1
lea ecx, [esp + 0x58]
mov byte [esp + 0x688], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
mov byte [esp + 0x688], 6
call fcn.0041ba10
lea ecx, [esp + 0x54]
mov byte [esp + 0x688], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x688], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x688], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x688], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x688], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x688], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x690]
mov dword [esp + 0x688], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x680]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x67c
ret 4