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

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ecx, dword [ecx]
mov dword [esp], ecx
mov ecx, esp
push 0x6b75a91c
push eax
push ecx
push 0
call fcn.6b526b90
add esp, 0x10
mov esi, eax
xor edi, edi
test eax, eax
je 0x6b51e3ef
test ebx, ebx
je 0x6b51e0df
mov ebp, dword [ebx]
test ebp, ebp
jne 0x6b51e0ee
call fcn.6b4eec90
mov ebp, eax
test eax, eax
je 0x6b51e3ef
cmp dword [esi], 1
jne 0x6b51e37f
mov eax, dword [esi + 4]
mov ecx, eax
sar ecx, 8
cmp ecx, 3
je 0x6b51e117
cmp ecx, 0xfe
je 0x6b51e117
cmp eax, 0x100
jne 0x6b51e3c3
mov dword [ebp], eax
mov eax, dword [esi + 0x78]
mov dword [ebp + 0x2c8], eax
mov eax, dword [esi + 8]
cmp dword [eax], 2
jne 0x6b51e3a1
mov eax, dword [eax + 8]
movzx eax, word [eax]
shl eax, 0x10
bswap eax
or eax, 0x3000000
mov dword [ebp + 0x2c4], eax
push eax
call fcn.6b4dcdd0
add esp, 4
mov dword [ebp + 0x2c0], eax
test eax, eax
je 0x6b51e3ed
mov edi, dword [esi + 0x14]
xor edx, edx
test edi, edi
mov ecx, 0
je 0x6b51e195
mov eax, dword [edi]
test eax, eax
mov ecx, 0
je 0x6b51e195
cmp eax, 0x20
ja 0x6b51e3ed
lea ecx, [ebp + 0x24c]
push eax
push dword [edi + 8]
push ecx
call sub.msvcrt.dll_memcpy
xor edx, edx
add esp, 0xc
mov ecx, dword [edi]
mov dword [ebp + 0x248], ecx
mov edi, dword [esi + 0x10]
test edi, edi
je 0x6b51e1c5
mov eax, dword [edi]
test eax, eax
je 0x6b51e1c5
cmp eax, 0x200
ja 0x6b51e3ed
lea ecx, [ebp + 0x48]
push eax
push dword [edi + 8]
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov edx, dword [edi]
mov dword [ebp + 4], edx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
or ecx, eax
jne 0x6b51e1dd
push 0
call dword [sym.imp.msvcrt.dll_time]
add esp, 4
mov dword [ebp + 0x2b0], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
or ecx, eax
mov ecx, 3
cmovne ecx, eax
mov dword [ebp + 0x2ac], ecx
push ebp
call fcn.6b4eeb90
add esp, 4
push dword [ebp + 0x29c]
call fcn.6b5dd650
add esp, 4
mov eax, dword [esi + 0x30]
mov dword [ebp + 0x29c], eax
mov dword [esi + 0x30], 0
mov edi, dword [esi + 0x34]
xor eax, eax
test edi, edi
je 0x6b51e24d
mov ecx, dword [edi]
test ecx, ecx
je 0x6b51e24d
cmp ecx, 0x20
ja 0x6b51e3ed
lea eax, [ebp + 0x270]
push ecx
push dword [edi + 8]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [edi]
mov dword [ebp + 0x26c], eax
mov eax, dword [esi + 0x38]
mov dword [ebp + 0x2a4], eax
mov edi, dword [esi + 0x3c]
push 0
push 0x6b75a908
push dword [ebp + 0x2dc]
call fcn.6b584e00
add esp, 0xc
mov dword [ebp + 0x2dc], 0
test edi, edi
je 0x6b51e2a4
push 0
push 0x6b75a908
push dword [edi]
push dword [edi + 8]
call fcn.6b586be0
add esp, 0x10
mov dword [ebp + 0x2dc], eax
test eax, eax
je 0x6b51e3ed
mov edi, dword [esi + 0x50]
push 0
push 0x6b75a908
push dword [ebp + 0x290]
call fcn.6b584e00
add esp, 0xc
mov dword [ebp + 0x290], 0
test edi, edi
je 0x6b51e2ec
push 0
push 0x6b75a908
push dword [edi]
push dword [edi + 8]
call fcn.6b586be0
add esp, 0x10
mov dword [ebp + 0x290], eax
test eax, eax
je 0x6b51e3ed
mov edi, dword [esi + 0x54]
push 0
push 0x6b75a908
push dword [ebp + 0x294]
call fcn.6b584e00
add esp, 0xc
mov dword [ebp + 0x294], 0
test edi, edi
je 0x6b51e334
push 0
push 0x6b75a908
push dword [edi]
push dword [edi + 8]
call fcn.6b586be0
add esp, 0x10
mov dword [ebp + 0x294], eax
test eax, eax
je 0x6b51e3ed
mov eax, dword [esi + 0x40]
mov dword [ebp + 0x2e8], eax
mov eax, dword [esi + 0x48]
mov dword [ebp + 0x2ec], eax
push 0
push 0x6b75a908
push dword [ebp + 0x2e0]
call fcn.6b584e00
add esp, 0xc
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x6b51e41a
lea eax, [ecx + 8]
mov edx, dword [ecx + 8]
mov dword [ebp + 0x2e0], edx
mov ecx, dword [ecx]
mov dword [ebp + 0x2e4], ecx
jmp 0x6b51e420
call fcn.6b5620e0
push str.d2i_SSL_SESSION
push 0
push 0x6b75a908
call fcn.6b5621e0
add esp, 0xc
push 0
push 0xfe
jmp 0x6b51e3e3
call fcn.6b5620e0
push str.d2i_SSL_SESSION
push 0
push 0x6b75a908
call fcn.6b5621e0
add esp, 0xc
push 0
push 0x89
jmp 0x6b51e3e3
call fcn.6b5620e0
push str.d2i_SSL_SESSION
push 0
push 0x6b75a908
call fcn.6b5621e0
add esp, 0xc
push 0
push 0x103
push 0x14
call fcn.6b562290
add esp, 0xc
mov edi, ebp
push 0x6b75a91c
push esi
call fcn.6b529470
add esp, 8
test ebx, ebx
je 0x6b51e405
cmp dword [ebx], edi
je 0x6b51e40e
push edi
call fcn.6b4ef0d0
add esp, 4
xor ebp, ebp
mov eax, ebp
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp + 0x2e0]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x6b51e43e
cmp dword [eax], 1
jne 0x6b51e4ce
mov eax, dword [eax + 8]
movzx eax, byte [eax]
jmp 0x6b51e440
xor eax, eax
mov dword [ebp + 0x2bc], eax
mov edi, dword [esi + 0x58]
push 0
push 0x6b75a908
push dword [ebp + 0x300]
call fcn.6b584e00
add esp, 0xc
mov dword [ebp + 0x300], 0
test edi, edi
je 0x6b51e48e
push 0
push 0x6b75a908
push dword [edi]
push dword [edi + 8]
call fcn.6b586be0
add esp, 0x10
mov dword [ebp + 0x300], eax
test eax, eax
je 0x6b51e3ed
mov eax, dword [esi + 0x60]
mov dword [ebp + 0x30c], eax
mov eax, dword [esi + 0x68]
mov dword [ebp + 0x2f0], eax
lea edi, [ebp + 0x2f4]
push 0
push 0x6b75a908
push dword [ebp + 0x2f4]
call fcn.6b584e00
add esp, 0xc
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x6b51e4f3
mov ecx, dword [eax + 8]
mov dword [edi], ecx
lea edi, [eax + 8]
mov eax, dword [eax]
jmp 0x6b51e4f5
call fcn.6b5620e0
push str.d2i_SSL_SESSION
push 0
push 0x6b75a908
call fcn.6b5621e0
add esp, 0xc
push 0
push 0x10f
jmp 0x6b51e3e3
xor eax, eax
mov dword [edi], 0
mov dword [ebp + 0x2f8], eax
mov al, byte [esi + 0x70]
mov byte [ebp + 0x2fc], al
lea edi, [ebp + 0x304]
push 0
push 0x6b75a908
push dword [ebp + 0x304]
call fcn.6b584e00
add esp, 0xc
mov eax, dword [esi + 0x74]
test eax, eax
je 0x6b51e538
mov ecx, dword [eax + 8]
mov dword [edi], ecx
lea edi, [eax + 8]
mov eax, dword [eax]
jmp 0x6b51e53a
xor eax, eax
mov dword [edi], 0
mov dword [ebp + 0x308], eax
push 0x6b75a91c
push esi
call fcn.6b529470
add esp, 8
test ebx, ebx
je 0x6b51e55f
cmp dword [ebx], 0
jne 0x6b51e55f
mov dword [ebx], ebp
mov eax, dword [esp]
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
jmp 0x6b51e410