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

Disassembly:
mov eax, 0x20
call fcn.00476ea0
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 0x49ae9e
mov ecx, dword [esi + 0x44]
mov eax, 0x22
sub eax, ecx
push eax
lea eax, [ecx + edi]
push eax
push esi
call fcn.004a5b00
mov edx, dword [esi + 0x44]
mov ecx, 0x12
sub ecx, edx
add esp, 0xc
cmp eax, ecx
jge 0x49ae2b
push eax
push 0x64
push esi
call fcn.004a5a70
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 0x49ae48
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 0x49ae77
push 6
push esi
call fcn.00499660
push 0x2f3
push str.._ssl_s2_clnt.c
push 0x66
push 0x64
push 0x14
call fcn.004b0700
add esp, 0x1c
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x20
ret
mov eax, dword [esi + 0x94]
test eax, eax
je 0x49ae97
mov eax, dword [eax]
cmp dword [eax], 0
je 0x49ae97
cmp dword [eax + 4], 0
je 0x49ae97
mov dword [esi + 0x34], 0x1052
jmp 0x49ae9e
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 0x49af96
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 0x49af01
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 0x49aef9
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 0x49af5a
test ecx, ecx
je 0x49b0f1
test edx, edx
je 0x49b102
push edx
push esi
mov dword [esi + 0x34], 0x1052
call fcn.004a6410
add esp, 8
test eax, eax
je 0x49af43
push dword [esp + 0x14]
push esi
call fcn.004a63a0
add esp, 8
test eax, eax
jne 0x49af45
xor ebx, ebx
push dword [esp + 0x1c]
call fcn.004b2f90
push dword [esp + 0x18]
call fcn.004b19c0
add esp, 8
test ebx, ebx
jne 0x49af93
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 0x49b0e0
cmp eax, 0x1052
jne 0x49b0e0
lea eax, [esp + 0x20]
mov dword [esp + 0x34], edi
push eax
call fcn.004bb100
mov eax, dword [esi + 0xd8]
push 0
push dword [eax + 0x88]
lea eax, [esp + 0x2c]
push eax
call fcn.004baec0
mov eax, dword [esi + 0x54]
push dword [eax + 0x9c]
add eax, 0xa0
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004baf70
push ebp
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.004baf70
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.004b2fd0
push eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x54]
push edi
push eax
call fcn.004baf70
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.004b2fd0
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.004bc730
lea eax, [esp + 0x30]
push eax
call fcn.004baf80
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.004a5a10
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x20
ret
test edx, edx
je 0x49b10f
push edx
call fcn.004b2f90
mov ecx, dword [esp + 0x18]
add esp, 4
test ecx, ecx
je 0x49b10f
push ecx
call fcn.004b19c0
add esp, 4
push 0x324
push str.._ssl_s2_clnt.c
push 0x6a
push 0x64
push 0x14
call fcn.004b0700
add esp, 0x14
jmp 0x49af5e