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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a842b
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.0047cf60
test al, al
jne 0x47d36c
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 [0x635490]
xor ebp, ebp
cmp eax, ebp
je 0x47d218
mov cl, byte [eax + 0x40]
test cl, cl
je 0x47d218
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 [0x635490]
push str.command
push str.esms
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]
call fcn.0044c560
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x47d268
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 [0x62fce8]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00401140
mov eax, dword [0x62fcf0]
cmp eax, ebp
je 0x47d55d
cmp dword [eax + 0x50], ebp
jle 0x47d55d
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x47d35b
mov cl, byte [edi + 0x88]
test cl, cl
je 0x47d35b
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x47d356
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x47d356
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 0x47d345
mov al, byte [edi + 0x80]
test al, al
jne 0x47d345
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 0x47d345
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.004024b0
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x47d284
jmp 0x47d55d
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x635490]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x34], 3
call fcn.0058f340
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 0x47d3ec
push str.XGSP
mov ecx, eax
call fcn.004dc2a0
mov edi, eax
jmp 0x47d3ee
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.004dc330
cmp eax, ebp
je 0x47d529
mov ecx, edi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
je 0x47d529
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 0x601170
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 0x47d48a
cmp eax, 1
mov eax, 0x6016f8
je 0x47d471
mov eax, 0x601614
mov ecx, dword [ebx + 0x20]
push eax
push ecx
lea edx, [esp + 0x40]
push 0x610834
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x47d4f4
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.004dc500
cmp dword [ebp], 0
jne 0x47d4b4
mov ecx, dword [ebx + 0x20]
lea edx, [esp + 0x38]
push ecx
push 0x61080c
push edx
jmp 0x47d4ec
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x47d4c6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x47d4c8
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 0x6107e4
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 0x47d519
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 0x47d54c
mov eax, dword [esi + 0x7c]
mov edx, dword [esi]
inc eax
mov ecx, esi
push eax
push 0x6104c4
mov dword [esi + 0x7c], eax
call dword [edx + 0x90]
cmp edi, ebp
je 0x47d54c
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