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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52c2c8
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b339c]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov ebp, ecx
mov ecx, dword [ebp + 0xcc]
test ecx, ecx
je 0x4b5aa5
push str..OPCReadHistoryTrans.cpp
push 0x2e
push str.COPCReadHistoryTrans::Complete
call fcn.00449750
mov ecx, eax
call fcn.00402490
cmp byte [ebp + 0x3c], 0
je 0x4b51ac
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0xcc]
mov edx, dword [ecx + 0x1c4]
push eax
push edx
call fcn.0046b070
jmp 0x4b5a7d
mov edi, dword [ebp + 0x70]
sub edi, dword [ebp + 0x6c]
xor ecx, ecx
sar edi, 2
mov eax, edi
mov edx, 0x18
mul edx
seto cl
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], edi
neg ecx
or ecx, eax
push ecx
call fcn.0051965e
mov esi, eax
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x2c], esi
neg ecx
or ecx, eax
push ecx
call fcn.0051965e
mov ebx, eax
lea eax, [edi + edi*2]
add eax, eax
add eax, eax
add eax, eax
push eax
push 0
push esi
mov dword [esp + 0x40], ebx
call sub.MSVCR90.dll_memset
lea ecx, [edi*4]
push ecx
push 0
push ebx
call sub.MSVCR90.dll_memset
add esp, 0x20
mov dword [esp + 0x1c], 0
test edi, edi
jbe 0x4b56dc
mov edx, ebx
mov dword [esp + 0x30], edx
add esi, 0xc
jmp 0x4b5240
mov eax, dword [ebp + 0x70]
sub eax, dword [ebp + 0x6c]
mov ebx, dword [esp + 0x1c]
sar eax, 2
cmp ebx, eax
jb 0x4b5257
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [ebp + 0x88]
sub edx, dword [ebp + 0x84]
mov ecx, dword [ebp + 0x6c]
mov edi, dword [ecx + ebx*4]
sar edx, 2
cmp ebx, edx
jb 0x4b5276
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0x84]
mov ebx, dword [eax + ebx*4]
mov ecx, edi
call fcn.004f6710
mov ecx, dword [esp + 0x30]
push ecx
push ebx
push edi
mov ecx, ebp
call fcn.004b40f0
mov edx, dword [edi + 0x2c]
mov edi, 1
mov dword [esi - 0xc], edx
mov dword [esp + 0x20], eax
cmp dword [ebp + 0xc8], edi
jne 0x4b52b0
mov dword [esi - 8], ebx
jmp 0x4b52b7
mov dword [esi - 8], 0
mov edx, dword [esp + 0x30]
mov ecx, dword [edx]
test ecx, ecx
je 0x4b52cb
mov dword [esp + 0x24], edi
jl 0x4b56b7
mov ebx, dword [eax + 0x1c]
test ebx, ebx
je 0x4b56b7
mov edi, 2
cmp dword [ebp + 0xc8], edi
jne 0x4b52f2
mov ebx, dword [ebp + 0xa0]
sub ebx, dword [ebp + 0x9c]
sar ebx, 3
xor ecx, ecx
mov eax, ebx
mov edx, 8
mul edx
seto cl
mov dword [esp + 0x14], ebx
mov dword [esi - 4], ebx
neg ecx
or ecx, eax
push ecx
call fcn.0051965e
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.0051965e
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.0051965e
add esp, 0xc
mov dword [esi + 8], eax
cmp dword [ebp + 0xc8], edi
jne 0x4b54f5
lea ecx, [esp + 0x84]
call fcn.004e4820
xor edi, edi
mov dword [esp + 0xb8], edi
cmp ebx, edi
jbe 0x4b54d9
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 + 0xa0]
sub ecx, dword [ebp + 0x9c]
sar ecx, 3
cmp edi, ecx
jb 0x4b53a0
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0x9c]
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.0047edb0
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 0x4b53ef
cmp eax, ecx
je 0x4b53f9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x44]
cmp dword [esp + 0x78], ebx
je 0x4b5490
test ecx, ecx
jne 0x4b5484
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x44]
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x4b5422
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 0x4b5488
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x44]
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x4b5450
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 0x4b548c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor ecx, ecx
cmp ebx, dword [ecx + 0x18]
jne 0x4b5470
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 0x4b54c9
mov eax, dword [ecx]
jmp 0x4b5413
mov eax, dword [ecx]
jmp 0x4b5441
mov ecx, dword [ecx]
jmp 0x4b5465
mov ecx, dword [ebp + 0xa0]
sub ecx, dword [ebp + 0x9c]
sar ecx, 3
cmp edi, ecx
jb 0x4b54a9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0x9c]
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 0x4b5379
mov dword [esp + 0xb8], 0xffffffff
lea ecx, [esp + 0x84]
call fcn.004e4850
jmp 0x4b56bd
cmp byte [ebp + 0xd0], 0
mov eax, dword [esp + 0x20]
jne 0x4b560d
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 0x4b5537
cmp eax, ebx
je 0x4b553d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x80], edi
je 0x4b56bd
mov edx, dword [esi + 8]
add edx, dword [esp + 0x14]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
test ebx, ebx
jne 0x4b55fe
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4b5573
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 0x4b5605
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4b559d
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 0x4b5609
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, dword [ebx + 0x18]
jne 0x4b55bf
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.00411970
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
jmp 0x4b5523
mov eax, dword [ebx]
jmp 0x4b5568
mov eax, dword [ebx]
jmp 0x4b5592
mov ebx, dword [ebx]
jmp 0x4b55b4
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 0x4b5637
cmp eax, dword [esp + 0x38]
je 0x4b563d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x68], eax
je 0x4b56bd
mov ecx, dword [esi + 8]
add ecx, ebx
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x38]
call fcn.00411af0
mov ecx, dword [esi]
mov edx, dword [eax + 0x1c]
mov dword [ecx + edi], edx
mov eax, dword [eax + 0x20]
mov dword [ecx + edi + 4], eax
lea ecx, [esp + 0x38]
call fcn.00411af0
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.00411af0
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.004ff540
mov eax, dword [esp + 0x20]
jmp 0x4b5622
mov dword [edx], 0x40041002
mov eax, dword [esp + 0x1c]
add dword [esp + 0x30], 4
inc eax
add esi, 0x18
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x34]
jb 0x4b5240
mov edi, dword [esp + 0x34]
mov ecx, dword [ebp + 0xcc]
push str.COPCReadHistoryTrans::Complete
push 3
call fcn.00449750
push eax
call fcn.00401b30
add esp, 0xc
test eax, eax
je 0x4b59d1
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp + 0xcc]
call fcn.00449750
mov edx, dword [ebp + 0x34]
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 + 0xcc]
add esp, 0x14
call fcn.00449750
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 + 0xcc]
add esp, 0x14
call fcn.00449750
mov ecx, dword [eax]
mov edx, dword [ecx]
push edi
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 edi, edi
jbe 0x4b59c2
mov edi, dword [esp + 0x28]
add edi, 0xc
mov ecx, dword [ebp + 0xcc]
call fcn.00449750
mov edx, dword [esp + 0x2c]
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 + 0xcc]
add esp, 0x18
call fcn.00449750
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 + 0xcc]
add esp, 0x14
call fcn.00449750
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 + 0xcc]
add esp, 0x14
call fcn.00449750
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 + 0xcc]
add esp, 0x14
call fcn.00449750
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 0x4b59b0
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 + 0xcc]
test eax, eax
je 0x4b58bf
call fcn.00449750
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 0x4b58e6
call fcn.00449750
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 + 0xcc]
call fcn.00449750
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 + 0xcc]
add esp, 0x18
call fcn.00449750
mov edx, dword [edi + 8]
mov ebx, dword [esp + 0x1c]
movzx edx, word [edx + ebx]
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 + 0xcc]
test eax, eax
jl 0x4b597f
call fcn.00449750
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 0x4b599b
call fcn.00449750
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 0x4b5856
mov ebx, dword [esp + 0x14]
inc ebx
add edi, 0x18
mov dword [esp + 0x14], ebx
cmp ebx, dword [esp + 0x34]
jb 0x4b578c
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [ebp + 0x34]
push ecx
mov ecx, dword [ebp + 0xcc]
push esi
push edi
push edx
mov edx, dword [ecx + 0x1c4]
push eax
push edx
call fcn.0046a8b0
test esi, esi
je 0x4b5a6c
test edi, edi
jbe 0x4b5a5f
mov ebx, esi
add ebx, 0xc
mov dword [esp + 0x24], edi
xor edi, edi
cmp dword [ebx - 4], edi
jbe 0x4b5a26
xor esi, esi
mov eax, dword [ebx + 8]
add eax, esi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
inc edi
add esi, 0x10
cmp edi, dword [ebx - 4]
jb 0x4b5a11
mov eax, dword [ebx]
test eax, eax
je 0x4b5a35
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x4b5a45
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebx + 8]
test eax, eax
je 0x4b5a55
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
add ebx, 0x18
sub dword [esp + 0x24], 1
jne 0x4b5a08
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4b5a7d
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [ebp + 0xcc]
push 0
push 0x57ef93
push str..OPCReadHistoryTrans.cpp
push pe_nt_image_headers32
push str.COPCReadHistoryTrans::Complete
call fcn.00449750
mov ecx, eax
call fcn.00402520
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