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

Disassembly:
push 0xffffffffffffffff
push 0x584e70
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62d414]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ebp, ecx
mov ecx, dword [ebp + 0x70]
xor edi, edi
cmp ecx, edi
je 0x4e1e14
push str..OPCReadTrans3.cpp
push 0x3d
push str.COPCReadTrans3::Complete
call fcn.004b7610
mov ecx, eax
call fcn.0041ac10
cmp byte [ebp + 0x20], 0
je 0x4e1696
mov eax, dword [ebp + 0x70]
mov ecx, dword [eax + 0x6c]
mov edx, dword [ebp + 0x18]
mov eax, dword [eax + 0xa0]
push ecx
push edx
push eax
call fcn.004e06b0
jmp 0x4e1de6
cmp byte [ebp + 0x75], 0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x18], edi
lea esi, [ebp + 0x48]
je 0x4e16b4
mov ecx, dword [ebp + 0x70]
push esi
call fcn.004b8b00
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
xor ebx, ebx
sar eax, 2
test eax, eax
jbe 0x4e172f
cmp ebx, eax
jb 0x4e16cd
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + ebx*4]
cmp byte [edx + 0xad], 0
je 0x4e171d
mov eax, dword [esi + 0x10]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x4e16ee
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + ebx*4]
cmp dword [edx + 0xcc], 0
jbe 0x4e171d
mov eax, dword [esi + 0x10]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x4e170f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + ebx*4]
add edi, dword [edx + 0xcc]
jmp 0x4e171e
inc edi
mov eax, dword [esi + 0x10]
sub eax, ecx
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x4e16cd
mov dword [esp + 0x18], edi
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
mov dword [esp + 0x34], eax
xor ecx, ecx
mov eax, edi
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
mov dword [esp + 0x28], eax
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
mov dword [esp + 0x30], eax
xor ecx, ecx
mov eax, edi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
mov dword [esp + 0x38], eax
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
add esp, 0x14
push edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x20], eax
call fcn.004e1590
xor ebx, ebx
mov dword [esp + 0xb0], ebx
xor ecx, ecx
mov eax, edi
mov edx, 0x20
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
add esp, 4
sar eax, 2
mov dword [esp + 0x14], ebx
test eax, eax
jbe 0x4e1984
mov edi, dword [esp + 0x14]
cmp edi, eax
jb 0x4e1813
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0xc]
add edi, edi
add edi, edi
mov ecx, dword [edi + eax]
cmp byte [ecx + 0xad], 0
je 0x4e1935
mov edx, dword [esi + 0x10]
sub edx, eax
sar edx, 2
cmp dword [esp + 0x14], edx
jb 0x4e183e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0xc]
mov ecx, dword [edi + eax]
cmp dword [ecx + 0xcc], 0
jbe 0x4e1935
mov eax, dword [esp + 0x2c]
mov edx, ebx
shl edx, 5
lea edi, [edx + eax + 0xc]
mov edi, edi
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
sar ecx, 2
cmp dword [esp + 0x14], ecx
jb 0x4e1875
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0xc]
add eax, eax
add eax, eax
mov eax, dword [edx + eax]
cmp dword [eax + 0xcc], 0
jbe 0x4e196a
lea ecx, [esp + 0x78]
call fcn.0046d600
mov byte [esp + 0xb0], 1
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
sar ecx, 2
cmp dword [esp + 0x14], ecx
jb 0x4e18b6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
add eax, eax
lea edx, [esp + 0x78]
add eax, eax
mov ecx, dword [ecx + eax]
push edx
call fcn.004b57c0
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x94]
mov dword [eax + ebx*4], edx
mov edx, dword [esp + 0x98]
mov ax, word [esp + 0x90]
mov dword [edi - 8], ecx
lea ecx, [esp + 0x80]
mov dword [edi - 4], edx
push ecx
lea edx, [edi + 4]
push edx
mov word [edi], ax
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
inc ebx
add edi, 0x20
mov byte [esp + 0xb0], 0
lea ecx, [esp + 0x78]
call fcn.0046d690
jmp 0x4e1860
mov ecx, dword [esi + 0x10]
sub ecx, eax
sar ecx, 2
cmp dword [esp + 0x14], ecx
jb 0x4e1949
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi]
mov edx, ebx
shl edx, 5
add edx, dword [esp + 0x2c]
add eax, edi
push 1
push edx
call fcn.004b4230
mov ecx, dword [esp + 0x1c]
mov dword [ecx + ebx*4], eax
inc ebx
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
inc ecx
sar eax, 2
mov dword [esp + 0x14], ecx
cmp ecx, eax
jb 0x4e1805
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x18], ebx
jbe 0x4e19ce
mov edx, dword [esp + 0x50]
sub edx, dword [esp + 0x4c]
sar edx, 5
cmp dword [esp + 0x14], edx
jb 0x4e19a7
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
lea esi, [ebx + eax]
mov eax, dword [esp + 0x14]
lea edi, [ebx + ecx]
inc eax
mov ecx, 8
add ebx, 0x20
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x18]
jb 0x4e1990
mov ecx, dword [ebp + 0x70]
call fcn.004b7610
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax]
mov edx, dword [edx]
push ebp
push ecx
mov ecx, dword [esp + 0x20]
push ecx
push str.Adding__d_items_to_transaction__d___08x_
push str.COPCReadTrans3::Complete
push 2
push eax
call edx
mov edi, dword [esp + 0x68]
add esp, 0x1c
cmp edi, dword [esp + 0x50]
jbe 0x4e1a06
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
xor ebx, ebx
sub edx, eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x64], edx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x60], eax
cmp dword [esp + 0x4c], eax
jbe 0x4e1a46
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x4e1a50
cmp ecx, dword [esp + 0x40]
je 0x4e1a5a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x58]
cmp edi, dword [esp + 0x60]
je 0x4e1c66
cmp ebx, dword [esp + 0x18]
jae 0x4e1c66
test ecx, ecx
jne 0x4e1be3
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor ecx, ecx
cmp edi, dword [ecx + 0x10]
jb 0x4e1a89
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x34]
cmp dword [ecx + eax], 0
jge 0x4e1a9f
mov dword [esp + 0x38], 1
mov edx, dword [edi]
mov dword [eax], edx
mov eax, dword [edi + 0x10]
mov dword [esi], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 4], ecx
mov edx, dword [edi + 0x18]
mov ecx, dword [esp + 0x24]
mov dword [esi + 8], edx
mov eax, dword [edi + 0x1c]
mov dword [esi + 0xc], eax
movzx eax, word [edi + 0xc]
mov word [ecx + ebx*2], ax
and al, 0xc0
cmp al, 0xc0
je 0x4e1ad4
mov dword [esp + 0x3c], 1
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x14]
mov dword [eax], edx
mov ecx, dword [edi + 8]
push str.COPCReadTrans3::Complete
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x70]
push 3
call fcn.004b7610
push eax
call fcn.0041a290
add esp, 0xc
test eax, eax
je 0x4e1c2d
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp + 0x70]
call fcn.004b7610
mov edx, dword [esp + 0x34]
mov edx, dword [edx]
mov ecx, dword [eax]
push edx
push ebx
push str._02d__OPCHANDLE_hClient_x
push str.COPCReadTrans3::Complete
push 3
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [ebp + 0x70]
add esp, 0x18
call fcn.004b7610
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 4]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x18]
mov edx, dword [edx]
push edx
push str.____FILETIME_ftTimeStamp_x._x
push str.COPCReadTrans3::Complete
push 3
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [ebp + 0x70]
add esp, 0x18
call fcn.004b7610
mov edx, dword [esp + 0x24]
movzx edx, word [edx + ebx*2]
mov ecx, dword [eax]
push edx
push str.____WORD_wQuality_x
push str.COPCReadTrans3::Complete
push 3
push eax
mov eax, dword [ecx]
call eax
add esp, 0x14
push 8
push 0
push esi
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov ecx, dword [ebp + 0x70]
test eax, eax
jl 0x4e1bea
call fcn.004b7610
movzx ecx, word [esi]
mov edx, dword [eax]
mov edx, dword [edx]
push ecx
push str.____________vDataValue.vt_d
push str.COPCReadTrans3::Complete
push 3
push eax
call edx
mov ecx, dword [ebp + 0x70]
add esp, 0x14
call fcn.004b7610
mov edx, dword [esp + 0x70]
mov ecx, dword [eax]
push edx
push str.____VARIANT_vDataValue_ls
push str.COPCReadTrans3::Complete
push 3
push eax
mov eax, dword [ecx]
call eax
add esp, 0x14
jmp 0x4e1c22
mov ecx, dword [ecx]
jmp 0x4e1a7e
call fcn.004b7610
mov ecx, dword [eax]
mov edx, dword [ecx]
push str.____VARIANT_vDataValue
push str.COPCReadTrans3::Complete
push 3
push eax
call edx
mov ecx, dword [ebp + 0x70]
add esp, 0x10
push 0x10
push 0
push 0x10
push esi
push str.COPCReadTrans3::Complete
push 3
call fcn.004b7610
mov ecx, eax
call fcn.0041a920
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x4e1c62
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4e1c48
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add dword [esp + 0x34], 4
add dword [esp + 0x14], 8
mov ecx, dword [esp + 0x58]
add edi, 0x20
inc ebx
add esi, 0x10
jmp 0x4e1a2e
mov eax, dword [eax]
jmp 0x4e1c3d
cmp byte [ebp + 0x74], 0
mov ecx, dword [ebp + 0x70]
je 0x4e1ccb
call fcn.004b7610
mov ecx, dword [eax]
mov edx, dword [ecx]
push str.Firing_OnDataChange.
push str.COPCReadTrans3::Complete
push 3
push eax
call edx
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x28]
mov eax, dword [ebp + 0x70]
mov ecx, dword [eax + 0x6c]
add esp, 0x10
push edx
mov edx, dword [esp + 0x2c]
mov eax, dword [eax + 0xa0]
push edx
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x48]
push esi
push edi
push edx
mov edx, dword [esp + 0x58]
push edx
push ecx
mov ecx, dword [ebp + 0x18]
push ecx
push eax
call fcn.004e00d0
jmp 0x4e1d2d
call fcn.004b7610
mov edx, dword [eax]
push str.Firing_OnReadComplete.
push str.COPCReadTrans3::Complete
push 3
push eax
mov eax, dword [edx]
call eax
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x70]
mov ecx, dword [eax + 0x6c]
add esp, 0x10
push edx
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
mov eax, dword [eax + 0xa0]
push edx
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x58]
push edx
push ecx
mov ecx, dword [ebp + 0x18]
push ecx
push eax
call fcn.004e02d0
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
test esi, esi
je 0x4e1d47
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
test edi, edi
jbe 0x4e1d60
mov esi, dword [esp + 0x20]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push esi
call ebx
add esi, 0x10
sub edi, 1
jne 0x4e1d55
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, esi
je 0x4e1d73
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x4e1d84
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x4e1d95
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x4e1da6
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0xb0], 2
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x4e1dc2
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0xb0], 0xffffffff
mov eax, dword [esp + 0x40]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp + 0x70]
push ebp
call fcn.004ba360
mov ecx, dword [ebp + 0x70]
push 0
push 0x5d1d25
push str..OPCReadTrans3.cpp
push 0xfc
push str.COPCReadTrans3::Complete
call fcn.004b7610
mov ecx, eax
call fcn.0041aca0
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret