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

Disassembly:
mov eax, 0x1c
call fcn.100857c0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push edi
mov eax, dword [esi + 0x68]
push 0x93a
push str.ssl_t1_lib.c
mov dword [eax + 0x344], 0
mov eax, dword [esi + 0x68]
mov dword [esi + 0x194], 0
push dword [eax + 0x348]
call fcn.10086580
mov eax, dword [esi + 0x68]
add esp, 0xc
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov dword [eax + 0x348], 0
mov eax, dword [esi + 0x68]
and dword [eax], 0xfffffeff
mov eax, dword [esi + 0x68]
and dword [eax], 0xfffffdff
mov edi, dword [ebx + 4]
cmp edi, 2
jb 0x1012d2d7
mov ecx, dword [ebx]
movzx eax, byte [ecx]
movzx edx, byte [ecx + 1]
shl eax, 8
or edx, eax
lea eax, [ecx + 2]
mov dword [ebx], eax
lea eax, [edi - 2]
mov dword [ebx + 4], eax
cmp eax, edx
jne 0x1012cd0b
push ebx
call fcn.1012e900
add esp, 4
test eax, eax
jne 0x1012cd21
mov eax, ebp
mov dword [eax], 0x32
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov ebx, dword [esp + 0x34]
mov edx, dword [ebx + 4]
cmp edx, 2
jb 0x1012d25c
mov ecx, dword [ebx]
add edx, 0xfffffffe
movzx eax, byte [ecx]
movzx edi, byte [ecx + 1]
add ecx, 2
shl eax, 8
or edi, eax
mov dword [ebx], ecx
mov dword [ebx + 4], edx
cmp edx, 2
jb 0x1012d25c
movzx eax, byte [ecx]
movzx ebx, byte [ecx + 1]
add ecx, 2
shl eax, 8
or ebx, eax
mov eax, dword [esp + 0x34]
mov dword [eax], ecx
lea eax, [edx - 2]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov dword [edx + 4], eax
cmp eax, ebx
jb 0x1012d2cf
cmp ebx, 0x7fffffff
ja 0x1012d2cf
mov ebp, dword [esp + 0x34]
lea eax, [ecx + ebx]
mov edx, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [ebp], eax
mov eax, dword [esp + 0x10]
sub eax, ebx
mov dword [esp + 0x10], ecx
mov dword [ebp + 4], eax
mov eax, dword [esi + 0x154]
mov ebp, dword [esp + 0x38]
test eax, eax
je 0x1012cdce
push dword [esi + 0x158]
push ebx
push ecx
push edi
push 1
push esi
call eax
mov edx, dword [esp + 0x40]
add esp, 0x18
mov ecx, dword [esp + 0x24]
cmp edi, 0xff01
jne 0x1012cdfa
push ebp
lea eax, [esp + 0x28]
push eax
push esi
call fcn.10143040
add esp, 0xc
test eax, eax
je 0x1012cd13
mov dword [esp + 0x1c], 1
jmp 0x1012cd1d
cmp dword [esi], 0x300
je 0x1012cd1d
test edi, edi
jne 0x1012ce2b
cmp dword [esi + 0x15c], edi
je 0x1012d2be
test ebx, ebx
jne 0x1012d2be
mov dword [esp + 0x18], 1
jmp 0x1012cd1d
cmp edi, 0xb
jne 0x1012cef3
test edx, edx
je 0x1012cee2
movzx edi, byte [ecx]
lea eax, [ebx - 1]
inc ecx
dec edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
cmp edi, eax
jne 0x1012cee2
cmp dword [esi + 0x78], 0
mov ebx, dword [esp + 0x34]
jne 0x1012cd21
mov eax, dword [esi + 0xf0]
push 0x973
push str.ssl_t1_lib.c
mov dword [eax + 0xc8], 0
mov eax, dword [esi + 0xf0]
push dword [eax + 0xcc]
call fcn.10086580
push 0x975
push str.ssl_t1_lib.c
push edi
call fcn.10086550
mov ecx, dword [esi + 0xf0]
add esp, 0x18
mov dword [ecx + 0xcc], eax
test eax, eax
je 0x1012d23a
mov eax, dword [esi + 0xf0]
push edi
mov dword [eax + 0xc8], edi
mov eax, dword [esi + 0xf0]
push dword [eax + 0xcc]
lea eax, [esp + 0x2c]
push eax
call fcn.1012a600
add esp, 0xc
test eax, eax
jne 0x1012cd21
pop edi
pop esi
mov dword [ebp], 0x32
xor eax, eax
pop ebp
pop ebx
add esp, 0x1c
ret
cmp edi, 0x23
jne 0x1012cf43
mov eax, dword [esi + 0x1ac]
test eax, eax
je 0x1012cf1b
push dword [esi + 0x1b0]
push ebx
push dword [esp + 0x18]
push esi
call eax
add esp, 0x10
test eax, eax
je 0x1012d23a
push esi
call fcn.10130000
add esp, 4
test eax, eax
je 0x1012d24b
test ebx, ebx
jne 0x1012d24b
mov dword [esi + 0x194], 1
jmp 0x1012cd1d
cmp edi, 5
jne 0x1012cf6c
cmp dword [esi + 0x164], 0xffffffff
je 0x1012d24b
test ebx, ebx
jne 0x1012d24b
mov dword [esi + 0x180], 1
jmp 0x1012cd1d
cmp edi, 0x12
jne 0x1012cfe8
cmp dword [esi + 0x168], 0
je 0x1012d18f
mov eax, dword [esi + 0x174]
test eax, eax
je 0x1012cfa5
push 0x9a9
push str.ssl_t1_lib.c
push eax
call fcn.10086580
add esp, 0xc
mov dword [esi + 0x174], 0
mov word [esi + 0x178], bx
test ebx, ebx
je 0x1012cd1d
push 0x9ae
push str.ssl_t1_lib.c
push ebx
call fcn.10086550
add esp, 0xc
mov dword [esi + 0x174], eax
test eax, eax
je 0x1012d23a
push ebx
push dword [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x1012cd1d
cmp edi, 0x3374
jne 0x1012d0bf
mov eax, dword [esi + 0x68]
cmp dword [eax + 0x180], 0
jne 0x1012d18f
mov edi, dword [esi + 0x114]
cmp dword [edi + 0x1cc], 0
je 0x1012d24b
lea eax, [esp + 0x24]
push eax
call fcn.1012c2f0
add esp, 4
test al, al
je 0x1012cee2
push dword [edi + 0x1d0]
lea eax, [esp + 0x34]
push ebx
push dword [esp + 0x18]
push eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [edi + 0x1cc]
push esi
call eax
add esp, 0x18
test eax, eax
jne 0x1012d23a
push 0x9d2
push str.ssl_t1_lib.c
push dword [esi + 0x1c0]
call fcn.10086580
movzx eax, byte [esp + 0x3c]
push 0x9d3
push str.ssl_t1_lib.c
push eax
call fcn.10086550
add esp, 0x18
mov dword [esi + 0x1c0], eax
test eax, eax
je 0x1012d23a
movzx ecx, byte [esp + 0x30]
push ecx
push dword [esp + 0x24]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov al, byte [esp + 0x3c]
add esp, 0xc
mov byte [esi + 0x1c4], al
mov eax, dword [esi + 0x68]
mov dword [eax + 0x344], 1
jmp 0x1012cd1d
cmp edi, 0x10
jne 0x1012d18f
mov ebx, dword [esi + 0x68]
cmp dword [ebx + 0x358], 0
je 0x1012d24b
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.1012a6e0
add esp, 8
test eax, eax
je 0x1012cee2
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x14]
jne 0x1012cee2
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.1012a660
add esp, 8
test eax, eax
je 0x1012cee2
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x28], edi
jne 0x1012cee2
push 0x9f1
push str.ssl_t1_lib.c
push dword [ebx + 0x348]
call fcn.10086580
push 0x9f2
push str.ssl_t1_lib.c
push edi
call fcn.10086550
mov ecx, dword [esi + 0x68]
add esp, 0x18
mov dword [ecx + 0x348], eax
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 0x348]
test eax, eax
je 0x1012d23a
push edi
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.1012a600
add esp, 0xc
test eax, eax
je 0x1012cee2
mov eax, dword [esi + 0x68]
mov dword [eax + 0x34c], edi
jmp 0x1012cd1d
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x64]
test byte [eax + 0x34], 8
je 0x1012d1bc
cmp edi, 0xe
jne 0x1012d1bc
push ebp
lea eax, [esp + 0x28]
push eax
push esi
call fcn.10142c90
add esp, 0xc
test eax, eax
jne 0x1012cd13
jmp 0x1012cd1d
cmp edi, 0x16
jne 0x1012d1ed
mov eax, dword [esi + 0x68]
mov ebx, dword [esp + 0x34]
mov ecx, dword [eax + 0x210]
cmp dword [ecx + 0x18], 0x40
je 0x1012cd21
cmp dword [ecx + 0x14], 4
je 0x1012cd21
or dword [eax], 0x100
jmp 0x1012cd21
cmp edi, 0x17
jne 0x1012d21b
mov eax, dword [esi + 0x68]
mov ebx, dword [esp + 0x34]
or dword [eax], 0x200
cmp dword [esi + 0x78], 0
jne 0x1012cd21
mov eax, dword [esi + 0xf0]
or dword [eax + 0xe8], 1
jmp 0x1012cd21
push ebp
push ebx
push dword [esp + 0x18]
push edi
push 0
push esi
call fcn.10125570
add esp, 0x18
test eax, eax
jle 0x1012cd13
jmp 0x1012cd1d
pop edi
pop esi
mov dword [ebp], 0x50
xor eax, eax
pop ebp
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
mov dword [ebp], 0x6e
xor eax, eax
pop ebp
pop ebx
add esp, 0x1c
ret
cmp dword [ebx + 4], 0
jne 0x1012cee2
cmp dword [esi + 0x78], 0
jne 0x1012d2cf
cmp dword [esp + 0x18], 1
jne 0x1012d2cf
mov ecx, dword [esi + 0x15c]
test ecx, ecx
je 0x1012d2cf
mov eax, dword [esi + 0xf0]
cmp dword [eax + 0xc4], 0
jne 0x1012cee2
push 0xa33
push str.ssl_t1_lib.c
push ecx
call fcn.10096ee0
mov ecx, dword [esi + 0xf0]
add esp, 0xc
mov dword [ecx + 0xc4], eax
mov eax, dword [esi + 0xf0]
cmp dword [eax + 0xc4], 0
jne 0x1012d2cf
pop edi
pop esi
mov dword [ebp], 0x70
xor eax, eax
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x1012d312
test dword [esi + 0x12c], 0x40004
jne 0x1012d312
push 0xa4c
push str.ssl_t1_lib.c
push 0x152
push 0x141
push 0x14
mov dword [ebp], 0x28
call fcn.10092a20
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp dword [esi + 0x78], 0
je 0x1012d345
mov eax, dword [esi + 0x68]
mov ecx, dword [eax]
mov eax, dword [esi + 0xf0]
shr ecx, 9
not ecx
mov eax, dword [eax + 0xe8]
not eax
xor ecx, eax
test cl, 1
je 0x1012d345
push 0xa58
push str.ssl_t1_lib.c
push 0x68
jmp 0x1012d2f2
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret