Function at 0x4f6c40
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5b89a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], 0x5d2254
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov ecx, dword [0x63ac10]
xor ebx, ebx
mov dword [esp + 0x58], ebp
lea eax, [ecx + 0x2f0]
mov dword [esp + 0x18], eax
mov eax, dword [eax]
cmp eax, ebp
jle 0x4f6e37
add ecx, 0x2ec
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
xor ebp, ebp
mov ecx, dword [eax]
xor eax, eax
mov edi, dword [ecx + ebx*4]
mov ecx, dword [edi + 0x20]
test ecx, ecx
jle 0x4f6d1b
mov edx, dword [edi + 0x1c]
mov esi, dword [edx]
cmp dword [esi + 0x78], 0xa
jne 0x4f6cc4
inc ebp
inc eax
add edx, 4
cmp eax, ecx
jl 0x4f6cbb
test ebp, ebp
jle 0x4f6d1b
push 0xc
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x58], 1
je 0x4f6cf3
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::CString_1
jmp 0x4f6cf5
xor esi, esi
mov edx, dword [edi]
mov dword [esi + 8], ebp
mov dword [esi], edx
mov eax, dword [esp + 0x30]
mov edi, eax
inc eax
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 0
call fcn.0049f7f0
mov eax, dword [esp + 0x2c]
mov dword [eax + edi*4], esi
mov ecx, dword [esp + 0x18]
inc ebx
cmp ebx, dword [ecx]
jl 0x4f6ca4
mov eax, dword [esp + 0x30]
xor ebp, ebp
cmp eax, ebp
jle 0x4f6e37
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CStringArray::CStringArray
push 0x40
mov byte [esp + 0x5c], 2
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov byte [esp + 0x58], 3
je 0x4f6d67
push str.XGSP
mov ecx, eax
call fcn.004dd020
mov edi, eax
jmp 0x4f6d69
xor edi, edi
mov eax, dword [esp + 0x30]
mov byte [esp + 0x58], 2
cmp eax, ebp
jle 0x4f6e1b
mov bl, 5
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 4
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], bl
mov esi, dword [edx + ebp*4]
mov eax, dword [esi]
push eax
push str.SELECT_TOP_1_account_FROM_client_config_WHERE_delflag0_AND_disable0_AND_is_web_account1_AND__group__d
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, edi
push 3
push 3
push 1
push edx
call fcn.004dd0b0
test eax, eax
je 0x4f6df2
mov ecx, edi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
je 0x4f6df2
lea eax, [esp + 0x18]
mov ecx, edi
push eax
push str.account
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x30]
inc ebp
cmp ebp, eax
jl 0x4f6d7c
xor ebp, ebp
cmp edi, ebp
je 0x4f6e29
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 0
call fcn.00596f82
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov bl, 6
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], bl
call sub.MFC42.DLL_CString::CString_1
push str.__xml_version_1.0__encoding_GB2312____r
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 7
call sub.MFC42.DLL_CString::operator
push str._xg_remote_in_req__r
lea ecx, [esp + 0x14]
call fcn.00596c9a
push str._items__r
lea ecx, [esp + 0x14]
call fcn.00596c9a
cmp dword [esp + 0x30], ebp
jle 0x4f6f20
mov eax, dword [esp + 0x2c]
mov esi, dword [eax + ebp*4]
mov ecx, dword [esi + 4]
lea edi, [esi + 4]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4f6f13
push str._item__r
lea ecx, [esp + 0x14]
call fcn.00596c9a
mov edx, dword [edi]
lea eax, [esp + 0x14]
push edx
push str._account__s__account_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.00596f3a
mov edx, dword [esi + 8]
lea eax, [esp + 0x14]
push edx
push str._right__d__right_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.00596f3a
push str.__item__r
lea ecx, [esp + 0x14]
call fcn.00596c9a
test esi, esi
je 0x4f6f13
mov ecx, edi
call sub.MFC42.DLL_CString::CString
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x30]
inc ebp
cmp ebp, eax
jl 0x4f6e88
push str.__items__r
lea ecx, [esp + 0x14]
call fcn.00596c9a
push str.__xg_remote_in_req__r
lea ecx, [esp + 0x14]
call fcn.00596c9a
mov eax, dword [esp + 0x10]
push 1
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x28]
push eax
call fcn.004f56f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
test eax, eax
mov dword [esp + 0x1c], 0x5d2254
pop ebx
je 0x4f6f88
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret