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

Disassembly:
push 0xffffffffffffffff
push 0x5bd6d6
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], 0x5d7394
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov ecx, dword [0x641030]
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 0x4f7da7
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 0x4f7c8b
mov edx, dword [edi + 0x1c]
mov esi, dword [edx]
cmp dword [esi + 0x78], 0xa
jne 0x4f7c34
inc ebp
inc eax
add edx, 4
cmp eax, ecx
jl 0x4f7c2b
test ebp, ebp
jle 0x4f7c8b
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 0x4f7c63
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::CString_1
jmp 0x4f7c65
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.005343d0
mov eax, dword [esp + 0x2c]
mov dword [eax + edi*4], esi
mov ecx, dword [esp + 0x18]
inc ebx
cmp ebx, dword [ecx]
jl 0x4f7c14
mov eax, dword [esp + 0x30]
xor ebp, ebp
cmp eax, ebp
jle 0x4f7da7
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 0x4f7cd7
push str.XGSP
mov ecx, eax
call fcn.004ddd00
mov edi, eax
jmp 0x4f7cd9
xor edi, edi
mov eax, dword [esp + 0x30]
mov byte [esp + 0x58], 2
cmp eax, ebp
jle 0x4f7d8b
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.004ddd90
test eax, eax
je 0x4f7d62
mov ecx, edi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
je 0x4f7d62
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 0x4f7cec
xor ebp, ebp
cmp edi, ebp
je 0x4f7d99
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 0
call fcn.0059ba94
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.0059b7ac
push str._items__r
lea ecx, [esp + 0x14]
call fcn.0059b7ac
cmp dword [esp + 0x30], ebp
jle 0x4f7e90
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 0x4f7e83
push str._item__r
lea ecx, [esp + 0x14]
call fcn.0059b7ac
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.0059ba4c
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.0059ba4c
push str.__item__r
lea ecx, [esp + 0x14]
call fcn.0059b7ac
test esi, esi
je 0x4f7e83
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 0x4f7df8
push str.__items__r
lea ecx, [esp + 0x14]
call fcn.0059b7ac
push str.__xg_remote_in_req__r
lea ecx, [esp + 0x14]
call fcn.0059b7ac
mov eax, dword [esp + 0x10]
push 1
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x28]
push eax
call fcn.004f6650
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], 0x5d7394
pop ebx
je 0x4f7ef8
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret