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

Disassembly:
mov eax, 0x5c
call fcn.10031300
mov eax, dword [esp + 0x64]
push ebx
push ebp
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x5c], eax
mov eax, dword [eax]
push esi
push edi
mov dword [esp + 0x60], eax
mov dword [esp + 0x48], 0x3a
test ebp, ebp
je 0x1002cc23
mov esi, dword [ebp]
test esi, esi
jne 0x1002cc3b
call sym.SSLEAY32.dll_SSL_SESSION_new
mov esi, eax
test esi, esi
jne 0x1002cc3b
mov dword [esp + 0x68], 0x182
jmp 0x1002ddc4
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 0x1002cc63
mov dword [esp + 0x5c], ecx
jmp 0x1002cc69
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 0x1002cc8c
mov dword [esp + 0x68], 0x188
jmp 0x1002ddc4
mov eax, dword [esp + 0x40]
push dword [esp + 0x58]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x3c], 0
call sub.LIBEAY32.dll_Ordinal_716
add esp, 0xc
test eax, eax
jne 0x1002cccb
mov dword [esp + 0x68], 0x18b
jmp 0x1002ddc4
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x58]
sub eax, edx
add ecx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], ecx
test eax, eax
je 0x1002cd08
push eax
call sub.LIBEAY32.dll_Ordinal_181
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x44]
add esp, 4
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
push ecx
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x6c], edx
call sub.LIBEAY32.dll_Ordinal_716
add esp, 0xc
test eax, eax
jne 0x1002cd30
mov dword [esp + 0x68], 0x18f
jmp 0x1002ddc4
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
mov dword [esi], edi
mov eax, dword [esp + 0x3c]
add esp, 4
test eax, eax
je 0x1002cd6d
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]
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], 0
call sub.LIBEAY32.dll_Ordinal_718
add esp, 0xc
test eax, eax
jne 0x1002cdac
mov dword [esp + 0x68], 0x195
jmp 0x1002ddc4
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp edi, 2
jne 0x1002cded
cmp dword [esp + 0x20], 3
je 0x1002cdd1
mov dword [esp + 0x48], 0x89
jmp 0x1002ddc4
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 0x1002ce24
and edi, 0xffffff00
cmp edi, 0x300
jl 0x1002ddbc
cmp dword [esp + 0x20], 2
je 0x1002ce13
mov dword [esp + 0x48], 0x89
jmp 0x1002ddc4
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 0x1002ce68
mov dword [esp + 0x68], 0x1b6
jmp 0x1002ddc4
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
mov ecx, 0x20
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 0x1002ceac
push str.os.length____int_sizeof_ret__session_id_
push 0x1c2
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 sub.MSVCR110.dll_memcpy
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 0x1002cee9
mov dword [esp + 0x68], 0x1c5
jmp 0x1002ddc4
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x20]
cmp eax, 0x30
jle 0x1002cf07
mov dword [esi + 0x10], 0x30
jmp 0x1002cf0a
mov dword [esi + 0x10], eax
push dword [esi + 0x10]
lea eax, [esi + 0x14]
push dword [esp + 0x2c]
push eax
call sub.MSVCR110.dll_memcpy
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x58], ecx
je 0x1002cf97
mov edx, dword [esp + 0x40]
mov bl, byte [edx]
movzx eax, bl
and al, 0xdf
cmp al, 0x80
jne 0x1002cf97
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 0x1002cf75
mov eax, dword [esp + 0x60]
mov dword [esp + 0x68], 0x1e0
mov byte [eax], bl
jmp 0x1002ddc4
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 0x1002cf97
mov dword [esi + 4], 8
jmp 0x1002cf9a
mov dword [esi + 4], ecx
push dword [esi + 4]
lea eax, [esi + 8]
push dword [esp + 0x2c]
push eax
call sub.MSVCR110.dll_memcpy
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x1002cfbe
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 0x1002d0a7
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa1
jne 0x1002d0a7
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x74], ecx
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002d01b
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x1e9
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002d037
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 0x1002d03b
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 0x1002d05f
mov dword [esp + 0x68], 0x1e9
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002d09b
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 0x1002d09b
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x1e9
jmp 0x1002ddc4
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x38], 0
je 0x1002d0d3
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 0x1002d0e4
push 0
call dword [sym.imp.MSVCR110.dll__time64]
add esp, 4
mov dword [esi + 0xac], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], 0
test eax, eax
je 0x1002d1cd
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa2
jne 0x1002d1cd
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x74], ecx
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002d141
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x1f3
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002d15d
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 0x1002d161
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 0x1002d185
mov dword [esp + 0x68], 0x1f3
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002d1c1
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 0x1002d1c1
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x1f3
jmp 0x1002ddc4
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x38], 0
je 0x1002d201
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 0x1002d20b
mov dword [esi + 0xa8], 3
mov eax, dword [esi + 0x9c]
lea edi, [esi + 0x9c]
test eax, eax
je 0x1002d22a
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 0x1002d30f
cmp byte [edx], 0xa3
jne 0x1002d30f
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x74], edx
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002d27f
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x201
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002d29b
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 0x1002d29f
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 0x1002d2bf
mov dword [esp + 0x68], 0x201
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002d2fb
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 0x1002d2fb
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x201
jmp 0x1002ddc4
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x58]
sub eax, edx
add ecx, eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test ecx, ecx
je 0x1002d447
cmp byte [edx], 0xa4
jne 0x1002d447
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x74], edx
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002d36c
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x205
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002d388
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 0x1002d38c
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 0x1002d3b0
mov dword [esp + 0x68], 0x205
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002d3ec
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 0x1002d3ec
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x205
jmp 0x1002ddc4
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x28], 0
je 0x1002d447
mov eax, dword [esp + 0x20]
cmp eax, 0x20
jle 0x1002d415
mov dword [esp + 0x48], 0x10f
jmp 0x1002ddc4
mov dword [esi + 0x68], eax
push dword [esp + 0x20]
lea eax, [esi + 0x6c]
push dword [esp + 0x2c]
push eax
call sub.MSVCR110.dll_memcpy
push dword [esp + 0x34]
call sub.LIBEAY32.dll_Ordinal_181
add esp, 0x10
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
jmp 0x1002d44e
mov dword [esi + 0x68], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], 0
test eax, eax
je 0x1002d537
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa5
jne 0x1002d537
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x74], ecx
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002d4ab
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x219
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002d4c7
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 0x1002d4cb
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 0x1002d4ef
mov dword [esp + 0x68], 0x219
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002d52b
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 0x1002d52b
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x219
jmp 0x1002ddc4
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x38], 0
je 0x1002d56b
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 0x1002d575
mov dword [esi + 0xa0], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x1002d68c
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa6
jne 0x1002d68c
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x74], ecx
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002d5da
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x225
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002d5f6
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 0x1002d5fa
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 0x1002d61e
mov dword [esp + 0x68], 0x225
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002d65a
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 0x1002d65a
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x225
jmp 0x1002ddc4
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1002d68c
push dword [esp + 0x20]
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 0x1002d696
mov dword [esi + 0xd0], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x1002d7ad
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa7
jne 0x1002d7ad
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x74], ecx
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002d6fb
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x234
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002d717
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 0x1002d71b
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 0x1002d73f
mov dword [esp + 0x68], 0x234
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002d77b
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 0x1002d77b
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x234
jmp 0x1002ddc4
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1002d7ad
push dword [esp + 0x20]
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 0x1002d7b7
mov dword [esi + 0x8c], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x1002d8de
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa8
jne 0x1002d8de
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x74], ecx
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002d81c
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x241
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002d838
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 0x1002d83c
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 0x1002d860
mov dword [esp + 0x68], 0x241
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002d89c
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 0x1002d89c
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x241
jmp 0x1002ddc4
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1002d8de
push dword [esp + 0x20]
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 0x1002d8e8
mov dword [esi + 0x90], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], 0
test eax, eax
je 0x1002d9d1
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa9
jne 0x1002d9d1
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x74], ecx
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002d945
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x24f
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002d961
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 0x1002d965
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 0x1002d989
mov dword [esp + 0x68], 0x24f
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002d9c5
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 0x1002d9c5
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x24f
jmp 0x1002ddc4
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x38], 0
je 0x1002da05
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 0x1002da2a
cmp dword [esi + 0xe8], 0
je 0x1002da20
cmp dword [esi + 0x44], 0
je 0x1002da20
mov dword [esi + 0xec], 0xffffffff
jmp 0x1002da2a
mov dword [esi + 0xec], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x1002db35
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xaa
jne 0x1002db35
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x74], ecx
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002da8f
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x25b
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002daab
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 0x1002daaf
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 0x1002dad3
mov dword [esp + 0x68], 0x25b
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002db0f
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 0x1002db0f
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x25b
jmp 0x1002ddc4
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1002db35
mov dword [esi + 0xe4], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0xe8], eax
jmp 0x1002db3f
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 0x1002dc5d
cmp byte [edx], 0xab
jne 0x1002dc5d
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x74], edx
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002dba4
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x269
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002dbc0
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 0x1002dbc4
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 0x1002dbe8
mov dword [esp + 0x68], 0x269
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002dc24
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 0x1002dc24
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x269
jmp 0x1002ddc4
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x58]
sub eax, edx
add ecx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x58], ecx
test eax, eax
je 0x1002dc5d
movzx eax, byte [eax]
mov dword [esi + 0xb0], eax
push dword [esp + 0x28]
call sub.LIBEAY32.dll_Ordinal_181
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x44]
add esp, 4
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test ecx, ecx
je 0x1002dd7c
cmp byte [edx], 0xac
jne 0x1002dd7c
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x74], edx
call sub.LIBEAY32.dll_Ordinal_32
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x1002dcba
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x275
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002dcd6
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 0x1002dcda
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 0x1002dcfe
mov dword [esp + 0x68], 0x275
jmp 0x1002ddc4
cmp ebx, 0x21
jne 0x1002dd3a
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 0x1002dd3a
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x275
jmp 0x1002ddc4
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1002dd7c
push dword [esp + 0x20]
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 0x1002dd86
mov dword [esi + 0xf0], 0
lea eax, [esp + 0x40]
push eax
call sub.LIBEAY32.dll_Ordinal_3700
add esp, 4
test eax, eax
jne 0x1002dda1
mov dword [esp + 0x68], 0x281
jmp 0x1002ddc4
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x40]
mov dword [ecx], eax
test ebp, ebp
je 0x1002ddb2
mov dword [ebp], esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov dword [esp + 0x48], 0xfe
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 0x1002de09
test ebp, ebp
je 0x1002de00
cmp dword [ebp], esi
je 0x1002de09
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