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

Disassembly:
mov eax, 0x20
call fcn.10079f60
push esi
mov esi, dword [esp + 0x28]
push edi
cmp dword [esi + 0x34], 0x1050
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + 4]
jne 0x100209ce
mov ecx, dword [esi + 0x44]
mov eax, 0x22
sub eax, ecx
push eax
lea eax, [ecx + edi]
push eax
push esi
call fcn.10022010
mov edx, dword [esi + 0x44]
mov ecx, 0x12
sub ecx, edx
add esp, 0xc
cmp eax, ecx
jge 0x1002095b
push eax
push 0x64
push esi
call fcn.10021f80
add esp, 0xc
pop edi
pop esi
add esp, 0x20
ret
mov ecx, dword [esi + 0x64]
add eax, edx
mov dword [esi + 0x44], eax
test ecx, ecx
je 0x10020978
push dword [esi + 0x68]
push esi
push eax
push edi
push 0
push dword [esi]
push 0
call ecx
add esp, 0x1c
cmp byte [edi + 1], 1
je 0x100209a7
push 6
push esi
call fcn.1001b6a0
push 0x2f3
push str.._ssl_s2_clnt.c
push 0x66
push 0x64
push 0x14
call fcn.100265e0
add esp, 0x1c
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x20
ret
mov eax, dword [esi + 0x94]
test eax, eax
je 0x100209c7
mov eax, dword [eax]
cmp dword [eax], 0
je 0x100209c7
cmp dword [eax + 4], 0
je 0x100209c7
mov dword [esi + 0x34], 0x1052
jmp 0x100209ce
mov dword [esi + 0x34], 0x1090
push ebx
push ebp
mov ebp, dword [esi + 0x44]
lea ebx, [edi + 2]
sub ebp, 2
cmp dword [esi + 0x34], 0x1090
jne 0x10020ac6
mov eax, dword [esi + 0xd8]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
xor ebx, ebx
mov eax, dword [eax + 0x74]
test eax, eax
je 0x10020a31
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
push ecx
push esi
call eax
mov ebx, eax
add esp, 0xc
test ebx, ebx
jns 0x10020a29
pop ebp
pop ebx
pop edi
mov dword [esi + 0x18], 4
or eax, 0xffffffff
pop esi
add esp, 0x20
ret
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x18], 1
cmp ebx, 1
jne 0x10020a8a
test ecx, ecx
je 0x10020c21
test edx, edx
je 0x10020c32
push edx
push esi
mov dword [esi + 0x34], 0x1052
call fcn.10016950
add esp, 8
test eax, eax
je 0x10020a73
push dword [esp + 0x14]
push esi
call fcn.100168e0
add esp, 8
test eax, eax
jne 0x10020a75
xor ebx, ebx
push dword [esp + 0x1c]
call fcn.10028e60
push dword [esp + 0x18]
call fcn.100278a0
add esp, 8
test ebx, ebx
jne 0x10020ac3
mov dword [esp + 0x34], edi
mov dword [esi + 0x34], 0x1051
mov byte [edi], 0
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x34], eax
mov byte [eax], 0
mov eax, dword [esp + 0x34]
mov byte [eax + 1], 2
add dword [esp + 0x34], 2
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 3
lea ebx, [edi + 2]
mov eax, dword [esi + 0x34]
cmp eax, 0x1051
je 0x10020c10
cmp eax, 0x1052
jne 0x10020c10
lea eax, [esp + 0x20]
mov dword [esp + 0x34], edi
push eax
call fcn.100319d0
mov eax, dword [esi + 0xd8]
push 0
push dword [eax + 0x88]
lea eax, [esp + 0x2c]
push eax
call fcn.10031790
mov eax, dword [esi + 0x54]
push dword [eax + 0x9c]
add eax, 0xa0
push eax
lea eax, [esp + 0x38]
push eax
call fcn.10031840
push ebp
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.10031840
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esi + 0xbc]
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 8]
push dword [eax]
call fcn.10028ea0
push eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x54]
push edi
push eax
call fcn.10031840
mov dword [esp + 0x70], edi
lea eax, [edi + 6]
mov dword [esp + 0x54], eax
mov byte [edi], 8
mov eax, dword [esp + 0x70]
inc eax
mov dword [esp + 0x70], eax
mov byte [eax], 1
lea eax, [esp + 0x54]
inc dword [esp + 0x70]
push eax
mov eax, dword [esi + 0x94]
mov eax, dword [eax]
push dword [eax]
call fcn.10028ea0
mov ecx, dword [esp + 0x78]
add esp, 0x44
mov dword [esp + 0x10], eax
shr eax, 8
mov byte [ecx], al
mov ecx, dword [esp + 0x34]
movzx eax, byte [esp + 0x10]
mov byte [ecx + 1], al
mov eax, dword [esi + 0x94]
add dword [esp + 0x34], 2
mov eax, dword [eax]
push dword [eax + 4]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
call fcn.1003baa0
lea eax, [esp + 0x30]
push eax
call fcn.10031850
mov eax, dword [esp + 0x48]
add esp, 0x14
mov ecx, dword [esp + 0x10]
shr ecx, 8
mov byte [eax], cl
mov ecx, dword [esp + 0x34]
movzx eax, byte [esp + 0x10]
mov byte [ecx + 1], al
add dword [esp + 0x34], 2
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
sub eax, edi
mov dword [esi + 0x34], 0x1053
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], 0
push esi
call fcn.10021f20
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x20
ret
test edx, edx
je 0x10020c3f
push edx
call fcn.10028e60
mov ecx, dword [esp + 0x18]
add esp, 4
test ecx, ecx
je 0x10020c3f
push ecx
call fcn.100278a0
add esp, 4
push 0x324
push str.._ssl_s2_clnt.c
push 0x6a
push 0x64
push 0x14
call fcn.100265e0
add esp, 0x14
jmp 0x10020a8e