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

Disassembly:
push 0xffffffffffffffff
push 0x5a8fed
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 0x48532a
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 [0x635490]
xor ebp, ebp
cmp eax, ebp
je 0x4851c4
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4851c4
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 [0x635490]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eba10
mov edx, dword [0x635490]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c560
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48521a
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 [0x62fce8]
mov dword [esp + 0x264], 0xffffffff
call fcn.00401140
mov eax, dword [0x62fcf0]
cmp eax, ebp
je 0x4858b1
cmp dword [eax + 0x50], ebp
jle 0x4858b1
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x485319
mov cl, byte [esi + 0x88]
test cl, cl
je 0x485319
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x485314
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x485314
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 0x485300
mov al, byte [esi + 0x80]
test al, al
jne 0x485300
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 0x485300
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.004024b0
lea ecx, [esp + 0x10]
mov dword [esp + 0x258], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x485236
jmp 0x4858b1
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 0x48538e
push str.PNRR
mov ecx, eax
call fcn.004dc2a0
mov esi, eax
jmp 0x485390
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.004dc330
cmp eax, ebp
jne 0x4855a5
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, ebp
je 0x485435
mov cl, byte [eax + 0x40]
test cl, cl
je 0x485435
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x78]
push 0x6123d8
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 [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 0x485489
push 0x6123d8
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 [0x62fce8]
mov byte [esp + 0x264], 3
call fcn.00401140
mov eax, dword [0x62fcf0]
cmp eax, ebp
je 0x485590
mov ecx, dword [eax + 0x50]
xor ebx, ebx
cmp ecx, ebp
jle 0x485590
mov ecx, dword [eax + 0x4c]
mov ebp, dword [ecx + ebx*4]
test ebp, ebp
je 0x485584
mov cl, byte [ebp + 0x88]
test cl, cl
je 0x485584
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48557f
mov eax, dword [ebp + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48557f
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 0x48556e
mov al, byte [ebp + 0x80]
test al, al
jne 0x48556e
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 0x48556e
push 0x6123d8
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.004024b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x258], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x4854a3
test esi, esi
je 0x48589d
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x48589d
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
push 0x61255c
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 0x4855f4
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 0x4857ae
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 0x601f6c
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.004ecb70
lea edx, [esp + 0x34]
push 0xa
push edx
call fcn.004ecb70
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.00592f4a
mov ecx, esi
inc ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
cmp ebp, 8
jl 0x485675
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.00592f4a
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 0x612480
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
call fcn.00592f4a
mov eax, dword [esp + 0x20]
mov edx, dword [edi]
push 0
push eax
mov ecx, edi
call dword [edx + 0x90]
test esi, esi
je 0x48581a
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.00466ba0
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