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

Disassembly:
mov eax, 0x5c
call fcn.10032ed0
mov eax, dword [esp + 0x64]
push ebx
push ebp
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x5c], eax
mov eax, dword [eax]
mov dword [esp + 0x58], eax
mov dword [esp + 0x40], 0x3a
push esi
push edi
test ebp, ebp
je 0x1002da23
mov esi, dword [ebp]
test esi, esi
jne 0x1002da3b
call sym.SSLEAY32.dll_SSL_SESSION_new
mov esi, eax
test esi, esi
jne 0x1002da3b
mov dword [esp + 0x68], 0x184
jmp 0x1002ebe8
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x30]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
mov dword [esp + 0x40], eax
test ecx, ecx
jne 0x1002da63
mov dword [esp + 0x5c], ecx
jmp 0x1002da69
add eax, ecx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x44]
push eax
call sub.LIBEAY32.dll_Ordinal_703
add esp, 8
test eax, eax
jne 0x1002da8c
mov dword [esp + 0x68], 0x18a
jmp 0x1002ebe8
mov eax, dword [esp + 0x40]
push dword [esp + 0x58]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
mov dword [esp + 0x40], 0
push eax
mov dword [esp + 0x3c], 0
call sub.LIBEAY32.dll_Ordinal_716
add esp, 0xc
test eax, eax
jne 0x1002dacb
mov dword [esp + 0x68], 0x18e
jmp 0x1002ebe8
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
sub eax, edx
mov ecx, dword [esp + 0x58]
add ecx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], ecx
test eax, eax
je 0x1002db08
push eax
call sub.LIBEAY32.dll_Ordinal_181
mov ecx, dword [esp + 0x5c]
add esp, 4
mov edx, dword [esp + 0x40]
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x64], edx
push eax
lea eax, [esp + 0x78]
push eax
call sub.LIBEAY32.dll_Ordinal_716
add esp, 0xc
test eax, eax
jne 0x1002db30
mov dword [esp + 0x68], 0x196
jmp 0x1002ebe8
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
push dword [esp + 0x70]
add dword [esp + 0x5c], eax
call sub.LIBEAY32.dll_Ordinal_7
mov edi, eax
add esp, 4
mov dword [esi], edi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1002db6d
push eax
call sub.LIBEAY32.dll_Ordinal_181
add esp, 4
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x40]
push dword [esp + 0x58]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x30], 0
push eax
mov dword [esp + 0x2c], 0
call sub.LIBEAY32.dll_Ordinal_718
add esp, 0xc
test eax, eax
jne 0x1002dbac
mov dword [esp + 0x68], 0x1a1
jmp 0x1002ebe8
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp edi, 2
jne 0x1002dbf5
cmp dword [esp + 0x20], 3
je 0x1002dbd9
mov dword [esp + 0x48], 0x89
mov dword [esp + 0x68], 0x1a5
jmp 0x1002ebe8
mov ecx, dword [esp + 0x28]
movzx edx, byte [ecx]
movzx eax, byte [ecx + 1]
or edx, 0x200
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 2]
jmp 0x1002dc50
mov eax, edi
sar eax, 8
cmp eax, 3
je 0x1002dc23
cmp eax, 0xfe
je 0x1002dc23
cmp edi, 0x100
je 0x1002dc23
mov dword [esp + 0x48], 0xfe
mov dword [esp + 0x68], 0x1b7
jmp 0x1002ebe8
cmp dword [esp + 0x20], 2
je 0x1002dc3f
mov dword [esp + 0x48], 0x89
mov dword [esp + 0x68], 0x1b0
jmp 0x1002ebe8
mov eax, dword [esp + 0x28]
movzx edx, byte [eax]
movzx eax, byte [eax + 1]
or edx, 0x30000
shl edx, 8
or edx, eax
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb8], edx
mov eax, dword [esp + 0x40]
push dword [esp + 0x58]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call sub.LIBEAY32.dll_Ordinal_718
add esp, 0xc
test eax, eax
jne 0x1002dc94
mov dword [esp + 0x68], 0x1be
jmp 0x1002ebe8
mov eax, dword [esp + 0x60]
mov ecx, 0x20
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x20]
cmp eax, ecx
cmovg eax, ecx
mov dword [esp + 0x20], eax
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x20]
cmp eax, ecx
jle 0x1002dcd8
push str.os.length____int_sizeof_ret__session_id_
push 0x1ca
push str.._ssl_ssl_asn1.c
call sub.LIBEAY32.dll_Ordinal_3244
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
push dword [esp + 0x2c]
lea eax, [esi + 0x48]
push eax
call fcn.10034190
mov eax, dword [esp + 0x4c]
push dword [esp + 0x64]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x24]
push eax
call sub.LIBEAY32.dll_Ordinal_718
add esp, 0x18
test eax, eax
jne 0x1002dd15
mov dword [esp + 0x68], 0x1cd
jmp 0x1002ebe8
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x20]
cmp eax, 0x30
jle 0x1002dd38
mov dword [esi + 0x10], 0x30
mov eax, 0x30
jmp 0x1002dd3f
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x20]
push eax
push dword [esp + 0x2c]
lea eax, [esi + 0x14]
push eax
call fcn.10034190
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x58], ecx
je 0x1002ddbb
mov edx, dword [esp + 0x40]
mov bl, byte [edx]
mov al, bl
and al, 0xdf
cmp al, 0x80
jne 0x1002ddbb
mov al, bl
and al, 0x20
or al, 4
mov byte [edx], al
mov eax, dword [esp + 0x40]
push dword [esp + 0x58]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call sub.LIBEAY32.dll_Ordinal_718
add esp, 0xc
test eax, eax
jne 0x1002dda7
mov eax, dword [esp + 0x60]
mov dword [esp + 0x68], 0x1e7
mov byte [eax], bl
jmp 0x1002ebe8
mov ecx, dword [esp + 0x60]
mov eax, ecx
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov byte [ecx], bl
mov ecx, dword [esp + 0x20]
cmp ecx, 8
jle 0x1002ddce
mov dword [esi + 4], 8
mov eax, 8
jmp 0x1002ddd5
mov dword [esi + 4], ecx
mov eax, dword [esp + 0x20]
push eax
push dword [esp + 0x2c]
lea eax, [esi + 8]
push eax
call fcn.10034190
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x1002ddf7
push eax
call sub.LIBEAY32.dll_Ordinal_181
add esp, 4
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], 0
test eax, eax
je 0x1002dee0
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa1
jne 0x1002dee0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002de54
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x1f1
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002de70
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x1002de74
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
push eax
call sub.LIBEAY32.dll_Ordinal_716
add esp, 0xc
test eax, eax
jne 0x1002de98
mov dword [esp + 0x68], 0x1f1
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002ded4
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call sub.LIBEAY32.dll_Ordinal_3623
add esp, 8
test eax, eax
jne 0x1002ded4
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x1f1
jmp 0x1002ebe8
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x38], 0
je 0x1002df0c
push dword [esp + 0x70]
call sub.LIBEAY32.dll_Ordinal_7
mov dword [esi + 0xac], eax
push dword [esp + 0x3c]
call sub.LIBEAY32.dll_Ordinal_181
add esp, 8
mov dword [esp + 0x38], 0
jmp 0x1002df1c
push 0
call fcn.10035532
add esp, 4
mov dword [esi + 0xac], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], 0
test eax, eax
je 0x1002e005
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa2
jne 0x1002e005
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002df79
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x1fb
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002df95
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x1002df99
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
push eax
call sub.LIBEAY32.dll_Ordinal_716
add esp, 0xc
test eax, eax
jne 0x1002dfbd
mov dword [esp + 0x68], 0x1fb
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002dff9
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call sub.LIBEAY32.dll_Ordinal_3623
add esp, 8
test eax, eax
jne 0x1002dff9
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x1fb
jmp 0x1002ebe8
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x38], 0
je 0x1002e039
push dword [esp + 0x70]
call sub.LIBEAY32.dll_Ordinal_7
mov dword [esi + 0xa8], eax
push dword [esp + 0x3c]
call sub.LIBEAY32.dll_Ordinal_181
add esp, 8
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
jmp 0x1002e043
mov dword [esi + 0xa8], 3
mov eax, dword [esi + 0x9c]
lea edi, [esi + 0x9c]
test eax, eax
je 0x1002e062
push eax
call sub.LIBEAY32.dll_Ordinal_641
add esp, 4
mov dword [edi], 0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
test ecx, ecx
je 0x1002e147
cmp byte [edx], 0xa3
jne 0x1002e147
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x64], edx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002e0b7
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x208
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002e0d3
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x1002e0d7
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
push edi
call sub.LIBEAY32.dll_Ordinal_754
add esp, 0xc
test eax, eax
jne 0x1002e0f7
mov dword [esp + 0x68], 0x208
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002e133
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call sub.LIBEAY32.dll_Ordinal_3623
add esp, 8
test eax, eax
jne 0x1002e133
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x208
jmp 0x1002ebe8
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
sub eax, edx
mov ecx, dword [esp + 0x58]
add ecx, eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test ecx, ecx
je 0x1002e2a1
cmp byte [edx], 0xa4
jne 0x1002e2a1
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x64], edx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002e1a4
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x20c
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002e1c0
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x1002e1c4
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call sub.LIBEAY32.dll_Ordinal_718
add esp, 0xc
test eax, eax
jne 0x1002e1e8
mov dword [esp + 0x68], 0x20c
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002e224
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call sub.LIBEAY32.dll_Ordinal_3623
add esp, 8
test eax, eax
jne 0x1002e224
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x20c
jmp 0x1002ebe8
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1002e2a1
mov ecx, dword [esp + 0x20]
cmp ecx, 0x20
jle 0x1002e26f
push eax
mov dword [esp + 0x4c], 0x10f
mov dword [esp + 0x6c], 0x211
call sub.LIBEAY32.dll_Ordinal_181
add esp, 4
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
jmp 0x1002ebe8
mov dword [esi + 0x68], ecx
lea eax, [esi + 0x6c]
push dword [esp + 0x20]
push dword [esp + 0x2c]
push eax
call fcn.10034190
push dword [esp + 0x34]
call sub.LIBEAY32.dll_Ordinal_181
add esp, 0x10
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
jmp 0x1002e2a8
mov dword [esi + 0x68], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], 0
test eax, eax
je 0x1002e391
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa5
jne 0x1002e391
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002e305
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x221
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002e321
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x1002e325
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
push eax
call sub.LIBEAY32.dll_Ordinal_716
add esp, 0xc
test eax, eax
jne 0x1002e349
mov dword [esp + 0x68], 0x221
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002e385
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call sub.LIBEAY32.dll_Ordinal_3623
add esp, 8
test eax, eax
jne 0x1002e385
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x221
jmp 0x1002ebe8
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x38], 0
je 0x1002e3c5
push dword [esp + 0x70]
call sub.LIBEAY32.dll_Ordinal_7
mov dword [esi + 0xa0], eax
push dword [esp + 0x3c]
call sub.LIBEAY32.dll_Ordinal_181
add esp, 8
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
jmp 0x1002e3cf
mov dword [esi + 0xa0], 0
mov edx, dword [esp + 0x58]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
test edx, edx
je 0x1002e4c4
mov edi, dword [esp + 0x40]
cmp byte [edi], 0xa6
jne 0x1002e4c4
push edx
lea eax, [esp + 0x20]
mov dword [esp + 0x64], edi
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002e430
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x22d
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002e44c
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x1002e450
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call sub.LIBEAY32.dll_Ordinal_718
add esp, 0xc
test eax, eax
jne 0x1002e474
mov dword [esp + 0x68], 0x22d
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002e4b0
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call sub.LIBEAY32.dll_Ordinal_3623
add esp, 8
test eax, eax
jne 0x1002e4b0
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x22d
jmp 0x1002ebe8
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x1002e4e3
push ecx
push eax
call sub.LIBEAY32.dll_Ordinal_3513
mov dword [esi + 0xd0], eax
push dword [esp + 0x30]
call sub.LIBEAY32.dll_Ordinal_181
add esp, 0xc
jmp 0x1002e4ed
mov dword [esi + 0xd0], 0
mov edx, dword [esp + 0x58]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
test edx, edx
je 0x1002e5e2
mov edi, dword [esp + 0x40]
cmp byte [edi], 0xa7
jne 0x1002e5e2
push edx
lea eax, [esp + 0x20]
mov dword [esp + 0x64], edi
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002e54e
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x23a
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002e56a
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x1002e56e
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call sub.LIBEAY32.dll_Ordinal_718
add esp, 0xc
test eax, eax
jne 0x1002e592
mov dword [esp + 0x68], 0x23a
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002e5ce
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call sub.LIBEAY32.dll_Ordinal_3623
add esp, 8
test eax, eax
jne 0x1002e5ce
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x23a
jmp 0x1002ebe8
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x1002e601
push ecx
push eax
call sub.LIBEAY32.dll_Ordinal_3513
mov dword [esi + 0x8c], eax
push dword [esp + 0x30]
call sub.LIBEAY32.dll_Ordinal_181
add esp, 0xc
jmp 0x1002e60b
mov dword [esi + 0x8c], 0
mov edx, dword [esp + 0x58]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
test edx, edx
je 0x1002e700
mov edi, dword [esp + 0x40]
cmp byte [edi], 0xa8
jne 0x1002e700
push edx
lea eax, [esp + 0x20]
mov dword [esp + 0x64], edi
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002e66c
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x245
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002e688
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x1002e68c
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call sub.LIBEAY32.dll_Ordinal_718
add esp, 0xc
test eax, eax
jne 0x1002e6b0
mov dword [esp + 0x68], 0x245
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002e6ec
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call sub.LIBEAY32.dll_Ordinal_3623
add esp, 8
test eax, eax
jne 0x1002e6ec
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x245
jmp 0x1002ebe8
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x1002e72f
push ecx
push eax
call sub.LIBEAY32.dll_Ordinal_3513
mov dword [esi + 0x90], eax
push dword [esp + 0x30]
call sub.LIBEAY32.dll_Ordinal_181
add esp, 0xc
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
jmp 0x1002e739
mov dword [esi + 0x90], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], 0
test eax, eax
je 0x1002e822
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa9
jne 0x1002e822
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002e796
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x251
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002e7b2
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x1002e7b6
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
push eax
call sub.LIBEAY32.dll_Ordinal_716
add esp, 0xc
test eax, eax
jne 0x1002e7da
mov dword [esp + 0x68], 0x251
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002e816
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call sub.LIBEAY32.dll_Ordinal_3623
add esp, 8
test eax, eax
jne 0x1002e816
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x251
jmp 0x1002ebe8
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x38], 0
je 0x1002e856
push dword [esp + 0x70]
call sub.LIBEAY32.dll_Ordinal_7
mov dword [esi + 0xec], eax
push dword [esp + 0x3c]
call sub.LIBEAY32.dll_Ordinal_181
add esp, 8
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
jmp 0x1002e87b
cmp dword [esi + 0xe8], 0
je 0x1002e871
cmp dword [esi + 0x44], 0
je 0x1002e871
mov dword [esi + 0xec], 0xffffffff
jmp 0x1002e87b
mov dword [esi + 0xec], 0
mov ecx, dword [esp + 0x58]
xor eax, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x1002e96e
mov edx, dword [esp + 0x40]
cmp byte [edx], 0xaa
jne 0x1002e96e
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x64], edx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002e8de
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x25d
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002e8fa
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x1002e8fe
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call sub.LIBEAY32.dll_Ordinal_718
add esp, 0xc
test eax, eax
jne 0x1002e922
mov dword [esp + 0x68], 0x25d
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002e95e
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call sub.LIBEAY32.dll_Ordinal_3623
add esp, 8
test eax, eax
jne 0x1002e95e
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x25d
jmp 0x1002ebe8
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1002e984
mov dword [esi + 0xe4], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0xe8], eax
jmp 0x1002e98e
mov dword [esi + 0xe4], 0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test ecx, ecx
je 0x1002eaac
cmp byte [edx], 0xab
jne 0x1002eaac
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x64], edx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002e9f3
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x269
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002ea0f
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x1002ea13
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call sub.LIBEAY32.dll_Ordinal_718
add esp, 0xc
test eax, eax
jne 0x1002ea37
mov dword [esp + 0x68], 0x269
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002ea73
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call sub.LIBEAY32.dll_Ordinal_3623
add esp, 8
test eax, eax
jne 0x1002ea73
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x269
jmp 0x1002ebe8
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
sub eax, edx
mov ecx, dword [esp + 0x58]
add ecx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x58], ecx
test eax, eax
je 0x1002eaac
movzx eax, byte [eax]
mov dword [esi + 0xb0], eax
push dword [esp + 0x28]
call sub.LIBEAY32.dll_Ordinal_181
mov ecx, dword [esp + 0x5c]
add esp, 4
mov edx, dword [esp + 0x40]
xor edi, edi
xor eax, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x1002eb96
cmp byte [edx], 0xac
jne 0x1002eb96
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x64], edx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002eb05
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x274
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002eb21
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x1002eb25
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call sub.LIBEAY32.dll_Ordinal_718
add esp, 0xc
test eax, eax
jne 0x1002eb49
mov dword [esp + 0x68], 0x274
jmp 0x1002ebe8
cmp ebx, 0x21
jne 0x1002eb82
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call sub.LIBEAY32.dll_Ordinal_3623
add esp, 8
test eax, eax
jne 0x1002eb82
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x274
jmp 0x1002ebe8
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
test eax, eax
je 0x1002ebc5
push edi
push eax
call sub.LIBEAY32.dll_Ordinal_3513
mov dword [esi + 0xf0], eax
push dword [esp + 0x30]
call sub.LIBEAY32.dll_Ordinal_181
add esp, 0xc
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
jmp 0x1002ebcf
mov dword [esi + 0xf0], 0
lea eax, [esp + 0x40]
push eax
call sub.LIBEAY32.dll_Ordinal_3700
add esp, 4
test eax, eax
jne 0x1002ec37
mov dword [esp + 0x68], 0x27e
push dword [esp + 0x68]
push str.._ssl_ssl_asn1.c
push dword [esp + 0x50]
push 0x67
push 0xd
call sub.LIBEAY32.dll_Ordinal_252
mov eax, dword [esp + 0x88]
mov ecx, dword [eax]
mov eax, dword [esp + 0x74]
sub eax, ecx
push eax
push ecx
call sub.LIBEAY32.dll_Ordinal_1091
add esp, 0x1c
test esi, esi
je 0x1002ec2d
test ebp, ebp
je 0x1002ec24
cmp dword [ebp], esi
je 0x1002ec2d
push esi
call sym.SSLEAY32.dll_SSL_SESSION_free
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x40]
mov dword [ecx], eax
test ebp, ebp
je 0x1002ec48
mov dword [ebp], esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret