Function at 0x517080
Capabilities:
Convert ip address from string
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x330
mov ebx, edx
mov edi, dword [ebp + 0xc]
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [esp + 0x328], eax
mov esi, dword [ecx + 8]
push edx
mov dword [esp + 0x20], ecx
push ecx
call fcn.004e0290
add esp, 8
cmp dword [esi], 2
jne 0x51718b
mov byte [edi], 1
xor esi, esi
mov ecx, dword [esp + 0x328]
xor ecx, ebp
call fcn.00650d60
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push str.schannel:_unable_to_allocate_memory
push dword [esp + 0xc]
call fcn.004e7570
add esp, 8
mov esi, 0x1b
jmp 0x5170c1
lea ecx, [esp + 0xc8]
push dword [ecx]
push eax
push str.schannel:_failed_to_send_next_handshake_data:_sent__zd_of__lu_bytes
push ebx
call fcn.004e7570
add esp, 0x10
mov esi, 0x23
jmp 0x5170c1
cmp byte [ebp + 8], 0
jne 0x517133
push str.SSL_TLS_connection_timeout
push ebx
call fcn.004e7570
add esp, 8
mov esi, 0x1c
jmp 0x5170c1
push str.schannel:_unable_to_allocate_memory
push ebx
jmp 0x5170e2
mov byte [eax], 0
jmp 0x5170bf
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x38]
test al, al
js 0x519078
or eax, 0x80
mov dword [ecx + 0x38], eax
mov eax, 3
jmp 0x517163
mov eax, dword [esp + 0x14]
mov byte [eax + 0x34], 1
mov eax, 2
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 4], eax
mov edi, dword [ebp + 0xc]
mov edx, dword [esp + 0x3c]
cmp byte [ebp + 8], 0
je 0x5171a3
mov eax, dword [edx + 4]
dec eax
xor esi, esi
cmp eax, 3
jae 0x5171a3
jmp 0x5170c1
mov edx, esi
mov dword [esp + 0x4c], eax
cmp dword [esi + 4], 0
mov dword [esp + 8], ebx
mov dword [esp + 0x3c], esi
je 0x5179be
mov eax, dword [edx + 4]
lea ecx, [eax - 1]
cmp ecx, 3
jae 0x518c9b
push 1
push 0
push ebx
call fcn.004e1220
add esp, 0xc
test edx, edx
js 0x517116
mov ecx, dword [esp + 0x3c]
mov esi, dword [ecx + 4]
mov ecx, esi
and ecx, 0xfffffffe
cmp ecx, 2
jne 0x517223
cmp esi, 3
mov edi, 0xffffffff
mov ecx, edi
mov ebx, dword [esp + 0x4c]
cmove ecx, ebx
cmp esi, 2
mov esi, edi
cmove esi, ebx
cmp byte [ebp + 8], 0
mov edi, 0
cmovne eax, edi
cmovne edx, edi
push edx
push eax
push ecx
push 0xffffffffffffffff
push esi
call fcn.00500d40
add esp, 0x14
test eax, eax
js 0x518941
mov ebx, dword [esp + 8]
mov eax, dword [ebp + 0xc]
je 0x517110
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
mov edi, dword [ecx + 0x14]
push eax
call fcn.0051abc0
add esp, 4
mov ecx, eax
xor eax, eax
dec eax
mov dword [esp + 0xe8], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0xd8], xmm0
movdqu xmmword [esp + 0xc8], xmm0
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x110], eax
movdqu xmmword [esp + 0x100], xmm0
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0x84], eax
mov esi, 0x23
cmp dword [edi], 0
je 0x5170c1
cmp dword [edi + 4], 0
je 0x5170c1
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
cmp dword [edi + 0x30], 0
mov esi, edi
mov dword [esp + 0x14], edi
jne 0x51730b
mov dword [esi + 0x28], 0
mov esi, 0x1000
mov eax, dword [esp + 0x14]
mov dword [eax + 0x20], esi
mov ecx, dword [fcn.00546590]
call dword [0x7a29f4]
push esi
mov esi, dword [esp + 0x18]
call ecx
add esp, 4
mov dword [esi + 0x30], eax
test eax, eax
je 0x51712b
mov edi, dword [esi + 0x2c]
test edi, edi
jne 0x51734c
mov byte [esi + 0x34], 0
mov dword [esi + 0x24], 0
mov esi, 0x1000
mov eax, dword [esp + 0x14]
mov dword [eax + 0x1c], esi
mov ecx, dword [fcn.00546590]
call dword [0x7a29f4]
push esi
mov esi, dword [esp + 0x18]
call ecx
add esp, 4
mov edi, eax
mov dword [esi + 0x2c], eax
test eax, eax
je 0x51712b
mov ecx, dword [esi + 0x1c]
mov esi, dword [esi + 0x24]
mov eax, ecx
sub eax, esi
cmp eax, 0x3ff
ja 0x51738b
add esi, 0x400
mov ecx, dword [fcn.005465e0]
call dword [0x7a29f4]
push esi
push edi
call ecx
add esp, 8
test eax, eax
je 0x5173d8
mov edi, eax
mov eax, dword [esp + 0x14]
mov dword [eax + 0x2c], edi
mov dword [eax + 0x1c], esi
mov eax, dword [eax + 0x24]
jmp 0x51738f
mov eax, esi
mov esi, ecx
cmp dword [esp + 0x20], 3
je 0x517402
sub esi, eax
add edi, eax
lea eax, [esp + 0x84]
push eax
push esi
push edi
push ebx
mov eax, dword [esp + 0x2c]
push dword [eax + 4]
call fcn.004dfe90
add esp, 0x14
mov ecx, dword [esp + 0x84]
cmp ecx, 0x51
jne 0x5173e2
mov eax, 2
mov ecx, dword [esp + 0x28]
cmp dword [ecx + 4], 3
jne 0x517167
jmp 0x51716e
push str.schannel:_unable_to_re_allocate_memory
jmp 0x517130
test ecx, ecx
jne 0x517c8d
test eax, eax
je 0x517c8d
mov esi, dword [esp + 0x14]
add eax, dword [esi + 0x24]
mov dword [esi + 0x24], eax
mov byte [esi + 0x34], 0
jmp 0x517406
mov esi, dword [esp + 0x14]
lea ecx, [esi + 0x3c]
mov dword [esp + 0x2c], ecx
jmp 0x51747f
mov esi, dword [esp + 0xe8]
test esi, esi
je 0x51742b
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
call dword [0x7a29f4]
push esi
call ecx
cmp dword [esp + 0x110], 5
jne 0x51772f
mov eax, dword [esp + 0x10c]
test eax, eax
je 0x51772f
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0x24]
cmp ecx, eax
jbe 0x51773a
mov edx, dword [esi + 0x2c]
add ecx, edx
sub ecx, eax
push eax
push ecx
push edx
call fcn.00654250
add esp, 0xc
mov eax, dword [esp + 0x10c]
mov dword [esi + 0x24], eax
cmp edi, 0x90312
jne 0x51774b
push eax
call fcn.0051ed40
add esp, 4
mov edi, eax
mov ecx, dword [fcn.00546590]
mov ebx, dword [esi + 0x24]
call dword [0x7a29f4]
push ebx
call ecx
add esp, 4
mov dword [esp + 0x100], edi
mov edx, 2
mov dword [esp + 0x104], edx
mov dword [esp + 0x108], eax
xor ebx, ebx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], ebx
mov dword [esp + 0xb8], ebx
lea ecx, [esp + 0x100]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xbc], edx
movq xmm0, qword [0x749d20]
movdqu xmmword [esp + 0xc8], xmm0
mov dword [esp + 0xd8], 0x11
lea ecx, [esp + 0xd4]
pxor xmm0, xmm0
movdqu xmmword [ecx + 8], xmm0
mov dword [esp + 0x9c], ebx
lea ecx, [esp + 0xc8]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa0], 3
test eax, eax
je 0x5170d9
push dword [esi + 0x24]
push dword [esi + 0x2c]
push eax
call fcn.00654250
add esp, 0xc
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x18]
mov eax, dword [esi]
mov edi, dword [esi + 4]
lea edx, [edi + 8]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 0x38]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0xc], edx
mov esi, eax
call dword [0x7a29f4]
push dword [esp + 0x30]
push dword [esp + 0x30]
lea eax, [esp + 0xa4]
push eax
push ebx
push ebx
lea eax, [esp + 0xcc]
push eax
push ebx
push ebx
push dword [esp + 0x40]
push dword [esp + 0x30]
push edi
push esi
call ecx
mov edi, eax
mov ecx, dword [fcn.005464a0]
mov esi, dword [esp + 0x108]
call dword [0x7a29f4]
push esi
call ecx
add esp, 4
mov dword [esp + 0x108], ebx
cmp edi, 0x90320
je 0x517138
cmp edi, 0x80090318
je 0x517156
cmp edi, 0x90312
mov ebx, dword [esp + 8]
je 0x5175ef
test edi, edi
jne 0x517923
cmp dword [esp + 0xcc], 2
jne 0x51763f
mov eax, dword [esp + 0xc8]
test eax, eax
je 0x51763f
lea ecx, [esp + 0x84]
push ecx
push eax
push dword [esp + 0xd8]
push ebx
mov eax, dword [esp + 0x2c]
push dword [eax + 4]
call fcn.004dfe60
add esp, 0x14
cmp dword [esp + 0x84], 0
jne 0x5170f1
cmp dword [esp + 0xc8], eax
jne 0x5170f1
mov esi, dword [esp + 0xd0]
test esi, esi
je 0x51765b
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
call dword [0x7a29f4]
push esi
call ecx
cmp dword [esp + 0xd8], 2
jne 0x5176a7
mov eax, dword [esp + 0xd4]
test eax, eax
je 0x5176a7
lea ecx, [esp + 0x84]
push ecx
push eax
push dword [esp + 0xe4]
push ebx
mov eax, dword [esp + 0x2c]
push dword [eax + 4]
call fcn.004dfe60
add esp, 0x14
cmp dword [esp + 0x84], 0
jne 0x517723
cmp dword [esp + 0xd4], eax
jne 0x517723
mov esi, dword [esp + 0xdc]
test esi, esi
je 0x5176c3
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
call dword [0x7a29f4]
push esi
call ecx
cmp dword [esp + 0xe4], 2
jne 0x51740f
mov eax, dword [esp + 0xe0]
test eax, eax
je 0x51740f
lea ecx, [esp + 0x84]
push ecx
push eax
push dword [esp + 0xf0]
push ebx
mov eax, dword [esp + 0x2c]
push dword [eax + 4]
call fcn.004dfe60
add esp, 0x14
cmp dword [esp + 0x84], 0
jne 0x517717
cmp dword [esp + 0xe0], eax
je 0x51740f
lea ecx, [esp + 0xe0]
jmp 0x5170f8
lea ecx, [esp + 0xd4]
jmp 0x5170f8
mov eax, dword [esp + 0x14]
mov dword [eax + 0x24], 0
mov eax, 2
cmp edi, 0x90312
je 0x517167
test edi, edi
jne 0x51775a
mov eax, dword [esp + 0x28]
mov dword [eax + 4], 4
mov esi, dword [esp + 0x1c]
push esi
call fcn.0051c500
add esp, 4
movzx eax, al
mov eax, dword [ebx + eax*4 + 0x540]
test eax, eax
je 0x5178b3
mov dword [esp + 0x20], eax
mov eax, dword [esi + 8]
mov esi, dword [eax + 0x14]
mov dword [esp + 0x90], 0
push 0xf0
push 0xff
lea eax, [esp + 0x240]
push eax
call fcn.006547d0
add esp, 0xc
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x2c]
mov esi, dword [esi + 4]
call dword [0x7a29f4]
lea eax, [esp + 0x90]
push eax
push 0x53
push esi
call ecx
mov edi, eax
test eax, eax
sete cl
mov eax, dword [esp + 0x90]
test eax, eax
setne dl
test cl, dl
je 0x51782e
mov edi, 0x5a
test byte [eax], 1
je 0x51786d
mov esi, dword [eax + 8]
test esi, esi
je 0x51786d
mov ebx, dword [eax + 4]
push 0xf0
push 0
lea eax, [esp + 0x240]
push eax
call fcn.006547d0
add esp, 0xc
add esi, ebx
push esi
push ebx
lea eax, [esp + 0x240]
push eax
call fcn.0051cdc0
add esp, 0xc
test eax, eax
je 0x5178f2
mov ebx, dword [esp + 8]
jmp 0x51786d
mov eax, 0x100
push eax
push 0xff
lea esi, [esp + 0x138]
push esi
call fcn.006547d0
add esp, 0xc
mov eax, 0x100
push eax
push esi
push edi
call fcn.00509830
add esp, 0xc
push eax
push str.schannel:_Failed_to_read_remote_certificate_context:__s
push ebx
call fcn.004e7570
add esp, 0xc
mov edi, 0x5a
mov eax, dword [esp + 0x90]
test eax, eax
je 0x51787f
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov dword [esp + 0x84], edi
test edi, edi
je 0x5178b3
push str.SSL:_public_key_does_not_match_pinned_public_key
push ebx
call fcn.004e7570
add esp, 8
mov esi, dword [esp + 0x84]
test esi, esi
mov edi, dword [ebp + 0xc]
mov edx, dword [esp + 0x3c]
je 0x517175
jmp 0x5170c1
mov eax, dword [esp + 0x38]
cmp byte [eax + 0x39], 1
jne 0x5178dc
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x48], 1
jne 0x51716e
push ebx
push dword [esp + 0x20]
call fcn.005199d0
add esp, 8
mov esi, eax
jmp 0x51789f
cmp byte [eax + 0x3a], 1
jne 0x51716e
push ebx
push dword [esp + 0x20]
call fcn.00519580
jmp 0x5178d5
mov eax, dword [esp + 0x2c8]
test eax, eax
mov ebx, dword [esp + 8]
je 0x517910
mov ecx, dword [esp + 0x2d0]
sub ecx, eax
ja 0x5190a8
push str.SSL:_failed_retrieving_public_key_from_server_certificate
push ebx
call fcn.004e7570
add esp, 8
jmp 0x51786d
push 0x100
push 0xff
lea eax, [esp + 0x138]
push eax
call fcn.006547d0
add esp, 0xc
mov esi, str.schannel:_next_InitializeSecurityContext_failed:__s
cmp edi, 0x80090300
je 0x517964
cmp edi, 0x80090325
je 0x517982
cmp edi, 0x80090322
je 0x51796e
mov dword [esp + 0xc], 0x23
jmp 0x517994
mov dword [esp + 0xc], 0x1b
jmp 0x517994
mov dword [esp + 0xc], 0x3c
mov esi, str.schannel:_SNI_or_certificate_check_failed:__s
mov edi, 0x80090322
jmp 0x517994
mov dword [esp + 0xc], 0x3c
mov esi, str.schannel:__s
mov edi, 0x80090325
push 0x100
lea eax, [esp + 0x134]
push eax
push edi
call fcn.00509830
add esp, 0xc
push eax
push esi
push ebx
call fcn.004e7570
add esp, 0xc
mov esi, dword [esp + 0xc]
jmp 0x5170c1
push 1
push 0
push ebx
call fcn.004e1220
add esp, 0xc
test edx, edx
js 0x517116
mov edi, dword [esp + 0x1c]
mov esi, dword [edi + 8]
mov eax, dword [esi + 0x14]
mov dword [esp + 0x14], eax
push edi
call fcn.0051abc0
add esp, 4
mov dword [esp + 0xc], eax
push ebx
push edi
call fcn.0051abf0
add esp, 8
mov dword [esp + 0x30], eax
xor eax, eax
dec eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x2a8], xmm0
movdqu xmmword [esp + 0x298], xmm0
movdqu xmmword [esp + 0x288], xmm0
movdqu xmmword [esp + 0x278], xmm0
movdqu xmmword [esp + 0x268], xmm0
movdqu xmmword [esp + 0x258], xmm0
movdqu xmmword [esp + 0x248], xmm0
movdqu xmmword [esp + 0x238], xmm0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], eax
movdqu xmmword [esp + 0xb8], xmm0
mov dword [esp + 0x60], eax
mov dword [esp + 0x20], esi
mov esi, dword [esi + 8]
sub esp, 0x14
movdqa xmm0, xmmword [0x749c50]
movdqu xmmword [esp], xmm0
mov dword [esp + 0x10], 1
call fcn.00515e30
add esp, 0x14
test ebx, ebx
je 0x517af1
test al, al
je 0x517af1
mov ecx, ebx
cmp byte [ebx + 0x683], 1
jne 0x517af1
push str.schannel:_Windows_version_is_old_and_may_not_be_able_to_connect_to_some_servers_due_to_lack_of_SNI__algorithms__etc.
push ecx
call fcn.004e7630
add esp, 8
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x10], 0
je 0x517b16
push 0x7373bc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.wine_get_version
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x517b6a
xor eax, eax
mov ecx, dword [esp + 0x14]
mov byte [ecx + 0x47], al
mov eax, dword [esp + 0xc]
cmp dword [eax + 4], 0
je 0x517b8c
sub esp, 0x14
movdqa xmm0, xmmword [0x749c70]
movdqu xmmword [esp], xmm0
mov dword [esp + 0x10], 3
mov bl, 1
call fcn.00515e30
add esp, 0x14
test al, al
jne 0x517b94
push str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
push dword [esp + 0xc]
call fcn.004e7570
add esp, 8
mov esi, 0x4d
jmp 0x5170c1
sub esp, 0x14
movdqa xmm0, xmmword [0x749c60]
movdqu xmmword [esp], xmm0
mov dword [esp + 0x10], 3
call fcn.00515e30
add esp, 0x14
jmp 0x517b18
cmp dword [eax + 0x24], 0
jne 0x517b29
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov byte [eax + 0x48], bl
mov dword [eax], 0
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x3c], 1
mov ebx, dword [esp + 8]
jne 0x517cd0
push ebx
call fcn.0051a9c0
add esp, 4
lea eax, [esp + 0x68]
push 0
push eax
push ebx
push dword [esp + 0x28]
call fcn.0051aa20
add esp, 0x10
test al, al
jne 0x517be1
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
inc dword [eax + 0x18]
push ebx
call fcn.0051a9f0
add esp, 4
mov eax, dword [esp + 0x14]
cmp dword [eax], 0
je 0x517cd0
lea eax, [esp + 0x64]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x517c94
test ebx, ebx
mov edi, dword [esp + 0x20]
je 0x517c2c
cmp byte [ebx + 0x683], 1
jne 0x517c2c
push str.schannel:_using_IP_address__SNI_is_not_supported_by_OS.
push ebx
call fcn.004e7630
add esp, 8
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x47], 1
jne 0x5189ed
lea esi, [esp + 0x130]
xor eax, eax
dec eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi], xmm0
mov dword [esp + 0x23c], 2
push dword [edi + 0x10]
push esi
call fcn.0051c520
add esp, 8
mov dword [esp + 0x60], eax
test eax, eax
je 0x51895e
push str.Error_setting_ALPN
push ebx
call fcn.004e7570
add esp, 8
jmp 0x517109
push str.schannel:_failed_to_receive_handshake__SSL_TLS_connection_failed
jmp 0x517c7f
lea eax, [esp + 0xb8]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test ebx, ebx
mov edi, dword [esp + 0x20]
je 0x517c2c
test eax, eax
jne 0x517c15
jmp 0x517c2c
push str.schannel:_TLS_1.3_not_supported_on_Windows_prior_to_11
push dword [esp + 0xc]
jmp 0x517c80
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
jmp 0x517c7f
mov dword [esp + 0x38], esi
mov edi, ebx
mov ebx, dword [esp + 0x1c]
mov esi, dword [ebx + 8]
push ebx
call fcn.0051abc0
add esp, 4
push edi
mov edi, eax
push ebx
call fcn.0051abf0
add esp, 8
mov dword [esp + 0xb4], 0
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x2c], ecx
mov ecx, 0x1808
cmp byte [edi + 0x39], 1
jne 0x517d46
mov ecx, dword [esp + 0x2c]
cmp byte [ecx + 0x48], 0
mov edx, 8
mov ecx, 0x20
cmovne ecx, edx
cmp byte [eax + 0x63], 1
je 0x517d40
cmp byte [eax + 0x65], 1
je 0x517d38
or ecx, 0x200
jmp 0x517d46
or ecx, 0x1a00
jmp 0x517d46
or ecx, 0x1800
mov esi, ecx
or esi, 4
cmp byte [edi + 0x3a], 0
cmovne esi, ecx
cmp byte [eax + 0x67], 0
je 0x517d70
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x517d96
mov eax, str.schannel:_enabled_automatic_use_of_client_certificate
cmp byte [ebx + 0x683], 1
je 0x517d8c
jmp 0x517d96
and esi, 0xffffffaf
or esi, 0x10
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x517d96
mov eax, str.schannel:_disabled_automatic_use_of_client_certificate
cmp byte [ebx + 0x683], 0
je 0x517d96
push eax
push ebx
call fcn.004e7630
add esp, 8
movzx eax, byte [edi + 0x38]
cmp eax, 7
ja 0x517cc9
mov ecx, 0xf3
bt ecx, eax
jae 0x517e12
mov dword [esp + 0x28], edi
mov dword [esp + 0x48], esi
push dword [esp + 0x1c]
call fcn.0051abc0
add esp, 4
movzx edi, byte [eax + 0x38]
mov ebx, dword [eax + 0x34]
test ebx, 0xfffeffff
jne 0x517df9
sub esp, 0x14
movdqa xmm0, xmmword [0x749c80]
movdqu xmmword [esp], xmm0
mov dword [esp + 0x10], 3
call fcn.00515e30
add esp, 0x14
movzx ebx, al
or ebx, 6
shl ebx, 0x10
sar ebx, 0x10
mov dword [esp + 0xc], 0
mov esi, 0
cmp ebx, edi
jl 0x517e84
inc ebx
xor esi, esi
jmp 0x517e3d
push str.SSL_versions_not_supported
push ebx
call fcn.004e7570
add esp, 8
mov esi, 4
jmp 0x5170c1
or esi, 0x80
jmp case.default.0x517e45
or esi, 0x800
inc edi
cmp ebx, edi
je 0x517e84
lea eax, [edi - 4]
cmp eax, 3
ja case.default.0x517e45
jmp dword [eax*4 + 0x74b148]
or esi, 0x200
jmp case.default.0x517e45
sub esp, 0x14
movdqa xmm0, xmmword [0x749c80]
movdqu xmmword [esp], xmm0
mov dword [esp + 0x10], 3
call fcn.00515e30
add esp, 0x14
test al, al
je 0x517cbe
or esi, 0x2000
jmp case.default.0x517e45
mov ebx, dword [esp + 8]
mov eax, dword [ebx + 0x3c8]
mov edx, dword [ebx + 0x3dc]
mov ecx, eax
or ecx, edx
mov edi, dword [esp + 0x28]
je 0x5180a0
xor ecx, ecx
dec ecx
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0x140], ecx
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x130], xmm0
test edx, edx
mov dword [esp + 0x34], edx
je 0x5190ce
mov eax, dword [edx]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 4]
mov dword [esp + 0xc], eax
xor ecx, ecx
xor edi, edi
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x408]
test eax, eax
je 0x517f10
push 0x74a1c6
push eax
mov ebx, ecx
call fcn.00508c30
mov ecx, ebx
mov edx, dword [esp + 0x3c]
add esp, 8
test eax, eax
je 0x518c0b
xor eax, eax
dec eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
mov ebx, str._memory_blob_
test edx, edx
jne 0x517f34
mov eax, dword [esp + 8]
mov ebx, dword [eax + 0x3c8]
test ecx, ecx
je 0x517f45
push ecx
call fcn.005464a0
mov edx, dword [esp + 0x38]
add esp, 4
test edx, edx
mov dword [esp + 0x24], ebx
je 0x519410
mov eax, dword [esp + 0x10]
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x418]
mov dword [esp + 0xc], 0
mov ebx, 0
test eax, eax
je 0x517f8d
push eax
call fcn.0066e590
add esp, 4
mov ebx, eax
mov ecx, dword [fcn.00546590]
lea edi, [ebx*2 + 2]
call dword [0x7a29f4]
push edi
call ecx
add esp, 4
test eax, eax
je 0x51803b
mov edi, eax
xor edx, edx
mov eax, 0
test ebx, ebx
je 0x517fda
lea eax, [ebx + 1]
push eax
push edi
push ebx
mov eax, dword [esp + 0x14]
push dword [eax + 0x418]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
test eax, eax
mov ecx, 0
cmovg ecx, eax
cmp eax, ebx
cmovg ecx, edx
mov word [edi + ecx*2], 0
sub esp, 0x14
movdqa xmm0, xmmword [0x7417c0]
movdqu xmmword [esp], xmm0
mov dword [esp + 0x10], 3
call fcn.00515e30
add esp, 0x14
movzx eax, al
shl eax, 0xf
lea ecx, [esp + 0x100]
push eax
push edi
push ecx
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
mov dword [esp + 0xc], eax
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push edi
call ecx
add esp, 4
cmp dword [esp + 0x34], 0
jne 0x518057
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push dword [esp + 0x10]
call ecx
add esp, 4
mov eax, dword [esp + 0xc]
test eax, eax
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0x28]
je 0x519468
sub esp, 0x18
movd xmm0, dword [0x749d30]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], eax
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0xb4], eax
test eax, eax
je 0x5194dc
mov ecx, dword [fcn.00546650]
call dword [0x7a29f4]
push 0x20
push 1
call ecx
add esp, 8
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
test eax, eax
je 0x51819a
mov dword [eax + 0x18], 1
mov eax, dword [ecx]
mov ecx, dword [esp + 0xc]
mov dword [eax + 0x14], ecx
cmp dword [edi + 0x10], 0
je 0x5181d9
lea eax, [esp + 0x130]
push 0xbc
push 0xff
push eax
call fcn.006547d0
add esp, 0xc
mov ecx, dword [edi + 0x10]
pxor xmm0, xmm0
movdqu xmmword [esp + 0xec], xmm0
movdqu xmmword [esp + 0xdc], xmm0
movdqu xmmword [esp + 0xcc], xmm0
mov dword [esp + 0xfc], 0
mov dword [esp + 0xc8], 4
mov eax, dword [esp + 0x48]
mov dword [esp + 0xf8], eax
mov dword [esp + 0xe8], esi
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x518419
test ebx, ebx
je 0x518170
and esi, 0x2000
je 0x518170
cmp byte [ebx + 0x683], 1
jne 0x518170
push str.schannel:_WARNING:_This_version_of_Schannel_may_negotiate_a_less_secure_TLS_version_than_TLS_1.3_because_the_user_set_an_algorithm_cipher_list.
push ebx
call fcn.004e7630
add esp, 8
mov eax, str.schannel:_This_version_of_Schannel_does_not_support_setting_an_algorithm_cipher_list_and_TLS_1.3_cipher_list_at_the_same_time
cmp dword [edi + 0x14], 0
je 0x51818f
push eax
push ebx
call fcn.004e7570
add esp, 8
mov esi, 0x3b
jmp 0x5170c1
xor edi, edi
mov ecx, dword [esp + 0xc]
jmp 0x5183ac
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.004e7570
add esp, 8
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x5181ba
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov esi, 0x1b
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5170c1
push 0
push eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
jmp 0x5170c1
sub esp, 0x14
movdqa xmm0, xmmword [0x749c90]
movdqu xmmword [esp], xmm0
mov dword [esp + 0x10], 3
call fcn.00515e30
add esp, 0x14
test al, al
je 0x5180dd
pxor xmm0, xmm0
movdqu xmmword [esp + 0xe4], xmm0
movdqu xmmword [esp + 0xd8], xmm0
movdqu xmmword [esp + 0xc8], xmm0
pxor xmm1, xmm1
movq qword [esp + 0xac], xmm1
movdqu xmmword [esp + 0x9c], xmm0
movdqu xmmword [esp + 0x190], xmm0
movdqu xmmword [esp + 0x180], xmm0
movdqu xmmword [esp + 0x170], xmm0
movdqu xmmword [esp + 0x160], xmm0
movdqu xmmword [esp + 0x150], xmm0
movdqu xmmword [esp + 0x140], xmm0
movdqu xmmword [esp + 0x130], xmm0
xor eax, eax
mov dword [esp + 0x12c], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x120], eax
mov ebx, dword [edi + 0x14]
test ebx, ebx
je 0x51888f
lea eax, [esp + 0x14c]
mov dword [esp + 0x44], eax
mov eax, 0x5f4d4343
mov ecx, 0x5f383231
mov edx, 0x5f534541
mov edi, 0x5f534c54
movd xmm2, edi
lea edi, [esp + 0x100]
movdqu xmmword [edi + 0x10], xmm0
movdqu xmmword [edi], xmm0
movd xmm0, edx
mov dl, 1
mov dword [esp + 0x18], edx
movd xmm1, ecx
xor ecx, ecx
punpckldq xmm2, xmm0
movd xmm0, eax
punpckldq xmm1, xmm0
punpcklqdq xmm2, xmm1
movdqa xmmword [esp + 0x50], xmm2
mov dl, 1
mov al, 1
mov dword [esp + 0x40], eax
mov al, 1
mov dword [esp + 0x24], eax
mov al, 1
mov dword [esp + 0x10], eax
jmp 0x5185d1
push 0x11
push str.USE_STRONG_CRYPTO
mov esi, dword [esp + 0x14]
push esi
call fcn.0066e620
add esp, 0xc
test eax, eax
je 0x518340
push 0x15
push str.SCH_USE_STRONG_CRYPTO
push esi
call fcn.0066e620
add esp, 0xc
test eax, eax
jne 0x519503
or byte [esp + 0xfa], 0x40
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0x28]
jmp 0x51839a
mov ebx, dword [edi + str.CALG_MD2]
add edi, 8
je 0x518310
push ebx
call fcn.0066e590
add esp, 4
cmp esi, eax
jne 0x518352
push esi
push dword [esp + 0x10]
push ebx
call fcn.0066e620
add esp, 0xc
test eax, eax
jne 0x518352
mov eax, dword [edi + 0x74a8d8]
test eax, eax
je 0x518310
mov edi, dword [esp + 0x28]
mov dword [esp + edi*4 + 0x130], eax
inc edi
mov ebx, dword [esp + 8]
mov esi, dword [esp + 0xc]
push 0x3a
push esi
call fcn.00654930
add esp, 8
lea ecx, [eax + 1]
test eax, eax
je 0x518402
cmp byte [ecx], 0
je 0x518402
cmp edi, 0x2e
jg 0x518402
mov dword [esp + 0x28], edi
xor eax, eax
push eax
push eax
mov dword [esp + 0x14], ecx
push ecx
call fcn.006674f7
add esp, 0xc
test eax, eax
jne 0x518386
push 0x3a
mov edi, dword [esp + 0x10]
push edi
call fcn.00654930
add esp, 8
test eax, eax
je 0x5183f5
mov esi, eax
sub esi, edi
mov ebx, str.CALG_MD2
mov edi, 0xfffffe88
jmp 0x51835d
push edi
call fcn.0066e590
add esp, 4
mov esi, eax
jmp 0x5183e6
lea eax, [esp + 0x130]
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe0], edi
jmp 0x518425
or eax, 0x400000
mov dword [esp + 0xf8], eax
cmp dword [esp + 0xb4], 0
je 0x518448
mov dword [esp + 0xcc], 1
lea eax, [esp + 0xb4]
mov dword [esp + 0xd0], eax
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x2c]
mov esi, dword [eax]
lea edi, [esi + 8]
call dword [0x7a29f4]
xor eax, eax
lea edx, [esp + 0xc8]
push edi
push esi
push eax
push eax
push edx
push eax
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
push eax
call ecx
mov esi, eax
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x51848c
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x518501
mov edi, 0x100
lea eax, [esp + 0x130]
push edi
push 0xff
push eax
call fcn.006547d0
add esp, 0xc
push edi
lea eax, [esp + 0x134]
push eax
push esi
call fcn.00509830
add esp, 0xc
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push ebx
call fcn.004e7570
add esp, 0xc
mov ecx, dword [fcn.005464a0]
mov ebx, dword [esp + 0x2c]
mov edi, dword [ebx]
call dword [0x7a29f4]
push edi
call ecx
add esp, 4
mov dword [ebx], 0
xor eax, eax
cmp esi, 0x80090300
setne al
lea esi, [eax*8 + 0x1b]
jmp 0x5170c1
xor eax, eax
mov dword [esp + 0x60], eax
push eax
mov esi, dword [esp + 0x3c]
push esi
push ebx
call fcn.0051b510
add esp, 0xc
test eax, eax
je 0x51853d
push eax
call fcn.004e6c90
add esp, 4
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [ecx + 0x10], eax
mov eax, dword [edx]
cmp dword [eax + 0x10], 0
jne 0x517bf7
jmp 0x5170ea
push str.Failed_to_set_SNI
jmp 0x517c7f
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x28]
jmp 0x5185b9
mov dword [esp + 0x24], 0
jmp 0x5185b9
push ebx
call fcn.0066e590
add esp, 4
mov edi, eax
jmp 0x518606
test byte [esp + 0x18], 1
je 0x519511
movdqu xmm0, xmmword [esp + 0x100]
movdqu xmm1, xmmword [esp + 0x107]
pcmpeqb xmm1, xmmword [str._128_CCM_SHA256]
pcmpeqb xmm0, xmmword [esp + 0x50]
pand xmm0, xmm1
pmovmskb eax, xmm0
cmp eax, 0xffff
jne 0x519511
mov dword [esp + 0x18], 0
test edi, edi
mov ecx, dword [esp + 0x34]
je 0x518735
inc edi
inc ecx
mov ebx, edi
test edi, edi
je 0x518735
cmp byte [ebx], 0
je 0x518735
cmp ecx, 4
ja 0x518735
mov dword [esp + 0x34], ecx
mov dword [esp + 0xc], edx
push 0x3a
push ebx
call fcn.00654930
add esp, 8
test eax, eax
mov dword [esp + 0x28], eax
je 0x518563
mov edi, eax
sub edi, ebx
cmp edi, 0x20
jae 0x518933
push edi
push ebx
lea eax, [esp + 0x108]
push eax
call fcn.0066e6a0
add esp, 0xc
mov byte [esp + edi + 0x100], 0
test byte [esp + 0x10], 1
je 0x518665
movdqu xmm0, xmmword [esp + 0x100]
pcmpeqb xmm0, xmmword [str.TLS_AES_256_GCM__128_GCM_SHA256]
movdqu xmm1, xmmword [esp + 0x107]
pcmpeqb xmm1, xmmword [str._256_GCM_SHA384]
pand xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
je 0x518547
test byte [esp + 0x24], 1
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x28]
je 0x5186ad
movdqu xmm0, xmmword [esp + 0x100]
pcmpeqb xmm0, xmmword [str.TLS_AES_128_GCM_POLY1305_SHA256]
movdqu xmm1, xmmword [esp + 0x107]
pcmpeqb xmm1, xmmword [0x749cc0]
pand xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
je 0x518559
test byte [esp + 0x40], 1
je 0x5186e5
movdqu xmm0, xmmword [esp + 0x100]
pcmpeqb xmm0, xmmword [str.TLS_CHACHA20_POL28_CCM_8_SHA256]
movdqu xmm1, xmmword [esp + 0x10d]
pcmpeqb xmm1, xmmword [0x749ce0]
pand xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
je 0x518728
test dl, 1
je 0x518573
movdqu xmm0, xmmword [esp + 0x100]
movdqu xmm1, xmmword [esp + 0x109]
pcmpeqb xmm1, xmmword [0x749d00]
pcmpeqb xmm0, xmmword [esp + 0x50]
pand xmm0, xmm1
pmovmskb eax, xmm0
cmp eax, 0xffff
jne 0x518573
xor edx, edx
jmp 0x5185b9
mov dword [esp + 0x40], 0
jmp 0x5185b9
test byte [esp + 0x10], 1
je 0x518753
test byte [esp + 0x24], 1
je 0x518753
test byte [esp + 0x40], 1
je 0x518753
test dl, 1
jne 0x51952c
test dl, 1
jne 0x51876e
test byte [esp + 0x18], 1
jne 0x51876e
xor eax, eax
lea ecx, [esp + 0x130]
mov dword [esp + 0x44], ecx
jmp 0x5187e9
lea eax, [esp + 0x128]
mov dword [eax], 0x200020
mov dword [eax + 4], str.ChainingModeCCM
mov dword [esp + 0x130], 2
mov dword [esp + 0x140], eax
mov dword [esp + 0x13c], 1
mov dword [esp + 0x134], 0x80008
mov dword [esp + 0x138], 0x74a3d6
mov eax, dword [esp + 0x18]
xor al, dl
test al, 1
je 0x5187e6
test dl, 1
jne 0x5187d1
mov dword [esp + 0x148], 0x40
jmp 0x5187dc
mov dword [esp + 0x144], 0x80
mov ecx, str.SHA384
xor eax, eax
inc eax
jmp 0x5187ee
xor eax, eax
inc eax
mov ecx, str.SHA384
test byte [esp + 0x10], 1
jne 0x518801
mov ecx, str.SHA256
test byte [esp + 0x24], 1
je 0x51885e
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x24]
xor cl, byte [esp + 0x10]
and cl, 1
movzx edx, cl
or edx, 2
xor ebx, ebx
test cl, cl
mov edi, 0x74a3d6
cmovne edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x44]
mov dword [ecx], edx
sete bl
lea edx, [ebx*4 + 4]
mov word [ecx + 4], dx
mov word [ecx + 6], dx
mov dword [ecx + 8], edi
lea edx, [esp + 0x120]
mov dword [edx], 0x200020
mov dword [edx + 4], str.ChainingModeGCM
mov dword [ecx + 0x10], edx
mov dword [ecx + 0xc], 1
inc eax
test byte [esp + 0x40], 1
je 0x51888f
lea ecx, [eax + eax*8]
lea ecx, [ecx + ecx*2]
add ecx, eax
mov dword [esp + ecx + 0x130], 2
mov dword [esp + ecx + 0x134], 0x240024
mov dword [esp + ecx + 0x138], str.CHACHA20_POLY1305
inc eax
lea ecx, [esp + 0x130]
lea edx, [esp + 0x9c]
mov dword [edx + 0x10], ecx
mov dword [edx + 0xc], eax
mov dword [esp + 0xf0], edx
mov dword [esp + 0xec], 1
mov dword [esp + 0xc8], 5
mov eax, dword [esp + 0x48]
or eax, 0x400000
mov dword [esp + 0xe8], eax
not esi
mov dword [edx + 8], esi
cmp dword [esp + 0xb4], 0
je 0x5188f8
mov dword [esp + 0xd0], 1
lea eax, [esp + 0xb4]
mov dword [esp + 0xd4], eax
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x2c]
mov esi, dword [eax]
lea edi, [esi + 8]
call dword [0x7a29f4]
xor eax, eax
lea edx, [esp + 0xc8]
push edi
push esi
push eax
push eax
push edx
push eax
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
push eax
call ecx
mov esi, eax
mov ebx, dword [esp + 8]
jmp 0x51847a
push str.schannel:_Cipher_name_too_long__not_checked
push dword [esp + 0xc]
jmp 0x51817d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.select_poll_on_SSL_TLS_socket__errno:__d
push dword [esp + 0x10]
call fcn.004e7570
add esp, 0xc
jmp 0x517109
lea ebx, [esp + 0x242]
mov edi, dword [esp + 0x154]
push edi
push esi
push ebx
call fcn.00654250
add esp, 0xc
push edi
add edi, 0xa
call fcn.0051ed20
add esp, 4
mov word [ebx - 2], ax
movzx eax, ax
add eax, 6
mov dword [ebx - 0xa], eax
mov ebx, dword [esp + 8]
lea eax, [esp + 0x78]
mov dword [eax], edi
mov dword [eax + 4], 0x12
lea ecx, [esp + 0x238]
mov dword [eax + 8], ecx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], 1
mov eax, dword [esp + 0x20]
push dword [eax + 0x10]
push esi
call fcn.0051c5b0
add esp, 8
test ebx, ebx
je 0x518a0b
cmp byte [ebx + 0x683], 1
jne 0x518a0b
push esi
push str.ALPN:_curl_offers__s
push ebx
call fcn.004e7630
add esp, 0xc
jmp 0x518a0b
xor eax, eax
lea ecx, [esp + 0x78]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], 1
xor ecx, ecx
lea eax, [esp + 0x90]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x8c], eax
xor esi, esi
inc esi
mov dword [esp + 0x88], esi
mov eax, 0x811c
mov edi, dword [esp + 0x14]
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x30]
movzx eax, byte [eax + 0x67]
xor eax, esi
shl eax, 7
or eax, 0x811c
mov dword [edi + 0x38], eax
mov ecx, dword [fcn.00546650]
call dword [0x7a29f4]
push 0x10
push esi
call ecx
add esp, 8
mov dword [edi + 4], eax
test eax, eax
je 0x51712b
mov esi, eax
mov eax, dword [0x7b1670]
mov ebx, esi
add ebx, 8
cmp byte [edi + 0x47], 0
mov ecx, dword [eax + 0x18]
lea edx, [esp + 0x6c]
mov eax, 0
cmove edx, eax
mov dword [esp + 0x28], edx
lea eax, [edi + 0x3c]
mov dword [esp + 0x38], eax
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov edx, dword [edi + 0x38]
mov dword [esp + 0x30], edx
mov eax, dword [eax + 0x10]
mov dword [esp + 0x2c], eax
call dword [0x7a29f4]
lea eax, [esp + 0x84]
push ebx
push dword [esp + 0x3c]
push eax
push esi
xor eax, eax
push eax
push dword [esp + 0x3c]
push eax
push eax
xor eax, eax
push dword [esp + 0x50]
push dword [esp + 0x50]
push eax
push dword [esp + 0x38]
call ecx
cmp eax, 0x90312
jne 0x518b76
lea edi, [esp + 0x60]
push edi
push dword [esp + 0x94]
push dword [esp + 0xa0]
push dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
push dword [eax + 4]
call fcn.004dfe60
add esp, 0x14
mov esi, eax
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
mov ebx, dword [esp + 0x98]
call dword [0x7a29f4]
push ebx
call ecx
cmp dword [edi], 0
mov eax, dword [esp + 0x90]
jne 0x518b66
cmp eax, esi
jne 0x518b66
mov ecx, dword [esp + 0x14]
mov byte [ecx + 0x34], 0
xor eax, eax
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x43], eax
mov eax, dword [esp + 0x20]
mov dword [eax + 4], 1
mov ebx, dword [esp + 8]
mov edi, dword [ebp + 0xc]
mov edx, dword [esp + 0x3c]
jmp 0x5171a3
push eax
push esi
push str.schannel:_failed_to_send_initial_handshake_data:_sent__zd_of__lu_bytes
push dword [esp + 0x14]
jmp 0x517101
mov esi, eax
lea eax, [esp + 0x130]
push 0x100
push 0xff
push eax
call fcn.006547d0
add esp, 0xc
mov ecx, dword [fcn.005464a0]
mov ebx, dword [edi + 4]
call dword [0x7a29f4]
push ebx
call ecx
add esp, 4
mov dword [edi + 4], 0
mov ebx, str.schannel:_initial_InitializeSecurityContext_failed:__s
cmp esi, 0x80090300
je 0x518bca
cmp esi, 0x80090322
je 0x518bd1
mov edi, 0x23
jmp 0x518be0
mov edi, 0x1b
jmp 0x518be0
mov edi, 0x3c
mov ebx, str.schannel:_SNI_or_certificate_check_failed:__s
mov esi, 0x80090322
lea eax, [esp + 0x130]
push 0x100
push eax
push esi
call fcn.00509830
add esp, 0xc
push eax
push ebx
push dword [esp + 0x10]
call fcn.004e7570
add esp, 0xc
mov esi, edi
jmp 0x5170c1
mov eax, str._memory_blob_
test edx, edx
mov ecx, dword [esp + 8]
jne 0x518c1e
mov eax, dword [ecx + 0x3c8]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push ecx
call fcn.004e7570
add esp, 0xc
mov esi, 0x3a
test ebx, ebx
je 0x5170c1
push ebx
call fcn.005464a0
add esp, 4
jmp 0x5170c1
xor ebx, ebx
inc ebx
mov esi, dword [esp + 0x20]
push edi
push dword [esi + 0x10]
call dword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
test eax, eax
je 0x518c77
mov edi, eax
test byte [eax], 1
je 0x518c4f
mov eax, dword [edi + 4]
test eax, eax
je 0x518c4f
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x518c4f
jmp 0x519541
push dword [esp + 0x238]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, dword [esp + 0x14]
mov dword [eax + 4], 5
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 4]
mov edi, dword [ebp + 0xc]
jmp 0x518ca0
cmp eax, 4
je 0x518cd5
xor esi, esi
mov ecx, 0
cmp eax, 5
jne 0x518cc7
mov dword [edx], 2
mov eax, dword [edx + 0x14]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0xc]
mov dword [ecx + 0x254], eax
mov cl, 1
mov byte [edi], cl
mov dword [edx + 4], 0
jmp 0x5170c1
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
mov eax, ebx
mov dword [esp + 0x14], edx
mov ebx, dword [edx + 0x14]
push eax
push ecx
call fcn.0051abf0
add esp, 8
mov edi, eax
mov dword [esp + 0x238], 0
push 0x108
push 0xff
lea eax, [esp + 0x138]
push eax
call fcn.006547d0
add esp, 0xc
mov esi, 0x23
cmp dword [ebx], 0
je 0x5170c1
mov eax, dword [ebx + 0x3c]
cmp eax, dword [ebx + 0x38]
jne 0x518d66
cmp byte [ebx + 0x47], 1
jne 0x518e62
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x2c]
mov esi, dword [ebx + 4]
call dword [0x7a29f4]
lea eax, [esp + 0x130]
push eax
push 0x23
push esi
call ecx
test eax, eax
je 0x518de7
push str.schannel:_failed_to_retrieve_ALPN_result
jmp 0x517cc3
test al, 8
jne 0x518d7e
push str.schannel:_failed_to_setup_sequence_detection
push dword [esp + 0xc]
call fcn.004e7570
add esp, 8
mov eax, dword [ebx + 0x3c]
test al, 4
jne 0x518d96
push str.schannel:_failed_to_setup_replay_detection
push dword [esp + 0xc]
call fcn.004e7570
add esp, 8
mov eax, dword [ebx + 0x3c]
test al, 0x10
jne 0x518dae
push str.schannel:_failed_to_setup_confidentiality
push dword [esp + 0xc]
call fcn.004e7570
add esp, 8
mov eax, dword [ebx + 0x3c]
bt eax, 8
jb 0x518dc8
push str.schannel:_failed_to_setup_memory_allocation
push dword [esp + 0xc]
call fcn.004e7570
add esp, 8
mov eax, dword [ebx + 0x3c]
test ax, ax
js 0x5170c1
push str.schannel:_failed_to_setup_stream_orientation
push dword [esp + 0xc]
call fcn.004e7570
add esp, 8
jmp 0x5170c1
cmp dword [esp + 0x130], 1
mov esi, 0x23
jne 0x518e48
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0xc]
mov al, byte [eax + 0x3b9]
mov byte [esp + 0x20], al
lea eax, [esp + 0x139]
movzx ecx, byte [eax - 1]
push ecx
push eax
push dword [esp + 0x10]
push edx
call fcn.0051c650
add esp, 0x10
cmp byte [ebx + 0x46], 1
jne 0x518e62
cmp byte [esp + 0x20], 0
je 0x518e62
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
mov cl, byte [esp + 0x20]
cmp cl, byte [eax + 0x3b9]
je 0x518e62
push str.schannel:_server_selected_an_ALPN_protocol_too_late
jmp 0x518dd6
cmp byte [ebx + 0x46], 0
jne 0x518e62
xor eax, eax
push eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x28]
call fcn.0051c650
add esp, 0x10
cmp byte [edi + 0x3c], 1
jne 0x518f0e
mov byte [esp + 0x100], 0
xor eax, eax
lea edi, [esp + 0xc8]
mov dword [edi], eax
mov esi, dword [esp + 8]
push esi
call fcn.0051a9c0
add esp, 4
xor eax, eax
push eax
push edi
push esi
mov edi, dword [esp + 0x28]
push edi
call fcn.0051aa20
add esp, 0x10
test al, al
jne 0x518ebb
mov eax, dword [esp + 0xc8]
cmp eax, dword [ebx]
je 0x518f02
push eax
mov esi, dword [esp + 0xc]
push esi
call fcn.0051ada0
add esp, 8
lea eax, [esp + 0x100]
push eax
push 0x20
push dword [ebx]
push esi
push edi
call fcn.0051ade0
add esp, 0x14
test eax, eax
je 0x518ef3
mov edi, eax
push esi
call fcn.0051a9f0
add esp, 4
push str.schannel:_failed_to_store_credential_handle
push esi
call fcn.004e7570
add esp, 8
jmp 0x518c04
cmp byte [esp + 0x100], 1
jne 0x518f02
mov eax, dword [ebx]
inc dword [eax + 0x18]
push dword [esp + 8]
call fcn.0051a9f0
add esp, 4
mov eax, dword [esp + 8]
cmp byte [eax + 0x41c], 1
jne 0x518c84
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x2c]
mov esi, dword [ebx + 4]
call dword [0x7a29f4]
lea eax, [esp + 0x238]
push eax
push 0x53
push esi
call ecx
test eax, eax
sete al
mov edi, dword [esp + 0x238]
test edi, edi
setne cl
and cl, al
cmp cl, 1
je 0x518f70
push str.schannel:_failed_to_retrieve_remote_cert_context
push dword [esp + 0xc]
call fcn.004e7570
add esp, 8
mov esi, 0x3c
jmp 0x5170c1
push 0
push dword [edi + 0x10]
call dword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
test eax, eax
je 0x518fbf
test byte [eax], 1
je 0x518f99
xor esi, esi
cmp dword [eax + 4], 0
je 0x518f9b
xor ecx, ecx
cmp dword [eax + 8], 0
setne cl
mov esi, ecx
jmp 0x518f9b
xor esi, esi
mov ebx, dword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
push eax
push dword [edi + 0x10]
call ebx
test eax, eax
je 0x518fc3
test byte [eax], 1
je 0x518fa1
cmp dword [eax + 4], 0
je 0x518fa1
cmp dword [eax + 8], 1
sbb esi, 0xffffffff
jmp 0x518fa1
xor ebx, ebx
jmp 0x518fc5
mov ebx, esi
push ebx
push dword [esp + 0xc]
call fcn.0051b370
add esp, 8
mov esi, eax
test eax, eax
je 0x518fea
push dword [esp + 0x238]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
jmp 0x5170c1
mov eax, dword [esp + 0x238]
push 0
mov dword [esp + 0x24], eax
push dword [eax + 0x10]
call dword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
xor esi, esi
dec esi
test eax, eax
je 0x518fd8
mov edi, eax
mov dword [esp + 0xc], ebx
mov ecx, dword [eax + 4]
test byte [eax], 1
sete al
mov dword [esp + 0x30], ecx
test ecx, ecx
sete cl
xor ebx, ebx
or cl, al
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
jne 0x518c4b
mov eax, dword [edi + 8]
test eax, eax
je 0x518c4b
mov esi, dword [esp + 0x30]
add eax, esi
mov ecx, dword [esp + 0xc]
dec ecx
xor edx, edx
cmp dword [esp + 0x2c], esi
cmovne edx, ecx
push eax
push esi
push edx
push dword [esp + 0x14]
call fcn.0051d1f0
add esp, 0x10
test eax, eax
je 0x518c48
mov esi, eax
push edi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
jmp 0x518fd8
push 0x100
push 0xff
lea eax, [esp + 0x138]
push eax
call fcn.006547d0
add esp, 0xc
mov dword [esp + 0xc], 0x23
mov esi, str.schannel:_next_InitializeSecurityContext_failed:__s
mov ebx, dword [esp + 8]
jmp 0x517994
push ecx
push eax
push dword [esp + 0x28]
push ebx
call fcn.0051b580
add esp, 0x10
test eax, eax
je 0x5190c7
mov edi, eax
push str.SSL:_public_key_does_not_match_pinned_public_key
jmp 0x517915
xor edi, edi
jmp 0x51786d
push eax
call fcn.004e6c90
add esp, 4
test eax, eax
je 0x5170ea
push 0x5c
push eax
mov ebx, eax
call fcn.00654e0b
add esp, 8
mov dword [esp + 0xc], 0x3a
test eax, eax
mov dword [esp + 0x24], ebx
je 0x51922e
mov dword [esp + 0x10], eax
mov edi, eax
sub edi, ebx
sar edi, 1
push edi
push str.CurrentUser
push ebx
call fcn.0066f394
add esp, 0xc
test eax, eax
je 0x5191f7
push edi
push str.LocalMachine
push ebx
call fcn.0066f394
add esp, 0xc
test eax, eax
je 0x5191ed
push edi
push str.CurrentService
push ebx
call fcn.0066f394
add esp, 0xc
test eax, eax
je 0x5191e3
push edi
push str.Services
push ebx
call fcn.0066f394
add esp, 0xc
test eax, eax
je 0x5191d9
push edi
push str.Users
push ebx
call fcn.0066f394
add esp, 0xc
test eax, eax
je 0x5191cf
push edi
push str.CurrentUserGroupPolicy
push ebx
call fcn.0066f394
add esp, 0xc
test eax, eax
je 0x5191c5
push edi
push str.LocalMachineGroupPolicy
push ebx
call fcn.0066f394
add esp, 0xc
test eax, eax
je 0x5191bb
push edi
push str.LocalMachineEnterprise
push dword [esp + 0x2c]
call fcn.0066f394
add esp, 0xc
test eax, eax
jne 0x51922e
mov dword [esp + 0x18], 0x90000
jmp 0x5191ff
mov dword [esp + 0x18], 0x80000
jmp 0x5191ff
mov dword [esp + 0x18], 0x70000
jmp 0x5191ff
mov dword [esp + 0x18], 0x60000
jmp 0x5191ff
mov dword [esp + 0x18], 0x50000
jmp 0x5191ff
mov dword [esp + 0x18], 0x40000
jmp 0x5191ff
mov dword [esp + 0x18], 0x20000
jmp 0x5191ff
mov dword [esp + 0x18], 0x10000
mov eax, dword [esp + 0x10]
add eax, 2
push 0x5c
mov ebx, eax
push eax
call fcn.00654e0b
add esp, 8
test eax, eax
je 0x51922e
mov edi, eax
add eax, 2
mov dword [esp + 0x10], eax
push eax
call fcn.0066e7c4
add esp, 4
cmp eax, 0x28
je 0x51929d
mov ebx, dword [esp + 8]
mov eax, dword [ebx + 0x3c8]
cmp byte [eax], 0
je 0x51926e
push 0x739d32
push eax
call fcn.004e6e50
add esp, 8
test eax, eax
je 0x51926e
mov edi, eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
jmp 0x517ee4
push dword [ebx + 0x3c8]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push ebx
call fcn.004e7570
add esp, 0xc
push dword [esp + 0x24]
call fcn.005464a0
add esp, 4
jmp 0x5179b5
mov dword [esp + 0xc], 0x1b
jmp 0x51922e
mov word [edi], 0
mov ecx, dword [0x7aa378]
call dword [0x7a29f4]
push ebx
call ecx
add esp, 4
mov word [edi], 0x5c
test eax, eax
je 0x519293
mov ebx, dword [esp + 0x18]
mov ecx, ebx
or ecx, 0x4000
xor edx, edx
mov edi, eax
push eax
push ecx
push edx
push edx
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
test eax, eax
je 0x519370
mov dword [esp + 0xc], eax
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push edi
call ecx
add esp, 4
lea eax, [esp + 0x130]
lea ebx, [esp + 0xc8]
mov dword [ebx + 4], eax
mov dword [ebx], 0x14
xor ecx, ecx
push ecx
push ecx
push ebx
push eax
push 4
push 0x28
push dword [esp + 0x28]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x5193aa
xor edi, edi
push edi
push ebx
push 0x10000
push edi
push 0x10001
push dword [esp + 0x20]
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0xb4], eax
push dword [esp + 0x24]
call fcn.005464a0
add esp, 4
cmp dword [esp + 0xb4], edi
je 0x5194f5
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0x28]
jmp 0x5180a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push ebx
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push dword [esp + 0x18]
call fcn.004e7570
add esp, 0x14
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push edi
call ecx
add esp, 4
push dword [esp + 0x24]
call fcn.005464a0
jmp 0x5194cf
push dword [esp + 0x24]
call fcn.005464a0
add esp, 4
jmp 0x5194f5
push edi
call fcn.0066c393
add esp, 4
xor ecx, ecx
test eax, eax
js 0x519406
mov dword [esp + 0xc], eax
push ecx
mov dword [esp + 0x1c], 0
push ecx
push edi
call fcn.0066c070
add esp, 0xc
test eax, eax
jne 0x519431
mov ecx, dword [fcn.00546590]
mov ebx, dword [esp + 0xc]
inc ebx
call dword [0x7a29f4]
push ebx
call ecx
add esp, 4
mov ebx, eax
mov cl, 1
mov dword [esp + 0x18], ecx
jmp 0x519435
mov dword [esp + 0x18], 0
jmp 0x519431
push 2
push 0
push edi
call fcn.0066c070
add esp, 0xc
test eax, eax
je 0x5193bb
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov ebx, dword [esp + 0x10]
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x51949c
push edi
push 1
push dword [esp + 0x14]
push ebx
call fcn.0066bd80
add esp, 0x10
cmp eax, 1
jne 0x51949c
push edi
call fcn.0066b31a
add esp, 4
cmp byte [esp + 0x18], 0
jne 0x517f51
jmp 0x5194a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x519487
push dword [esp + 0x24]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push ebx
call fcn.004e7570
add esp, 0xc
jmp 0x5194d2
push eax
push dword [esp + 0x28]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push ebx
call fcn.004e7570
add esp, 0x10
jmp 0x5194d2
push edi
call fcn.0066b31a
add esp, 4
mov eax, dword [esp + 8]
push dword [eax + 0x3c8]
push str.schannel:_Failed_to_read_cert_file__s
push eax
call fcn.004e7570
add esp, 0xc
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push dword [esp + 0x10]
call ecx
add esp, 4
mov esi, 0x3a
jmp 0x5170c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 0x28]
push str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
push ebx
call fcn.004e7570
add esp, 0x10
push 0
push dword [esp + 0x10]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
jmp 0x5194d2
mov eax, str.schannel:_Failed_setting_algorithm_cipher_list
mov ebx, dword [esp + 8]
jmp 0x51817b
lea eax, [esp + 0x100]
push eax
push str.schannel:_Unknown_TLS_1.3_cipher:__s
push ecx
call fcn.004e7570
add esp, 0xc
jmp 0x518185
test byte [esp + 0x18], 1
je 0x518753
push str.schannel:_All_available_TLS_1.3_ciphers_were_disabled
jmp 0x518938
add ecx, eax
mov edx, ebx
not edx
add edx, dword [esp + 0xc]
mov esi, dword [esp + 0x2c]
cmp esi, dword [esp + 0x30]
cmove edx, ebx
push ecx
push eax
push edx
push dword [esp + 0x14]
call fcn.0051d1f0
add esp, 0x10
inc ebx
test eax, eax
je 0x518c4b
jmp 0x51906a