Function at 0x4655a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506c4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
push str.QueueManager.ini
push 0x54b210
mov ebx, ecx
push eax
call sub.MFC42.DLL_operator_2
mov ecx, dword [ebp - 0x14]
xor esi, esi
push ecx
push 0xffffffffffffffff
push str.DeviceID
push str.TurboServer
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, esi
jne 0x46561f
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
jle 0x465623
mov esi, eax
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x274]
push edi
mov byte [ebp - 4], 2
call fcn.004cab70
test esi, esi
mov byte [ebp - 4], 3
jbe 0x46565f
push esi
push 0x2d
lea edx, [ebp - 0x268]
push str.F_TYPE_ID_ld_AND_F_DEV_ID_ld
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x465675
push 0x2d
lea eax, [ebp - 0x268]
push 0x544e34
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push str.F_DEV_ID
lea ecx, [ebp - 0x264]
call fcn.004c8322
push 0
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x274]
call sub.MFC42.DLL_CRecordset::Open
mov eax, dword [ebp - 0x1ac]
test eax, eax
je 0x4656eb
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 2
call fcn.004c90c0
mov byte [ebp - 4], 0
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x160]
lea ecx, [ebp - 0x274]
call sub.MFC42.DLL_CRecordset::Close
push edi
lea ecx, [ebp - 0x14c]
call fcn.004cadc0
push str.F_PARAM_FLAG
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 5
call fcn.004c8322
push str.TS_ReadPath
push esi
lea ecx, [ebp - 0x140]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x14c]
push 0
push 0
push 0xffffffffffffffff
call sub.MFC42.DLL_CRecordset::Open
mov eax, dword [ebp - 0x84]
test eax, eax
jne 0x465760
lea edx, [ebp - 0x28]
lea ecx, [ebx + 0xf4]
push edx
call fcn.004c830a
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString_3
push str.TS_IP
push esi
lea eax, [ebp - 0x140]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push eax
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x14c]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0x84]
test eax, eax
jne 0x4657b3
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004c830a
push str.TS_Port
push esi
lea edx, [ebp - 0x140]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x14c]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0x84]
test eax, eax
jne 0x4657ee
lea eax, [ebp - 0x28]
lea ecx, [ebp + 8]
push eax
call fcn.004c830a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4658ac
mov edx, dword [ebp + 8]
mov eax, dword [edx - 8]
test eax, eax
je 0x4658ac
push str.TS_PacketSize
push esi
lea eax, [ebp - 0x140]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
mov dword [ebx + 0xf8], 1
push eax
mov ebx, 0x3e800
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x14c]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0x84]
test eax, eax
jne 0x465857
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov ebx, eax
push str.TS_NetTimeout
push esi
lea edx, [ebp - 0x140]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push edx
mov edi, 0xa
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x14c]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0x84]
test eax, eax
jne 0x46589a
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov edi, eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
push ebx
push edi
push ecx
push edx
call fcn.004c38a0
add esp, 0x10
lea ecx, [ebp - 0x14c]
call sub.MFC42.DLL_CRecordset::Close
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 3
call fcn.004c90c0
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 2
call fcn.004c90c0
mov dword [ebp - 4], 0
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4