Function at 0x100f9800
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x101cd100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 8], 0
jne 0x100f9abd
push 0
push 0
push 0x200002
call sub.libssl_3.dll_OPENSSL_init_ssl
call sub.libssl_3.dll_TLS_client_method
push eax
call sub.libssl_3.dll_SSL_CTX_new
push 0
push 3
push eax
mov dword [edi + 0xc], eax
call sub.libssl_3.dll_SSL_CTX_set_verify
mov eax, dword [edi + 4]
push 0
push dword [eax + 4]
push dword [edi + 0xc]
call sub.libssl_3.dll_SSL_CTX_load_verify_locations
mov ecx, dword [edi + 0xc]
add esp, 0x28
push ecx
cmp eax, 1
je 0x100f98c8
call sub.libssl_3.dll_SSL_CTX_free
add esp, 4
cmp dword [0x101cc834], 1
jl 0x100f98a7
test ebx, ebx
jne 0x100f9881
xor ecx, ecx
jmp 0x100f9887
mov ecx, dword [ebx + 0x250]
mov eax, dword [edi + 4]
push dword [eax + 4]
push str.Failed_to_load_CA_file__s
push str.init_ssl_for_socket
push 0xac9
push 1
push ecx
call fcn.100fddd0
add esp, 0x18
call fcn.1013e52f
pop edi
pop esi
pop ebx
mov dword [eax], 0x16
mov eax, 0xfffffff8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
call sub.libssl_3.dll_SSL_CTX_set_default_verify_paths
add esp, 4
cmp eax, 1
je 0x100f9913
push dword [edi + 0xc]
call sub.libssl_3.dll_SSL_CTX_free
add esp, 4
cmp dword [0x101cc834], 1
jl 0x100f98a7
test ebx, ebx
jne 0x100f98f1
xor eax, eax
jmp 0x100f98f7
mov eax, dword [ebx + 0x250]
push str.Call_to_SSL_CTX_set_default_verify_paths_failed
push str.init_ssl_for_socket
push 0xacf
push 1
push eax
call fcn.100fddd0
add esp, 0x14
jmp 0x100f98a7
mov eax, dword [edi + 4]
push dword [eax + 8]
push dword [edi + 0xc]
call sub.libssl_3.dll_SSL_CTX_use_certificate_chain_file
add esp, 8
cmp eax, 1
je 0x100f9969
push dword [edi + 0xc]
call sub.libssl_3.dll_SSL_CTX_free
add esp, 4
cmp dword [0x101cc834], 1
jl 0x100f98a7
test ebx, ebx
jne 0x100f9949
xor ecx, ecx
jmp 0x100f994f
mov ecx, dword [ebx + 0x250]
mov eax, dword [edi + 4]
push dword [eax + 8]
push str.Failed_to_load_client_certificate_chain_from__s
push str.init_ssl_for_socket
push 0xad6
jmp 0x100f989c
mov eax, dword [edi + 4]
push dword [eax + 0x10]
push dword [edi + 0xc]
call sub.libssl_3.dll_SSL_CTX_set_default_passwd_cb_userdata
mov eax, dword [edi + 4]
push 1
push dword [eax + 0xc]
push dword [edi + 0xc]
call sub.libssl_3.dll_SSL_CTX_use_PrivateKey_file
mov ecx, dword [edi + 0xc]
add esp, 0x14
push ecx
cmp eax, 1
je 0x100f99d0
call sub.libssl_3.dll_SSL_CTX_free
add esp, 4
cmp dword [0x101cc834], 1
jl 0x100f98a7
test ebx, ebx
jne 0x100f99b0
xor ecx, ecx
jmp 0x100f99b6
mov ecx, dword [ebx + 0x250]
mov eax, dword [edi + 4]
push dword [eax + 0xc]
push str.Failed_to_load_client_private_key_from__s
push str.init_ssl_for_socket
push 0xade
jmp 0x100f989c
call sub.libssl_3.dll_SSL_CTX_check_private_key
mov ecx, dword [edi + 0xc]
add esp, 4
cmp eax, 1
je 0x100f9a23
push ecx
call sub.libssl_3.dll_SSL_CTX_free
add esp, 4
cmp dword [0x101cc834], 1
jl 0x100f98a7
test ebx, ebx
jne 0x100f99fe
xor eax, eax
jmp 0x100f9a04
mov eax, dword [ebx + 0x250]
push str.SSL_CTX_check_private_key_failed
push str.init_ssl_for_socket
push 0xae5
push 1
push eax
call fcn.100fddd0
add esp, 0x14
jmp 0x100f98a7
push 0
push 4
push 0x21
push ecx
call sub.libssl_3.dll_SSL_CTX_ctrl
push dword [edi + 0xc]
call sub.libssl_3.dll_SSL_new
add esp, 0x14
mov dword [edi + 8], eax
test eax, eax
jne 0x100f9ab2
cmp dword [ebp + 0x10], eax
je 0x100f9a71
push str.error_creating_ssl_context
push 0xfffffffffffffff1
push str.init_ssl_for_socket
push 0xaef
push ebx
call fcn.100f96d0
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
cmp dword [0x101cc834], 1
jl 0x100f9cfc
test ebx, ebx
jne 0x100f9a98
push str.error_creating_ssl_context
push str.init_ssl_for_socket
xor eax, eax
push 0xaf1
jmp 0x100f9cf1
mov eax, dword [ebx + 0x250]
push str.error_creating_ssl_context
push str.init_ssl_for_socket
push 0xaf1
jmp 0x100f9cf1
push dword [edi]
push eax
call sub.libssl_3.dll_SSL_set_fd
add esp, 8
push dword [edi + 8]
mov esi, dword [edi]
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x20c], 0
call sub.libssl_3.dll_SSL_connect
add esp, 4
cmp eax, 1
je 0x100f9c87
nop dword [eax + eax]
push eax
push dword [edi + 8]
call sub.libssl_3.dll_SSL_get_error
add esp, 8
cmp eax, 2
jne 0x100f9b98
mov ecx, dword [ebp - 0x108]
xor eax, eax
test ecx, ecx
je 0x100f9b2f
cmp dword [ebp + eax*4 - 0x104], esi
je 0x100f9b2f
inc eax
cmp eax, ecx
jb 0x100f9b21
cmp eax, ecx
jne 0x100f9b45
cmp ecx, 0x40
jae 0x100f9b45
mov dword [ebp + eax*4 - 0x104], esi
inc dword [ebp - 0x108]
mov edx, dword [ebp - 0x20c]
xor ecx, ecx
test edx, edx
je 0x100f9c23
cmp dword [ebp + ecx*4 - 0x208], esi
je 0x100f9b68
inc ecx
cmp ecx, edx
jb 0x100f9b55
jmp 0x100f9c23
lea eax, [edx - 1]
cmp ecx, eax
jae 0x100f9b8c
nop
mov eax, dword [ebp + ecx*4 - 0x204]
mov dword [ebp + ecx*4 - 0x208], eax
inc ecx
mov edx, dword [ebp - 0x20c]
lea eax, [edx - 1]
cmp ecx, eax
jb 0x100f9b70
dec edx
mov dword [ebp - 0x20c], edx
jmp 0x100f9c23
cmp eax, 3
jne 0x100f9d12
mov ecx, dword [ebp - 0x20c]
xor eax, eax
test ecx, ecx
je 0x100f9bbe
nop dword [eax]
cmp dword [ebp + eax*4 - 0x208], esi
je 0x100f9bbe
inc eax
cmp eax, ecx
jb 0x100f9bb0
cmp eax, ecx
jne 0x100f9bd4
cmp ecx, 0x40
jae 0x100f9bd4
mov dword [ebp + eax*4 - 0x208], esi
inc dword [ebp - 0x20c]
mov edx, dword [ebp - 0x108]
xor eax, eax
test edx, edx
je 0x100f9c23
cmp dword [ebp + eax*4 - 0x104], esi
je 0x100f9bf0
inc eax
cmp eax, edx
jb 0x100f9be0
jmp 0x100f9c23
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x100f9c1c
nop word [eax + eax]
mov ecx, dword [ebp + eax*4 - 0x100]
mov dword [ebp + eax*4 - 0x104], ecx
inc eax
mov edx, dword [ebp - 0x108]
lea ecx, [edx - 1]
cmp eax, ecx
jb 0x100f9c00
dec edx
mov dword [ebp - 0x108], edx
lea eax, [ebp - 0x214]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x100f9c9a
push dword [edi + 8]
mov esi, dword [edi]
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x20c], 0
call sub.libssl_3.dll_SSL_connect
add esp, 4
cmp eax, 1
jne 0x100f9b00
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0
je 0x100f9ccb
push str.error_in_ssl_connect__after_select_
push 0xfffffffffffffff1
push str.init_ssl_for_socket
push 0xb17
push ebx
call fcn.100f96d0
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
cmp dword [0x101cc834], 1
jl 0x100f9cfc
test ebx, ebx
jne 0x100f9cdc
xor eax, eax
jmp 0x100f9ce2
mov eax, dword [ebx + 0x250]
push str.error_in_ssl_connect__after_select_
push str.init_ssl_for_socket
push 0xb19
push 1
push eax
call fcn.100fddd0
add esp, 0x14
pop edi
pop esi
mov eax, 0xfffffff1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0
je 0x100f9d43
push str.error_in_ssl_connect
push 0xfffffffffffffff1
push str.init_ssl_for_socket
push 0xb0e
push ebx
call fcn.100f96d0
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10132a90
mov esp, ebp
pop ebp
ret
cmp dword [0x101cc834], 1
jl 0x100f9cfc
test ebx, ebx
jne 0x100f9d63
push str.error_in_ssl_connect
push str.init_ssl_for_socket
xor eax, eax
push 0xb10
jmp 0x100f9cf1
mov eax, dword [ebx + 0x250]
push str.error_in_ssl_connect
push str.init_ssl_for_socket
push 0xb10
jmp 0x100f9cf1