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

Disassembly:
push 0xffffffffffffffff
push 0x5ab1e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x635490]
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 0x49999d
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x49999d
mov cl, byte [eax + 0x320]
test cl, cl
je 0x49999d
mov ecx, esi
call fcn.004999c0
mov al, byte [esp + 0x48]
test al, al
jne 0x499592
mov eax, dword [0x635490]
cmp eax, ebx
je 0x499528
mov cl, byte [eax + 0x40]
test cl, cl
je 0x499528
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push 0x615618
push 0x6095c0
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x635490]
push str.runtime
push 0x601760
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eba10
mov eax, dword [0x635490]
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 0x615618
call sub.MFC42.DLL_CString::CString_3
push ecx
mov dword [esp + 0x48], ebx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x6095c0
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 0x60175c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63006c]
mov dword [esp + 0x50], 0xffffffff
call fcn.00458d40
jmp 0x49999d
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 0x4995f1
push str.XGSP
mov ecx, eax
call fcn.004dc2a0
mov edi, eax
jmp 0x4995f3
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.004dc330
cmp eax, ebx
jne 0x4996ee
cmp edi, ebx
je 0x49961e
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [0x635490]
cmp eax, ebx
je 0x499686
mov cl, byte [eax + 0x40]
test cl, cl
je 0x499686
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push str._v_ins_route_
push 0x601774
push ecx
mov ecx, esp
mov dword [esp + 0x58], esp
push str..dbs.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x635490]
push str.runtime
push 0x601760
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eba10
mov eax, dword [0x635490]
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 0x601774
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 0x60175c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63006c]
mov byte [esp + 0x50], 4
call fcn.00458d40
jmp 0x49997e
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 0x49983d
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 0x4997a1
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 0x4997a3
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 0x601cd0
push 0x615480
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x601cd0
push 0x60a5d0
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.004eaa70
mov ebp, dword [ebx + 8]
add esp, 0x18
mov ecx, ebx
lea eax, [ebp + 1]
push 0xffffffffffffffff
push eax
call fcn.0056a200
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 0x499724
mov esi, dword [esp + 0x28]
test edi, edi
je 0x499849
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, dword [esi + 0x80]
test eax, eax
jle 0x499962
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 0x615464
push eax
mov byte [esp + 0x4c], bl
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x635490]
add esp, 0xc
test eax, eax
je 0x4998ed
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4998ed
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
lea ecx, [esp + 0x4c]
call fcn.0041a850
push eax
push 0x6095c0
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x635490]
push str.runtime
push 0x601760
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eba10
mov eax, dword [0x635490]
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 0x6095c0
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 0x60175c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63006c]
mov byte [esp + 0x50], bl
call fcn.00458d40
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