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

Disassembly:
jmp 0x10044f30
push ebp
lea ebp, [esp - 0x2340]
mov eax, 0x2340
call fcn.10056be0
push 0xffffffffffffffff
push 0x10080e04
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x100a0000]
xor eax, ebp
mov dword [ebp + 0x233c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0x2350]
mov ebx, dword [ebp + 0x234c]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x20], eax
xor eax, eax
xor edi, edi
cmp ebx, 1
setne al
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
call fcn.1000139d
cmp byte [esi + 0x114], 2
je 0x10044ffb
cmp dword [esi + 0x9c], edi
jne 0x10044ffb
test ebx, ebx
jne 0x10044ffb
test byte [esi + 0x108], 0x80
jne 0x10044fd9
xor cl, cl
xor eax, eax
mov edx, 2
test cl, cl
cmovne eax, edx
jmp 0x10047d8d
cmp dword [esi + 0x98], 0x2000
mov edx, 2
setb cl
xor eax, eax
test cl, cl
mov byte [esi + 0xc], 1
cmovne eax, edx
jmp 0x10047d8d
cmp dword [ebp + 0x2348], 1
jne 0x10045290
cmp dword [esi + 0x9c], 3
je 0x10045030
push dword [ebp + 0x2354]
push dword [ebp - 0x20]
mov ecx, dword [esi + 8]
push ebx
push 1
push esi
call fcn.10003878
mov eax, 3
jmp 0x10047d8d
mov eax, dword [ebp + 0x2354]
test eax, eax
jne 0x1004513d
xor al, al
mov byte [ebp - 0x15], al
test ebx, ebx
jne 0x100450bb
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10045134
push eax
call sub.libssl_1_1.dll_SSL_shutdown
push ebx
push ebx
push 0xa
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x14
test eax, eax
je 0x10045134
nop
push 0x2000
lea eax, [ebp + 0xd8]
push eax
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_read
add esp, 0xc
test eax, eax
jle 0x100450a4
mov ecx, dword [esi + 8]
push eax
lea eax, [ebp + 0xd8]
push eax
push 0
push 1
push esi
call fcn.10003878
mov byte [ebp - 0x15], 1
push 0
push 0
push 0xa
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
jne 0x10045070
jmp 0x10045129
mov eax, dword [esi + 0x44]
test eax, eax
je 0x10045134
push eax
call sub.libssl_1_1.dll_SSL_shutdown
push 0
push 0
push 0xa
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x14
test eax, eax
je 0x10045134
lea ecx, [ecx]
push 0x2000
lea eax, [ebp + 0xd8]
push eax
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_read
add esp, 0xc
test eax, eax
jle 0x10045114
mov ecx, dword [esi + 8]
push eax
lea eax, [ebp + 0xd8]
push eax
push 1
push 1
push esi
call fcn.10003878
mov byte [ebp - 0x15], 1
push 0
push 0
push 0xa
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
jne 0x100450e0
mov al, byte [ebp - 0x15]
test al, al
jne 0x10045026
push 0
push 0
jmp 0x1004501a
test ebx, ebx
jne 0x100451e0
test eax, eax
jle 0x10045026
lea ecx, [ecx]
sub eax, edi
push eax
mov eax, dword [ebp - 0x20]
add eax, edi
push eax
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_write
add esp, 0xc
test eax, eax
jle 0x10045026
push 0
push 0
push 0xa
push dword [esi + 0x18]
add edi, eax
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
je 0x100451c8
push 0x2000
lea eax, [ebp + 0xd8]
push eax
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_read
add esp, 0xc
test eax, eax
jle 0x100451b3
mov ecx, dword [esi + 8]
push eax
lea eax, [ebp + 0xd8]
push eax
push 0
push 1
push esi
call fcn.10003878
push 0
push 0
push 0xa
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
jne 0x10045183
mov eax, dword [ebp + 0x2354]
cmp edi, eax
jl 0x10045150
mov eax, 3
jmp 0x10047d8d
test dword [esi + 0x108], 0x8000
je 0x100451f2
push eax
jmp 0x10045017
test eax, eax
jle 0x10045026
lea ebx, [ebx]
sub eax, edi
push eax
mov eax, dword [ebp - 0x20]
add eax, edi
push eax
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_write
add esp, 0xc
test eax, eax
jle 0x10045026
push 0
push 0
push 0xa
push dword [esi + 0x40]
add edi, eax
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
je 0x10045278
push 0x2000
lea eax, [ebp + 0xd8]
push eax
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_read
add esp, 0xc
test eax, eax
jle 0x10045263
mov ecx, dword [esi + 8]
push eax
lea eax, [ebp + 0xd8]
push eax
push 1
push 1
push esi
call fcn.10003878
push 0
push 0
push 0xa
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
jne 0x10045233
mov eax, dword [ebp + 0x2354]
cmp edi, eax
jl 0x10045200
mov eax, 3
jmp 0x10047d8d
mov eax, dword [esi + 0x9c]
cmp eax, 5
ja case.default.0x1004529f
jmp dword [eax*4 + 0x10047db4]
mov edi, dword [ebp + 0x2354]
add dword [esi + 0x98], edi
cmp edi, 0xa
jge 0x100452cd
mov ecx, esi
call fcn.10002eaa
movzx eax, al
neg eax
sbb eax, eax
and eax, 2
jmp 0x10047d8d
test ebx, ebx
je 0x100452b7
lea ecx, [ebp - 0x78]
call fcn.10002a40
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], 0
call fcn.10001262
push 0
lea eax, [ebp - 0xac]
push eax
push 0
push 0
push 0
push str.test
mov byte [ebp - 4], 1
call fcn.10002a59
mov ecx, eax
call fcn.10002ec3
mov ecx, eax
call fcn.10002d79
test al, al
je 0x100455be
push 0
push 0x303
lea eax, [ebp - 0xac]
push eax
movzx eax, byte [esi + 0xc]
push 1
push eax
lea ecx, [ebp - 0x78]
call fcn.10003067
test al, al
je 0x100455be
test dword [esi + 0x108], 0x2000
je 0x10045360
push esi
push 0x100493c0
push dword [ebp - 0x78]
call sub.libssl_1_1.dll_SSL_CTX_set_alpn_select_cb
add esp, 0xc
call fcn.10048c00
test al, al
je 0x10045379
push 0x10089338
push dword [ebp - 0x78]
call sub.libssl_1_1.dll_SSL_CTX_set_cipher_list
add esp, 8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x74]
call sub.libcrypto_1_1.dll_BIO_write
push dword [ebp - 0x6c]
call sub.libssl_1_1.dll_SSL_accept
add esp, 0x10
test eax, eax
jns 0x100453e0
push eax
push dword [ebp - 0x6c]
call sub.libssl_1_1.dll_SSL_get_error
add esp, 8
cmp eax, 2
jne 0x100453aa
cmp edi, 0xb
jge 0x100453e0
mov ecx, esi
call fcn.10002eaa
movzx esi, al
neg esi
sbb esi, esi
lea ecx, [ebp - 0xac]
and esi, 2
mov byte [ebp - 4], 0
call fcn.10001e8d
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
call fcn.10002bc1
mov eax, esi
jmp 0x10047d8d
push 0
push dword [ebp - 0x6c]
call sub.libssl_1_1.dll_SSL_get_servername
add esp, 8
test eax, eax
je 0x1004540a
push 0
push dword [ebp - 0x6c]
call sub.libssl_1_1.dll_SSL_get_servername
add esp, 8
lea ecx, [esi + 0x150]
push eax
call fcn.1000348b
mov ecx, esi
call fcn.10001965
test al, al
jne 0x100455be
test byte [esi + 0x108], 0x40
je 0x100455fb
mov ecx, dword [esi + 8]
call fcn.100023ab
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x100455fb
xor ecx, ecx
cmp ebx, 1
setne cl
push 1
push 1
add ecx, 0x65
push ecx
lea ecx, [ebp - 0x44]
call fcn.10001582
push 0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.10002f7c
mov edi, eax
test edi, edi
je 0x10045522
mov eax, dword [esi + 0x160]
test eax, eax
je 0x10045493
cmp dword [esi + 0x164], 0x10
lea ecx, [esi + 0x150]
jb 0x10045484
mov ecx, dword [ecx]
mov edx, dword [edi]
inc eax
push eax
push ecx
mov ecx, edi
call dword [edx + 0x10]
jmp 0x10045515
mov ecx, dword [esi + 8]
lea eax, [ebp + 0xc0]
push eax
call fcn.1000324c
push 0
push 0x100893f8
lea ecx, [ebp + 0xc0]
mov byte [ebp - 4], 3
call fcn.10001b45
test eax, eax
je 0x100454e2
push eax
push 0
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp + 0xc0]
call fcn.10003b57
push eax
lea ecx, [ebp + 0xc0]
call fcn.10002545
lea ecx, [ebp + 0x18]
call fcn.10002068
cmp dword [ebp + 0xd4], 0x10
mov eax, dword [ebp + 0xd0]
mov edx, dword [edi]
lea ecx, [ebp + 0xc0]
cmovae ecx, dword [ebp + 0xc0]
inc eax
push eax
push ecx
mov ecx, edi
call dword [edx + 0x10]
lea ecx, [ebp + 0xc0]
mov byte [ebp - 4], 2
call fcn.10002068
mov eax, dword [edi]
push 0
push 0
push 0
mov ecx, edi
call dword [eax + 8]
push 1
lea ecx, [ebp - 0x44]
call fcn.10003120
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 4
call fcn.10002400
mov ecx, dword [esi + 8]
call fcn.1000139d
mov ecx, dword [ebp - 0x2c]
lea ebx, [ebp - 0x44]
mov edi, dword [ecx]
push ebx
push edx
push eax
call dword [edi + 0x24]
mov edi, dword [ebp - 0x1c]
jmp 0x10045569
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 4], 2
sub eax, 2
je 0x100455e3
dec eax
je 0x100455b2
dec eax
jne 0x100455ed
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.100013ac
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0
call fcn.10001e8d
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
call fcn.10002bc1
mov eax, 4
jmp 0x10047d8d
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.100013ac
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0
call fcn.10001e8d
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
call fcn.10002bc1
xor eax, eax
jmp 0x10047d8d
or dword [esi + 0x108], 0x8000
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.100013ac
jmp 0x100455fe
mov edi, dword [ebp - 0x1c]
push dword [ebp - 0x6c]
call sub.libssl_1_1.dll_SSL_version
add esp, 4
test dword [esi + 0x108], 0x8000
je 0x10045831
lea ecx, [esi + 0x60]
call fcn.1000259f
push 1
push dword [ebp + 0x2354]
lea ecx, [esi + 0x60]
push dword [ebp - 0x20]
call fcn.100019dd
test al, al
je 0x100455be
mov byte [esi + 5], 1
mov dword [ebp + 0xa4], 0xf
mov dword [ebp + 0xa0], 0
mov byte [ebp + 0x90], 0
cmp dword [esi + 0x160], 0
mov byte [ebp - 4], 6
je 0x10045680
lea eax, [esi + 0x150]
lea ecx, [ebp + 0x90]
cmp ecx, eax
je 0x100456d2
push 0xffffffffffffffff
push 0
push eax
call fcn.10003d1e
jmp 0x100456d2
mov ecx, dword [esi + 8]
lea eax, [ebp + 0x78]
push eax
call fcn.1000324c
push 0
push 0x1008956c
lea ecx, [ebp + 0x78]
mov byte [ebp - 4], 7
call fcn.10001b45
test eax, eax
je 0x100456c6
push eax
push 0
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x78]
call fcn.10003b57
push eax
lea ecx, [ebp + 0x90]
call fcn.10002545
lea ecx, [ebp + 0x60]
call fcn.10002068
lea ecx, [ebp + 0x78]
mov byte [ebp - 4], 6
call fcn.10002068
lea ecx, [ebp - 0x94]
call fcn.1000259f
lea ecx, [ebp - 0xac]
call fcn.1000259f
push dword [esi + 0x108]
cmp dword [ebp + 0xa4], 0x10
lea ecx, [ebp - 0xac]
push ecx
lea eax, [ebp + 0x90]
cmovae eax, dword [ebp + 0x90]
push 0
push eax
call fcn.10002a59
mov ecx, eax
call fcn.10002ec3
mov ecx, eax
call fcn.10002617
test al, al
jne 0x10045733
lea ecx, [ebp + 0x90]
call fcn.10002068
jmp 0x1004558a
push 0
push 0
lea eax, [ebp - 0xac]
push eax
movzx eax, byte [esi + 0xc]
push 1
push eax
lea ecx, [esi + 0x10]
call fcn.10003067
test al, al
je 0x10045723
lea ecx, [esi + 0x60]
call fcn.1000277f
push eax
lea ecx, [esi + 0x60]
call fcn.10003670
push eax
push dword [esi + 0x14]
call sub.libcrypto_1_1.dll_BIO_write
add esp, 0xc
test eax, eax
js 0x10045723
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_accept
add esp, 4
test eax, eax
jns 0x10045792
push eax
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_get_error
add esp, 8
cmp eax, 2
jne 0x10045723
push 0
push 0
push 0xa
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
je 0x100457f4
jmp 0x100457b0
push 0x2000
lea eax, [ebp + 0xd8]
push eax
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_read
add esp, 0xc
test eax, eax
jle 0x100457df
mov ecx, dword [esi + 8]
push eax
lea eax, [ebp + 0xd8]
push eax
push edi
push 1
push esi
call fcn.10003878
push 0
push 0
push 0xa
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
jne 0x100457b0
mov dword [esi + 0x9c], 2
lea ecx, [ebp + 0x90]
call fcn.10002068
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0
call fcn.10001e8d
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
call fcn.10002bc1
mov eax, 3
jmp 0x10047d8d
push dword [ebp - 0x6c]
call sub.libssl_1_1.dll_SSL_version
mov edi, eax
add esp, 4
cmp edi, 0x300
je 0x1004587a
cmp edi, 0x200
je 0x1004587a
push 0
mov ecx, esi
call fcn.1000138e
test al, al
jne 0x1004587a
push 0x10089594
mov ecx, esi
mov byte [esi + 0xc], 1
call fcn.1000138e
mov edi, 0x304
mov ecx, 0x301
test al, al
cmovne edi, ecx
push dword [esi + 0x108]
movzx eax, byte [esi + 0xc]
push edi
push 0
push 0
lea ecx, [esi + 0x38]
push eax
call fcn.10003067
test al, al
je 0x100455be
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x100458b0
push eax
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_set_session
add esp, 8
lea ecx, [esi + 0xb0]
call fcn.1000277f
test eax, eax
je 0x100458e2
lea ecx, [esi + 0xb0]
call fcn.1000277f
push eax
lea ecx, [esi + 0xb0]
call fcn.10003670
push eax
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_set_alpn_protos
add esp, 0xc
push 0x100a1ad4
mov dword [ebp - 0x50], vtable.ProtocolFilters::AutoLock.0
mov dword [ebp - 0x4c], 0x100a1ad4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0x44]
push edi
mov ecx, 0x100a1acc
mov byte [ebp - 4], 8
call fcn.1000157d
push 0x100a1ad4
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x10048a50
push dword [esi + 0x38]
call sub.libssl_1_1.dll_SSL_CTX_set_client_cert_cb
add esp, 8
test dword [esi + 0x108], 0x200
je 0x10045968
push 0
push 1
push 0x41
push dword [edi]
call sub.libssl_1_1.dll_SSL_ctrl
push 0x10048bb0
push 0x3f
push dword [esi + 0x38]
call sub.libssl_1_1.dll_SSL_CTX_callback_ctrl
lea eax, [esi + 0xe0]
push eax
push 0
push 0x40
push dword [esi + 0x38]
call sub.libssl_1_1.dll_SSL_CTX_ctrl
add esp, 0x2c
cmp dword [esi + 0x160], 0
je 0x10045991
cmp dword [esi + 0x164], 0x10
lea eax, [esi + 0x150]
jb 0x10045982
mov eax, dword [eax]
push eax
push 0
push 0x37
push dword [edi]
call sub.libssl_1_1.dll_SSL_ctrl
add esp, 0x10
mov dword [ebp + 0xbc], 0xf
mov dword [ebp + 0xb8], 0
mov byte [ebp + 0xa8], 0
push dword [ebp - 0x6c]
mov byte [ebp - 4], 9
call sub.libssl_1_1.dll_SSL_get_session
add esp, 4
test eax, eax
je 0x10045a4a
push dword [ebp - 0x6c]
call sub.libssl_1_1.dll_SSL_get_ciphers
add esp, 4
test eax, eax
je 0x10045a4a
push dword [ebp - 0x6c]
call sub.libssl_1_1.dll_SSL_get_ciphers
push eax
mov dword [ebp - 0x24], eax
xor edi, edi
call sub.libcrypto_1_1.dll_OPENSSL_sk_num
add esp, 8
test eax, eax
jle 0x10045a47
mov ebx, dword [ebp - 0x24]
nop
push edi
push ebx
call sub.libcrypto_1_1.dll_OPENSSL_sk_value
add esp, 8
test eax, eax
je 0x10045a44
push eax
call sub.libssl_1_1.dll_SSL_CIPHER_get_name
add esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10045a44
cmp dword [ebp + 0xb8], 0
je 0x10045a2a
push 0x100895cc
lea ecx, [ebp + 0xa8]
call fcn.10003be8
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp + 0xa8]
call fcn.10003be8
push ebx
inc edi
call sub.libcrypto_1_1.dll_OPENSSL_sk_num
add esp, 4
cmp edi, eax
jl 0x100459f0
mov ebx, dword [ebp - 0x14]
lea edi, [esi + 0x44]
test dword [esi + 0x108], 0x100
je 0x10045a7b
push 0x100895d0
mov ecx, esi
call fcn.1000138e
test al, al
jne 0x10045a7b
push 0x100895d8
push dword [edi]
call sub.libssl_1_1.dll_SSL_set_cipher_list
mov byte [esi + 0xae], 1
jmp 0x10045ac5
cmp dword [ebp + 0xb8], 0
je 0x10045ab9
push 0x100895dc
lea eax, [ebp + 0xa8]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.10003251
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x10045aa4
mov eax, dword [eax]
push eax
push dword [edi]
call sub.libssl_1_1.dll_SSL_set_cipher_list
add esp, 8
lea ecx, [ebp + 0x48]
call fcn.10002068
jmp 0x10045ac8
push 0x10089614
push dword [edi]
call sub.libssl_1_1.dll_SSL_set_cipher_list
add esp, 8
lea ecx, [esi + 0x60]
call fcn.1000259f
push 1
push dword [ebp + 0x2354]
lea ecx, [esi + 0x60]
push dword [ebp - 0x20]
call fcn.100019dd
test al, al
jne 0x10045af7
lea ecx, [ebp + 0xa8]
call fcn.10002068
jmp 0x100455be
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_connect
add esp, 4
test eax, eax
jns 0x10045b17
push eax
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_get_error
add esp, 8
cmp eax, 2
jne 0x10045ae7
push 0
push 0
push 0xa
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
je 0x10045b74
lea esp, [esp]
push 0x2000
lea eax, [ebp + 0xd8]
push eax
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_read
add esp, 0xc
test eax, eax
jle 0x10045b5f
mov ecx, dword [esi + 8]
push eax
lea eax, [ebp + 0xd8]
push eax
push ebx
push 1
push esi
call fcn.10003878
push 0
push 0
push 0xa
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
jne 0x10045b30
mov dword [esi + 0x9c], 1
mov byte [esi + 5], 1
lea ecx, [ebp + 0xa8]
jmp 0x10045804
mov eax, dword [ebp + 0x2354]
test eax, eax
jne 0x10045c5a
test ebx, ebx
jne 0x100455a8
test dword [esi + 0x108], 0x100
je 0x10045bd3
push 0x10089680
mov ecx, esi
call fcn.1000138e
test al, al
jne 0x10045bd3
push 0x10089688
mov ecx, esi
call fcn.10003ddc
lea eax, [ebx + 4]
jmp 0x10047d8d
cmp byte [esi + 0xc], 0
je 0x100455a8
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_version
add esp, 4
cmp eax, 0x300
jle 0x100455a8
push 0x10089690
mov ecx, esi
call fcn.1000138e
test al, al
jne 0x100455a8
cmp byte [esi + 0xae], al
jne 0x100455a8
push 0x10089698
mov ecx, esi
call fcn.1000138e
test al, al
jne 0x100455a8
test dword [esi + 0x108], 0x40000
mov ecx, esi
je 0x10045c46
push 1
call fcn.100031a7
mov eax, 4
jmp 0x10047d8d
push 0x100896a0
call fcn.10003ddc
mov eax, 4
jmp 0x10047d8d
cmp byte [esi + 0xa0], 0
je 0x10045c6a
mov edi, ebx
mov ebx, dword [ebp - 0x2c]
jmp 0x10045c6d
mov edi, dword [ebp - 0x1c]
cmp ebx, 1
jne 0x10045c87
push ebx
push eax
push dword [ebp - 0x20]
lea ecx, [esi + 0x60]
call fcn.100019dd
lea eax, [ebx + 2]
jmp 0x10047d8d
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_is_init_finished
add esp, 4
test eax, eax
jne 0x100466b0
push dword [ebp + 0x2354]
push dword [ebp - 0x20]
push dword [esi + 0x3c]
call sub.libcrypto_1_1.dll_BIO_write
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_connect
mov ebx, eax
add esp, 0x10
test ebx, ebx
jns 0x10045dbe
push ebx
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_get_error
add esp, 8
cmp eax, 2
je 0x10045dbc
cmp eax, 4
je 0x10045dbc
call sub.libcrypto_1_1.dll_ERR_get_error
and eax, 0xfff
cmp eax, 0x18a
jne 0x10045d02
push 0
mov ecx, esi
call fcn.100031a7
mov eax, 4
jmp 0x10047d8d
cmp byte [esi + 0xc], 0
je 0x100455a8
test dword [esi + 0x108], 0x100
je 0x10045d3e
push 0x1008972c
mov ecx, esi
call fcn.1000138e
test al, al
jne 0x10045d3e
push 0x10089734
mov ecx, esi
call fcn.10003ddc
mov eax, 4
jmp 0x10047d8d
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_version
add esp, 4
cmp eax, 0x300
je 0x10045da9
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_version
add esp, 4
cmp eax, 0x200
je 0x10045da9
test dword [esi + 0x108], 0x40000
mov ecx, esi
jne 0x10045c35
push 0x1008973c
call fcn.1000138e
mov ecx, esi
test al, al
je 0x10045d95
push 0
call fcn.100031a7
mov eax, 4
jmp 0x10047d8d
push 0x10089744
call fcn.10003ddc
mov eax, 4
jmp 0x10047d8d
push 0
mov ecx, esi
call fcn.10003ddc
mov eax, 4
jmp 0x10047d8d
test ebx, ebx
jne 0x10045dd4
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_shutdown
add esp, 4
mov ecx, esi
push 1
call fcn.100031a7
test dword [esi + 0x108], 0x200
je 0x10045e46
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x6d
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_ctrl
add esp, 0x10
test eax, eax
je 0x10045e46
push dword [ebp - 0x1c]
call sub.libcrypto_1_1.dll_EVP_PKEY_id
add esp, 4
cmp eax, 0x1c
jne 0x10045e3b
push dword [ebp - 0x1c]
call sub.libcrypto_1_1.dll_EVP_PKEY_bits
add esp, 4
cmp eax, 0x400
jge 0x10045e3b
push 0
mov ecx, esi
call fcn.100031a7
test al, al
je 0x10045e3b
push dword [ebp - 0x1c]
call sub.libcrypto_1_1.dll_EVP_PKEY_free
add esp, 4
mov eax, 4
jmp 0x10047d8d
push dword [ebp - 0x1c]
call sub.libcrypto_1_1.dll_EVP_PKEY_free
add esp, 4
push 0
push 0
push 0xa
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
je 0x10045ea4
jmp 0x10045e60
push 0x2000
lea eax, [ebp + 0xd8]
push eax
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_read
add esp, 0xc
test eax, eax
jle 0x10045e8f
mov ecx, dword [esi + 8]
push eax
lea eax, [ebp + 0xd8]
push eax
push edi
push 1
push esi
call fcn.10003878
push 0
push 0
push 0xa
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
jne 0x10045e60
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_is_init_finished
add esp, 4
test eax, eax
jne 0x100466b0
cmp byte [esi + 0xac], al
je 0x10045026
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_get_peer_certificate
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x100455a8
push 0x2000
lea eax, [ebp + 0xd8]
push eax
push 0xd
push ebx
call sub.libcrypto_1_1.dll_X509_get_subject_name
add esp, 4
push eax
call sub.libcrypto_1_1.dll_X509_NAME_get_text_by_NID
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10045f96
mov ecx, dword [esi + 8]
lea eax, [ebp + 0xa8]
push eax
call fcn.1000324c
push 0
push 0x100896dc
lea ecx, [ebp + 0xa8]
mov dword [ebp - 4], 0xa
call fcn.10001b45
test eax, eax
je 0x10045f56
push eax
push 0
lea eax, [ebp + 0x30]
push eax
lea ecx, [ebp + 0xa8]
call fcn.10003b57
push eax
lea ecx, [ebp + 0xa8]
call fcn.10002545
lea ecx, [ebp + 0x30]
call fcn.10002068
cmp dword [ebp + 0xbc], 0x10
lea eax, [ebp + 0xa8]
cmovae eax, dword [ebp + 0xa8]
push eax
push 0x1008974c
lea eax, [ebp + 0xd8]
push 0x2000
push eax
call fcn.1005699b
add esp, 0x10
lea ecx, [ebp + 0xa8]
mov dword [ebp - 4], 0xffffffff
call fcn.10002068
push 0xff
lea eax, [ebp + 0x20d9]
push 0
push eax
mov byte [ebp + 0x20d8], 0
call fcn.100535f0
push 0xff
lea eax, [ebp + 0x21d9]
push 0
push eax
mov byte [ebp + 0x21d8], 0
call fcn.100535f0
add esp, 0x18
lea eax, [ebp + 0x20d8]
push 0x100
push eax
push 0xd
push ebx
call sub.libcrypto_1_1.dll_X509_get_subject_name
add esp, 4
push eax
call sub.libcrypto_1_1.dll_X509_NAME_get_text_by_NID
add esp, 0x10
cmp eax, 0xffffffff
je 0x10046038
push 0x100
lea eax, [ebp + 0x21d8]
push eax
push 0xd
push ebx
call sub.libcrypto_1_1.dll_X509_get_issuer_name
add esp, 4
push eax
call sub.libcrypto_1_1.dll_X509_NAME_get_text_by_NID
add esp, 0x10
cmp eax, 0xffffffff
je 0x10046038
lea eax, [ebp + 0x21d8]
push eax
lea eax, [ebp + 0x20d8]
push eax
call fcn.1007326b
add esp, 8
test eax, eax
jne 0x10046038
or dword [esi + 0x108], 0x20
test dword [esi + 0x108], 0x800
je 0x10046195
mov ecx, dword [esi + 8]
call fcn.100023ab
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10046195
push 1
push 3
push 0x68
lea ecx, [ebp - 0x44]
call fcn.10001582
push 0
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xb
call fcn.10002f7c
test eax, eax
je 0x10046088
push eax
push ebx
call fcn.10048c40
add esp, 8
push 1
lea ecx, [ebp - 0x44]
call fcn.10002f7c
mov edi, eax
test edi, edi
je 0x100460d8
cmp byte [ebp + 0x20d8], 0
je 0x100460d8
lea ecx, [ebp + 0x20d8]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100460b0
sub ecx, edx
mov edx, dword [edi]
lea eax, [ecx + 1]
push eax
lea eax, [ebp + 0x20d8]
push eax
mov ecx, edi
call dword [edx + 0x10]
mov eax, dword [edi]
push 0
push 0
push 0
mov ecx, edi
call dword [eax + 8]
push 2
lea ecx, [ebp - 0x44]
call fcn.10002f7c
mov edi, eax
test edi, edi
je 0x10046128
cmp byte [ebp + 0x21d8], 0
je 0x10046128
lea ecx, [ebp + 0x21d8]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046100
sub ecx, edx
mov edx, dword [edi]
lea eax, [ecx + 1]
push eax
lea eax, [ebp + 0x21d8]
push eax
mov ecx, edi
call dword [edx + 0x10]
mov eax, dword [edi]
push 0
push 0
push 0
mov ecx, edi
call dword [eax + 8]
push 1
lea ecx, [ebp - 0x44]
call fcn.10003120
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 0xc
call fcn.10002400
mov ecx, dword [esi + 8]
call fcn.1000139d
mov ecx, dword [ebp - 0x14]
mov edi, dword [ecx]
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
push eax
call dword [edi + 0x24]
jmp 0x1004616f
mov dword [ebp - 4], 0xb
sub eax, 3
je 0x100463c8
dec eax
je 0x100463d1
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.100013ac
lea ecx, [ebp - 0xac]
call fcn.10001262
test dword [esi + 0x108], 0x200
mov dword [ebp - 4], 0xe
je 0x10046421
push 0
mov byte [ebp - 0x14], 1
call fcn.10057481
add esp, 4
mov edi, eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0xd8]
push ebx
push eax
mov dword [ebp - 0x24], edx
call fcn.10002a59
mov ecx, eax
call fcn.10002ec3
mov ecx, eax
call fcn.10002ffe
test al, al
je 0x10046203
sub edi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x24]
sbb eax, dword [ebp - 0x4c]
mov dword [ebp - 0x24], eax
jne 0x10046203
cmp edi, 0x15180
jbe 0x10046207
mov byte [ebp - 0x14], 0
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_get_peer_cert_chain
add esp, 4
test eax, eax
je 0x10046421
push dword [ebp - 0x14]
mov ecx, dword [esi + 8]
push eax
push ebx
lea eax, [esi + 0xe0]
push eax
lea eax, [ebp + 0xd8]
push eax
call fcn.1000139d
push edx
push eax
call fcn.10002a59
mov ecx, eax
call fcn.10002ec3
mov ecx, eax
call fcn.1000245a
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10046421
mov ecx, dword [esi + 8]
call fcn.100023ab
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x10046421
push 1
push 4
push 0x67
lea ecx, [ebp - 0x44]
call fcn.10001582
push 0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xf
call fcn.10002f7c
push 0
push 0
push ebx
mov dword [ebp - 0x14], eax
call sub.libcrypto_1_1.dll_X509_get_subject_name
add esp, 4
push eax
call sub.libcrypto_1_1.dll_X509_NAME_oneline
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov edi, eax
test edx, edx
je 0x100462d8
test edi, edi
je 0x100462d8
mov ecx, edi
lea eax, [ecx + 1]
mov dword [ebp - 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100462b2
sub ecx, dword [ebp - 0x24]
mov edx, dword [edx]
lea eax, [ecx + 1]
push eax
push edi
mov edi, dword [ebp - 0x14]
mov ecx, edi
call dword [edx + 0x10]
mov eax, dword [edi]
push 0
push 0
push 0
mov ecx, edi
call dword [eax + 8]
push 1
lea ecx, [ebp - 0x44]
call fcn.10002f7c
mov edi, eax
test edi, edi
je 0x1004631a
mov eax, dword [esi + 0x160]
test eax, eax
je 0x1004631a
cmp dword [esi + 0x164], 0x10
lea ecx, [esi + 0x150]
jb 0x10046303
mov ecx, dword [ecx]
mov edx, dword [edi]
inc eax
push eax
push ecx
mov ecx, edi
call dword [edx + 0x10]
mov eax, dword [edi]
push 0
push 0
push 0
mov ecx, edi
call dword [eax + 8]
push dword [ebp - 0x20]
lea eax, [ebp + 0x22d8]
push 0x100898f8
push 0x64
push eax
call fcn.1005699b
add esp, 0x10
lea ecx, [ebp - 0x44]
push 2
call fcn.10002f7c
mov edi, eax
test edi, edi
je 0x10046378
lea ecx, [ebp + 0x22d8]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046350
sub ecx, edx
mov edx, dword [edi]
lea eax, [ecx + 1]
push eax
lea eax, [ebp + 0x22d8]
push eax
mov ecx, edi
call dword [edx + 0x10]
mov eax, dword [edi]
push 0
push 0
push 0
mov ecx, edi
call dword [eax + 8]
push 3
lea ecx, [ebp - 0x44]
call fcn.10002f7c
test eax, eax
je 0x10046390
push eax
push ebx
call fcn.10048c40
add esp, 8
push 1
lea ecx, [ebp - 0x44]
call fcn.10003120
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 0x10
call fcn.10002400
mov ecx, dword [esi + 8]
call fcn.1000139d
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ecx]
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x2c]
push edx
push eax
call dword [edi + 0x24]
jmp 0x10046402
push 0
mov ecx, esi
call fcn.100031a7
push ebx
call sub.libcrypto_1_1.dll_X509_free
add esp, 4
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.100013ac
mov eax, 4
jmp 0x10047d8d
mov dword [ebp - 4], 0xf
sub eax, 3
je 0x1004648c
dec eax
je 0x10046495
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xe
call fcn.100013ac
mov eax, dword [esi + 0x108]
push eax
test al, 0x20
je 0x100464c6
shr eax, 0x11
not al
and al, 1
lea ecx, [ebp - 0xac]
push ecx
movzx eax, al
push 0
push eax
lea eax, [ebp + 0xd8]
push ebx
push eax
call fcn.10002a59
mov ecx, eax
call fcn.10002ec3
mov ecx, eax
call fcn.10002d79
push ebx
test al, al
jne 0x100464ed
call sub.libcrypto_1_1.dll_X509_free
add esp, 4
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], 0xffffffff
call fcn.10001e8d
mov eax, 4
jmp 0x10047d8d
push 0
mov ecx, esi
call fcn.100031a7
push ebx
call sub.libcrypto_1_1.dll_X509_free
mov byte [ebp - 4], 0xe
add esp, 4
lea ecx, [ebp - 0x44]
call fcn.100013ac
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], 0xffffffff
call fcn.10001e8d
mov eax, 4
jmp 0x10047d8d
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp + 0xd8]
push ebx
push eax
call fcn.10002a59
mov ecx, eax
call fcn.10002ec3
mov ecx, eax
call fcn.10002617
jmp 0x1004645f
call sub.libcrypto_1_1.dll_X509_free
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_version
add esp, 8
lea ecx, [esi + 0x10]
push 0
push eax
lea eax, [ebp - 0xac]
push eax
movzx eax, byte [esi + 0xc]
push 1
push eax
call fcn.10003067
test al, al
je 0x100464aa
test dword [esi + 0x108], 0x2000
je 0x10046584
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x44]
mov dword [ebp - 0x14], 0
call sub.libssl_1_1.dll_SSL_get0_alpn_selected
add esp, 0xc
cmp dword [ebp - 0x14], 0
jbe 0x10046564
lea ecx, [esi + 0xc8]
call fcn.1000259f
push 1
push dword [ebp - 0x14]
lea ecx, [esi + 0xc8]
push dword [ebp - 0x24]
call fcn.100019dd
lea ecx, [esi + 0xc8]
call fcn.1000277f
test eax, eax
je 0x10046584
push esi
push 0x10049410
push dword [esi + 0x10]
call sub.libssl_1_1.dll_SSL_CTX_set_alpn_select_cb
add esp, 0xc
test dword [esi + 0x108], 0x100
je 0x100465b6
push 0x10089a60
mov ecx, esi
call fcn.1000138e
test al, al
jne 0x100465b6
push 0x10089a68
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_set_cipher_list
mov byte [esi + 0xae], 1
jmp 0x100465cc
call fcn.10048c00
test al, al
je 0x100465cf
push 0x10089a6c
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_set_cipher_list
add esp, 8
lea ecx, [esi + 0x60]
call fcn.1000277f
push eax
lea ecx, [esi + 0x60]
call fcn.10003670
push eax
push dword [esi + 0x14]
call sub.libcrypto_1_1.dll_BIO_write
add esp, 0xc
test eax, eax
js 0x100464aa
push 0x10048ba0
push 1
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_set_verify
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_accept
add esp, 0x10
test eax, eax
jns 0x10046627
push eax
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_get_error
add esp, 8
cmp eax, 2
jne 0x100464aa
push 0
push 0
push 0xa
push dword [esi + 0x18]
mov dword [esi + 0x9c], 5
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
je 0x10046694
mov edi, dword [ebp - 0x30]
lea esp, [esp]
push 0x2000
lea eax, [ebp + 0xd8]
push eax
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_read
add esp, 0xc
test eax, eax
jle 0x1004667f
mov ecx, dword [esi + 8]
push eax
lea eax, [ebp + 0xd8]
push eax
push edi
push 1
push esi
call fcn.10003878
push 0
push 0
push 0xa
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
jne 0x10046650
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], 0xffffffff
call fcn.10001e8d
mov eax, 3
jmp 0x10047d8d
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_get_peer_certificate
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x100455a8
push 0x2000
lea eax, [ebp + 0xd8]
push eax
push 0xd
push ebx
call sub.libcrypto_1_1.dll_X509_get_subject_name
add esp, 4
push eax
call sub.libcrypto_1_1.dll_X509_NAME_get_text_by_NID
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10046783
mov ecx, dword [esi + 8]
lea eax, [ebp + 0xa8]
push eax
call fcn.1000324c
push 0
push 0x10089aa4
lea ecx, [ebp + 0xa8]
mov dword [ebp - 4], 0x12
call fcn.10001b45
test eax, eax
je 0x10046743
push eax
push 0
lea eax, [ebp]
push eax
lea ecx, [ebp + 0xa8]
call fcn.10003b57
push eax
lea ecx, [ebp + 0xa8]
call fcn.10002545
lea ecx, [ebp]
call fcn.10002068
cmp dword [ebp + 0xbc], 0x10
lea eax, [ebp + 0xa8]
cmovae eax, dword [ebp + 0xa8]
push eax
push 0x10089aa8
lea eax, [ebp + 0xd8]
push 0x2000
push eax
call fcn.1005699b
add esp, 0x10
lea ecx, [ebp + 0xa8]
mov dword [ebp - 4], 0xffffffff
call fcn.10002068
push 0xff
lea eax, [ebp + 0x21d9]
push 0
push eax
mov byte [ebp + 0x21d8], 0
call fcn.100535f0
push 0xff
lea eax, [ebp + 0x20d9]
push 0
push eax
mov byte [ebp + 0x20d8], 0
call fcn.100535f0
add esp, 0x18
lea eax, [ebp + 0x21d8]
push 0x100
push eax
push 0xd
push ebx
call sub.libcrypto_1_1.dll_X509_get_subject_name
add esp, 4
push eax
call sub.libcrypto_1_1.dll_X509_NAME_get_text_by_NID
add esp, 0x10
cmp eax, 0xffffffff
je 0x10046825
push 0x100
lea eax, [ebp + 0x20d8]
push eax
push 0xd
push ebx
call sub.libcrypto_1_1.dll_X509_get_issuer_name
add esp, 4
push eax
call sub.libcrypto_1_1.dll_X509_NAME_get_text_by_NID
add esp, 0x10
cmp eax, 0xffffffff
je 0x10046825
lea eax, [ebp + 0x20d8]
push eax
lea eax, [ebp + 0x21d8]
push eax
call fcn.1007326b
add esp, 8
test eax, eax
jne 0x10046825
or dword [esi + 0x108], 0x20
test dword [esi + 0x108], 0x800
je 0x10046976
mov ecx, dword [esi + 8]
call fcn.100023ab
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10046976
push 1
push 3
push 0x68
lea ecx, [ebp - 0x44]
call fcn.10001582
push 0
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0x13
call fcn.10002f7c
test eax, eax
je 0x10046875
push eax
push ebx
call fcn.10048c40
add esp, 8
push 1
lea ecx, [ebp - 0x44]
call fcn.10002f7c
mov edi, eax
test edi, edi
je 0x100468bf
cmp byte [ebp + 0x21d8], 0
je 0x100468bf
lea ecx, [ebp + 0x21d8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046897
sub ecx, edx
mov edx, dword [edi]
lea eax, [ecx + 1]
push eax
lea eax, [ebp + 0x21d8]
push eax
mov ecx, edi
call dword [edx + 0x10]
mov eax, dword [edi]
push 0
push 0
push 0
mov ecx, edi
call dword [eax + 8]
push 2
lea ecx, [ebp - 0x44]
call fcn.10002f7c
mov edi, eax
test edi, edi
je 0x10046909
cmp byte [ebp + 0x20d8], 0
je 0x10046909
lea ecx, [ebp + 0x20d8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100468e1
sub ecx, edx
mov edx, dword [edi]
lea eax, [ecx + 1]
push eax
lea eax, [ebp + 0x20d8]
push eax
mov ecx, edi
call dword [edx + 0x10]
mov eax, dword [edi]
push 0
push 0
push 0
mov ecx, edi
call dword [eax + 8]
push 1
lea ecx, [ebp - 0x44]
call fcn.10003120
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 0x14
call fcn.10002400
mov ecx, dword [esi + 8]
call fcn.1000139d
mov ecx, dword [ebp - 0x14]
mov edi, dword [ecx]
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
push eax
call dword [edi + 0x24]
jmp 0x10046950
mov dword [ebp - 4], 0x13
sub eax, 3
je 0x100463c8
dec eax
je 0x100463d1
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.100013ac
lea ecx, [ebp - 0xac]
call fcn.10001262
test dword [esi + 0x108], 0x200
mov dword [ebp - 4], 0x16
je 0x10046bd2
push 0
mov byte [ebp - 0x14], 1
call fcn.10057481
add esp, 4
mov edi, eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0xd8]
push ebx
push eax
mov dword [ebp - 0x24], edx
call fcn.10002a59
mov ecx, eax
call fcn.10002ec3
mov ecx, eax
call fcn.10002ffe
test al, al
je 0x100469e4
sub edi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x24]
sbb eax, dword [ebp - 0x4c]
mov dword [ebp - 0x24], eax
jne 0x100469e4
cmp edi, 0x15180
jbe 0x100469e8
mov byte [ebp - 0x14], 0
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_get_peer_cert_chain
add esp, 4
test eax, eax
je 0x10046bd2
push dword [ebp - 0x14]
mov ecx, dword [esi + 8]
push eax
push ebx
lea eax, [esi + 0xe0]
push eax
lea eax, [ebp + 0xd8]
push eax
call fcn.1000139d
push edx
push eax
call fcn.10002a59
mov ecx, eax
call fcn.10002ec3
mov ecx, eax
call fcn.1000245a
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10046bd2
mov ecx, dword [esi + 8]
call fcn.100023ab
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x10046bd2
push 1
push 4
push 0x67
lea ecx, [ebp - 0x44]
call fcn.10001582
push 0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x17
call fcn.10002f7c
push 0
push 0
push ebx
mov dword [ebp - 0x14], eax
call sub.libcrypto_1_1.dll_X509_get_subject_name
add esp, 4
push eax
call sub.libcrypto_1_1.dll_X509_NAME_oneline
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov edi, eax
test edx, edx
je 0x10046ab9
test edi, edi
je 0x10046ab9
mov ecx, edi
lea eax, [ecx + 1]
mov dword [ebp - 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046a93
sub ecx, dword [ebp - 0x24]
mov edx, dword [edx]
lea eax, [ecx + 1]
push eax
push edi
mov edi, dword [ebp - 0x14]
mov ecx, edi
call dword [edx + 0x10]
mov eax, dword [edi]
push 0
push 0
push 0
mov ecx, edi
call dword [eax + 8]
push 1
lea ecx, [ebp - 0x44]
call fcn.10002f7c
mov edi, eax
test edi, edi
je 0x10046afb
mov eax, dword [esi + 0x160]
test eax, eax
je 0x10046afb
cmp dword [esi + 0x164], 0x10
lea ecx, [esi + 0x150]
jb 0x10046ae4
mov ecx, dword [ecx]
mov edx, dword [edi]
inc eax
push eax
push ecx
mov ecx, edi
call dword [edx + 0x10]
mov eax, dword [edi]
push 0
push 0
push 0
mov ecx, edi
call dword [eax + 8]
push dword [ebp - 0x20]
lea eax, [ebp + 0x22d8]
push 0x10089c08
push 0x64
push eax
call fcn.1005699b
add esp, 0x10
lea ecx, [ebp - 0x44]
push 2
call fcn.10002f7c
mov edi, eax
test edi, edi
je 0x10046b58
lea ecx, [ebp + 0x22d8]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046b30
sub ecx, edx
mov edx, dword [edi]
lea eax, [ecx + 1]
push eax
lea eax, [ebp + 0x22d8]
push eax
mov ecx, edi
call dword [edx + 0x10]
mov eax, dword [edi]
push 0
push 0
push 0
mov ecx, edi
call dword [eax + 8]
push 3
lea ecx, [ebp - 0x44]
call fcn.10002f7c
test eax, eax
je 0x10046b70
push eax
push ebx
call fcn.10048c40
add esp, 8
push 1
lea ecx, [ebp - 0x44]
call fcn.10003120
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 0x18
call fcn.10002400
mov ecx, dword [esi + 8]
call fcn.1000139d
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ecx]
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x2c]
push edx
push eax
call dword [edi + 0x24]
jmp 0x10046bb7
mov dword [ebp - 4], 0x17
sub eax, 3
je 0x10046c1e
dec eax
je 0x10046c27
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x16
call fcn.100013ac
mov eax, dword [esi + 0x108]
push eax
test al, 0x20
je 0x10046c36
shr eax, 0x11
not al
and al, 1
lea ecx, [ebp - 0xac]
push ecx
movzx eax, al
push 0
push eax
lea eax, [ebp + 0xd8]
push ebx
push eax
call fcn.10002a59
mov ecx, eax
call fcn.10002ec3
mov ecx, eax
call fcn.10002d79
push ebx
test al, al
jne 0x10046c5a
call sub.libcrypto_1_1.dll_X509_free
add esp, 4
jmp 0x100464aa
push 0
mov ecx, esi
call fcn.100031a7
push ebx
call sub.libcrypto_1_1.dll_X509_free
mov byte [ebp - 4], 0x16
jmp 0x1004649f
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp + 0xd8]
push ebx
push eax
call fcn.10002a59
mov ecx, eax
call fcn.10002ec3
mov ecx, eax
call fcn.10002617
jmp 0x10046c0c
call sub.libcrypto_1_1.dll_X509_free
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_version
add esp, 8
lea ecx, [esi + 0x10]
push 0
push eax
lea eax, [ebp - 0xac]
push eax
movzx eax, byte [esi + 0xc]
push 1
push eax
call fcn.10003067
test al, al
je 0x100464aa
test dword [esi + 0x108], 0x2000
je 0x10046cf5
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x44]
mov dword [ebp - 0x14], 0
call sub.libssl_1_1.dll_SSL_get0_alpn_selected
add esp, 0xc
cmp dword [ebp - 0x14], 0
jbe 0x10046cd5
lea ecx, [esi + 0xc8]
call fcn.1000259f
push 1
push dword [ebp - 0x14]
lea ecx, [esi + 0xc8]
push dword [ebp - 0x24]
call fcn.100019dd
lea ecx, [esi + 0xc8]
call fcn.1000277f
test eax, eax
je 0x10046cf5
push esi
push 0x10049410
push dword [esi + 0x10]
call sub.libssl_1_1.dll_SSL_CTX_set_alpn_select_cb
add esp, 0xc
test dword [esi + 0x108], 0x100
je 0x10046d27
push 0x10089d40
mov ecx, esi
call fcn.1000138e
test al, al
jne 0x10046d27
push 0x10089d48
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_set_cipher_list
mov byte [esi + 0xae], 1
jmp 0x10046d3d
call fcn.10048c00
test al, al
je 0x10046d40
push str.AES:SEED:DES_CBC3_SHA:ALL:_aNULL:_eNULL:_EXP_RC4_MD5
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_set_cipher_list
add esp, 8
lea ecx, [esi + 0x60]
call fcn.1000277f
push eax
lea ecx, [esi + 0x60]
call fcn.10003670
push eax
push dword [esi + 0x14]
call sub.libcrypto_1_1.dll_BIO_write
add esp, 0xc
test eax, eax
js 0x100464aa
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_accept
add esp, 4
test eax, eax
jns 0x10046d89
push eax
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_get_error
add esp, 8
cmp eax, 2
jne 0x100464aa
push 0
push 0
push 0xa
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
je 0x10046de5
mov edi, dword [ebp - 0x30]
push 0x2000
lea eax, [ebp + 0xd8]
push eax
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_read
add esp, 0xc
test eax, eax
jle 0x10046dd0
mov ecx, dword [esi + 8]
push eax
lea eax, [ebp + 0xd8]
push eax
push edi
push 1
push esi
call fcn.10003878
push 0
push 0
push 0xa
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
jne 0x10046da1
lea edi, [esi + 0x38]
push edi
mov ecx, esi
call fcn.10001c35
test eax, eax
js 0x100464aa
je 0x10046e21
jle 0x10046e10
push 1
push eax
lea ecx, [esi + 0x48]
call fcn.10003670
push eax
lea ecx, [esi + 0x78]
call fcn.100019dd
push edi
mov ecx, esi
call fcn.10001c35
test eax, eax
jns 0x10046df8
jmp 0x100464aa
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], 0xffffffff
call fcn.10001e8d
mov dword [esi + 0x9c], 2
mov eax, 3
jmp 0x10047d8d
mov eax, dword [ebp + 0x2354]
test eax, eax
jne 0x10046e5b
test ebx, ebx
jne 0x10046e6b
inc dword [esi + 0xa4]
cmp byte [esi + 0xa0], 0
je 0x10046e7e
mov edi, ebx
mov ebx, dword [ebp - 0x2c]
jmp 0x10046e81
push 1
mov ecx, esi
call fcn.100031a7
mov eax, 4
jmp 0x10047d8d
mov edi, dword [ebp - 0x1c]
test eax, eax
jle 0x10046f14
test ebx, ebx
jne 0x10046f14
test dword [esi + 0x108], 0x8000
jne case.default.0x1004529f
push eax
push dword [ebp - 0x20]
push dword [esi + 0x3c]
call sub.libcrypto_1_1.dll_BIO_write
add esp, 0xc
lea edi, [esi + 0x38]
push edi
mov ecx, esi
call fcn.10001c35
test eax, eax
js 0x100455a8
je 0x10046ef1
jle 0x10046edb
push 1
push eax
lea ecx, [esi + 0x48]
call fcn.10003670
push eax
lea ecx, [esi + 0x78]
call fcn.100019dd
push edi
mov ecx, esi
call fcn.10001c35
test eax, eax
jns 0x10046ec3
mov eax, 4
jmp 0x10047d8d
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_get_shutdown
add esp, 4
test eax, eax
je 0x10045026
inc dword [esi + 0xa4]
mov eax, 3
jmp 0x10047d8d
push eax
push dword [ebp - 0x20]
push dword [esi + 0x14]
call sub.libcrypto_1_1.dll_BIO_write
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_is_init_finished
add esp, 0x10
test eax, eax
jne 0x10046fe7
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_accept
mov ebx, eax
add esp, 4
test ebx, ebx
jns 0x10046f5b
push ebx
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_get_error
add esp, 8
cmp eax, 2
jne 0x100455dc
test ebx, ebx
jne 0x10046f71
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_shutdown
add esp, 4
mov ecx, esi
push 1
call fcn.100031a7
push 0
push 0
push 0xa
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
je 0x10046fd4
jmp 0x10046f90
push 0x2000
lea eax, [ebp + 0xd8]
push eax
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_read
add esp, 0xc
test eax, eax
jle 0x10046fbf
mov ecx, dword [esi + 8]
push eax
lea eax, [ebp + 0xd8]
push eax
push edi
push 1
push esi
call fcn.10003878
push 0
push 0
push 0xa
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
jne 0x10046f90
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_is_init_finished
add esp, 4
test eax, eax
je 0x10045026
mov dword [esi + 0x9c], 3
call fcn.100022de
test dword [esi + 0x108], 0x8000
mov dword [esi + 0x100], eax
mov dword [esi + 0x104], edx
jne 0x10047040
lea ecx, [esi + 0x78]
call fcn.1000277f
test eax, eax
je 0x10047040
lea ecx, [esi + 0x78]
call fcn.1000277f
push eax
lea ecx, [esi + 0x78]
call fcn.10003670
mov ecx, dword [esi + 8]
push eax
push edi
push 0
push esi
call fcn.10003878
lea ecx, [esi + 0x78]
call fcn.1000259f
lea ecx, [esi + 0x60]
call fcn.1000259f
lea eax, [esi + 0x10]
push eax
mov ecx, esi
call fcn.1000171c
test eax, eax
js 0x100455a8
je 0x10047095
jle 0x1004707c
cmp dword [esi + 0xa4], 0
jne 0x1004707c
push 1
push eax
lea ecx, [esi + 0x20]
call fcn.10003670
push eax
lea ecx, [esi + 0x60]
call fcn.100019dd
lea eax, [esi + 0x10]
push eax
mov ecx, esi
call fcn.1000171c
test eax, eax
jns 0x1004705b
mov eax, 4
jmp 0x10047d8d
lea ecx, [esi + 0x60]
call fcn.1000277f
test eax, eax
je 0x100470d0
lea ecx, [esi + 0x60]
call fcn.1000277f
push eax
lea ecx, [esi + 0x60]
call fcn.10003670
mov ecx, dword [esi + 8]
push eax
push dword [ebp - 0x30]
push 0
push esi
call fcn.10003878
lea ecx, [esi + 0x60]
call fcn.1000259f
mov byte [esi + 0xfc], 0
cmp dword [esi + 0xa4], 0
jle 0x10045026
mov ecx, dword [esi + 8]
push 0
push 0
push edi
push 0
push esi
call fcn.10003878
mov eax, 3
jmp 0x10047d8d
mov eax, dword [ebp + 0x2354]
test eax, eax
jne 0x1004710f
test ebx, ebx
jne 0x10046e6b
inc dword [esi + 0xa4]
cmp byte [esi + 0xa0], 0
je 0x1004711f
mov edi, ebx
mov ebx, dword [ebp - 0x2c]
jmp 0x10047122
mov edi, dword [ebp - 0x1c]
test eax, eax
jle 0x1004717e
test ebx, ebx
jne 0x1004717e
push eax
push dword [ebp - 0x20]
push dword [esi + 0x3c]
call sub.libcrypto_1_1.dll_BIO_write
add esp, 0xc
lea edi, [esi + 0x38]
push edi
mov ecx, esi
call fcn.10001c35
test eax, eax
js 0x100455a8
je 0x10046ef1
jle 0x10047168
push 1
push eax
lea ecx, [esi + 0x48]
call fcn.10003670
push eax
lea ecx, [esi + 0x78]
call fcn.100019dd
push edi
mov ecx, esi
call fcn.10001c35
test eax, eax
jns 0x1004714c
mov eax, 4
jmp 0x10047d8d
push eax
push dword [ebp - 0x20]
push dword [esi + 0x14]
call sub.libcrypto_1_1.dll_BIO_write
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_is_init_finished
add esp, 0x10
test eax, eax
jne 0x1004724b
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_accept
add esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
jns 0x100471c9
push eax
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_get_error
add esp, 8
cmp eax, 2
jne 0x100455dc
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x100471df
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_shutdown
add esp, 4
mov ecx, esi
push 1
call fcn.100031a7
push 0
push 0
push 0xa
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
je 0x10047238
push 0x2000
lea eax, [ebp + 0xd8]
push eax
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_read
add esp, 0xc
test eax, eax
jle 0x10047223
mov ecx, dword [esi + 8]
push eax
lea eax, [ebp + 0xd8]
push eax
push edi
push 1
push esi
call fcn.10003878
push 0
push 0
push 0xa
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
jne 0x100471f4
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_is_init_finished
add esp, 4
test eax, eax
je 0x10045026
cmp byte [esi + 0xac], 0
je 0x10047414
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_get_peer_certificate
mov edi, eax
add esp, 4
test edi, edi
je 0x10047372
lea ecx, [ebp + 0xa8]
call fcn.100022d4
push 0
push edi
mov dword [ebp - 4], 0x1a
call sub.libcrypto_1_1.dll_i2d_X509
add esp, 8
lea ecx, [ebp + 0xa8]
push eax
call fcn.10002d15
test al, al
jne 0x100472bf
push edi
call sub.libcrypto_1_1.dll_X509_free
add esp, 4
lea ecx, [ebp + 0xa8]
mov dword [ebp - 4], 0xffffffff
call fcn.100034ef
mov eax, 4
jmp 0x10047d8d
lea ecx, [ebp + 0xa8]
call fcn.10003670
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push edi
call sub.libcrypto_1_1.dll_i2d_X509
push edi
call sub.libcrypto_1_1.dll_X509_free
mov ecx, dword [esi + 8]
add esp, 0xc
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0
call fcn.10001055
push dword [ebp - 0xb8]
lea ecx, [ebp - 0x50]
call fcn.10003495
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0xa8]
mov byte [ebp - 4], 0x1b
call fcn.1000277f
push eax
lea ecx, [ebp + 0xa8]
call fcn.10003670
push eax
call fcn.10049160
add esp, 0x10
test al, al
je 0x1004734f
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x90], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x94], eax
jmp 0x10047358
push 0
mov ecx, esi
call fcn.100031a7
lea ecx, [ebp - 0x50]
call fcn.10003bcf
lea ecx, [ebp + 0xa8]
mov dword [ebp - 4], 0xffffffff
call fcn.100034ef
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_connect
mov edi, eax
add esp, 4
test edi, edi
jns 0x1004739f
push edi
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_get_error
add esp, 8
cmp eax, 2
je 0x1004739d
cmp eax, 4
jne 0x100455a8
test edi, edi
jne 0x100473b5
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_shutdown
add esp, 4
mov ecx, esi
push 1
call fcn.100031a7
push 0
push 0
push 0xa
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
je 0x10047414
lea ebx, [ebx]
push 0x2000
lea eax, [ebp + 0xd8]
push eax
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_read
add esp, 0xc
test eax, eax
jle 0x100473ff
mov ecx, dword [esi + 8]
push eax
lea eax, [ebp + 0xd8]
push eax
push ebx
push 1
push esi
call fcn.10003878
push 0
push 0
push 0xa
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
jne 0x100473d0
mov byte [esi + 0xac], 0
mov dword [esi + 0x9c], 3
call fcn.100022de
lea ecx, [esi + 0x60]
mov dword [esi + 0x100], eax
mov dword [esi + 0x104], edx
call fcn.1000259f
mov eax, 3
jmp 0x10047d8d
mov ecx, esi
call fcn.10001965
test al, al
jne 0x100455a8
cmp dword [ebp + 0x2354], edi
jne 0x1004755f
cmp byte [esi + 0xfc], al
je 0x100474ef
cmp dword [esi + 0x160], edi
je 0x100474ef
lea eax, [esi + 0x150]
push eax
lea ecx, [ebp + 0x78]
call fcn.100025a4
cmp dword [ebp + 0x8c], 0x10
lea eax, [ebp + 0x78]
cmovae eax, dword [ebp + 0x78]
push eax
mov dword [ebp - 4], 0x1c
call fcn.100734b7
add esp, 4
lea ecx, [ebp + 0x78]
push 0
push str.surfeasy.com
call fcn.10001b45
cmp eax, 0xffffffff
jne 0x100474d0
push 0
push str.opera_proxy.net
lea ecx, [ebp + 0x78]
call fcn.10001b45
cmp eax, 0xffffffff
je 0x100474e0
push 1
mov ecx, esi
call fcn.100031a7
mov byte [esi + 0xad], 0
lea ecx, [ebp + 0x78]
mov dword [ebp - 4], 0xffffffff
call fcn.10002068
mov ecx, dword [esi + 8]
push 0
push 0
push ebx
push 0
push esi
call fcn.10003878
test ebx, ebx
jne 0x1004752e
cmp dword [esi + 0xa4], ebx
jne 0x10045026
mov ecx, dword [esi + 8]
push ebx
push ebx
push ebx
push ebx
push esi
call fcn.10003878
mov dword [esi + 0xa4], 1
lea eax, [ebx + 3]
jmp 0x10047d8d
cmp dword [esi + 0xa8], 0
jne 0x10045026
mov ecx, dword [esi + 8]
push 0
push 0
push ebx
push 0
push esi
call fcn.10003878
mov dword [esi + 0xa8], 1
mov eax, 3
jmp 0x10047d8d
cmp byte [esi + 0xa0], 0
mov al, byte [esi + 0xfc]
mov byte [ebp - 0x15], al
mov byte [esi + 0xfc], 0
je 0x1004757e
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x2c]
lea ecx, [ebp + 0xc0]
call fcn.100022d4
mov dword [ebp - 4], 0x1d
test ebx, ebx
jne 0x10047a4a
test dword [esi + 0x108], 0x8000
je 0x100475d7
mov eax, dword [ebp + 0x2354]
mov ecx, dword [esi + 8]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x30]
push ebx
push esi
call fcn.10003878
lea ecx, [ebp + 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.100034ef
mov eax, 3
jmp 0x10047d8d
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_is_init_finished
add esp, 4
test eax, eax
jne 0x100477dd
mov eax, dword [ebp + 0x2354]
push eax
push dword [ebp - 0x20]
push dword [esi + 0x3c]
call sub.libcrypto_1_1.dll_BIO_write
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_connect
mov edi, eax
add esp, 0x10
test edi, edi
jns 0x10047641
push edi
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_get_error
add esp, 8
cmp eax, 2
je 0x1004763f
cmp eax, 4
je 0x1004763f
lea ecx, [ebp + 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.100034ef
mov eax, 4
jmp 0x10047d8d
test edi, edi
jne 0x10047657
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_shutdown
add esp, 4
mov ecx, esi
push 1
call fcn.100031a7
push 0
push 0
push 0xa
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_ctrl
mov edi, dword [ebp - 0x1c]
add esp, 0x10
test eax, eax
je 0x100476b4
nop
push 0x2000
lea eax, [ebp + 0xd8]
push eax
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_read
add esp, 0xc
test eax, eax
jle 0x1004769f
mov ecx, dword [esi + 8]
push eax
lea eax, [ebp + 0xd8]
push eax
push edi
push 1
push esi
call fcn.10003878
push 0
push 0
push 0xa
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
jne 0x10047670
cmp byte [esi + 0xac], 0
je 0x1004777c
push 0x10048ba0
push 1
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_set_verify
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_renegotiate
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_do_handshake
add esp, 0x14
test eax, eax
jns 0x100476fc
push eax
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_get_error
add esp, 8
cmp eax, 2
jne 0x10047623
push 0
push 0
push 0xa
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
je 0x10047756
push 0x2000
lea eax, [ebp + 0xd8]
push eax
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_read
add esp, 0xc
test eax, eax
jle 0x10047741
mov ecx, dword [esi + 8]
push eax
lea eax, [ebp + 0xd8]
push eax
push 0
push 1
push esi
call fcn.10003878
push 0
push 0
push 0xa
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
jne 0x10047711
lea ecx, [ebp + 0xc0]
mov dword [esi + 0x9c], 5
mov dword [ebp - 4], 0xffffffff
call fcn.100034ef
mov eax, 3
jmp 0x10047d8d
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_is_init_finished
add esp, 4
test eax, eax
je 0x100475bb
lea ecx, [esi + 0x60]
call fcn.1000277f
test eax, eax
je 0x100477c1
lea ecx, [esi + 0x60]
call fcn.1000277f
lea ecx, [esi + 0x60]
push eax
call fcn.10003670
mov ecx, dword [esi + 8]
push eax
push edi
push 0
push esi
call fcn.10003878
lea ecx, [esi + 0x60]
call fcn.1000259f
lea ecx, [ebp + 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.100034ef
mov eax, 3
jmp 0x10047d8d
lea ecx, [esi + 0x78]
call fcn.1000277f
test eax, eax
je 0x10047810
push 1
lea ecx, [esi + 0x78]
call fcn.1000277f
push eax
lea ecx, [esi + 0x78]
call fcn.10003670
push eax
lea ecx, [ebp + 0xc0]
call fcn.100019dd
lea ecx, [esi + 0x78]
call fcn.1000259f
mov eax, dword [ebp + 0x2354]
test eax, eax
jle 0x10047887
lea ebx, [ebx]
sub eax, edi
push eax
mov eax, dword [ebp - 0x20]
add eax, edi
push eax
push dword [esi + 0x3c]
call sub.libcrypto_1_1.dll_BIO_write
add esp, 0xc
test eax, eax
jle 0x10047623
mov ecx, dword [esi + 8]
add edi, eax
call fcn.1000139d
lea ebx, [esi + 0x38]
lea esp, [esp]
push ebx
mov ecx, esi
call fcn.10001c35
test eax, eax
js 0x10047623
je 0x1004787d
jle 0x10047850
push 1
push eax
lea ecx, [esi + 0x48]
call fcn.10003670
push eax
lea ecx, [ebp + 0xc0]
call fcn.100019dd
jmp 0x10047850
mov eax, dword [ebp + 0x2354]
cmp edi, eax
jl 0x10047820
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_renegotiate_pending
add esp, 4
test eax, eax
je 0x10047949
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_connect
mov edi, eax
add esp, 4
test edi, edi
jns 0x100478c7
push edi
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_get_error
add esp, 8
cmp eax, 2
je 0x100478c5
cmp eax, 4
jne 0x10047623
test edi, edi
jne 0x100478dd
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_shutdown
add esp, 4
mov ecx, esi
push 1
call fcn.100031a7
push 0
push 0
push 0xa
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_ctrl
mov edi, dword [ebp - 0x1c]
add esp, 0x10
test eax, eax
je 0x1004777c
lea esp, [esp]
push 0x2000
lea eax, [ebp + 0xd8]
push eax
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_read
add esp, 0xc
test eax, eax
jle 0x1004792f
mov ecx, dword [esi + 8]
push eax
lea eax, [ebp + 0xd8]
push eax
push edi
push 1
push esi
call fcn.10003878
push 0
push 0
push 0xa
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
jne 0x10047900
jmp 0x1004777c
push 0
push 0
push 0xa
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
je 0x100479a5
mov edi, dword [ebp - 0x1c]
push 0x2000
lea eax, [ebp + 0xd8]
push eax
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_read
add esp, 0xc
test eax, eax
jle 0x10047990
mov ecx, dword [esi + 8]
push eax
lea eax, [ebp + 0xd8]
push eax
push edi
push 1
push esi
call fcn.10003878
push 0
push 0
push 0xa
push dword [esi + 0x40]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
jne 0x10047961
lea ecx, [ebp + 0xc0]
call fcn.1000277f
test eax, eax
je 0x100479dd
lea ecx, [ebp + 0xc0]
call fcn.1000277f
push eax
lea ecx, [ebp + 0xc0]
call fcn.10003670
mov ebx, dword [ebp - 0x30]
mov ecx, dword [esi + 8]
push eax
push ebx
push 0
push esi
call fcn.10003878
jmp 0x100479e0
mov ebx, dword [ebp - 0x30]
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_get_shutdown
add esp, 4
test eax, eax
je 0x10047a09
mov ecx, dword [esi + 8]
push 0
push 0
push ebx
push 0
push esi
call fcn.10003878
mov dword [esi + 0xa4], 1
cmp byte [esi + 0xad], 0
je 0x100477c1
push 0x10089edc
mov ecx, esi
mov byte [esi + 0xad], 0
call fcn.100024e6
push 0x10089f78
mov ecx, esi
call fcn.100024e6
push 0
mov ecx, esi
call fcn.100024e6
mov ecx, esi
call fcn.1000103c
jmp 0x100477c1
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_is_init_finished
add esp, 4
test eax, eax
jne 0x10047b67
mov eax, dword [ebp + 0x2354]
push eax
push dword [ebp - 0x20]
push dword [esi + 0x14]
call sub.libcrypto_1_1.dll_BIO_write
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_accept
mov edi, eax
add esp, 0x10
test edi, edi
jns 0x10047aac
push edi
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_get_error
add esp, 8
cmp eax, 2
je 0x10047aaa
lea ecx, [ebp + 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.100034ef
xor eax, eax
jmp 0x10047d8d
test edi, edi
jne 0x10047ac2
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_shutdown
add esp, 4
mov ecx, esi
push 1
call fcn.100031a7
push 0
push 0
push 0xa
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_ctrl
mov edi, dword [ebp - 0x1c]
add esp, 0x10
test eax, eax
je 0x10047b24
lea ebx, [ebx]
push 0x2000
lea eax, [ebp + 0xd8]
push eax
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_read
add esp, 0xc
test eax, eax
jle 0x10047b0f
mov ecx, dword [esi + 8]
push eax
lea eax, [ebp + 0xd8]
push eax
push edi
push 1
push esi
call fcn.10003878
push 0
push 0
push 0xa
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
jne 0x10047ae0
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_is_init_finished
add esp, 4
test eax, eax
je 0x100475bb
test dword [esi + 0x108], 0x8000
jne 0x100477c1
lea ecx, [esi + 0x78]
call fcn.1000277f
test eax, eax
je 0x100477c1
lea ecx, [esi + 0x78]
call fcn.1000277f
lea ecx, [esi + 0x78]
jmp 0x100477a6
lea ebx, [esi + 0x60]
mov ecx, ebx
call fcn.1000277f
test eax, eax
je 0x10047b99
push 1
mov ecx, ebx
call fcn.1000277f
push eax
mov ecx, ebx
call fcn.10003670
push eax
lea ecx, [ebp + 0xc0]
call fcn.100019dd
mov ecx, ebx
call fcn.1000259f
mov eax, dword [ebp + 0x2354]
test eax, eax
jle 0x10047c0a
sub eax, edi
push eax
mov eax, dword [ebp - 0x20]
add eax, edi
push eax
push dword [esi + 0x14]
call sub.libcrypto_1_1.dll_BIO_write
add esp, 0xc
test eax, eax
jle 0x10047623
mov ecx, dword [esi + 8]
add edi, eax
call fcn.1000139d
lea ebx, [esi + 0x10]
lea esp, [esp]
push ebx
mov ecx, esi
call fcn.1000171c
test eax, eax
js 0x10047623
je 0x10047bfd
jle 0x10047bd0
push 1
push eax
lea ecx, [esi + 0x20]
call fcn.10003670
push eax
lea ecx, [ebp + 0xc0]
call fcn.100019dd
jmp 0x10047bd0
mov eax, dword [ebp + 0x2354]
cmp edi, eax
jl 0x10047ba3
lea ebx, [esi + 0x60]
push 0
push 0
push 0xa
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
je 0x10047c66
mov edi, dword [ebp - 0x1c]
push 0x2000
lea eax, [ebp + 0xd8]
push eax
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_read
add esp, 0xc
test eax, eax
jle 0x10047c51
mov ecx, dword [esi + 8]
push eax
lea eax, [ebp + 0xd8]
push eax
push edi
push 1
push esi
call fcn.10003878
push 0
push 0
push 0xa
push dword [esi + 0x18]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
test eax, eax
jne 0x10047c22
lea ecx, [ebp + 0xc0]
call fcn.1000277f
test eax, eax
je 0x10047cbd
test dword [esi + 0x108], 0x8000
mov byte [ebp - 0x15], 0
jne 0x10047d45
push dword [esi + 0x44]
call sub.libssl_1_1.dll_SSL_is_init_finished
add esp, 4
test eax, eax
jne 0x10047d45
push 1
lea ecx, [ebp + 0xc0]
call fcn.1000277f
push eax
lea ecx, [ebp + 0xc0]
call fcn.10003670
push eax
mov ecx, ebx
call fcn.100019dd
mov ebx, dword [ebp - 0x30]
push dword [esi + 0x1c]
call sub.libssl_1_1.dll_SSL_get_shutdown
add esp, 4
test eax, eax
je 0x10047d1b
cmp byte [ebp - 0x15], 0
je 0x10047d01
call fcn.100022de
sub eax, dword [esi + 0x100]
sbb edx, dword [esi + 0x104]
test edx, edx
ja 0x10047d01
jb 0x10047cf1
cmp eax, 1
jae 0x10047d01
push 1
mov ecx, esi
call fcn.100031a7
mov byte [esi + 0xad], 0
mov ecx, dword [esi + 8]
push 0
push 0
push ebx
push 0
push esi
call fcn.10003878
mov dword [esi + 0xa8], 1
cmp byte [esi + 0xad], 0
je 0x100477c1
push str.tls_ac
mov ecx, esi
mov byte [esi + 0xad], 0
call fcn.100024e6
push str.tls1_0
jmp 0x10047a2e
lea ecx, [ebp + 0xc0]
call fcn.1000277f
push eax
lea ecx, [ebp + 0xc0]
call fcn.10003670
mov ebx, dword [ebp - 0x30]
mov ecx, dword [esi + 8]
push eax
push ebx
push 0
push esi
call fcn.10003878
jmp 0x10047cc0
mov ecx, dword [esi + 8]
push 0
push 0
push ebx
push 0
push esi
call fcn.10003878
mov eax, 3
jmp 0x10047d8d
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x233c]
xor ecx, ebp
call fcn.10052ab4
lea esp, [ebp + 0x2340]
pop ebp
ret 0x10