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

Disassembly:
push 0xffffffffffffffff
push 0x5aa8dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
mov edx, dword [esp + 0x250]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x50]
mov dword [esp + 0x10], esi
mov eax, dword [esi]
mov edi, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call dword [eax + 4]
test al, al
jne 0x4852ba
mov ecx, dword [edi + 0x7c]
mov eax, dword [edi]
inc ecx
lea edx, [esp + 0x50]
push ecx
push edx
mov ecx, edi
call dword [eax + 0x90]
mov eax, dword [0x637770]
xor ebp, ebp
cmp eax, ebp
je 0x485154
mov cl, byte [eax + 0x40]
test cl, cl
je 0x485154
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi + 0x78]
lea eax, [esp + 0x50]
push eax
push str._RX_
push ebp
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637770]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c540
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4851aa
lea edx, [esp + 0x50]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [edi + 0x78]
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov dword [esp + 0x268], ebp
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fc8]
mov dword [esp + 0x264], 0xffffffff
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebp
je 0x485841
cmp dword [eax + 0x50], ebp
jle 0x485841
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4852a9
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4852a9
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4852a4
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4852a4
mov ecx, dword [edi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x10]
mov dword [esp + 0x258], 1
mov eax, dword [edx - 8]
test eax, eax
je 0x485290
mov al, byte [esi + 0x80]
test al, al
jne 0x485290
mov eax, dword [edi + 0x78]
mov ecx, dword [esi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x485290
lea ecx, [esp + 0x50]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x20], 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 + 0x28], esp
push edx
mov byte [esp + 0x268], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x264], 1
call fcn.00402500
lea ecx, [esp + 0x10]
mov dword [esp + 0x258], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4851c6
jmp 0x485841
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x28]
mov edx, dword [edi + 0x78]
mov ecx, eax
push eax
mov eax, dword [edx + 0x10c]
push ecx
mov ecx, dword [esi + 0x24]
push eax
push ecx
lea edx, [esp + 0x38]
push str.select__from_qty_rec_WHERE_account_s_AND_account_group_d_and_rec_time____s_00:00:00_and_rec_time____s_23:59:59_order_by_id_ASC
push edx
mov dword [esp + 0x270], 3
call sub.MFC42.DLL_CString::Format
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 0x1c
mov dword [esp + 0x18], eax
xor ebp, ebp
mov byte [esp + 0x258], 4
cmp eax, ebp
je 0x48531e
push str.PNRR
mov ecx, eax
call fcn.004dbdb0
mov esi, eax
jmp 0x485320
xor esi, esi
mov eax, dword [esp + 0x28]
push 3
push 3
push 1
push eax
mov ecx, esi
mov byte [esp + 0x268], 3
call fcn.004dbe40
cmp eax, ebp
jne 0x485535
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 0x614284
call dword [edx + 0x90]
mov eax, dword [0x637770]
cmp eax, ebp
je 0x4853c5
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4853c5
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x78]
push 0x614274
push str._RX_
push ebp
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x637770]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb4c0
mov eax, dword [0x637770]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c540
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x485419
push 0x614274
push ecx
mov ecx, esp
mov dword [esp + 0x20], 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 + 0x28], esp
push edx
mov byte [esp + 0x268], 5
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fc8]
mov byte [esp + 0x264], 3
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebp
je 0x485520
mov ecx, dword [eax + 0x50]
xor ebx, ebx
cmp ecx, ebp
jle 0x485520
mov ecx, dword [eax + 0x4c]
mov ebp, dword [ecx + ebx*4]
test ebp, ebp
je 0x485514
mov cl, byte [ebp + 0x88]
test cl, cl
je 0x485514
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48550f
mov eax, dword [ebp + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48550f
mov ecx, dword [edi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x258], 6
mov eax, dword [edx - 8]
test eax, eax
je 0x4854fe
mov al, byte [ebp + 0x80]
test al, al
jne 0x4854fe
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 0x4854fe
push 0x614274
push ecx
mov ecx, esp
mov dword [esp + 0x20], 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 + 0x1c], esp
push edx
mov byte [esp + 0x268], 7
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebp
mov byte [esp + 0x264], 6
call fcn.00402500
lea ecx, [esp + 0x1c]
mov byte [esp + 0x258], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x485433
test esi, esi
je 0x48582d
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x48582d
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
push 0x6143f8
lea ecx, [esp + 0x24]
mov byte [esp + 0x25c], 8
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
mov byte [esp + 0x258], 9
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
mov dword [esp + 0x1c], eax
mov ecx, dword [edi + 0x11b4]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp ecx, eax
jl 0x485584
mov ecx, eax
mov dword [edi + 0x11b4], eax
cmp ecx, eax
lea ecx, [esp + 0x24]
sete bl
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x258], 0xa
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x30]
mov byte [esp + 0x258], 0xb
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x258], 0xc
call sub.MFC42.DLL_CString::CString_1
sub esp, 0x10
mov dword [esp + 0x48], 0
mov eax, esp
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], ebp
mov dword [esp + 0x28], esp
mov word [eax], 3
mov dword [eax + 8], 1
mov ecx, dword [edi + 0x11b4]
mov byte [esp + 0x268], 0xd
shl ecx, 3
push ecx
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::Move_long_int__class__variant_t_
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x48573e
lea edx, [esp + 0x38]
mov ecx, esi
push edx
push str.rec_time
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_COleDateTime__
lea eax, [esp + 0x24]
mov ecx, esi
push eax
push str.account
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea ecx, [esp + 0x34]
push ecx
push str.opration
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea edx, [esp + 0x2c]
mov ecx, esi
push edx
push str.oprator
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea eax, [esp + 0x48]
mov ecx, esi
push eax
push 0x603f6c
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea ecx, [esp + 0x44]
push ecx
push str.auth_qty
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea edx, [esp + 0x4c]
mov ecx, esi
push edx
push str.remnant_qty
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea eax, [esp + 0x30]
mov ecx, esi
push eax
push str.remark
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea ecx, [esp + 0x24]
push 0xb
push ecx
call fcn.004ec500
lea edx, [esp + 0x34]
push 0xa
push edx
call fcn.004ec500
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
add esp, 0x10
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_COleDateTime::GetMinute
push eax
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_COleDateTime::GetHour
push eax
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_COleDateTime::GetDay
push eax
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_COleDateTime::GetMonth
mov ecx, dword [edi + 0x11b4]
push eax
lea eax, [esp + 0x40]
lea edx, [ebp + ecx*8 + 1]
push edx
push str._3d___02d__02d__02d:_02d__s__s__s__6d__6d__6d__s_r
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x38
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
call fcn.0059488a
mov ecx, esi
inc ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
cmp ebp, 8
jl 0x485605
push str.________________________________________________________________________________r
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x14]
lea ecx, [esp + 0x20]
push edx
call fcn.0059488a
neg bl
sbb bl, bl
mov ecx, dword [esp + 0x1c]
and bl, 2
lea edx, [esp + 0x14]
add bl, 0x2b
movsx eax, bl
push eax
push ecx
push 0x61431c
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
call fcn.0059488a
mov eax, dword [esp + 0x20]
mov edx, dword [edi]
push 0
push eax
mov ecx, edi
call dword [edx + 0x90]
test esi, esi
je 0x4857aa
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, dword [esp + 0x260]
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x14]
call fcn.00466cf0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x258], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x258], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x258], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x258], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x258], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x258], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x258], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x250]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x24c
ret 4