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

Disassembly:
push 0xffffffffffffffff
push 0x5a90db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx + 4]
lea ecx, [esp + 0x20]
mov eax, dword [edi + 0x78]
mov esi, dword [eax + 0x10c]
call sub.MFC42.DLL_CString::CString_1
push esi
lea ecx, [esp + 0x24]
xor ebx, ebx
push str.select__from_pid_config_WHERE_delflag0_and_group_id_d
push ecx
mov dword [esp + 0x50], ebx
call sub.MFC42.DLL_CString::Format
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 0x10
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0x44], 1
je 0x485d4e
push str.XGSP
mov ecx, eax
call fcn.004dc2a0
mov esi, eax
jmp 0x485d50
xor esi, esi
mov edx, dword [esp + 0x20]
push 3
push 3
push 1
push edx
mov ecx, esi
mov byte [esp + 0x54], 0
call fcn.004dc330
cmp eax, ebx
je 0x48612a
mov ecx, esi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
je 0x48612a
push 0x6128e0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 5
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 6
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 7
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 8
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x44], 9
xor ebp, ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x485eb7
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
push str.align_name
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea ecx, [esp + 0x18]
push ecx
push str.account
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea edx, [esp + 0x24]
mov ecx, esi
push edx
push str.office_code
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea eax, [esp + 0x30]
mov ecx, esi
push eax
push str.ticket_control
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea ecx, [esp + 0x2c]
push ecx
push str.disable
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea edx, [esp + 0x1c]
push 0x10
push edx
call fcn.004ecb70
lea eax, [esp + 0x20]
push 0x10
push eax
call fcn.004ecb70
mov eax, dword [esp + 0x3c]
add esp, 0x10
cmp eax, ebx
mov ecx, 0x6128dc
jne 0x485e5c
mov ecx, 0x6016dc
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov eax, 0x6016dc
jne 0x485e6e
mov eax, 0x6128dc
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
push ecx
inc ebp
push edx
push eax
push ebp
lea ecx, [esp + 0x2c]
push str.__4d____s__s__s________s_____s_r
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x20
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.00592f4a
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x485dda
cmp esi, ebx
je 0x485ec3
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push str.____________________________________________________________________________r
lea ecx, [esp + 0x14]
call fcn.00592caa
push ebp
lea ecx, [esp + 0x18]
push 0x61281c
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.00592f4a
push 0x612800
lea ecx, [esp + 0x14]
call fcn.00592caa
push 0x6127e0
lea ecx, [esp + 0x14]
call fcn.00592caa
push 0x6127c0
lea ecx, [esp + 0x14]
call fcn.00592caa
mov ecx, dword [esp + 0x10]
mov eax, dword [edi]
push ebx
push ecx
mov ecx, edi
call dword [eax + 0x90]
mov eax, dword [0x635490]
cmp eax, ebx
je 0x485f96
mov cl, byte [eax + 0x40]
test cl, cl
je 0x485f96
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x78]
push edx
push str._RX_
push ebx
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x38], 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 0x485fe4
mov ecx, dword [esp + 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [edi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
mov byte [esp + 0x54], 0xa
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x62fce8]
mov byte [esp + 0x50], 9
call fcn.00401140
mov eax, dword [0x62fcf0]
cmp eax, ebx
je 0x4860df
mov ecx, dword [eax + 0x50]
xor ebp, ebp
cmp ecx, ebx
jle 0x4860df
mov bl, 0xb
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4860d3
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4860d3
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4860ce
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4860ce
mov ecx, dword [edi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x28]
mov byte [esp + 0x44], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x4860c0
mov al, byte [esi + 0x80]
test al, al
jne 0x4860c0
mov eax, dword [edi + 0x78]
mov ecx, dword [esi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4860c0
mov ecx, dword [esp + 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [edi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov byte [esp + 0x54], 0xc
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x50], bl
call fcn.004024b0
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 9
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x486000
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0
call sub.MFC42.DLL_CString::CString
jmp 0x486300
mov edx, dword [edi + 0x7c]
mov ecx, edi
inc edx
mov eax, edx
mov dword [edi + 0x7c], edx
mov edx, dword [edi]
push eax
push 0x6123e8
call dword [edx + 0x90]
mov eax, dword [0x635490]
cmp eax, ebx
je 0x4861ad
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4861ad
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x78]
push 0x6123d8
push str._RX_
push ebx
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x48], 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 0x4861fb
push 0x6123d8
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [edi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
mov byte [esp + 0x54], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x62fce8]
mov byte [esp + 0x50], 0
call fcn.00401140
mov eax, dword [0x62fcf0]
cmp eax, ebx
je 0x4862f4
mov ecx, dword [eax + 0x50]
test ecx, ecx
jle 0x4862f4
mov ecx, dword [eax + 0x4c]
mov ebp, dword [ecx + ebx*4]
test ebp, ebp
je 0x4862e8
mov cl, byte [ebp + 0x88]
test cl, cl
je 0x4862e8
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4862e3
mov eax, dword [ebp + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4862e3
mov ecx, dword [edi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x28]
mov byte [esp + 0x44], 3
mov eax, dword [edx - 8]
test eax, eax
je 0x4862d5
mov al, byte [ebp + 0x80]
test al, al
jne 0x4862d5
mov eax, dword [edi + 0x78]
mov ecx, dword [ebp + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4862d5
push 0x6123d8
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [edi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
mov byte [esp + 0x54], 4
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebp
mov byte [esp + 0x50], 3
call fcn.004024b0
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x486213
test esi, esi
je 0x486300
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret 4