Function at 0x4c1800
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x588754
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
push 0
push str.NumProfiles
push str.Preferences
mov esi, ecx
call sub.MFC71.DLL_CWinApp::GetProfileIntA
push 0
push str.CurrentProfile
mov ebx, eax
push str.Preferences
mov ecx, esi
mov dword [esp + 0x34], ebx
call sub.MFC71.DLL_CWinApp::GetProfileIntA
lea ebp, [esi + 0x120]
mov ecx, ebp
mov dword [esp + 0x18], eax
call fcn.004c09c0
push 0
push str.ProfileVersion
push str.Preferences
mov ecx, esi
call sub.MFC71.DLL_CWinApp::GetProfileIntA
mov edi, 1
cmp eax, edi
je 0x4c187f
mov dword [esp + 0x18], 0
jmp 0x4c1887
test ebx, ebx
jne 0x4c195d
call fcn.0044afb0
lea ecx, [esp + 0x2c]
mov ebx, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_7]
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_7]
lea ecx, [esp + 0x4c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_7]
push 0x5fdb64
lea ecx, [esp + 0x30]
mov dword [esp + 0x88], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_4]
push ebx
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.0044b020
add esp, 4
push eax
lea ecx, [esp + 0x40]
call dword [0x5942f8]
push ebx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.0044b020
add esp, 4
push eax
lea ecx, [esp + 0x50]
call dword [0x5942f8]
mov dword [esp + 0x50], edi
mov edi, dword [ebp + 8]
test edi, edi
jge 0x4c191a
jmp sub.MFC71.DLL_AfxThrowInvalidArgException
push 0xffffffffffffffff
lea eax, [edi + 1]
push eax
mov ecx, ebp
call fcn.004bf2e0
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x2c]
lea edx, [edi + edi*4]
push ecx
lea ecx, [eax + edx*8]
call fcn.004bf570
lea ecx, [esp + 0x4c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
jmp 0x4c1bcb
test ebx, ebx
mov dword [esp + 0x14], 0
jle 0x4c1bcb
mov bl, 2
jmp 0x4c1976
mov edi, 1
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_7]
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push str.Profile__d
push edx
mov dword [esp + 0x90], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0xc
lea ecx, [esp + 0x54]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_7]
lea ecx, [esp + 0x64]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_7]
lea ecx, [esp + 0x74]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_7]
push 0x596834
push str.Name
lea ecx, [esp + 0x18]
mov byte [esp + 0x8c], bl
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call sub.MFC71.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x88], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_4]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
push 0
push str.QualityDistribution
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call sub.MFC71.DLL_CWinApp::GetProfileIntA
push edi
push str.KeepOriginalMenus
lea ecx, [esp + 0x18]
mov dword [esp + 0x60], eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call sub.MFC71.DLL_CWinApp::GetProfileIntA
push edi
push str.SelectAudio
lea ecx, [esp + 0x18]
mov dword [esp + 0x64], eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call sub.MFC71.DLL_CWinApp::GetProfileIntA
push 0x5ba1b0
push str.AudioTracks
lea ecx, [esp + 0x18]
mov dword [esp + 0x68], eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call sub.MFC71.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x88], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_4]
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
push edi
push str.AudioType
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call sub.MFC71.DLL_CWinApp::GetProfileIntA
push edi
push str.SelectAllAudio
lea ecx, [esp + 0x18]
mov dword [esp + 0x70], eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call sub.MFC71.DLL_CWinApp::GetProfileIntA
push edi
push str.SelectSubpicture
lea ecx, [esp + 0x18]
mov dword [esp + 0x74], eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call sub.MFC71.DLL_CWinApp::GetProfileIntA
push 0x5ba1b0
push str.SubpictureTracks
lea ecx, [esp + 0x18]
mov dword [esp + 0x78], eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call sub.MFC71.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x88], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_4]
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
push edi
push str.SelectAllSubpicture
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call sub.MFC71.DLL_CWinApp::GetProfileIntA
mov edi, dword [ebp + 8]
test edi, edi
mov dword [esp + 0x78], eax
jl 0x4c1915
push 0xffffffffffffffff
lea eax, [edi + 1]
push eax
mov ecx, ebp
call fcn.004bf2e0
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x54]
lea edx, [edi + edi*4]
push ecx
lea ecx, [eax + edx*8]
call fcn.004bf570
lea ecx, [esp + 0x74]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x64]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x54]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x10]
mov dword [esp + 0x84], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4c1971
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x4c1bf7
mov ecx, dword [esi + 0x128]
dec ecx
cmp eax, ecx
jg 0x4c1bf7
pop edi
mov dword [esi + 0x134], eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
add esp, 0x78
ret
mov ecx, dword [esp + 0x7c]
pop edi
mov dword [esi + 0x134], 0
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret