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

Disassembly:
mov eax, 0x20
call fcn.00471f10
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 0x49541e
mov ecx, dword [esi + 0x44]
mov eax, 0x22
sub eax, ecx
push eax
lea eax, [ecx + edi]
push eax
push esi
call fcn.004a00a0
mov edx, dword [esi + 0x44]
mov ecx, 0x12
sub ecx, edx
add esp, 0xc
cmp eax, ecx
jge 0x4953ab
push eax
push 0x64
push esi
call fcn.004a0010
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 0x4953c8
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 0x4953f7
push 6
push esi
call fcn.00493be0
push 0x2f3
push str.._ssl_s2_clnt.c
push 0x66
push 0x64
push 0x14
call fcn.004aac90
add esp, 0x1c
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x20
ret
mov eax, dword [esi + 0x94]
test eax, eax
je 0x495417
mov eax, dword [eax]
cmp dword [eax], 0
je 0x495417
cmp dword [eax + 4], 0
je 0x495417
mov dword [esi + 0x34], 0x1052
jmp 0x49541e
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 0x495516
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 0x495481
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 0x495479
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 0x4954da
test ecx, ecx
je 0x495671
test edx, edx
je 0x495682
push edx
push esi
mov dword [esi + 0x34], 0x1052
call fcn.004a09b0
add esp, 8
test eax, eax
je 0x4954c3
push dword [esp + 0x14]
push esi
call fcn.004a0940
add esp, 8
test eax, eax
jne 0x4954c5
xor ebx, ebx
push dword [esp + 0x1c]
call fcn.004ad530
push dword [esp + 0x18]
call fcn.004abf60
add esp, 8
test ebx, ebx
jne 0x495513
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 0x495660
cmp eax, 0x1052
jne 0x495660
lea eax, [esp + 0x20]
mov dword [esp + 0x34], edi
push eax
call fcn.004b5680
mov eax, dword [esi + 0xd8]
push 0
push dword [eax + 0x88]
lea eax, [esp + 0x2c]
push eax
call fcn.004b5440
mov eax, dword [esi + 0x54]
push dword [eax + 0x9c]
add eax, 0xa0
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004b54f0
push ebp
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.004b54f0
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.004ad570
push eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x54]
push edi
push eax
call fcn.004b54f0
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.004ad570
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.004b6cb0
lea eax, [esp + 0x30]
push eax
call fcn.004b5500
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.0049ffb0
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x20
ret
test edx, edx
je 0x49568f
push edx
call fcn.004ad530
mov ecx, dword [esp + 0x18]
add esp, 4
test ecx, ecx
je 0x49568f
push ecx
call fcn.004abf60
add esp, 4
push 0x324
push str.._ssl_s2_clnt.c
push 0x6a
push 0x64
push 0x14
call fcn.004aac90
add esp, 0x14
jmp 0x4954de