Function at 0x500500
Capabilities:
Get http document via iwebbrowser2
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5868e9
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 esi, ecx
mov ecx, dword [esi + 0xb8]
xor ebp, ebp
cmp ecx, ebp
je 0x500f9a
push str..OPCReadAttributeHistoryTrans.cpp
push 0x6a
push 0x5b2038
call fcn.004a2510
mov ecx, eax
call fcn.0041ac10
cmp byte [esi + 0x20], 0
je 0x50057e
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0xb8]
mov edx, dword [ecx + 0x194]
push eax
push edx
call fcn.004bdfe0
jmp 0x500f73
mov ecx, dword [esi + 0xbc]
call fcn.004df150
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0xc0]
xor ecx, ecx
mov edx, 0x14
mul edx
seto cl
mov dword [esp + 0x40], ebp
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xc0]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xf0]
sub eax, dword [esi + 0xec]
add esp, 8
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
test eax, 0xfffffffc
je 0x500717
mov eax, dword [esi + 0xf0]
sub eax, dword [esi + 0xec]
xor ecx, ecx
sar eax, 2
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xf0]
sub eax, dword [esi + 0xec]
xor ecx, ecx
sar eax, 2
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0xf0]
sub eax, dword [esi + 0xec]
xor ecx, ecx
sar eax, 2
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
mov edi, eax
mov eax, dword [esi + 0xf0]
sub eax, dword [esi + 0xec]
add esp, 0xc
sar eax, 2
mov dword [esp + 0x28], edi
test eax, eax
jbe 0x5006ea
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
sub eax, edi
mov dword [esp + 0x20], eax
push ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [esp + 0x20]
mov dword [ecx + edi], 0x80004005
mov edx, dword [esi + 0xf0]
sub edx, dword [esi + 0xec]
sar edx, 2
cmp ebp, edx
jb 0x5006bf
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0xec]
mov ecx, dword [eax + ebp*4]
mov dword [edi], ecx
mov edx, dword [esi + 0xf0]
sub edx, dword [esi + 0xec]
inc ebp
sar edx, 2
add ebx, 0x10
add edi, 4
cmp ebp, edx
jb 0x500694
mov edi, dword [esp + 0x28]
xor ebp, ebp
mov eax, dword [esp + 0x30]
mov edx, dword [esi + 0xf0]
mov ecx, dword [esp + 0x2c]
sub edx, dword [esi + 0xec]
push eax
push ecx
mov ecx, dword [esp + 0x50]
push edi
sar edx, 2
push edx
call fcn.00425140
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esi + 0xc0]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x24]
add edx, edx
add edx, edx
push edx
push ebp
push eax
call sub.MSVCR90.dll_memset
mov ecx, dword [esi + 0xc0]
mov edx, dword [esp + 0x24]
add ecx, ecx
add ecx, ecx
push ecx
push ebp
push edx
call sub.MSVCR90.dll_memset
add esp, 0x18
mov dword [esp + 0x1c], ebp
cmp dword [esi + 0xc0], ebp
jbe 0x500c21
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], ecx
add edi, 0x10
jmp 0x500790
mov edx, dword [esi + 0xbc]
mov eax, dword [edx + 0x10]
mov ebx, dword [esp + 0x18]
mov dword [edi - 0x10], eax
mov ecx, dword [esi + 0xd8]
sub ecx, dword [esi + 0xd4]
sar ecx, 2
cmp ebp, ecx
jb 0x5007b9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 0xd4]
mov eax, dword [edx + ebp*4]
mov dword [edi - 8], eax
mov ecx, dword [esi + 0xc4]
cmp dword [ecx + ebp*4], 0
je 0x500a32
mov edx, ecx
mov ecx, dword [edx + ebp*4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xc4]
mov edx, dword [ecx + ebp*4]
lea ebx, [eax + ebp*4]
push ebx
push 0
push edx
mov ecx, esi
call fcn.004fd110
cmp dword [ebx], 0
mov ebp, eax
jge 0x500810
mov dword [esp + 0x40], 1
jmp 0x500c09
mov eax, dword [ebp + 0x1c]
cmp eax, 1
jbe 0x500a27
mov ecx, dword [ebp]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x54], eax
call fcn.0042bb10
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x5008ff
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov ecx, dword [esp + 0x54]
cmp ecx, dword [eax + 0x18]
jne 0x500858
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x54]
test dword [edx + 0x28], 0x100000
je 0x500866
dec ebx
xor ecx, ecx
mov eax, ebx
mov edx, 8
mul edx
seto cl
mov dword [edi - 0xc], ebx
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
mov dword [edi - 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
mov ecx, dword [edi - 4]
mov dword [edi], eax
lea eax, [ebx*8]
push eax
push 0
push ecx
call sub.MSVCR90.dll_memset
mov eax, dword [edi]
mov edx, ebx
shl edx, 4
push edx
push 0
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [ebp + 0x18]
mov ebp, dword [ebp]
mov dword [esp + 0x90], eax
mov eax, dword [eax]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x54], ebp
add esp, 0x20
mov ebp, eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x38], ebp
test ebx, ebx
jbe 0x500c09
mov dword [esp + 0x4c], 0
jmp 0x500914
mov eax, dword [eax]
jmp 0x500849
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
test eax, eax
je 0x500924
cmp eax, ecx
je 0x500932
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x70], ebp
je 0x500c09
test eax, eax
je 0x500944
cmp eax, ecx
je 0x50094e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x64], ebp
jne 0x50096c
mov edx, dword [esi + 0x8c]
mov eax, dword [edi - 4]
mov ecx, dword [esp + 0x3c]
mov dword [eax + ecx*8], edx
mov edx, dword [esi + 0x90]
jmp 0x500997
test ecx, ecx
jne 0x500a18
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x500987
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [ebp + 0x2c]
mov eax, dword [edi - 4]
mov ecx, dword [esp + 0x3c]
mov dword [eax + ecx*8], edx
mov edx, dword [ebp + 0x30]
mov dword [eax + ecx*8 + 4], edx
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x500a1f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x34]
xor ecx, ecx
cmp ebp, dword [ecx + 0x18]
jne 0x5009be
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0x28]
and ecx, 0xc0
cmp cl, 0xc0
jne 0x5009f4
test eax, eax
jne 0x500a23
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x5009e3
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [edi]
add edx, dword [esp + 0x4c]
add ebp, 0x18
push ebp
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
mov ebp, dword [esp + 0x3c]
add dword [esp + 0x4c], 0x10
inc ebp
lea ecx, [esp + 0x34]
mov dword [esp + 0x3c], ebp
call fcn.00476640
cmp ebp, ebx
jb 0x500910
jmp 0x500c09
mov eax, dword [ecx]
jmp 0x50097c
mov ecx, dword [eax]
jmp 0x5009af
mov eax, dword [eax]
jmp 0x5009d8
mov dword [ebx], 0x40041002
jmp 0x500c09
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
test eax, eax
jl 0x500a8c
push 8
mov dword [edi - 0xc], 1
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
push 0x10
mov dword [edi - 4], eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov dword [edi], eax
mov eax, dword [edi - 4]
mov ecx, dword [esp + 0x60]
mov dword [eax], ecx
mov edx, dword [esp + 0x64]
mov dword [eax + 4], edx
mov eax, dword [edi]
add esp, 8
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [esp + 0x44]
mov edx, dword [edi]
push ecx
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
mov dword [ebx + ebp*4], 0x40041005
jmp 0x500bff
cmp eax, 0xc0040203
jne 0x500bf4
mov eax, dword [esi + 0xd8]
sub eax, dword [esi + 0xd4]
sar eax, 2
cmp ebp, eax
jb 0x500ab0
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0xd4]
mov eax, dword [ecx + ebp*4]
mov ebx, 1
sub eax, ebx
je 0x500adb
sub eax, 0xc
je 0x500adb
mov edx, dword [esp + 0x18]
mov dword [edx + ebp*4], 0xc004100c
mov dword [esp + 0x40], ebx
jmp 0x500bff
push 8
mov dword [edi - 0xc], ebx
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
push 0x10
mov dword [edi - 4], eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov dword [edi], eax
mov eax, dword [edi - 4]
mov ecx, dword [esp + 0x60]
mov dword [eax], ecx
mov edx, dword [esp + 0x64]
mov dword [eax + 4], edx
mov eax, dword [edi]
add esp, 8
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [esp + 0x44]
mov edx, dword [edi]
push ecx
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
mov eax, dword [esi + 0xd8]
sub eax, dword [esi + 0xd4]
sar eax, 2
cmp ebp, eax
jb 0x500b34
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0xd4]
cmp dword [ecx + ebp*4], ebx
jne 0x500b6a
mov edx, dword [edi]
mov ecx, dword [esp + 0x48]
mov eax, 2
push 0
mov word [edx], ax
call fcn.0046d020
mov ecx, dword [edi]
mov edx, dword [esp + 0x18]
mov word [ecx + 8], ax
mov dword [edx + ebp*4], 0x40041005
jmp 0x500bff
mov edx, dword [esi + 0xd8]
sub edx, dword [esi + 0xd4]
sar edx, 2
cmp ebp, edx
jb 0x500b83
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0xd4]
cmp dword [eax + ebp*4], 0xd
jne 0x500be7
mov ecx, dword [edi]
mov edx, 8
lea eax, [esp + 0x88]
mov word [ecx], dx
mov ecx, dword [esp + 0x48]
push eax
call fcn.0044d5a0
mov dword [esp + 0xb0], 0
cmp dword [eax + 0x18], 8
jb 0x500bc0
mov eax, dword [eax + 4]
jmp 0x500bc3
add eax, 4
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [edi]
mov dword [ecx + 8], eax
mov dword [esp + 0xb0], 0xffffffff
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov edx, dword [esp + 0x18]
mov dword [edx + ebp*4], 0x40041005
jmp 0x500bff
mov dword [ebx + ebp*4], eax
mov dword [esp + 0x40], 1
add dword [esp + 0x44], 0x10
add dword [esp + 0x28], 4
mov ebp, dword [esp + 0x1c]
inc ebp
add edi, 0x14
mov dword [esp + 0x1c], ebp
cmp ebp, dword [esi + 0xc0]
jb 0x500790
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x500c32
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x500c43
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [esi + 0xb8]
push 0x5b2038
push 3
call fcn.004a2510
push eax
call fcn.0041a290
add esp, 0xc
test eax, eax
je 0x500e9d
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cmp dword [esi + 0xc0], ebx
jbe 0x500e9d
mov edi, dword [esp + 0x24]
add edi, 4
nop
mov ecx, dword [esi + 0xb8]
call fcn.004a2510
mov ebp, dword [esp + 0x18]
mov edx, dword [ebp + ebx*4]
mov ecx, dword [eax]
push edx
push ebx
push str.HRESULT_phrErrors__d_0x_08x
push 0x5b2038
push 3
push eax
mov eax, dword [ecx]
call eax
add esp, 0x18
cmp dword [ebp + ebx*4], 0
jl 0x500e89
mov ecx, dword [esi + 0xb8]
call fcn.004a2510
mov ecx, dword [eax]
mov edx, dword [ecx]
push ebx
push str.OPCHDA_ATTRIBUTE_pAttributeValues__u_
push 0x5b2038
push 3
push eax
call edx
mov ecx, dword [esi + 0xb8]
add esp, 0x14
call fcn.004a2510
mov edx, dword [edi - 4]
mov ecx, dword [eax]
push edx
push str._________________hClient0x_08x
push 0x5b2038
push 3
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [esi + 0xb8]
add esp, 0x14
call fcn.004a2510
mov edx, dword [edi]
mov ecx, dword [eax]
push edx
push str._________________dwNumValues_u
push 0x5b2038
push 3
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [esi + 0xb8]
add esp, 0x14
call fcn.004a2510
mov edx, dword [edi + 4]
mov ecx, dword [eax]
push edx
push str._________________dwAttributeID0x_08x
push 0x5b2038
push 3
push eax
mov eax, dword [ecx]
call eax
xor ebp, ebp
add esp, 0x14
cmp dword [edi], ebp
jbe 0x500e89
mov dword [esp + 0x20], ebp
mov edx, dword [edi + 8]
lea ecx, [esp + 0x60]
lea ebx, [ebp*8]
push ecx
add edx, ebx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [esi + 0xb8]
test eax, eax
je 0x500dbe
call fcn.004a2510
movzx edx, word [esp + 0x6e]
push edx
movzx edx, word [esp + 0x70]
push edx
movzx edx, word [esp + 0x72]
push edx
movzx edx, word [esp + 0x74]
push edx
movzx edx, word [esp + 0x76]
mov ecx, dword [eax]
push edx
movzx edx, word [esp + 0x76]
push edx
movzx edx, word [esp + 0x78]
push edx
push ebp
push str._________________ftTimeStamps__u__04u__02u__02u__02u:_02u:_02u._03u
push 0x5b2038
push 3
push eax
mov eax, dword [ecx]
call eax
add esp, 0x30
jmp 0x500de6
call fcn.004a2510
mov ecx, dword [edi + 8]
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 ebp
push str._________________ftTimeStamps__u_0x_08x:0x_08x
push 0x5b2038
push 3
push eax
call edx
add esp, 0x1c
mov ecx, dword [esi + 0xb8]
call fcn.004a2510
mov edx, dword [edi + 0xc]
mov ebx, dword [esp + 0x20]
movzx edx, word [ebx + edx]
mov ecx, dword [eax]
push edx
push ebp
push str._________________vAttributeValues__u_.vt0x_04x
push 0x5b2038
push 3
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [edi + 0xc]
add esp, 0x18
push 8
push 0
add ecx, ebx
push ecx
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov ecx, dword [esi + 0xb8]
test eax, eax
jl 0x500e59
call fcn.004a2510
mov edx, dword [esp + 0x7c]
mov ecx, dword [eax]
push edx
push ebp
push str._________________vAttributeValues__u___ls_
push 0x5b2038
push 3
push eax
mov eax, dword [ecx]
call eax
add esp, 0x18
jmp 0x500e75
call fcn.004a2510
mov ecx, dword [eax]
mov edx, dword [ecx]
push ebp
push str._________________vAttributeValues__u_...
push 0x5b2038
push 3
push eax
call edx
add esp, 0x14
inc ebp
add ebx, 0x10
mov dword [esp + 0x20], ebx
cmp ebp, dword [edi]
jb 0x500d54
mov ebx, dword [esp + 0x1c]
inc ebx
add edi, 0x14
mov dword [esp + 0x1c], ebx
cmp ebx, dword [esi + 0xc0]
jb 0x500c80
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov ecx, dword [esi + 0xc0]
mov edx, dword [esi + 0xbc]
mov eax, dword [edx + 0x10]
mov edx, dword [esi + 0x18]
push ebx
push edi
push ecx
mov ecx, dword [esp + 0x4c]
push eax
mov eax, dword [esi + 0xb8]
push ecx
mov ecx, dword [eax + 0x194]
push edx
push ecx
call fcn.004bda40
test edi, edi
je 0x500f59
cmp dword [esi + 0xc0], 0
mov dword [esp + 0x1c], 0
jbe 0x500f48
add edi, 0xc
xor ebx, ebx
cmp dword [edi - 8], ebx
jbe 0x500f15
xor ebp, ebp
nop
mov edx, dword [edi + 4]
add edx, ebp
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
inc ebx
add ebp, 0x10
cmp ebx, dword [edi - 8]
jb 0x500f00
mov eax, dword [edi]
test eax, eax
je 0x500f24
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [edi + 4]
test eax, eax
je 0x500f34
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x1c]
inc eax
add edi, 0x14
mov dword [esp + 0x1c], eax
cmp eax, dword [esi + 0xc0]
jb 0x500ef6
mov eax, dword [esp + 0x24]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov ebx, dword [esp + 0x1c]
add esp, 4
test ebx, ebx
je 0x500f66
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
xor ebp, ebp
mov ecx, dword [esi + 0xb8]
push ebp
push 0x5d1d25
push str..OPCReadAttributeHistoryTrans.cpp
push 0x17b
push 0x5b2038
call fcn.004a2510
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
mov esp, ebp
pop ebp
ret