Function at 0x403870
Capabilities:
Get disk information
Read .ini file

Disassembly:
sub esp, 0x114
lea ecx, [esp + 0xc]
push esi
push edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 8]
push 0x411450
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 8]
push 1
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
push 3
call dword [sym.imp.MSVCRT.dll__chdrive]
add esp, 0xc
test eax, eax
jne 0x403a76
push 0x43
lea ecx, [esp + 0x18]
push 0x41144c
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x403908
cmp eax, 1
jne 0x403a76
lea edx, [esp + 0x14]
push 0x41143c
lea eax, [esp + 0x1c]
push edx
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
je 0x403a76
mov edx, dword [esp + 0xc]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x20]
push 0x100
push eax
push 0x4277e4
push str.open
push str.autorun
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x10]
mov esi, 1
mov eax, dword [edx - 8]
test eax, eax
je 0x403a7a
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.0040c9c4
call fcn.00402ee0
add esp, 4
test eax, eax
jne 0x403a7a
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
lea eax, [esp + 0x10]
push 0x411408
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 8]
push 4
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [esp + 0x128]
add esp, 8
xor esi, esi
test eax, eax
je 0x403a7a
mov ecx, dword [esp + 0xc]
push ecx
push 0x4277e4
push str.open
push str.autorun
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
jne 0x403a47
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
push edx
push 0x4113f0
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 8]
push 5
push esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
jmp 0x403a7a
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
push ecx
push 0x41117c
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 8]
push 3
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
jmp 0x403a7a
mov esi, dword [esp + 0x18]
test esi, esi
je 0x403a8a
lea eax, [esp + 8]
push 0x4113cc
push eax
jmp 0x403a94
lea ecx, [esp + 8]
push 0x4113b4
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 8]
push 1
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret