Function at 0x5d8180
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x664bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x755898]
xor eax, ebp
mov dword [ebp - 0x14], 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, dword [ebp + 8]
mov dword [ebp - 0x30], esi
xor edi, edi
cmp dword [0x75c88c], edi
jne 0x5d81df
mov dword [ebp - 4], edi
push 0x75c7fc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x75c88c], edi
je 0x5d81e6
push 0x75c7fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x5d84c9
cmp dword [0x75c888], edi
jne 0x5d826a
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
xor eax, eax
mov word [ebp - 0x1c], ax
mov byte [ebp - 4], 1
mov eax, dword [0x75ac4c]
cmp eax, edi
jne 0x5d820c
mov eax, 0x75ac50
push edi
push eax
push str._slibcrypto.dll
lea ecx, [ebp - 0x20]
call fcn.004021b0
mov eax, dword [ebp - 0x20]
cmp eax, edi
jne 0x5d8225
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x75c888], eax
cmp eax, edi
jne 0x5d825e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push 0x75c7fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00401210
mov eax, 0x7588
jmp 0x5d84c9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00401210
xor bl, bl
push str.ERR_get_error
mov ecx, dword [0x75c888]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [0x75c838], eax
cmp eax, edi
jne 0x5d828b
mov bl, 1
cmp dword [0x75c884], edi
jne 0x5d8329
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
xor edx, edx
mov word [ebp - 0x28], dx
mov byte [ebp - 4], 2
mov eax, dword [0x75ac4c]
cmp eax, edi
jne 0x5d82b5
mov eax, 0x75ac50
push edi
push eax
push str._slibssl.dll
lea ecx, [ebp - 0x2c]
call fcn.004021b0
mov eax, dword [ebp - 0x2c]
cmp eax, edi
jne 0x5d82ce
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x75c884], eax
cmp eax, edi
jne 0x5d831d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov edx, dword [0x75c888]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x75c888], edi
push 0x75c7fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401210
mov eax, 0x7588
jmp 0x5d84c9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401210
push str.SSL_new
mov eax, dword [0x75c884]
push eax
call esi
mov dword [0x75c864], eax
cmp eax, edi
jne 0x5d8341
mov bl, 1
push str.SSL_CTX_new
mov ecx, dword [0x75c884]
push ecx
call esi
mov dword [0x75c860], eax
cmp eax, edi
jne 0x5d835a
mov bl, 1
push str.TLS_method
mov edx, dword [0x75c884]
push edx
call esi
mov dword [0x75c85c], eax
cmp eax, edi
jne 0x5d8373
mov bl, 1
push str.SSL_CTX_free
mov eax, dword [0x75c884]
push eax
call esi
mov dword [0x75c858], eax
cmp eax, edi
jne 0x5d838b
mov bl, 1
push str.SSL_free
mov ecx, dword [0x75c884]
push ecx
call esi
mov dword [0x75c854], eax
cmp eax, edi
jne 0x5d83a4
mov bl, 1
push str.SSL_get_error
mov edx, dword [0x75c884]
push edx
call esi
mov dword [0x75c850], eax
cmp eax, edi
jne 0x5d83bd
mov bl, 1
push str.SSL_shutdown
mov eax, dword [0x75c884]
push eax
call esi
mov dword [0x75c84c], eax
cmp eax, edi
jne 0x5d83d5
mov bl, 1
push str.SSL_set_fd
mov ecx, dword [0x75c884]
push ecx
call esi
mov dword [0x75c848], eax
cmp eax, edi
jne 0x5d83ee
mov bl, 1
push str.SSL_connect
mov edx, dword [0x75c884]
push edx
call esi
mov dword [0x75c844], eax
cmp eax, edi
jne 0x5d8407
mov bl, 1
push str.SSL_write
mov eax, dword [0x75c884]
push eax
call esi
mov dword [0x75c840], eax
cmp eax, edi
jne 0x5d841f
mov bl, 1
push str.SSL_read
mov ecx, dword [0x75c884]
push ecx
call esi
mov dword [0x75c83c], eax
cmp eax, edi
je 0x5d843a
test bl, bl
je 0x5d8473
mov edx, dword [0x75c884]
push edx
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call esi
mov dword [0x75c884], edi
mov eax, dword [0x75c888]
cmp eax, edi
je 0x5d845b
push eax
call esi
mov dword [0x75c888], edi
push 0x75c7fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x7589
jmp 0x5d84c9
push str.SSL_ctrl
mov eax, dword [0x75c884]
push eax
call esi
mov dword [0x75c814], eax
mov esi, 1
mov dword [0x75c88c], esi
push 0x75c7fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov dword [0x75c88c], esi
xor eax, eax
jmp 0x5d84c9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0061d2ff
mov esp, ebp
pop ebp
ret