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

Disassembly:
push 0xffffffffffffffff
push 0x5aca71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x637770]
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 0x49947d
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x49947d
mov cl, byte [eax + 0x320]
test cl, cl
je 0x49947d
mov ecx, esi
call fcn.004994a0
mov al, byte [esp + 0x48]
test al, al
jne 0x499072
mov eax, dword [0x637770]
cmp eax, ebx
je 0x499008
mov cl, byte [eax + 0x40]
test cl, cl
je 0x499008
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push 0x617368
push 0x60b5c0
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x637770]
push str.runtime
push 0x603760
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb4c0
mov eax, dword [0x637770]
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 0x617368
call sub.MFC42.DLL_CString::CString_3
push ecx
mov dword [esp + 0x48], ebx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x60b5c0
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 0x60375c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63234c]
mov dword [esp + 0x50], 0xffffffff
call fcn.00458dc0
jmp 0x49947d
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 0x4990d1
push str.XGSP
mov ecx, eax
call fcn.004dbdb0
mov edi, eax
jmp 0x4990d3
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.004dbe40
cmp eax, ebx
jne 0x4991ce
cmp edi, ebx
je 0x4990fe
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [0x637770]
cmp eax, ebx
je 0x499166
mov cl, byte [eax + 0x40]
test cl, cl
je 0x499166
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push str._v_ins_route_
push 0x603774
push ecx
mov ecx, esp
mov dword [esp + 0x58], esp
push str..dbs.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x637770]
push str.runtime
push 0x603760
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb4c0
mov eax, dword [0x637770]
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 0x603774
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 0x60375c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63234c]
mov byte [esp + 0x50], 4
call fcn.00458dc0
jmp 0x49945e
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 0x49931d
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 0x499281
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 0x499283
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 0x603cd0
push 0x6171d0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x603cd0
push 0x60c5d0
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.004ea520
mov ebp, dword [ebx + 8]
add esp, 0x18
mov ecx, ebx
lea eax, [ebp + 1]
push 0xffffffffffffffff
push eax
call fcn.00582dc0
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 0x499204
mov esi, dword [esp + 0x28]
test edi, edi
je 0x499329
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, dword [esi + 0x80]
test eax, eax
jle 0x499442
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 0x6171b4
push eax
mov byte [esp + 0x4c], bl
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x637770]
add esp, 0xc
test eax, eax
je 0x4993cd
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4993cd
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
lea ecx, [esp + 0x4c]
call fcn.0041a900
push eax
push 0x60b5c0
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x637770]
push str.runtime
push 0x603760
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb4c0
mov eax, dword [0x637770]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
lea ecx, [esp + 0x48]
call fcn.0041a900
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 0x60b5c0
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 0x60375c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63234c]
mov byte [esp + 0x50], bl
call fcn.00458dc0
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