Function at 0x4f5d10
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x5b43c6
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], 0x5cd234
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov ecx, dword [0x635400]
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 0x4f5f07
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 0x4f5deb
mov edx, dword [edi + 0x1c]
mov esi, dword [edx]
cmp dword [esi + 0x74], 0xa
jne 0x4f5d94
inc ebp
inc eax
add edx, 4
cmp eax, ecx
jl 0x4f5d8b
test ebp, ebp
jle 0x4f5deb
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 0x4f5dc3
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::CString_1
jmp 0x4f5dc5
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.00533060
mov eax, dword [esp + 0x2c]
mov dword [eax + edi*4], esi
mov ecx, dword [esp + 0x18]
inc ebx
cmp ebx, dword [ecx]
jl 0x4f5d74
mov eax, dword [esp + 0x30]
xor ebp, ebp
cmp eax, ebp
jle 0x4f5f07
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 0x4f5e37
push str.XGSP
mov ecx, eax
call fcn.004dc060
mov edi, eax
jmp 0x4f5e39
xor edi, edi
mov eax, dword [esp + 0x30]
mov byte [esp + 0x58], 2
cmp eax, ebp
jle 0x4f5eeb
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.004dc0f0
test eax, eax
je 0x4f5ec2
mov ecx, edi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
je 0x4f5ec2
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 0x4f5e4c
xor ebp, ebp
cmp edi, ebp
je 0x4f5ef9
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 0
call fcn.00592bb2
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.005928ca
push str._items__r
lea ecx, [esp + 0x14]
call fcn.005928ca
cmp dword [esp + 0x30], ebp
jle 0x4f5ff0
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 0x4f5fe3
push str._item__r
lea ecx, [esp + 0x14]
call fcn.005928ca
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.00592b6a
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.00592b6a
push str.__item__r
lea ecx, [esp + 0x14]
call fcn.005928ca
test esi, esi
je 0x4f5fe3
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 0x4f5f58
push str.__items__r
lea ecx, [esp + 0x14]
call fcn.005928ca
push str.__xg_remote_in_req__r
lea ecx, [esp + 0x14]
call fcn.005928ca
mov eax, dword [esp + 0x10]
push 1
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x28]
push eax
call fcn.004f47c0
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], 0x5cd234
pop ebx
je 0x4f6058
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret