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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a9543
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 0x476967
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 [0x637770]
xor ebp, ebp
cmp eax, ebp
je 0x476801
mov cl, byte [eax + 0x40]
test cl, cl
je 0x476801
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 [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 0x476857
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 [0x631fc8]
mov dword [esp + 0x258], 0xffffffff
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebp
je 0x4770c8
cmp dword [eax + 0x50], ebp
jle 0x4770c8
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x476956
mov cl, byte [edi + 0x88]
test cl, cl
je 0x476956
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x476951
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x476951
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 0x47693d
mov al, byte [edi + 0x80]
test al, al
jne 0x47693d
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 0x47693d
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.00402500
lea ecx, [esp + 0x10]
mov dword [esp + 0x24c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x476873
jmp 0x4770c8
mov eax, dword [0x637770]
push str.PNRR
mov ecx, dword [eax + 8]
call sym.ETermProxy.exe_public:_class_CCSConnection____thiscall_CDBConnCollect::GetConnByName_char__
test eax, eax
jne 0x476b6c
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 [0x637770]
test eax, eax
je 0x476a00
mov cl, byte [eax + 0x40]
test cl, cl
je 0x476a00
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 [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 0x476a5a
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 [0x631fc8]
mov dword [esp + 0x258], 0xffffffff
call fcn.00401160
mov eax, dword [0x631fd0]
test eax, eax
je 0x4770c8
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4770c8
mov ebx, 4
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x476b5b
mov cl, byte [edi + 0x88]
test cl, cl
je 0x476b5b
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x476b56
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x476b56
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 0x476b42
mov al, byte [edi + 0x80]
test al, al
jne 0x476b42
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 0x476b42
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.00402500
lea ecx, [esp + 0x10]
mov dword [esp + 0x24c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x476a79
jmp 0x4770c8
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 0x476b9b
push str.PNRR
mov ecx, eax
call fcn.004dbdb0
mov edi, eax
jmp 0x476b9d
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 0x476bf7
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 0x476c1e
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.004dbe40
cmp eax, ebx
jne 0x476e29
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 [0x637770]
cmp eax, ebx
je 0x476cbb
mov cl, byte [eax + 0x40]
test cl, cl
je 0x476cbb
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 [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 0x476d0f
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 [0x631fc8]
mov byte [esp + 0x258], 7
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebx
je 0x476e14
mov ecx, dword [eax + 0x50]
test ecx, ecx
jle 0x476e14
mov ecx, dword [eax + 0x4c]
mov ebp, dword [ecx + ebx*4]
test ebp, ebp
je 0x476e08
mov cl, byte [ebp + 0x88]
test cl, cl
je 0x476e08
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x476e03
mov eax, dword [ebp + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x476e03
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 0x476df2
mov al, byte [ebp + 0x80]
test al, al
jne 0x476df2
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 0x476df2
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.00402500
lea ecx, [esp + 0x1c]
mov byte [esp + 0x24c], 7
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x476d27
test edi, edi
je 0x4770b4
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
jmp 0x4770b4
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 0x476ed4
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 0x476ffb
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 0x476fe4
lea edx, [eax + eax*4 + 5]
shl edx, 1
cmp ebp, edx
jge 0x476fe4
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.004ec500
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.0059488a
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 0x476eee
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.0059488a
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
push 0
push eax
mov ecx, esi
call dword [edx + 0x90]
test edi, edi
je 0x47704c
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