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

Disassembly:
mov eax, 0x168
call fcn.1004e0f0
mov eax, dword [0x1006bde4]
xor eax, esp
mov dword [esp + 0x164], eax
mov eax, dword [esp + 0x170]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x17c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x34], 0
cmp dword [edi + 0x18], 0
jne 0x100026a5
push edi
call sym.libssl_3.dll_SSL_set_accept_state
add esp, 4
push edi
call sym.libssl_3.dll_SSL_clear
add esp, 4
test eax, eax
je 0x1000310b
call sub.libcrypto_3.dll_ERR_clear_error
push edi
call sym.libssl_3.dll_SSL_get_rbio
mov ebp, eax
push edi
mov dword [esp + 0x18], ebp
call sym.libssl_3.dll_SSL_get_wbio
add esp, 8
mov dword [esp + 0x28], eax
test ebp, ebp
je 0x100030e1
test eax, eax
je 0x100030e1
mov eax, dword [edi]
and eax, 0xff00
cmp eax, 0xfe00
je 0x10002717
call sub.libcrypto_3.dll_ERR_new
push 0x1004f9fc
push 0x1e0
push str.ssld1_lib.c
call sub.libcrypto_3.dll_ERR_set_debug
push 0
push 0x103
jmp 0x10003101
push edi
call fcn.1002d240
add esp, 4
test eax, eax
je 0x1000310b
mov ebx, dword [edi + 0x9c8]
mov ecx, 7
mov eax, dword [edi + 0x9e0]
mov dword [esp + 0x60], eax
push 0
lea eax, [ebx - 4]
and eax, 7
sub ecx, eax
add ebx, ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x400d
push ebx
push ebp
call sub.libcrypto_3.dll_BIO_read
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x10002ce8
mov eax, dword [esp + 0x6c]
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x20], eax
nop dword [eax]
cmp esi, 0x7fffffff
ja 0x100030bf
cmp esi, 0xd
jb 0x10003085
mov eax, dword [edi + 0x3dc]
test eax, eax
je 0x100027ba
push dword [edi + 0x3e0]
push edi
push 0xd
push dword [esp + 0x20]
push 0x100
push 0
push 0
call eax
add esp, 0x1c
test esi, esi
je 0x10003071
movzx ecx, byte [ebx]
sub esi, 1
je 0x10003071
movzx eax, byte [ebx + 1]
dec esi
cmp ecx, 0x16
jne 0x10003034
cmp eax, 0xfe
jne 0x10002ffa
cmp esi, 1
jb 0x10002fbd
dec esi
cmp esi, 8
jb 0x10002fbd
mov ecx, dword [ebx + 3]
sub esi, 8
mov eax, dword [ebx + 7]
add ebx, 0xb
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x18], ebx
cmp esi, 2
jb 0x10002fbd
movzx edx, byte [ebx]
sub esi, 2
movzx eax, byte [ebx + 1]
add ebx, 2
shl edx, 8
or edx, eax
mov dword [esp + 0x30], edx
cmp esi, edx
jb 0x10002fbd
mov eax, dword [esp + 0x30]
mov edx, ebx
add ebx, eax
mov dword [esp + 0x18], ebx
test cl, cl
jne 0x10002fa9
shr ecx, 8
test cl, cl
jne 0x10002fa9
test eax, eax
je 0x10002f6c
movzx ecx, byte [edx]
mov dword [esp + 0x58], ecx
lea ecx, [eax - 1]
cmp ecx, 3
jb 0x10002f6c
movzx eax, byte [edx + 1]
add ecx, 0xfffffffd
movzx esi, byte [edx + 2]
shl eax, 8
or esi, eax
movzx eax, byte [edx + 3]
shl esi, 8
or esi, eax
cmp ecx, 2
jb 0x10002f6c
movzx eax, byte [edx + 4]
movzx ebx, byte [edx + 5]
shl eax, 8
or ebx, eax
mov dword [esp + 0x5c], ebx
lea ebx, [ecx - 2]
cmp ebx, 3
jb 0x10002f6c
movzx ecx, byte [edx + 6]
movzx eax, byte [edx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
lea eax, [ebx - 3]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x38], eax
cmp eax, 3
jb 0x10002f6c
movzx ecx, byte [edx + 9]
lea ebx, [edx + 0xc]
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffffd
cmp eax, ecx
jb 0x10002f6c
cmp ecx, 0x7fffffff
ja 0x10002910
mov ebp, ecx
jmp 0x10002914
mov ebx, dword [esp + 0x20]
ja 0x10002f6c
sub eax, ecx
jne 0x10002f6c
cmp dword [esp + 0x58], 1
jne 0x10002f58
cmp dword [esp + 0x5c], 2
ja 0x10002f1b
cmp dword [esp + 0x18], eax
jne 0x10002ede
cmp ecx, esi
ja 0x10002ede
mov esi, dword [edi + 0x3dc]
test esi, esi
je 0x1000296b
push dword [edi + 0x3e0]
lea eax, [ecx + 0xc]
push edi
push eax
push edx
push 0x16
push dword [edi]
push 0
call esi
add esp, 0x1c
cmp ebp, 2
jb 0x10002eca
movzx eax, byte [ebx]
sub ebp, 2
movzx ecx, byte [ebx + 1]
mov esi, 0xff00
shl eax, 8
or ecx, eax
mov eax, dword [edi + 4]
mov edx, dword [eax]
cmp edx, 0x100
mov eax, edx
cmove eax, esi
cmp ecx, 0x100
cmove ecx, esi
cmp ecx, eax
jbe 0x100029b1
cmp edx, 0x1ffff
jne 0x10002d0e
cmp ebp, 0x20
jb 0x10002eb6
add ebx, 0x22
mov dword [esp + 0x18], ebx
sub ebp, 0x20
je 0x10002eb6
movzx ecx, byte [ebx]
lea eax, [ebx + 1]
dec ebp
cmp ebp, ecx
jb 0x10002eb6
add eax, ecx
mov dword [esp + 0x18], eax
sub ebp, ecx
je 0x10002eb6
movzx ecx, byte [eax]
dec ebp
inc eax
cmp ebp, ecx
jb 0x10002eb6
mov edx, eax
sub ebp, ecx
add eax, ecx
mov dword [esp + 0x20], eax
test ecx, ecx
jne 0x10002a07
lea eax, [ecx + 1]
jmp 0x10002a31
mov eax, dword [edi + 0x828]
mov eax, dword [eax + 0x84]
test eax, eax
je 0x10002e91
push ecx
push edx
push edi
call eax
add esp, 0xc
test eax, eax
mov eax, 1
je 0x10002a31
mov eax, 2
mov ecx, edi
mov edx, 0x828
cmp eax, 1
jne 0x10002cb3
mov eax, dword [edx + ecx]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x10002dc1
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x78]
push ecx
push edi
call eax
add esp, 0xc
test eax, eax
je 0x10002dc1
cmp dword [esp + 0x24], 0xff
ja 0x10002dc1
mov eax, dword [edi + 4]
mov esi, 0xfeff
cmp dword [eax], 0x1ffff
je 0x10002a8a
mov esi, dword [edi]
push 0
push edi
call fcn.10017d80
mov ebx, dword [esp + 0x68]
add esp, 4
add eax, 0xd
push eax
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.100012e0
add esp, 0x10
test eax, eax
je 0x10002d88
push 1
push 0
lea eax, [esp + 0x44]
push 0x16
push eax
call fcn.100013e0
add esp, 0x10
test eax, eax
je 0x10002d88
push 2
push 0
lea eax, [esp + 0x44]
push esi
push eax
call fcn.100013e0
add esp, 0x10
test eax, eax
je 0x10002d88
push 8
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.10001340
add esp, 0xc
test eax, eax
je 0x10002d88
lea eax, [esp + 0x3c]
push 2
push eax
call fcn.100015b0
add esp, 8
test eax, eax
je 0x10002d88
push 1
push 0
lea eax, [esp + 0x44]
push 3
push eax
call fcn.100013e0
add esp, 0x10
test eax, eax
je 0x10002d88
push 3
push 0
lea eax, [esp + 0x44]
push 0
push eax
call fcn.100013e0
add esp, 0x10
test eax, eax
je 0x10002d88
push 2
push 0
lea eax, [esp + 0x44]
push 0
push eax
call fcn.100013e0
add esp, 0x10
test eax, eax
je 0x10002d88
push 3
push 0
lea eax, [esp + 0x44]
push 0
push eax
call fcn.100013e0
add esp, 0x10
test eax, eax
je 0x10002d88
lea eax, [esp + 0x3c]
push 3
push eax
call fcn.100015b0
add esp, 8
test eax, eax
je 0x10002d88
push dword [esp + 0x24]
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.100478c0
add esp, 0xc
test eax, eax
je 0x10002d88
lea eax, [esp + 0x3c]
push eax
call fcn.10001070
add esp, 4
test eax, eax
je 0x10002d88
lea eax, [esp + 0x3c]
push eax
call fcn.10001070
add esp, 4
test eax, eax
je 0x10002d88
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.10001240
add esp, 8
test eax, eax
je 0x10002d88
lea eax, [esp + 0x3c]
push eax
call fcn.10001190
add esp, 4
test eax, eax
je 0x10002d88
mov ax, word [ebx + 0x16]
mov word [ebx + 0xe], ax
mov al, byte [ebx + 0x18]
mov byte [ebx + 0x10], al
mov eax, dword [edi + 0x3dc]
test eax, eax
je 0x10002c48
push dword [edi + 0x3e0]
push edi
push 0xd
push dword [esp + 0x20]
push 0x100
push 0
push 1
call eax
add esp, 0x1c
call sub.libcrypto_3.dll_BIO_ADDR_new
mov esi, eax
test esi, esi
je 0x10002d4b
push esi
push 0
push 0x2e
push dword [esp + 0x1c]
call sub.libcrypto_3.dll_BIO_ctrl
add esp, 0x10
test eax, eax
jle 0x10002c7d
push esi
push 0
push 0x2c
push dword [esp + 0x34]
call sub.libcrypto_3.dll_BIO_ctrl
add esp, 0x10
push esi
call sub.libcrypto_3.dll_BIO_ADDR_free
push dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x34]
push ebx
call sub.libcrypto_3.dll_BIO_write
add esp, 0x10
cmp eax, dword [esp + 0x2c]
jl 0x10002cae
push 0
push 0
push 0xb
push ebx
call sub.libcrypto_3.dll_BIO_ctrl
add esp, 0x10
test eax, eax
jg 0x10002cbc
push 8
push ebx
jmp 0x10002ceb
cmp eax, 2
je 0x10002de6
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [esp + 0x14]
push 0x400d
push ebx
push dword [esp + 0x18]
call sub.libcrypto_3.dll_BIO_read
mov esi, eax
add esp, 0xc
test esi, esi
jg 0x10002780
mov ebp, dword [esp + 0x10]
push 8
push ebp
call sub.libcrypto_3.dll_BIO_test_flags
add esp, 8
test eax, eax
je 0x1000310b
push 0
call sub.libcrypto_3.dll_BIO_ADDR_free
mov eax, dword [esp + 0x38]
add esp, 4
jmp 0x1000310e
call sub.libcrypto_3.dll_ERR_new
push 0x1004f9fc
push 0x27c
push str.ssld1_lib.c
call sub.libcrypto_3.dll_ERR_set_debug
push 0
push 0x10b
push 0x14
call sub.libcrypto_3.dll_ERR_set_error
add esp, 0x18
push 0
call sub.libcrypto_3.dll_BIO_ADDR_free
mov eax, dword [esp + 0x38]
add esp, 4
jmp 0x1000310e
call sub.libcrypto_3.dll_ERR_new
push 0x1004f9fc
push 0x30b
push str.ssld1_lib.c
call sub.libcrypto_3.dll_ERR_set_debug
push 0
push 0xc0100
push 0x14
call sub.libcrypto_3.dll_ERR_set_error
add esp, 0x18
push 0
call sub.libcrypto_3.dll_BIO_ADDR_free
mov eax, dword [esp + 0x38]
add esp, 4
jmp 0x1000310e
call sub.libcrypto_3.dll_ERR_new
push 0x1004f9fc
push 0x2f5
push str.ssld1_lib.c
call sub.libcrypto_3.dll_ERR_set_debug
push 0
push 0xc0103
push 0x14
call sub.libcrypto_3.dll_ERR_set_error
lea eax, [esp + 0x54]
push eax
call fcn.10001030
add esp, 0x1c
jmp 0x1000310b
call sub.libcrypto_3.dll_ERR_new
push 0x1004f9fc
push 0x2b6
push str.ssld1_lib.c
call sub.libcrypto_3.dll_ERR_set_debug
push 0
push 0x190
jmp 0x10003101
mov eax, dword [edi + 0x3d8]
mov ecx, 1
mov word [eax + 0x10c], cx
mov eax, dword [edi + 0x3d8]
mov word [eax + 0x108], cx
mov eax, dword [edi + 0x3d8]
mov word [eax + 0x10a], cx
lea eax, [esp + 0x6c]
push eax
lea eax, [edi + 0x9b4]
push eax
call fcn.10029c40
push 0
push 0x2000
push edi
call sym.libssl_3.dll_SSL_set_options
push edi
call fcn.1003af90
mov esi, dword [esp + 0x7c]
push esi
push 0
push 0x2e
push dword [esp + 0x34]
call sub.libcrypto_3.dll_BIO_ctrl
add esp, 0x28
test eax, eax
jg 0x10002e58
push esi
call sub.libcrypto_3.dll_BIO_ADDR_clear
add esp, 4
push dword [esp + 0x68]
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x38]
push edi
call fcn.1002dca0
add esp, 0x10
test eax, eax
je 0x1000310b
push 0
mov dword [esp + 0x38], 1
call sub.libcrypto_3.dll_BIO_ADDR_free
mov eax, dword [esp + 0x38]
add esp, 4
jmp 0x1000310e
call sub.libcrypto_3.dll_ERR_new
push 0x1004f9fc
push 0x296
push str.ssld1_lib.c
call sub.libcrypto_3.dll_ERR_set_debug
push 0
push 0x193
jmp 0x10003101
call sub.libcrypto_3.dll_ERR_new
push 0x1004f9fc
push 0x287
jmp 0x10002f7b
call sub.libcrypto_3.dll_ERR_new
push 0x1004f9fc
push 0x273
jmp 0x10002f7b
call sub.libcrypto_3.dll_ERR_new
push 0x1004f9fc
push 0x269
push str.ssld1_lib.c
call sub.libcrypto_3.dll_ERR_set_debug
push 0
push 0x191
push 0x14
call sub.libcrypto_3.dll_ERR_set_error
add esp, 0x18
push 0
call sub.libcrypto_3.dll_BIO_ADDR_free
mov eax, dword [esp + 0x38]
add esp, 4
jmp 0x1000310e
call sub.libcrypto_3.dll_ERR_new
push 0x1004f9fc
push 0x25c
push str.ssld1_lib.c
call sub.libcrypto_3.dll_ERR_set_debug
push 0
push 0x192
push 0x14
call sub.libcrypto_3.dll_ERR_set_error
add esp, 0x18
push 0
call sub.libcrypto_3.dll_BIO_ADDR_free
mov eax, dword [esp + 0x38]
add esp, 4
jmp 0x1000310e
call sub.libcrypto_3.dll_ERR_new
push 0x1004f9fc
push 0x256
jmp 0x10003043
call sub.libcrypto_3.dll_ERR_new
push 0x1004f9fc
push 0x251
push str.ssld1_lib.c
call sub.libcrypto_3.dll_ERR_set_debug
push 0
push 0x9f
push 0x14
call sub.libcrypto_3.dll_ERR_set_error
add esp, 0x18
push 0
call sub.libcrypto_3.dll_BIO_ADDR_free
mov eax, dword [esp + 0x38]
add esp, 4
jmp 0x1000310e
call sub.libcrypto_3.dll_ERR_new
push 0x1004f9fc
push 0x242
jmp 0x10003043
call sub.libcrypto_3.dll_ERR_new
push 0x1004f9fc
push 0x237
push str.ssld1_lib.c
call sub.libcrypto_3.dll_ERR_set_debug
push 0
push 0x9f
push 0x14
call sub.libcrypto_3.dll_ERR_set_error
add esp, 0x18
push 0
call sub.libcrypto_3.dll_BIO_ADDR_free
mov eax, dword [esp + 0x38]
add esp, 4
jmp 0x1000310e
call sub.libcrypto_3.dll_ERR_new
push 0x1004f9fc
push 0x22f
push str.ssld1_lib.c
call sub.libcrypto_3.dll_ERR_set_debug
push 0
push 0x74
push 0x14
call sub.libcrypto_3.dll_ERR_set_error
add esp, 0x18
push 0
call sub.libcrypto_3.dll_BIO_ADDR_free
mov eax, dword [esp + 0x38]
add esp, 4
jmp 0x1000310e
call sub.libcrypto_3.dll_ERR_new
push 0x1004f9fc
push 0x226
push str.ssld1_lib.c
call sub.libcrypto_3.dll_ERR_set_debug
push 0
push 0xf4
push 0x14
call sub.libcrypto_3.dll_ERR_set_error
add esp, 0x18
push 0
call sub.libcrypto_3.dll_BIO_ADDR_free
mov eax, dword [esp + 0x38]
add esp, 4
jmp 0x1000310e
call sub.libcrypto_3.dll_ERR_new
push 0x1004f9fc
push 0x221
jmp 0x10002f7b
call sub.libcrypto_3.dll_ERR_new
push 0x1004f9fc
push 0x216
push str.ssld1_lib.c
call sub.libcrypto_3.dll_ERR_set_debug
push 0
push 0x12a
push 0x14
call sub.libcrypto_3.dll_ERR_set_error
add esp, 0x18
push 0
call sub.libcrypto_3.dll_BIO_ADDR_free
mov eax, dword [esp + 0x38]
add esp, 4
jmp 0x1000310e
call sub.libcrypto_3.dll_ERR_new
push 0x1004f9fc
push 0x207
push str.ssld1_lib.c
call sub.libcrypto_3.dll_ERR_set_debug
push 0
push 0xc0103
jmp 0x10003101
call sub.libcrypto_3.dll_ERR_new
push 0x1004f9fc
push 0x1d4
push str.ssld1_lib.c
call sub.libcrypto_3.dll_ERR_set_debug
push 0
push 0x80
push 0x14
call sub.libcrypto_3.dll_ERR_set_error
add esp, 0x18
or eax, 0xffffffff
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1004e11b
add esp, 0x168
ret