Function at 0x4ce670
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b1dfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x637770]
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x30], 3
call fcn.0058fb30
mov ecx, dword [esp + 0x38]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x14]
push str.select__group___group_name__auth_qty__remnant_qty_from__s_where_account_s
push eax
mov byte [esp + 0x3c], 4
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::CString
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
xor ebp, ebp
mov byte [esp + 0x2c], 5
cmp eax, ebp
je 0x4ce706
push str.XGSP
mov ecx, eax
call fcn.004dbdb0
mov esi, eax
jmp 0x4ce708
xor esi, esi
mov ecx, dword [esp + 0xc]
push 3
push 3
push 1
push ecx
mov ecx, esi
mov byte [esp + 0x3c], 3
call fcn.004dbe40
cmp eax, ebp
je 0x4ce92f
mov ecx, esi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
je 0x4ce92f
push ebx
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x18]
mov ecx, esi
push edx
push str.remnant_qty
mov byte [esp + 0x3c], 6
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
push str.auth_qty
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea ecx, [esp + 0x24]
push ecx
push str.group
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea edx, [esp + 0x20]
mov ecx, esi
push edx
push str.group_name
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov bl, byte [esp + 0x3c]
test bl, bl
je 0x4ce7b8
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x18]
add edi, eax
push ecx
mov dword [esp + 0x1c], edi
push str.remnant_qty
jmp 0x4ce7ca
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x20], edx
push str.auth_qty
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::PutCollect_char_const___int_const__
mov ecx, esi
call fcn.004dc010
cmp esi, ebp
je 0x4ce7e4
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea eax, [esp + 0x10]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
test bl, bl
mov dword [esp + 0x3c], 0x605f28
jne 0x4ce802
mov dword [esp + 0x3c], 0x606018
push ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax]
push ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebp, dword [eax + 4]
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebx, dword [eax + 8]
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [eax + 0xc]
push 0
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x14]
inc esi
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x4c]
mov eax, dword [eax + 0x14]
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push edi
push ebp
push ebx
add eax, 0x76c
push ecx
push esi
push eax
lea edx, [esp + 0x50]
push str.INSERT_INTO_qty_rec_rec_time__account__account_group__group_name__opration__oprator__qty__auth_qty__remnant_qty__remark___VALUES__02d__02d__02d__02d:_02d:_02d___s___d___s___s___s___d___d___d___s_
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x58]
mov edx, dword [0x637770]
add esp, 0x44
lea ecx, [esp + 0x3c]
push eax
push str.PNRR
push ecx
mov ecx, dword [edx + 8]
call sym.ETermProxy.exe_public:_class__com_ptr_t_class__com_IIID_struct_ADODB::_Recordset__struct___s_GUID__GUID_00000556_0000_0010_8000_00aa006d2ea4_____thiscall_CDBConnCollect::Execute_char___char_const__
mov eax, dword [esp + 0x3c]
pop edi
test eax, eax
pop ebx
je 0x4ce8d3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
cmp esi, ebp
je 0x4ce93b
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop esi
xor al, al
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret