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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a9a4b
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov ebx, ecx
push edi
push eax
mov esi, dword [ebx + 4]
call fcn.0047ce50
test al, al
jne 0x47d25c
mov ebp, dword [esi + 0x7c]
mov edx, dword [esi]
inc ebp
mov ecx, esi
mov eax, ebp
mov dword [esi + 0x7c], ebp
push eax
push str._PARAM_ERROR_
call dword [edx + 0x90]
mov eax, dword [0x637760]
xor ebp, ebp
cmp eax, ebp
je 0x47d108
mov cl, byte [eax + 0x40]
test cl, cl
je 0x47d108
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
push str.PARAM_ERROR_
push str._RX_
push ebp
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x637760]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb100
mov eax, dword [0x637760]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c4d0
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x47d158
push str.PARAM_ERROR_
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov dword [esp + 0x40], ebp
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00401140
mov eax, dword [0x631fc0]
cmp eax, ebp
je 0x47d44d
cmp dword [eax + 0x50], ebp
jle 0x47d44d
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x47d24b
mov cl, byte [edi + 0x88]
test cl, cl
je 0x47d24b
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x47d246
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x47d246
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], 1
mov eax, dword [edx - 8]
test eax, eax
je 0x47d235
mov al, byte [edi + 0x80]
test al, al
jne 0x47d235
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x47d235
push str.PARAM_ERROR_
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x40], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x3c], 1
call fcn.00402490
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x47d174
jmp 0x47d44d
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x637760]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x34], 3
call fcn.0058f7e0
mov ecx, dword [ebx + 0x20]
mov edx, dword [esi + 0x78]
push ecx
mov byte [esp + 0x34], 4
mov ecx, dword [edx + 0x10c]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x1c]
push str.select__from__s_where__delflag_0_and__group____d_and__account____s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
xor ebp, ebp
mov byte [esp + 0x30], 5
cmp eax, ebp
je 0x47d2dc
push str.XGSP
mov ecx, eax
call fcn.004db9f0
mov edi, eax
jmp 0x47d2de
xor edi, edi
mov ecx, dword [esp + 0x10]
push 3
push 3
push 1
push ecx
mov ecx, edi
mov byte [esp + 0x40], 3
call fcn.004dba80
cmp eax, ebp
je 0x47d419
mov ecx, edi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
je 0x47d419
lea edx, [esp + 0x18]
mov ecx, edi
push edx
push str.disable
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
push 0x603170
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebx + 0x24]
mov ecx, dword [esp + 0x18]
lea ebp, [ebx + 0x24]
cmp eax, ecx
mov byte [esp + 0x30], 6
jne 0x47d37a
cmp eax, 1
mov eax, 0x6036f8
je 0x47d361
mov eax, 0x603614
mov ecx, dword [ebx + 0x20]
push eax
push ecx
lea edx, [esp + 0x40]
push 0x6127fc
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x47d3e4
push ebp
push str.disable
mov ecx, edi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::PutCollect_char_const___int_const__
mov ecx, edi
call fcn.004dbc50
cmp dword [ebp], 0
jne 0x47d3a4
mov ecx, dword [ebx + 0x20]
lea edx, [esp + 0x38]
push ecx
push 0x6127d4
push edx
jmp 0x47d3dc
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x47d3b6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x47d3b8
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + 0x20]
push 0
push ecx
push 0x464
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebx + 0x20]
lea ecx, [esp + 0x38]
push eax
push 0x6127ac
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ebp, dword [esi + 0x7c]
mov edx, dword [esi]
inc ebp
mov ecx, esi
mov eax, ebp
mov dword [esi + 0x7c], ebp
push eax
mov eax, dword [esp + 0x3c]
push eax
call dword [edx + 0x90]
test edi, edi
je 0x47d409
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
jmp 0x47d43c
mov eax, dword [esi + 0x7c]
mov edx, dword [esi]
inc eax
mov ecx, esi
push eax
push 0x61248c
mov dword [esi + 0x7c], eax
call dword [edx + 0x90]
cmp edi, ebp
je 0x47d43c
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 4