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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a9203
push eax
mov dword fs:[0], esp
sub esp, 0x234
mov edx, dword [esp + 0x244]
push ebx
push ebp
mov ebp, ecx
push esi
lea ecx, [esp + 0x40]
push edi
mov eax, dword [ebp]
mov esi, dword [ebp + 4]
push ecx
push edx
mov ecx, ebp
call dword [eax + 4]
test al, al
jne 0x4766c7
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi]
inc ecx
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x90]
mov eax, dword [0x637760]
xor ebp, ebp
cmp eax, ebp
je 0x476561
mov cl, byte [eax + 0x40]
test cl, cl
je 0x476561
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x78]
lea eax, [esp + 0x44]
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 [0x637760]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb100
mov edx, dword [0x637760]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c4d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4765b7
lea edx, [esp + 0x44]
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 [esi + 0x78]
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov dword [esp + 0x25c], ebp
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov dword [esp + 0x258], 0xffffffff
call fcn.00401140
mov eax, dword [0x631fc0]
cmp eax, ebp
je 0x476e28
cmp dword [eax + 0x50], ebp
jle 0x476e28
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4766b6
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4766b6
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4766b1
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4766b1
mov ecx, dword [esi + 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 + 0x24c], 1
mov eax, dword [edx - 8]
test eax, eax
je 0x47669d
mov al, byte [edi + 0x80]
test al, al
jne 0x47669d
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 0x47669d
lea ecx, [esp + 0x44]
push ecx
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 + 0x28], esp
push edx
mov byte [esp + 0x25c], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x258], 1
call fcn.00402490
lea ecx, [esp + 0x10]
mov dword [esp + 0x24c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4765d3
jmp 0x476e28
mov eax, dword [0x637760]
push str.PNRR
mov ecx, dword [eax + 8]
call sym.ETermProxy.exe_public:_class_CCSConnection____thiscall_CDBConnCollect::GetConnByName_char__
test eax, eax
jne 0x4768cc
mov eax, dword [esi + 0x7c]
mov edx, dword [esi]
inc eax
mov ecx, esi
push eax
push 0x6119c0
call dword [edx + 0x90]
mov eax, dword [0x637760]
test eax, eax
je 0x476760
mov cl, byte [eax + 0x40]
test cl, cl
je 0x476760
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x78]
lea ecx, [esp + 0x44]
push ecx
push str._RX_
push 0
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637760]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb100
mov edx, dword [0x637760]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c4d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4767ba
lea edx, [esp + 0x44]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x78]
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov dword [esp + 0x25c], 3
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov dword [esp + 0x258], 0xffffffff
call fcn.00401140
mov eax, dword [0x631fc0]
test eax, eax
je 0x476e28
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x476e28
mov ebx, 4
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4768bb
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4768bb
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4768b6
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4768b6
mov ecx, dword [esi + 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 + 0x24c], ebx
mov eax, dword [edx - 8]
test eax, eax
je 0x4768a2
mov al, byte [edi + 0x80]
test al, al
jne 0x4768a2
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4768a2
lea ecx, [esp + 0x44]
push ecx
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 + 0x28], esp
push edx
mov byte [esp + 0x25c], 5
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x258], bl
call fcn.00402490
lea ecx, [esp + 0x10]
mov dword [esp + 0x24c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4767d9
jmp 0x476e28
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x24c], 6
cmp eax, ebx
je 0x4768fb
push str.PNRR
mov ecx, eax
call fcn.004db9f0
mov edi, eax
jmp 0x4768fd
xor edi, edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24c], 0xffffffff
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 0x20]
push 0x611990
push eax
mov dword [esp + 0x254], 7
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x476957
mov eax, dword [ebp + 0x24]
mov edx, dword [esi + 0x78]
push eax
mov ecx, eax
mov eax, dword [edx + 0x10c]
push ecx
push eax
lea ecx, [esp + 0x24]
push str.select__from_etdz_rec_where_account_group_d_AND_rec_time___s_00:00:00_AND_rec_time___s_23:59:59_ORDER_BY_rec_time_DESC
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x47697e
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
push edx
mov eax, edx
mov edx, dword [esi + 0x78]
push eax
push ecx
lea ecx, [esp + 0x24]
mov eax, dword [edx + 0x10c]
push eax
push str.select__from_etdz_rec_where_account_group_d_AND_account_s_AND_rec_time___s_00:00:00_AND_rec_time___s_23:59:59_ORDER_BY_rec_time_DESC
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x18
mov edx, dword [esp + 0x18]
push 3
push 3
push 1
push edx
mov ecx, edi
call fcn.004dba80
cmp eax, ebx
jne 0x476b89
mov edx, dword [esi + 0x7c]
mov ecx, esi
inc edx
mov eax, edx
mov dword [esi + 0x7c], edx
mov edx, dword [esi]
push eax
push 0x61184c
call dword [edx + 0x90]
mov eax, dword [0x637760]
cmp eax, ebx
je 0x476a1b
mov cl, byte [eax + 0x40]
test cl, cl
je 0x476a1b
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
push 0x611834
push str._RX_
push ebx
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 0x476a6f
push 0x611834
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 + 0x28], esp
push edx
mov byte [esp + 0x25c], 8
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov byte [esp + 0x258], 7
call fcn.00401140
mov eax, dword [0x631fc0]
cmp eax, ebx
je 0x476b74
mov ecx, dword [eax + 0x50]
test ecx, ecx
jle 0x476b74
mov ecx, dword [eax + 0x4c]
mov ebp, dword [ecx + ebx*4]
test ebp, ebp
je 0x476b68
mov cl, byte [ebp + 0x88]
test cl, cl
je 0x476b68
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x476b63
mov eax, dword [ebp + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x476b63
mov ecx, dword [esi + 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 + 0x24c], 9
mov eax, dword [edx - 8]
test eax, eax
je 0x476b52
mov al, byte [ebp + 0x80]
test al, al
jne 0x476b52
mov eax, dword [esi + 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 0x476b52
push 0x611834
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 + 0x1c], esp
push edx
mov byte [esp + 0x25c], 0xa
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebp
mov byte [esp + 0x258], 9
call fcn.00402490
lea ecx, [esp + 0x1c]
mov byte [esp + 0x24c], 7
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x476a87
test edi, edi
je 0x476e14
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
jmp 0x476e14
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x24c], 0xb
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24c], 0xc
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x24c], 0xd
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x24c], 0xe
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x20]
push 0x611b74
push ecx
mov byte [esp + 0x254], 0xf
call sub.MFC42.DLL_CString::Format
add esp, 8
mov ecx, edi
xor ebp, ebp
mov dword [esp + 0x10], ebx
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
mov ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esi + 0x11b4]
cmp eax, edx
jl 0x476c34
mov dword [esi + 0x11b4], edx
mov ebx, dword [esi + 0x11b4]
mov ecx, edi
cmp ebx, edx
sete bl
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x476d5b
lea ecx, [esp + 0x34]
push ecx
push str.price
mov ecx, edi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x11b4]
lea ecx, [eax + eax*4]
shl ecx, 1
cmp ebp, ecx
jl 0x476d44
lea edx, [eax + eax*4 + 5]
shl edx, 1
cmp ebp, edx
jge 0x476d44
lea eax, [esp + 0x28]
mov ecx, edi
push eax
push str.account
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea ecx, [esp + 0x30]
push ecx
push 0x603d38
mov ecx, edi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea edx, [esp + 0x38]
mov ecx, edi
push edx
push str.rec_time
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_COleDateTime__
lea eax, [esp + 0x28]
push 0xc
push eax
call fcn.004ec140
add esp, 8
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_COleDateTime::GetMinute
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_COleDateTime::GetHour
push eax
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_COleDateTime::GetDay
push eax
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_COleDateTime::GetMonth
push eax
lea ecx, [esp + 0x3c]
push 0x6040a0
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
add esp, 0x18
push edx
mov edx, dword [esp + 0x30]
push eax
push 0x1e
push ecx
lea eax, [ebp + 1]
push edx
push eax
lea ecx, [esp + 0x3c]
push str._3d_______s_______s___cRT:_s__5d_r
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x20
lea edx, [esp + 0x24]
lea ecx, [esp + 0x20]
push edx
call fcn.0059453a
mov ecx, edi
inc ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
mov ecx, edi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x476c4e
neg bl
sbb bl, bl
mov ecx, dword [esp + 0x10]
and bl, 2
lea edx, [esp + 0x24]
add bl, 0x2b
movsx eax, bl
push eax
push ecx
push ebp
push str._________________________________________________________r
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
call fcn.0059453a
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
push 0
push eax
mov ecx, esi
call dword [edx + 0x90]
test edi, edi
je 0x476dac
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, dword [esp + 0x254]
lea ecx, [esi + 0x11b0]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
mov byte [esp + 0x24c], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x24c], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24c], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x24c], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x24c], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x24c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x240
ret 4