Function at 0x5ed020
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x654db0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x6fe084]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
cmp eax, edi
je 0x5ed05f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x6fe020
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x6fe084], edi
je 0x5ed093
push 0x6fe020
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x6fe080], edi
jne 0x5ed1f0
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x1c], di
mov eax, dword [0x6fca20]
mov byte [ebp - 4], 1
cmp eax, edi
jne 0x5ed0bd
mov eax, 0x6fca24
mov edx, str._slibeay32.dll
test edx, edx
je 0x5ed193
cmp eax, edi
je 0x5ed193
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov word [ebp - 0x28], di
call fcn.00401f20
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x44]
call fcn.004027c0
push edi
push str._slibeay32.dll
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.004027e0
mov eax, dword [ebp - 0x2c]
cmp eax, edi
jne 0x5ed115
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x3c]
push eax
call fcn.00609a4e
lea ebx, [eax + esi + 2]
lea esi, [ebx + ebx]
push esi
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [ebp - 0x20], edi
je 0x5ed176
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x2c]
call fcn.00401f10
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.00401f10
push esi
push eax
mov eax, dword [ebp - 0x20]
push ebx
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401070
mov ecx, dword [ebp - 0x20]
xor edi, edi
cmp ecx, edi
mov eax, ecx
jne 0x5ed19c
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [0x6fe080], eax
jne 0x5ed1e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
push 0x6fe020
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00401070
mov eax, 0x7588
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00401070
mov eax, dword [0x6fe080]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ERR_get_error
push eax
mov byte [ebp - 0x11], 0
call esi
cmp eax, edi
mov dword [0x6fe038], eax
jne 0x5ed214
mov byte [ebp - 0x11], 1
cmp dword [0x6fe07c], edi
jne 0x5ed389
xor ecx, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x28], di
mov eax, dword [0x6fca20]
mov byte [ebp - 4], 4
cmp eax, edi
jne 0x5ed23e
mov eax, 0x6fca24
mov edx, str._sssleay32.dll
test edx, edx
je 0x5ed31a
cmp eax, edi
je 0x5ed31a
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x40], di
call fcn.00401f20
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00401070
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], edi
mov word [ebp - 0x34], di
push edi
push str._sssleay32.dll
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.004027e0
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x44]
call fcn.00401f10
push eax
call fcn.00609a4e
lea ebx, [eax + esi + 2]
lea esi, [ebx + ebx]
push esi
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [ebp - 0x2c], edi
je 0x5ed2f7
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x44]
call fcn.00401f10
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.00401f10
push esi
push eax
mov eax, dword [ebp - 0x2c]
push ebx
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.00401070
mov ecx, dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
cmp ecx, edi
mov eax, ecx
jne 0x5ed323
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [0x6fe07c], eax
jne 0x5ed37d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [0x6fe080]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x6fe020
mov dword [0x6fe080], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00401070
mov eax, 0x7588
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [0x6fe07c]
push str.SSL_new
push ecx
call esi
cmp eax, edi
mov dword [0x6fe068], eax
jne 0x5ed3a4
mov byte [ebp - 0x11], 1
mov edx, dword [0x6fe07c]
push str.SSL_CTX_new
push edx
call esi
cmp eax, edi
mov dword [0x6fe064], eax
jne 0x5ed3bf
mov byte [ebp - 0x11], 1
mov eax, dword [0x6fe07c]
push str.SSLv23_method
push eax
call esi
cmp eax, edi
mov dword [0x6fe060], eax
jne 0x5ed3d9
mov byte [ebp - 0x11], 1
mov ecx, dword [0x6fe07c]
push str.SSL_library_init
push ecx
call esi
cmp eax, edi
mov dword [0x6fe05c], eax
jne 0x5ed3f4
mov byte [ebp - 0x11], 1
mov edx, dword [0x6fe07c]
push str.SSL_CTX_free
push edx
call esi
cmp eax, edi
mov dword [0x6fe058], eax
jne 0x5ed40f
mov byte [ebp - 0x11], 1
mov eax, dword [0x6fe07c]
push str.SSL_free
push eax
call esi
cmp eax, edi
mov dword [0x6fe054], eax
jne 0x5ed429
mov byte [ebp - 0x11], 1
mov ecx, dword [0x6fe07c]
push str.SSL_get_error
push ecx
call esi
cmp eax, edi
mov dword [0x6fe050], eax
jne 0x5ed444
mov byte [ebp - 0x11], 1
mov edx, dword [0x6fe07c]
push str.SSL_shutdown
push edx
call esi
cmp eax, edi
mov dword [0x6fe04c], eax
jne 0x5ed45f
mov byte [ebp - 0x11], 1
mov eax, dword [0x6fe07c]
push str.SSL_set_fd
push eax
call esi
cmp eax, edi
mov dword [0x6fe048], eax
jne 0x5ed479
mov byte [ebp - 0x11], 1
mov ecx, dword [0x6fe07c]
push str.SSL_connect
push ecx
call esi
cmp eax, edi
mov dword [0x6fe044], eax
jne 0x5ed494
mov byte [ebp - 0x11], 1
mov edx, dword [0x6fe07c]
push str.SSL_write
push edx
call esi
cmp eax, edi
mov dword [0x6fe040], eax
jne 0x5ed4af
mov byte [ebp - 0x11], 1
mov eax, dword [0x6fe07c]
push str.SSL_read
push eax
call esi
cmp eax, edi
mov dword [0x6fe03c], eax
je 0x5ed4cc
mov al, byte [ebp - 0x11]
test al, al
je 0x5ed514
mov ecx, dword [0x6fe07c]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ecx
call esi
mov eax, dword [0x6fe080]
mov dword [0x6fe07c], edi
cmp eax, edi
je 0x5ed4ed
push eax
call esi
push 0x6fe020
mov dword [0x6fe080], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x7589
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [0x6fe05c]
mov esi, 1
push 0x6fe020
mov dword [0x6fe084], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [0x6fe084], esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret