Function at 0x427e40
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ecx + 0x5c]
test eax, eax
je 0x427fde
cmp eax, 1
jne 0x428129
cmp dword [ebx], 6
jne 0x428135
cmp dword [ebx + 8], 1
je 0x427eb5
mov eax, dword [ebx + 0x80]
cmp eax, dword [ecx + 0x64]
jne 0x427eb5
mov ecx, dword [ebx + 0x84]
mov edx, dword [ebp + 0x10]
mov edx, dword [edx + 0x68]
cmp ecx, edx
je 0x428439
test ecx, ecx
je 0x427eb5
test edx, edx
je 0x427eb5
push eax
push edx
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
je 0x428439
movsd xmm0, qword [ebx + 0x38]
movsd qword [ebx + 0x50], xmm0
movups xmm0, xmmword [ebx + 0x28]
movups xmmword [ebx + 0x40], xmm0
mov eax, dword [esi + 0x210]
lea ecx, [eax + 1]
mov dword [esi + 0x210], ecx
mov dword [ebx + 0x44], eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild qword [esp + 0x28]
fstp qword [esp + 0x38]
movsd xmm0, qword [0x523320]
divsd xmm0, qword [esp + 0x38]
fild qword [esp + 8]
fstp qword [esp + 0x40]
mulsd xmm0, qword [esp + 0x40]
movsd qword [esp + 0x18], xmm0
fld qword [esp + 0x18]
fnstcw word [esp + 6]
movzx eax, word [esp + 6]
or eax, 0xc00
mov word [esp + 0x16], ax
fldcw word [esp + 0x16]
fistp qword [esp + 0x18]
fldcw word [esp + 6]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x4c], ecx
mov dword [ebx + 0x48], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x6c]
mov ecx, dword [esi + 0x154]
cmp eax, ecx
cmovae eax, ecx
test eax, eax
cmove eax, ecx
mov dword [ebx + 0x50], eax
lea esi, [ebx + 0x84]
mov eax, dword [ebx + 0x84]
and eax, 0xfffffffe
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x80], 0
push 0x524820
push esi
mov eax, dword [ebp + 0x10]
push dword [eax + 0x64]
push dword [eax + 0x68]
call fcn.00403bc0
add esp, 0x10
test eax, eax
je 0x4281ca
mov esi, eax
mov eax, dword [ebx + 0x84]
and eax, 0xfffffffe
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x80], 0
mov dword [edi + 0xc], esi
jmp 0x4281c2
cmp dword [ebx], 3
jne 0x428141
mov edi, dword [ecx + 0x60]
cmp edi, 1
je 0x428027
mov eax, dword [ebx + 0x58]
cmp dword [eax + 4], 0x2f
jne 0x428027
mov eax, dword [eax + 8]
mov esi, 0x80540000
cmp eax, str.http:__opcfoundation.org_UA_SecurityPolicyNone
je 0x428192
test eax, eax
je 0x428027
push 0x2f
push str.http:__opcfoundation.org_UA_SecurityPolicyNone
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
je 0x428192
mov dword [ebx + 8], edi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x20c]
lea ecx, [eax + 1]
mov dword [esi + 0x20c], ecx
mov dword [ebx + 0x28], eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild qword [esp + 0x28]
fstp qword [esp + 0x48]
movsd xmm0, qword [0x523320]
divsd xmm0, qword [esp + 0x48]
fild qword [esp + 8]
fstp qword [esp + 0x50]
mulsd xmm0, qword [esp + 0x50]
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
fnstcw word [esp + 4]
movzx eax, word [esp + 4]
or eax, 0xc00
mov word [esp + 0x14], ax
fldcw word [esp + 0x14]
fistp qword [esp + 0x20]
fldcw word [esp + 4]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x30], eax
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 0x6c]
mov ecx, dword [esi + 0x154]
cmp eax, ecx
cmovae eax, ecx
test eax, eax
cmove eax, ecx
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x80], 0
lea eax, [ebx + 0x84]
push 0x524820
push eax
push dword [edi + 0x64]
push dword [edi + 0x68]
call fcn.00403bc0
add esp, 0x10
test eax, eax
je 0x4282fc
mov esi, eax
mov eax, dword [ebx + 0x84]
and eax, 0xfffffffe
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x80], 0
jmp 0x428192
mov dword [edi + 0xc], 0x80020000
jmp 0x4281c2
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x42814d
mov eax, dword [eax + 8]
jmp 0x42814f
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x428172
mov eax, dword [eax + 8]
jmp 0x428174
xor eax, eax
push 0x5239ff
push dword [ebx + 0x28]
push eax
push str.Connection__i__SecureChannel__u__Called_renew_on_channel_which_is_not_open_.0s
push 1
push esi
call fcn.0040aa30
add esp, 0x18
mov esi, 0x80020000
mov dword [edi + 0xc], esi
jmp 0x4281c2
xor eax, eax
push 0x5239ff
push dword [ebx + 0x28]
push eax
push str.Connection__i__SecureChannel__u__Called_open_on_already_open_or_closed_channel_.0s
push 1
push esi
call fcn.0040aa30
add esp, 0x18
mov esi, 0x80020000
mov eax, dword [ebp + 0x14]
mov dword [eax + 0xc], esi
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x4281a4
mov eax, dword [eax + 8]
jmp 0x4281a6
xor eax, eax
mov ecx, dword [ebp + 8]
push 0x5239ff
push dword [ebx + 0x28]
push eax
push str.Connection__i__SecureChannel__u__Opening_a_SecureChannel_failed_.0s
push 1
push ecx
call fcn.0041b960
add esp, 0x18
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x64]
mov dword [ebx + 0x80], eax
mov esi, dword [ebx + 0x58]
test esi, esi
je 0x428168
mov edi, dword [esi + 0x64]
lea eax, [ebx + 0x88]
cmp dword [ebx + 0x88], edi
je 0x42823b
mov dword [esp], eax
mov eax, dword [ebx + 0x8c]
and eax, 0xfffffffe
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, dword [esp + 4]
add esp, 4
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x88], 0
test edi, edi
je 0x42823b
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [ebx + 0x8c], eax
test eax, eax
je 0x4285c0
mov eax, dword [esp]
mov dword [eax], edi
push eax
push dword [esi]
call dword [esi + 0x60]
add esp, 8
mov esi, eax
test eax, eax
mov edi, dword [ebp + 0x14]
jne 0x42816d
lea eax, [ebx + 0x40]
movsd xmm0, qword [eax + 0x10]
movsd qword [edi + 0x78], xmm0
movups xmm0, xmmword [eax]
movups xmmword [edi + 0x68], xmm0
lea esi, [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
movsd xmm0, qword [esp + 8]
movsd qword [edi + 0x70], xmm0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x20]
mov dword [edi + 8], eax
mov dword [edi + 0x84], 0
mov dword [edi + 0x80], 0
lea eax, [edi + 0x84]
push 0x524820
push eax
push dword [ebx + 0x88]
push dword [ebx + 0x8c]
call fcn.00403bc0
add esp, 0x10
test eax, eax
je 0x428445
mov esi, eax
mov eax, dword [edi + 0x84]
and eax, 0xfffffffe
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [edi + 0x84], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0xc], esi
jmp 0x4281c2
mov eax, dword [edi + 0x64]
mov dword [ebx + 0x80], eax
mov esi, dword [ebx + 0x58]
test esi, esi
je 0x42818d
mov edi, dword [esi + 0x64]
lea eax, [ebx + 0x88]
cmp dword [ebx + 0x88], edi
je 0x42836e
mov dword [esp], eax
mov eax, dword [ebx + 0x8c]
and eax, 0xfffffffe
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, dword [esp + 4]
add esp, 4
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x88], 0
test edi, edi
je 0x42836e
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [ebx + 0x8c], eax
test eax, eax
je 0x4285d0
mov eax, dword [esp]
mov dword [eax], edi
push eax
push dword [esi]
call dword [esi + 0x60]
add esp, 8
mov esi, eax
test eax, eax
jne 0x428192
lea eax, [ebx + 0x28]
movsd xmm0, qword [eax + 0x10]
mov edi, dword [ebp + 0x14]
movsd qword [edi + 0x78], xmm0
mov dword [esp], eax
movupd xmm0, xmmword [eax]
movupd xmmword [edi + 0x68], xmm0
lea esi, [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], ecx
mov dword [edi], eax
mov dword [edi + 4], ecx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x20]
mov dword [edi + 8], eax
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
lea eax, [edi + 0x84]
push 0x524820
push eax
push dword [ebx + 0x88]
push dword [ebx + 0x8c]
call fcn.00403bc0
add esp, 0x10
test eax, eax
je 0x4284be
mov esi, eax
mov eax, dword [edi + 0x84]
and eax, 0xfffffffe
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [edi + 0x84], 0
mov dword [edi + 0x80], 0
jmp 0x428192
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x428496
mov eax, dword [eax + 8]
jmp 0x428498
lea eax, [ebx + 0x28]
mov ecx, dword [ebx + 0x88]
mov dword [edi + 0x80], ecx
mov dword [ebx + 4], 2
mov dword [edi + 0xc], 0
movss xmm0, dword [edi + 0x78]
orpd xmm0, xmmword [0x523330]
subsd xmm0, qword [0x523340]
cvtsd2ss xmm0, xmm0
divss xmm0, dword [0x523348]
mov ecx, dword [ebx + 0x60]
test ecx, ecx
je 0x428526
mov ecx, dword [ecx + 8]
jmp 0x428528
xor eax, eax
push 0x5239ff
push dword [ebx + 0x28]
push eax
push str.Connection__i__SecureChannel__u__The_client_reused_the_last_nonce_.0s
push 1
push esi
call fcn.0040aa30
add esp, 0x18
mov esi, 0x80130000
mov dword [edi + 0xc], esi
jmp 0x4281c2
mov eax, dword [ebx + 0x88]
mov dword [edi + 0x80], eax
mov dword [ebx], 6
mov dword [ebx + 4], 2
mov eax, dword [esp]
movups xmm0, xmmword [eax]
movups xmmword [ebx + 0x40], xmm0
movsd xmm0, qword [eax + 0x10]
movsd qword [ebx + 0x50], xmm0
mov dword [ebx + 0x2c], 0
mov dword [edi + 0xc], 0
movss xmm0, dword [edi + 0x78]
orpd xmm0, xmmword [0x523330]
subsd xmm0, qword [0x523340]
cvtsd2ss xmm0, xmm0
divss xmm0, dword [0x523348]
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x42856a
mov eax, dword [eax + 8]
jmp 0x42856c
xor ecx, ecx
mov edx, dword [ebp + 8]
mov eax, dword [eax]
cvtss2sd xmm0, xmm0
sub esp, 0x20
movsd qword [esp + 0x14], xmm0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp], edx
mov dword [esp + 0x1c], 0x5239ff
mov dword [esp + 8], str.Connection__i__SecureChannel__u__SecureChannel_renewed_with_a_revised_lifetime_of__.2fs_.0s
mov dword [esp + 4], 1
call fcn.0041b960
add esp, 0x20
jmp 0x4281c2
xor eax, eax
mov edi, dword [ebp + 8]
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebx + 0x58]
mov esi, dword [edx + 4]
mov edx, dword [edx + 8]
cvtss2sd xmm0, xmm0
sub esp, 0x28
movsd qword [esp + 0x1c], xmm0
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov dword [esp], edi
mov dword [esp + 0x24], 0x5239ff
mov dword [esp + 8], str.Connection__i__SecureChannel__u__SecureChannel_opened_with_SecurityPolicy__.s_and_a_revised_lifetime_of__.2fs_.0s
mov dword [esp + 4], 1
call fcn.0041b960
add esp, 0x28
jmp 0x4281c2
mov esi, 0x80030000
mov edi, dword [ebp + 0x14]
mov dword [edi + 0xc], esi
jmp 0x4281c2
mov esi, 0x80030000
jmp 0x428192