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

Disassembly:
mov eax, 0x5c
call fcn.10031780
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 0x1002c4b3
mov esi, dword [ebp]
test esi, esi
jne 0x1002c4cb
call sym.SSLEAY32.dll_SSL_SESSION_new
mov esi, eax
test esi, esi
jne 0x1002c4cb
mov dword [esp + 0x68], 0x184
jmp 0x1002d67a
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 0x1002c4f3
mov dword [esp + 0x5c], ecx
jmp 0x1002c4f9
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 0x1002c51c
mov dword [esp + 0x68], 0x18a
jmp 0x1002d67a
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 0x1002c55b
mov dword [esp + 0x68], 0x18e
jmp 0x1002d67a
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 0x1002c598
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 0x1002c5c0
mov dword [esp + 0x68], 0x196
jmp 0x1002d67a
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 0x1002c5fd
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 0x1002c63c
mov dword [esp + 0x68], 0x1a1
jmp 0x1002d67a
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp edi, 2
jne 0x1002c685
cmp dword [esp + 0x20], 3
je 0x1002c669
mov dword [esp + 0x48], 0x89
mov dword [esp + 0x68], 0x1a5
jmp 0x1002d67a
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 0x1002c6e0
mov eax, edi
sar eax, 8
cmp eax, 3
je 0x1002c6b3
cmp eax, 0xfe
je 0x1002c6b3
cmp edi, 0x100
je 0x1002c6b3
mov dword [esp + 0x48], 0xfe
mov dword [esp + 0x68], 0x1b7
jmp 0x1002d67a
cmp dword [esp + 0x20], 2
je 0x1002c6cf
mov dword [esp + 0x48], 0x89
mov dword [esp + 0x68], 0x1b0
jmp 0x1002d67a
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 0x1002c724
mov dword [esp + 0x68], 0x1be
jmp 0x1002d67a
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 0x1002c768
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 sub.MSVCR120.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 0x1002c7a5
mov dword [esp + 0x68], 0x1cd
jmp 0x1002d67a
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x20]
cmp eax, 0x30
jle 0x1002c7c3
mov dword [esi + 0x10], 0x30
jmp 0x1002c7c6
mov dword [esi + 0x10], eax
push dword [esi + 0x10]
lea eax, [esi + 0x14]
push dword [esp + 0x2c]
push eax
call sub.MSVCR120.dll_memcpy
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x58], ecx
je 0x1002c853
mov edx, dword [esp + 0x40]
mov bl, byte [edx]
movzx eax, bl
and al, 0xdf
cmp al, 0x80
jne 0x1002c853
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 0x1002c831
mov eax, dword [esp + 0x60]
mov dword [esp + 0x68], 0x1e7
mov byte [eax], bl
jmp 0x1002d67a
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 0x1002c853
mov dword [esi + 4], 8
jmp 0x1002c856
mov dword [esi + 4], ecx
push dword [esi + 4]
lea eax, [esi + 8]
push dword [esp + 0x2c]
push eax
call sub.MSVCR120.dll_memcpy
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x1002c87a
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 0x1002c963
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa1
jne 0x1002c963
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 0x1002c8d7
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x1f1
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002c8f3
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 0x1002c8f7
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 0x1002c91b
mov dword [esp + 0x68], 0x1f1
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002c957
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 0x1002c957
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x1f1
jmp 0x1002d67a
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x38], 0
je 0x1002c98f
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 0x1002c9a0
push 0
call dword [sym.imp.MSVCR120.dll__time32]
add esp, 4
mov dword [esi + 0xac], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], 0
test eax, eax
je 0x1002ca89
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa2
jne 0x1002ca89
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 0x1002c9fd
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x1fb
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002ca19
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 0x1002ca1d
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 0x1002ca41
mov dword [esp + 0x68], 0x1fb
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002ca7d
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 0x1002ca7d
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x1fb
jmp 0x1002d67a
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x38], 0
je 0x1002cabd
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 0x1002cac7
mov dword [esi + 0xa8], 3
mov eax, dword [esi + 0x9c]
lea edi, [esi + 0x9c]
test eax, eax
je 0x1002cae6
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 0x1002cbcb
cmp byte [edx], 0xa3
jne 0x1002cbcb
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 0x1002cb3b
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x208
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002cb57
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 0x1002cb5b
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 0x1002cb7b
mov dword [esp + 0x68], 0x208
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002cbb7
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 0x1002cbb7
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x208
jmp 0x1002d67a
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 0x1002cd25
cmp byte [edx], 0xa4
jne 0x1002cd25
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 0x1002cc28
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x20c
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002cc44
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 0x1002cc48
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 0x1002cc6c
mov dword [esp + 0x68], 0x20c
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002cca8
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 0x1002cca8
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x20c
jmp 0x1002d67a
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1002cd25
mov ecx, dword [esp + 0x20]
cmp ecx, 0x20
jle 0x1002ccf3
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 0x1002d67a
mov dword [esi + 0x68], ecx
lea eax, [esi + 0x6c]
push dword [esp + 0x20]
push dword [esp + 0x2c]
push eax
call sub.MSVCR120.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 0x1002cd2c
mov dword [esi + 0x68], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], 0
test eax, eax
je 0x1002ce15
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa5
jne 0x1002ce15
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 0x1002cd89
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x221
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002cda5
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 0x1002cda9
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 0x1002cdcd
mov dword [esp + 0x68], 0x221
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002ce09
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 0x1002ce09
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x221
jmp 0x1002d67a
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x38], 0
je 0x1002ce49
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 0x1002ce53
mov dword [esi + 0xa0], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x1002cf6a
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa6
jne 0x1002cf6a
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 0x1002ceb8
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x22d
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002ced4
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 0x1002ced8
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 0x1002cefc
mov dword [esp + 0x68], 0x22d
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002cf38
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 0x1002cf38
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x22d
jmp 0x1002d67a
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1002cf6a
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 0x1002cf74
mov dword [esi + 0xd0], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x1002d08b
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa7
jne 0x1002d08b
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 0x1002cfd9
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x23a
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002cff5
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 0x1002cff9
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 0x1002d01d
mov dword [esp + 0x68], 0x23a
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002d059
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 0x1002d059
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x23a
jmp 0x1002d67a
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1002d08b
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 0x1002d095
mov dword [esi + 0x8c], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x1002d1bc
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa8
jne 0x1002d1bc
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 0x1002d0fa
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x245
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002d116
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 0x1002d11a
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 0x1002d13e
mov dword [esp + 0x68], 0x245
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002d17a
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 0x1002d17a
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x245
jmp 0x1002d67a
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1002d1bc
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 0x1002d1c6
mov dword [esi + 0x90], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], 0
test eax, eax
je 0x1002d2af
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa9
jne 0x1002d2af
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 0x1002d223
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x251
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002d23f
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 0x1002d243
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 0x1002d267
mov dword [esp + 0x68], 0x251
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002d2a3
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 0x1002d2a3
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x251
jmp 0x1002d67a
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x38], 0
je 0x1002d2e3
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 0x1002d308
cmp dword [esi + 0xe8], 0
je 0x1002d2fe
cmp dword [esi + 0x44], 0
je 0x1002d2fe
mov dword [esi + 0xec], 0xffffffff
jmp 0x1002d308
mov dword [esi + 0xec], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x1002d413
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xaa
jne 0x1002d413
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 0x1002d36d
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x25d
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002d389
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 0x1002d38d
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 0x1002d3b1
mov dword [esp + 0x68], 0x25d
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002d3ed
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 0x1002d3ed
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x25d
jmp 0x1002d67a
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1002d413
mov dword [esi + 0xe4], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0xe8], eax
jmp 0x1002d41d
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 0x1002d53b
cmp byte [edx], 0xab
jne 0x1002d53b
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 0x1002d482
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x269
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002d49e
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 0x1002d4a2
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 0x1002d4c6
mov dword [esp + 0x68], 0x269
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002d502
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 0x1002d502
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x269
jmp 0x1002d67a
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 0x1002d53b
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]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test ecx, ecx
je 0x1002d657
cmp byte [edx], 0xac
jne 0x1002d657
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 0x1002d598
mov dword [esp + 0x48], 0x3b
mov dword [esp + 0x68], 0x274
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002d5b4
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 0x1002d5b8
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 0x1002d5dc
mov dword [esp + 0x68], 0x274
jmp 0x1002d67a
cmp ebx, 0x21
jne 0x1002d615
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 0x1002d615
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], 0x274
jmp 0x1002d67a
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1002d657
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 0x1002d661
mov dword [esi + 0xf0], 0
lea eax, [esp + 0x40]
push eax
call sub.LIBEAY32.dll_Ordinal_3700
add esp, 4
test eax, eax
jne 0x1002d6c9
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 0x1002d6bf
test ebp, ebp
je 0x1002d6b6
cmp dword [ebp], esi
je 0x1002d6bf
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 0x1002d6da
mov dword [ebp], esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret