Function at 0x495f10
Capabilities:
Access peb ldr_data
Read .ini file
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x50cdca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
push 0
push str.MaxCmdCount
mov esi, ecx
push str.Settings
call sub.MFC42.DLL_CWinApp::GetProfileIntA
push 0
push str.NewConnection
push str.Settings
mov ecx, esi
mov dword [esi + 0xfc], eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
push 0
push str.RebuildIcon
push str.Settings
mov ecx, esi
mov dword [esi + 0x100], eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
push 0
push str.RealRefresh
push str.Settings
mov ecx, esi
mov dword [esi + 0xf8], eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
push 0
push str.KillLocked
push str.Settings
mov ecx, esi
mov dword [esi + 0x104], eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x108], eax
push str.C:QMDebugLog.txt
push str.DebugLog
lea eax, [esp + 0x18]
push str.Settings
push eax
mov ecx, esi
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [esi + 0x10c]
mov dword [esp + 0x24], 0
call fcn.004c830a
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
push 2
push str.ShowNotify
push str.Settings
mov ecx, esi
call sub.MFC42.DLL_CWinApp::GetProfileIntA
push 0
push str.CheckDB
push str.Settings
mov ecx, esi
mov dword [esi + 0x110], eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
push 0xa
push str.COMTimeOut
push str.Settings
mov ecx, esi
mov dword [esi + 0x114], eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
push 1
push str.OpenDBCreating
push str.Settings
mov ecx, esi
mov dword [esi + 0x118], eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
push 0
push str.MaxDDOSize
push str.Settings
mov ecx, esi
mov dword [esi + 0x11c], eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
push str.QueueManager.ini
lea ecx, [esp + 0xc]
push 0x54b210
mov dword [esi + 0x120], eax
push ecx
call sub.MFC42.DLL_operator_2
mov edx, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edx
push 0x3c
push str.NewImageTimeout
push str.System
mov dword [esp + 0x30], 1
call edi
cmp eax, 5
mov dword [esi + 0x124], eax
jg 0x4960ae
mov dword [esi + 0x124], 0x3c
mov eax, dword [esp + 8]
push eax
push 0
push str.AutoRestart
push str.System
call edi
mov ecx, dword [esp + 8]
mov dword [esi + 0x128], eax
push ecx
push 0x10
push str.StuNoGroup
push str.DcmCfg
call edi
mov edx, dword [esp + 8]
mov word [esi + 0x12c], ax
push edx
push 0x20
push str.StuNoElement
push str.DcmCfg
call edi
lea ecx, [esp + 0xc]
mov word [esi + 0x12e], ax
call sub.MFC42.DLL_CString::CString_3
lea eax, [esi + 0xe8]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x24], 2
call fcn.004c830a
push str.ImpDir_
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0xc]
push 0
push ecx
push str.ImportDir
lea edx, [esp + 0x1c]
push 0x54aebc
push edx
mov ecx, esi
call fcn.004950b0
push eax
lea ecx, [esi + 0xec]
mov byte [esp + 0x24], 3
call fcn.004c830a
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
push 0
push 0x542a28
push str.AppStyle
lea eax, [esp + 0x20]
push 0x54aebc
push eax
mov ecx, esi
call fcn.004950b0
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x9ac], eax
call sub.MFC42.DLL_CString::CString
push 0x88
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x20], 4
je 0x4961be
mov ecx, eax
call fcn.00402dc0
jmp 0x4961c0
xor eax, eax
push 0
push 0
push 4
mov ecx, eax
mov byte [esp + 0x2c], 2
mov dword [0x54bb20], eax
call sub.MFC42.DLL_CWinThread::CreateThread
test eax, eax
je 0x4961eb
mov ecx, dword [0x54bb20]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
add esi, 0xa0c
lea ecx, [esp + 0xc]
mov dword [0x54bf0c], esi
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret