Function at 0x4596d0
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x4cea28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1c]
push edi
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x14], esi
call fcn.00459be0
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
push str.SSLeay32.dll
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi], 0x4d2fd4
mov byte [esi + 0x20], bl
call edi
push str.libeay32.dll
mov dword [esi + 0x18], eax
call edi
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], eax
cmp ecx, ebx
je 0x459855
cmp eax, ebx
je 0x459855
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SSL_library_init
push ecx
call edi
mov dword [0x4fa508], eax
mov edx, dword [esi + 0x18]
push str.SSL_load_error_strings
push edx
call edi
mov dword [0x4fa524], eax
mov eax, dword [esi + 0x18]
push str.SSLv23_client_method
push eax
call edi
mov dword [0x4fa514], eax
mov ecx, dword [esi + 0x18]
push str.SSL_CTX_new
push ecx
call edi
mov dword [0x4fa528], eax
mov edx, dword [esi + 0x18]
push str.SSL_CTX_set_verify
push edx
call edi
mov dword [0x4fa530], eax
mov eax, dword [esi + 0x18]
push str.SSL_new
push eax
call edi
mov dword [0x4fa4ec], eax
mov ecx, dword [esi + 0x18]
push str.SSL_set_connect_state
push ecx
call edi
mov dword [0x4fa4fc], eax
mov edx, dword [esi + 0x18]
push str.SSL_set_fd
push edx
call edi
mov dword [0x4fa504], eax
mov eax, dword [esi + 0x18]
push str.SSL_connect
push eax
call edi
mov dword [0x4fa500], eax
mov ecx, dword [esi + 0x18]
push str.SSL_shutdown
push ecx
call edi
mov dword [0x4fa518], eax
mov edx, dword [esi + 0x18]
push str.SSL_free
push edx
call edi
mov dword [0x4fa51c], eax
mov eax, dword [esi + 0x18]
push str.SSL_CTX_free
push eax
call edi
mov dword [0x4fa52c], eax
mov ecx, dword [esi + 0x18]
push str.SSL_read
push ecx
call edi
mov dword [0x4fa4f8], eax
mov edx, dword [esi + 0x18]
push str.SSL_write
push edx
call edi
mov dword [0x4fa510], eax
mov eax, dword [esi + 0x1c]
push str.X509_STORE_CTX_get_current_cert
push eax
call edi
mov dword [0x4fa4f0], eax
mov ecx, dword [esi + 0x1c]
push str.X509_NAME_oneline
push ecx
call edi
mov dword [0x4fa520], eax
push str.X509_get_subject_name
mov edx, dword [esi + 0x1c]
push edx
call edi
mov dword [0x4fa4f4], eax
cmp dword [0x4fa508], ebx
je 0x4598f9
cmp dword [0x4fa524], ebx
je 0x4598f9
cmp dword [0x4fa514], ebx
je 0x4598f9
cmp dword [0x4fa528], ebx
je 0x4598f9
cmp dword [0x4fa530], ebx
je 0x4598f9
cmp dword [0x4fa4ec], ebx
je 0x4598f9
cmp dword [0x4fa4fc], ebx
je 0x4598f9
cmp dword [0x4fa504], ebx
je 0x4598f9
cmp dword [0x4fa500], ebx
je 0x4598f9
cmp dword [0x4fa518], ebx
je 0x4598f9
cmp dword [0x4fa51c], ebx
je 0x4598f9
cmp dword [0x4fa52c], ebx
je 0x4598f9
cmp dword [0x4fa4f8], ebx
je 0x4598f9
cmp dword [0x4fa510], ebx
je 0x4598f9
cmp dword [0x4fa4f0], ebx
je 0x4598f9
cmp dword [0x4fa520], ebx
je 0x4598f9
cmp dword [0x4fa4f4], ebx
je 0x4598f9
mov byte [esi + 0x20], 1
call dword [0x4fa508]
call dword [0x4fa524]
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8