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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x586798
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62d414]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov ebp, ecx
mov ecx, dword [ebp + 0xb8]
test ecx, ecx
je 0x4fed24
push str..OPCReadHistoryTrans.cpp
push 0x2c
push str.COPCReadHistoryTrans::Complete
call fcn.004a2510
mov ecx, eax
call fcn.0041ac10
cmp byte [ebp + 0x20], 0
je 0x4fe41c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xb8]
mov edx, dword [ecx + 0x194]
push eax
push edx
call fcn.004bdfe0
jmp 0x4fecfc
mov esi, dword [ebp + 0x54]
sub esi, dword [ebp + 0x50]
xor ecx, ecx
sar esi, 2
mov eax, esi
mov edx, 0x18
mul edx
seto cl
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], esi
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
mov edi, eax
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x30], edi
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
mov ebx, eax
lea eax, [esi + esi*2]
add eax, eax
add eax, eax
add eax, eax
push eax
push 0
push edi
mov dword [esp + 0x44], ebx
call sub.MSVCR90.dll_memset
lea ecx, [esi*4]
push ecx
push 0
push ebx
call sub.MSVCR90.dll_memset
add esp, 0x20
mov dword [esp + 0x1c], 0
test esi, esi
jbe 0x4fe947
mov edx, ebx
mov esi, edi
mov dword [esp + 0x34], edx
add esi, 0xc
lea ecx, [ecx]
mov eax, dword [ebp + 0x54]
sub eax, dword [ebp + 0x50]
mov ebx, dword [esp + 0x1c]
sar eax, 2
cmp ebx, eax
jb 0x4fe4c7
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [ebp + 0x6c]
sub edx, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x50]
mov edi, dword [ecx + ebx*4]
sar edx, 2
cmp ebx, edx
jb 0x4fe4e0
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0x68]
mov edx, dword [edi]
mov ebx, dword [eax + ebx*4]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x34]
push ecx
push ebx
push edi
mov ecx, ebp
call fcn.004fd4f0
mov edx, dword [edi + 0x10]
mov dword [esi - 0xc], edx
mov edx, 1
mov dword [esp + 0x20], eax
cmp dword [ebp + 0xac], edx
jne 0x4fe519
mov dword [esi - 8], ebx
jmp 0x4fe520
mov dword [esi - 8], 0
mov ecx, dword [esp + 0x34]
cmp dword [ecx], 0
jge 0x4fe532
mov dword [esp + 0x24], edx
jmp 0x4fe92c
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x4fe926
mov edi, 2
cmp dword [ebp + 0xac], edi
jne 0x4fe55f
mov ebx, dword [ebp + 0x84]
sub ebx, dword [ebp + 0x80]
sar ebx, 3
mov dword [esp + 0x14], ebx
jmp 0x4fe565
mov ebx, eax
mov dword [esp + 0x14], eax
xor ecx, ecx
mov eax, ebx
mov edx, 8
mul edx
seto cl
mov dword [esi - 4], ebx
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
mov dword [esi], eax
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
mov dword [esi + 4], eax
xor ecx, ecx
mov eax, ebx
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
add esp, 0xc
mov dword [esi + 8], eax
cmp dword [ebp + 0xac], edi
jne 0x4fe764
lea ecx, [esp + 0x84]
call fcn.0046e2b0
xor edi, edi
mov dword [esp + 0xb8], edi
cmp ebx, edi
jbe 0x4fe748
mov dword [esp + 0x18], edi
mov eax, dword [esi + 8]
add eax, dword [esp + 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp + 0x84]
sub ecx, dword [ebp + 0x80]
sar ecx, 3
cmp edi, ecx
jb 0x4fe60f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0x80]
mov edx, dword [eax + edi*8]
mov dword [esp + 0xa0], edx
mov eax, dword [eax + edi*8 + 4]
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0xac], eax
call fcn.004c74b0
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x78], edx
test eax, eax
je 0x4fe65e
cmp eax, ecx
je 0x4fe668
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x44]
cmp dword [esp + 0x78], ebx
je 0x4fe6ff
test ecx, ecx
jne 0x4fe6f3
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x44]
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x4fe691
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x44]
mov edx, dword [ebx + 0x2c]
mov eax, dword [esi]
mov dword [eax + edi*8], edx
mov edx, dword [ebx + 0x30]
mov dword [eax + edi*8 + 4], edx
test ecx, ecx
jne 0x4fe6f7
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x44]
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x4fe6bf
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x44]
mov eax, dword [esi + 4]
mov edx, dword [ebx + 0x28]
mov dword [eax + edi*4], edx
test ecx, ecx
jne 0x4fe6fb
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor ecx, ecx
cmp ebx, dword [ecx + 0x18]
jne 0x4fe6df
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 8]
add eax, dword [esp + 0x18]
add ebx, 0x18
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
jmp 0x4fe738
mov eax, dword [ecx]
jmp 0x4fe682
mov eax, dword [ecx]
jmp 0x4fe6b0
mov ecx, dword [ecx]
jmp 0x4fe6d4
mov ecx, dword [ebp + 0x84]
sub ecx, dword [ebp + 0x80]
sar ecx, 3
cmp edi, ecx
jb 0x4fe718
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0x80]
mov ecx, dword [esi]
mov edx, dword [eax + edi*8]
mov dword [ecx + edi*8], edx
mov eax, dword [eax + edi*8 + 4]
mov dword [ecx + edi*8 + 4], eax
mov ecx, dword [esi + 4]
mov dword [ecx + edi*4], 0x200000
add dword [esp + 0x18], 0x10
inc edi
cmp edi, dword [esp + 0x14]
jb 0x4fe5e8
mov dword [esp + 0xb8], 0xffffffff
lea ecx, [esp + 0x84]
call fcn.0046e310
jmp 0x4fe92c
cmp byte [ebp + 0xbc], 0
mov eax, dword [esp + 0x20]
jne 0x4fe87c
mov edx, dword [eax + 0x18]
mov edi, dword [edx]
mov ebx, dword [eax]
xor ecx, ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x80], ecx
test eax, eax
je 0x4fe7a6
cmp eax, ebx
je 0x4fe7ac
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x80], edi
je 0x4fe92c
mov edx, dword [esi + 8]
add edx, dword [esp + 0x14]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
test ebx, ebx
jne 0x4fe86d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4fe7e2
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [edi + 0x2c]
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dword [eax + ecx], edx
mov edx, dword [edi + 0x30]
mov dword [eax + ecx + 4], edx
test ebx, ebx
jne 0x4fe874
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4fe80c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 4]
mov ecx, dword [edi + 0x28]
mov edx, dword [esp + 0x40]
mov dword [edx + eax], ecx
test ebx, ebx
jne 0x4fe878
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, dword [ebx + 0x18]
jne 0x4fe82e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 8]
add edi, 0x18
push edi
mov edi, dword [esp + 0x18]
add eax, edi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
add dword [esp + 0x18], 8
add dword [esp + 0x40], 4
add edi, 0x10
lea ecx, [esp + 0x4c]
mov dword [esp + 0x14], edi
call fcn.00476640
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
jmp 0x4fe792
mov eax, dword [ebx]
jmp 0x4fe7d7
mov eax, dword [ebx]
jmp 0x4fe801
mov ebx, dword [ebx]
jmp 0x4fe823
mov ecx, dword [eax + 0x18]
mov edx, dword [eax]
xor edi, edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
xor ebx, ebx
mov dword [esp + 0x14], edi
mov ecx, dword [eax + 0x18]
mov eax, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x68], edx
test eax, eax
je 0x4fe8a6
cmp eax, dword [esp + 0x38]
je 0x4fe8ac
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x68], eax
je 0x4fe92c
mov ecx, dword [esi + 8]
add ecx, ebx
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x38]
call fcn.004c7530
mov ecx, dword [esi]
mov edx, dword [eax + 0x1c]
mov dword [edi + ecx], edx
mov eax, dword [eax + 0x20]
mov dword [edi + ecx + 4], eax
lea ecx, [esp + 0x38]
call fcn.004c7530
mov edx, dword [eax + 0x18]
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x14]
mov dword [eax + ecx], edx
lea ecx, [esp + 0x38]
call fcn.004c7530
mov ecx, dword [esi + 8]
add eax, 8
push eax
add ecx, ebx
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
add dword [esp + 0x14], 4
lea ecx, [esp + 0x38]
add edi, 8
add ebx, 0x10
call fcn.0042bb10
mov eax, dword [esp + 0x20]
jmp 0x4fe891
mov dword [ecx], 0x40041002
mov eax, dword [esp + 0x1c]
add dword [esp + 0x34], 4
inc eax
add esi, 0x18
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x28]
jb 0x4fe4b0
mov ecx, dword [ebp + 0xb8]
push str.COPCReadHistoryTrans::Complete
push 3
call fcn.004a2510
push eax
call fcn.0041a290
add esp, 0xc
test eax, eax
je 0x4fec3c
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp + 0xb8]
call fcn.004a2510
mov edx, dword [ebp + 0x18]
mov ecx, dword [eax]
push edx
push str.DWORD_dwTransactionID0x_08x
push str.COPCReadHistoryTrans::Complete
push 3
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [ebp + 0xb8]
add esp, 0x14
call fcn.004a2510
mov edx, dword [esp + 0x24]
mov ecx, dword [eax]
push edx
push str.HRESULT_hrStatus0x_08x
push str.COPCReadHistoryTrans::Complete
push 3
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [ebp + 0xb8]
add esp, 0x14
call fcn.004a2510
mov esi, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx]
push esi
push str.DWORD_dwNumItemsu
push str.COPCReadHistoryTrans::Complete
push 3
push eax
call edx
xor ebx, ebx
add esp, 0x14
mov dword [esp + 0x14], ebx
test esi, esi
jbe 0x4fec31
mov edi, dword [esp + 0x2c]
add edi, 0xc
mov ecx, dword [ebp + 0xb8]
call fcn.004a2510
mov edx, dword [esp + 0x30]
mov edx, dword [edx + ebx*4]
mov ecx, dword [eax]
push edx
push ebx
push str.HRESULT_pErrors__d_0x_08x
push str.COPCReadHistoryTrans::Complete
push 3
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [ebp + 0xb8]
add esp, 0x18
call fcn.004a2510
mov ecx, dword [eax]
mov edx, dword [ecx]
push ebx
push str.OPCHDA_ITEM_pItemValues__u_
push str.COPCReadHistoryTrans::Complete
push 3
push eax
call edx
mov ecx, dword [ebp + 0xb8]
add esp, 0x14
call fcn.004a2510
mov edx, dword [edi - 0xc]
mov ecx, dword [eax]
push edx
push str.____________hClient0x_08x
push str.COPCReadHistoryTrans::Complete
push 3
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [ebp + 0xb8]
add esp, 0x14
call fcn.004a2510
mov edx, dword [edi - 8]
mov ecx, dword [eax]
push edx
push str.____________haAggregate_u
push str.COPCReadHistoryTrans::Complete
push 3
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [ebp + 0xb8]
add esp, 0x14
call fcn.004a2510
mov edx, dword [edi - 4]
mov ecx, dword [eax]
push edx
push str.____________dwCount_u
push str.COPCReadHistoryTrans::Complete
push 3
push eax
mov eax, dword [ecx]
call eax
xor esi, esi
add esp, 0x14
cmp dword [edi - 4], esi
jbe 0x4fec1f
mov dword [esp + 0x1c], esi
mov edx, dword [edi]
lea ecx, [esp + 0x54]
lea ebx, [esi*8]
push ecx
add edx, ebx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [ebp + 0xb8]
test eax, eax
je 0x4feb2e
call fcn.004a2510
movzx edx, word [esp + 0x62]
push edx
movzx edx, word [esp + 0x64]
push edx
movzx edx, word [esp + 0x66]
push edx
movzx edx, word [esp + 0x68]
push edx
movzx edx, word [esp + 0x6a]
mov ecx, dword [eax]
push edx
movzx edx, word [esp + 0x6a]
push edx
movzx edx, word [esp + 0x6c]
push edx
push esi
push str.____________pftTimeStamps__u__04u__02u__02u__02u:_02u:_02u._03u
push str.COPCReadHistoryTrans::Complete
push 3
push eax
mov eax, dword [ecx]
call eax
add esp, 0x30
jmp 0x4feb55
call fcn.004a2510
mov ecx, dword [edi]
mov edx, dword [eax]
mov edx, dword [edx]
add ecx, ebx
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
push ebx
push ecx
push esi
push str.____________pftTimeStamps__u_0x_08x:0x_08x
push str.COPCReadHistoryTrans::Complete
push 3
push eax
call edx
add esp, 0x1c
mov ecx, dword [ebp + 0xb8]
call fcn.004a2510
mov edx, dword [edi + 4]
mov edx, dword [edx + esi*4]
mov ecx, dword [eax]
push edx
push esi
push str.____________pdwQualities__u_0x_08x
push str.COPCReadHistoryTrans::Complete
push 3
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [ebp + 0xb8]
add esp, 0x18
call fcn.004a2510
mov edx, dword [edi + 8]
mov ebx, dword [esp + 0x1c]
movzx edx, word [ebx + edx]
mov ecx, dword [eax]
push edx
push esi
push str.____________pvDataValues__u_.vt0x_04x
push str.COPCReadHistoryTrans::Complete
push 3
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [edi + 8]
add esp, 0x18
push 8
push 0
add ecx, ebx
push ecx
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov ecx, dword [ebp + 0xb8]
test eax, eax
jl 0x4febee
call fcn.004a2510
mov edx, dword [esp + 0x6c]
mov ecx, dword [eax]
push edx
push esi
push str.____________pvDataValues__u___ls_
push str.COPCReadHistoryTrans::Complete
push 3
push eax
mov eax, dword [ecx]
call eax
add esp, 0x18
jmp 0x4fec0a
call fcn.004a2510
mov ecx, dword [eax]
mov edx, dword [ecx]
push esi
push str.____________pvDataValues__u_...
push str.COPCReadHistoryTrans::Complete
push 3
push eax
call edx
add esp, 0x14
inc esi
add ebx, 0x10
mov dword [esp + 0x1c], ebx
cmp esi, dword [edi - 4]
jb 0x4feac5
mov ebx, dword [esp + 0x14]
inc ebx
add edi, 0x18
mov dword [esp + 0x14], ebx
cmp ebx, dword [esp + 0x28]
jb 0x4fe9fb
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0xb8]
push esi
push edi
push edx
mov edx, dword [ecx + 0x194]
push eax
push edx
call fcn.004bd7d0
test esi, esi
je 0x4feceb
test edi, edi
jbe 0x4fecde
add esi, 0xc
mov dword [esp + 0x24], edi
lea esp, [esp]
xor edi, edi
cmp dword [esi - 4], edi
jbe 0x4feca5
xor ebx, ebx
lea esp, [esp]
mov eax, dword [esi + 8]
add eax, ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
inc edi
add ebx, 0x10
cmp edi, dword [esi - 4]
jb 0x4fec90
mov eax, dword [esi]
test eax, eax
je 0x4fecb4
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x4fecc4
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x4fecd4
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
add esi, 0x18
sub dword [esp + 0x24], 1
jne 0x4fec80
mov ecx, dword [esp + 0x2c]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4fecfc
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [ebp + 0xb8]
push 0
push 0x5d1d25
push str..OPCReadHistoryTrans.cpp
push 0xfd
push str.COPCReadHistoryTrans::Complete
call fcn.004a2510
mov ecx, eax
call fcn.0041aca0
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret