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

Disassembly:
push 0xffffffffffffffff
push 0x5b3fb1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x641030]
push ebx
push ebp
push esi
mov eax, dword [eax + 0xc]
xor ebx, ebx
mov esi, ecx
cmp eax, ebx
push edi
mov dword [esp + 0x28], esi
je 0x49a81d
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x49a81d
mov cl, byte [eax + 0x320]
test cl, cl
je 0x49a81d
mov ecx, esi
call fcn.0049a840
mov al, byte [esp + 0x48]
test al, al
jne 0x49a412
mov eax, dword [0x641030]
cmp eax, ebx
je 0x49a3a8
mov cl, byte [eax + 0x40]
test cl, cl
je 0x49a3a8
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push 0x620518
push 0x6145d8
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x641030]
push str.runtime
push 0x60c77c
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ed3c0
mov eax, dword [0x641030]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x620518
call sub.MFC42.DLL_CString::CString_3
push ecx
mov dword [esp + 0x48], ebx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x6145d8
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x4c], 1
mov ecx, esp
mov dword [esp + 0x3c], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x50], 2
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x60c778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
mov dword [esp + 0x50], 0xffffffff
call fcn.00459390
jmp 0x49a81d
push str._SELECT_ins_route.id__ins_route.source_group_id__ins_route.dest_group_id___t_t_tins_route.disable__ins_route.ins_set__a.group_name__b.ins_route_enable_FROM___ins_route__t_t_tINNER_JOIN_group_list_a_ON_ins_route.dest_group_id__a.id___t_t_tINNER_JOIN_group_list_b_ON_ins_route.source_group_id__b.id__
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 3
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
push str.select__from__s_where_disable0_and_ins_route_enable__1_order_by_source_group_id_id
push ecx
mov byte [esp + 0x4c], 4
call sub.MFC42.DLL_CString::Format
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 0x10
mov dword [esp + 0x48], eax
cmp eax, ebx
mov byte [esp + 0x40], 5
je 0x49a471
push str.XGSP
mov ecx, eax
call fcn.004ddd00
mov edi, eax
jmp 0x49a473
xor edi, edi
mov edx, dword [esp + 0x14]
push 3
push 3
push 1
push edx
mov ecx, edi
mov byte [esp + 0x50], 4
call fcn.004ddd90
cmp eax, ebx
jne 0x49a56e
cmp edi, ebx
je 0x49a49e
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [0x641030]
cmp eax, ebx
je 0x49a506
mov cl, byte [eax + 0x40]
test cl, cl
je 0x49a506
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push str._v_ins_route_
push 0x60c790
push ecx
mov ecx, esp
mov dword [esp + 0x58], esp
push str..dbs.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x641030]
push str.runtime
push 0x60c77c
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ed3c0
mov eax, dword [0x641030]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str._v_ins_route_
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x48], 6
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x60c790
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x4c], 7
mov ecx, esp
mov dword [esp + 0x38], esp
push str..dbs.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x50], 8
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x60c778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
mov byte [esp + 0x50], 4
call fcn.00459390
jmp 0x49a7fe
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 9
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
mov byte [esp + 0x40], 0xa
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x49a6bd
lea ebx, [esi + 0x78]
lea eax, [esp + 0x20]
mov ecx, edi
push eax
push str.source_group_id
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea ecx, [esp + 0x24]
push ecx
push str.dest_group_id
mov ecx, edi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea edx, [esp + 0x18]
mov ecx, edi
push edx
push str.group_name
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea eax, [esp + 0x10]
mov ecx, edi
push eax
push str.ins_set
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeUpper
push 0x20
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x48], esi
test esi, esi
mov byte [esp + 0x40], 0xb
je 0x49a621
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xc]
mov byte [esp + 0x40], 0xc
call sub.MFC42.DLL_CStringArray::CStringArray
jmp 0x49a623
xor esi, esi
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18]
mov dword [esi], ecx
mov edx, dword [esp + 0x24]
push eax
lea ecx, [esi + 8]
mov byte [esp + 0x44], 0xa
mov dword [esi + 4], edx
call sub.MFC42.DLL_CString::operator_1
push 0x60cce8
push 0x620380
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x60cce8
push 0x615694
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 1
push 0
push 0x32
lea ecx, [esi + 0xc]
push 0x2c
push ecx
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
call sub.MFC42.DLL_CString::CString_2
call fcn.004ec420
mov ebp, dword [ebx + 8]
add esp, 0x18
mov ecx, ebx
lea eax, [ebp + 1]
push 0xffffffffffffffff
push eax
call fcn.005343d0
mov ecx, dword [ebx + 4]
mov dword [ecx + ebp*4], esi
mov ecx, edi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
mov ecx, edi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x49a5a4
mov esi, dword [esp + 0x28]
test edi, edi
je 0x49a6c9
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, dword [esi + 0x80]
test eax, eax
jle 0x49a7e2
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x80]
mov bl, 0xd
push eax
lea eax, [esp + 0x4c]
push 0x620364
push eax
mov byte [esp + 0x4c], bl
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x641030]
add esp, 0xc
test eax, eax
je 0x49a76d
mov cl, byte [eax + 0x40]
test cl, cl
je 0x49a76d
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
lea ecx, [esp + 0x4c]
call fcn.0041a850
push eax
push 0x6145d8
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x641030]
push str.runtime
push 0x60c77c
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ed3c0
mov eax, dword [0x641030]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
lea ecx, [esp + 0x48]
call fcn.0041a850
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x48], 0xe
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x6145d8
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x4c], 0xf
mov ecx, esp
mov dword [esp + 0x38], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x50], 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x60c778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
mov byte [esp + 0x50], bl
call fcn.00459390
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret 4